コード例 #1
0
 public static bool SetMotor3(bool MotorON, double Speed)
 {
     if (MotorON)
     {
         if (PVar.ParList.CheckSts[3])                    //左右机切换
         {
             Gg.JogMotion(0, Axis.流水线1, (int)Speed, "-"); //PVar.ParList.Data[43]
         }
         else
         {
             Gg.JogMotion(0, Axis.流水线3, (int)Speed, "+");
         }
     }
     else
     {
         if (PVar.ParList.CheckSts[3]) //左右机切换
         {
             Gg.AxisStop(0, Axis.流水线1);
         }
         else
         {
             Gg.AxisStop(0, Axis.流水线3);
         }
     }
     return(MotorON);
 }
コード例 #2
0
 public static bool SetMotor2(bool MotorON, double Speed)
 {
     if (MotorON)
     {
         if (PVar.ParList.CheckSts[3])     //左机
         {
             Gg.JogMotion(0, Axis.流水线2, (int)Speed, "-");
         }
         else
         {
             Gg.JogMotion(0, Axis.流水线2, (int)Speed, "+");
         }
     }
     else
     {
         Gg.AxisStop(0, Axis.流水线2);
     }
     return(MotorON);
 }