public bool MoveAbsoHorizontalA(int distance) { if (distance <= 1350) { return(ControlCom.MoveHorizontalA(distance)); } else { return(ControlCom.MoveHorizontalA(1350)); } }
public bool MoveAbsoClampA(int distance) { if (distance <= 360) { return(ControlCom.MoveElectricClampA(distance)); } else { return(ControlCom.MoveHorizontalA(360)); } }
public bool MoveHorizontalLeftA(int distance) { int locationA = ControlCom.GetHorizontalA(); int location = locationA - distance; if (location >= 0) { return(ControlCom.MoveHorizontalA(location)); } else { return(ControlCom.RefreshElectricA()); } }
public bool MoveHorizontalRightA(int distance) { int locationA = ControlCom.GetHorizontalA(); int location = locationA + distance; if (location <= 1350) { return(ControlCom.MoveHorizontalA(location)); } else { return(ControlCom.MoveHorizontalA(1350)); } }