コード例 #1
0
 public bool MoveAbsoHorizontalA(int distance)
 {
     if (distance <= 1350)
     {
         return(ControlCom.MoveHorizontalA(distance));
     }
     else
     {
         return(ControlCom.MoveHorizontalA(1350));
     }
 }
コード例 #2
0
 public bool MoveAbsoClampA(int distance)
 {
     if (distance <= 360)
     {
         return(ControlCom.MoveElectricClampA(distance));
     }
     else
     {
         return(ControlCom.MoveHorizontalA(360));
     }
 }
コード例 #3
0
        public bool MoveHorizontalLeftA(int distance)
        {
            int locationA = ControlCom.GetHorizontalA();
            int location  = locationA - distance;

            if (location >= 0)
            {
                return(ControlCom.MoveHorizontalA(location));
            }
            else
            {
                return(ControlCom.RefreshElectricA());
            }
        }
コード例 #4
0
        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));
            }
        }