예제 #1
0
 public bool MoveAbsoClampA(int distance)
 {
     if (distance <= 360)
     {
         return(ControlCom.MoveElectricClampA(distance));
     }
     else
     {
         return(ControlCom.MoveHorizontalA(360));
     }
 }
예제 #2
0
        public bool ShrinkA(int distance)
        {
            int locaA    = ControlCom.GetElectricClampA();
            int location = locaA + distance;

            if (location <= 360)
            {
                return(ControlCom.MoveElectricClampA(location));
            }
            else
            {
                return(ControlCom.MoveElectricClampA(360));
            }
        }
예제 #3
0
        public bool ExpendA(int distance)
        {
            int locaA    = ControlCom.GetElectricClampA();
            int location = locaA - distance;

            if (location >= 0)
            {
                return(ControlCom.MoveElectricClampA(location));
            }
            else
            {
                return(ControlCom.MoveElectricClampA(0));
            }
        }