Esempio n. 1
0
 public static void CldVacuum11Off()                         //破真空11
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 10, 0);         //吸真空11
     GClsMontion.WriteIOCard7432OutputBit(0, 22, 1);         //破真空11
     GClsMontion.WaitIOCard7432InputBit(0, 10, 0, 3000, 66); //吸真空11感应
     GClsMontion.WriteIOCard7432OutputBit(0, 22, 0);         //破真空11
 }
Esempio n. 2
0
 public static void CldVacuum9Off()                         //破真空9
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 8, 0);         //吸真空9
     GClsMontion.WriteIOCard7432OutputBit(0, 20, 1);        //破真空9
     GClsMontion.WaitIOCard7432InputBit(0, 8, 0, 3000, 62); //吸真空9感应
     GClsMontion.WriteIOCard7432OutputBit(0, 20, 0);        //破真空9
 }
Esempio n. 3
0
 public static void CldVacuum10Off()                        //破真空10
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 9, 0);         //吸真空10
     GClsMontion.WriteIOCard7432OutputBit(0, 21, 1);        //破真空10
     GClsMontion.WaitIOCard7432InputBit(0, 9, 0, 3000, 64); //吸真空10感应
     GClsMontion.WriteIOCard7432OutputBit(0, 21, 0);        //破真空10
 }
Esempio n. 4
0
 public static void CldVacuum7Off()                         //破真空7
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 6, 0);         //吸真空7
     GClsMontion.WriteIOCard7432OutputBit(0, 18, 1);        //破真空7
     GClsMontion.WaitIOCard7432InputBit(0, 6, 0, 3000, 58); //吸真空7感应
     GClsMontion.WriteIOCard7432OutputBit(0, 18, 0);        //破真空7
 }
Esempio n. 5
0
 public static void CldVacuum8Off()                         //破真空8
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 7, 0);         //吸真空8
     GClsMontion.WriteIOCard7432OutputBit(0, 19, 1);        //破真空8
     GClsMontion.WaitIOCard7432InputBit(0, 7, 0, 3000, 60); //吸真空8感应
     GClsMontion.WriteIOCard7432OutputBit(0, 19, 0);        //破真空8
 }
Esempio n. 6
0
 public static void CldVacuum6Off()                         //破真空6
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 5, 0);         //吸真空6
     GClsMontion.WriteIOCard7432OutputBit(0, 17, 1);        //破真空6
     GClsMontion.WaitIOCard7432InputBit(0, 5, 0, 3000, 56); //吸真空6感应
     GClsMontion.WriteIOCard7432OutputBit(0, 17, 0);        //破真空6
 }
Esempio n. 7
0
 public static void CldVacuum5Off()                         //破真空5
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 4, 0);         //吸真空5
     GClsMontion.WriteIOCard7432OutputBit(0, 16, 1);        //破真空5
     GClsMontion.WaitIOCard7432InputBit(0, 4, 0, 3000, 54); //吸真空5感应
     GClsMontion.WriteIOCard7432OutputBit(0, 16, 0);        //破真空5
 }
Esempio n. 8
0
 public static void CldVacuum4Off()                         //破真空4
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 3, 0);         //吸真空4
     GClsMontion.WriteIOCard7432OutputBit(0, 15, 1);        //破真空4
     GClsMontion.WaitIOCard7432InputBit(0, 3, 0, 3000, 52); //吸真空4感应
     GClsMontion.WriteIOCard7432OutputBit(0, 15, 0);        //破真空4
 }
Esempio n. 9
0
 public static void CldVacuum12Off()                         //破真空12
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 11, 0);         //吸真空12
     GClsMontion.WriteIOCard7432OutputBit(0, 23, 1);         //破真空12
     GClsMontion.WaitIOCard7432InputBit(0, 11, 0, 3000, 68); //吸真空12感应
     GClsMontion.WriteIOCard7432OutputBit(0, 23, 0);         //破真空12
 }
Esempio n. 10
0
        /// <summary> 等待气缸动作感应
        /// 等待气缸动作感应
        /// </summary>
        /// <param name="type">0:轴卡上的4输入通道;1:轴卡扩展的16输入通道;2:7432 IO卡输入</param>
        /// <param name="cardNo">代表第几张卡,从0开始</param>
        /// <param name="pointNo">代表第几个点位,从0开始</param>
        /// <param name="onOff">输出状态,0:Off;1:On</param>
        /// <param name="waitTime">等待输入时间,单位ms</param>
        /// <param name="errorNo">errorcode配置文件的ID</param>
        public static void GeneralClynderMotionSensor(int type, int cardNo, int pointNo, int onOff, int waitTime, int errorNo)//阻挡气缸伸出
        {
            try
            {
                switch (type)
                {
                case 0:
                    GClsMontion.WaitCardInputBit(cardNo, pointNo, onOff, waitTime, errorNo);//轴卡上的4输入通道
                    break;

                case 1:
                    GClsMontion.WaitCardExtendInputBit(cardNo, pointNo, onOff, waitTime, errorNo);//轴卡扩展的16输入通道
                    break;

                case 2:
                    ushort uCardNo  = (ushort)cardNo;
                    ushort uPointNo = (ushort)pointNo;
                    ushort uOnOff   = (ushort)onOff;
                    GClsMontion.WaitIOCard7432InputBit(uCardNo, uPointNo, uOnOff, waitTime, errorNo);//7432 IO卡输入
                    break;

                default:
                    break;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Esempio n. 11
0
 public static void CldVacuum2Off()                         //破真空2
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 1, 0);         //吸真空2
     GClsMontion.WriteIOCard7432OutputBit(0, 13, 1);        //破真空2
     GClsMontion.WaitIOCard7432InputBit(0, 1, 0, 3000, 48); //吸真空2感应
     GClsMontion.WriteIOCard7432OutputBit(0, 13, 0);        //破真空2
 }
Esempio n. 12
0
 public static void CldVacuum3Off()                         //破真空3
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 2, 0);         //吸真空3
     GClsMontion.WriteIOCard7432OutputBit(0, 14, 1);        //破真空3
     GClsMontion.WaitIOCard7432InputBit(0, 2, 0, 3000, 50); //吸真空3感应
     GClsMontion.WriteIOCard7432OutputBit(0, 14, 0);        //破真空3
 }
Esempio n. 13
0
 public static void CldSmallControl11Extend()                //小气缸控制11伸出
 {
     GClsMontion.WriteCardOutputBit(1, 2, 1);                //小气缸控制11伸出
     GClsMontion.WaitIOCard7432InputBit(0, 22, 1, 3000, 89); //吸排线气缸11动作感应
 }
Esempio n. 14
0
 public static void CldSmallControl10Retract()               //小气缸控制10缩回
 {
     GClsMontion.WriteCardOutputBit(1, 1, 0);                //小气缸控制10伸出
     GClsMontion.WaitIOCard7432InputBit(0, 21, 0, 3000, 88); //吸排线气缸10动作感应
 }
Esempio n. 15
0
 public static void CldSmallControl10Extend()                //小气缸控制10伸出
 {
     GClsMontion.WriteCardOutputBit(1, 1, 1);                //小气缸控制10伸出
     GClsMontion.WaitIOCard7432InputBit(0, 21, 1, 3000, 87); //吸排线气缸10动作感应
 }
Esempio n. 16
0
 public static void CldSmallControl9Retract()                //小气缸控制9缩回
 {
     GClsMontion.WriteCardOutputBit(1, 0, 0);                //小气缸控制9伸出
     GClsMontion.WaitIOCard7432InputBit(0, 20, 0, 3000, 86); //吸排线气缸9动作感应
 }
Esempio n. 17
0
 public static void CldSmallControl9Extend()                 //小气缸控制9伸出
 {
     GClsMontion.WriteCardOutputBit(1, 0, 1);                //小气缸控制9伸出
     GClsMontion.WaitIOCard7432InputBit(0, 20, 1, 3000, 85); //吸排线气缸9动作感应
 }
Esempio n. 18
0
 public static void CldSmallControl4Retract()                //小气缸控制4缩回
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 27, 0);         //小气缸控制4缩回
     GClsMontion.WaitIOCard7432InputBit(0, 15, 0, 3000, 76); //吸排线气缸4动作感应
 }
Esempio n. 19
0
 public static void CldSmallControl12Retract()               //小气缸控制12缩回
 {
     GClsMontion.WriteCardOutputBit(1, 3, 0);                //小气缸控制12伸出
     GClsMontion.WaitIOCard7432InputBit(0, 23, 0, 3000, 92); //吸排线气缸12动作感应
 }
Esempio n. 20
0
 public static void CldSmallControl7Retract()                //小气缸控制7缩回
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 30, 0);         //小气缸控制7缩回
     GClsMontion.WaitIOCard7432InputBit(0, 18, 0, 3000, 82); //吸排线气缸7动作感应
 }
Esempio n. 21
0
 public static void CldSmallControl7Extend()                 //小气缸控制7伸出
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 30, 1);         //小气缸控制7伸出
     GClsMontion.WaitIOCard7432InputBit(0, 18, 1, 3000, 81); //吸排线气缸7动作感应
 }
Esempio n. 22
0
 public static void CldSmallControl6Retract()                //小气缸控制6缩回
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 29, 0);         //小气缸控制6缩回
     GClsMontion.WaitIOCard7432InputBit(0, 17, 0, 3000, 80); //吸排线气缸6动作感应
 }
Esempio n. 23
0
 public static void CldSmallControl5Retract()                //小气缸控制5缩回
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 28, 0);         //小气缸控制5缩回
     GClsMontion.WaitIOCard7432InputBit(0, 16, 0, 3000, 78); //吸排线气缸5动作感应
 }
Esempio n. 24
0
 public static void CldSmallControl5Extend()                 //小气缸控制5伸出
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 28, 1);         //小气缸控制5伸出
     GClsMontion.WaitIOCard7432InputBit(0, 16, 1, 3000, 77); //吸排线气缸5动作感应
 }
Esempio n. 25
0
 public static void CldSmallControl11Retract()               //小气缸控制11缩回
 {
     GClsMontion.WriteCardOutputBit(1, 2, 0);                //小气缸控制11伸出
     GClsMontion.WaitIOCard7432InputBit(0, 22, 0, 3000, 90); //吸排线气缸11动作感应
 }
Esempio n. 26
0
 public static void CldSmallControl8Extend()                 //小气缸控制8伸出
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 31, 1);         //小气缸控制8伸出
     GClsMontion.WaitIOCard7432InputBit(0, 19, 1, 3000, 83); //吸排线气缸8动作感应
 }
Esempio n. 27
0
 public static void CldSmallControl12Extend()                //小气缸控制12伸出
 {
     GClsMontion.WriteCardOutputBit(1, 3, 1);                //小气缸控制12伸出
     GClsMontion.WaitIOCard7432InputBit(0, 23, 1, 3000, 91); //吸排线气缸12动作感应
 }
Esempio n. 28
0
 public static void CldSmallControl8Retract()                //小气缸控制8缩回
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 31, 0);         //小气缸控制8缩回
     GClsMontion.WaitIOCard7432InputBit(0, 19, 0, 3000, 84); //吸排线气缸8动作感应
 }
Esempio n. 29
0
 public static void CldSmallControl6Extend()                 //小气缸控制6伸出
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 29, 1);         //小气缸控制6伸出
     GClsMontion.WaitIOCard7432InputBit(0, 17, 1, 3000, 79); //吸排线气缸6动作感应
 }
Esempio n. 30
0
 public static void CldSmallControl4Extend()                 //小气缸控制4伸出
 {
     GClsMontion.WriteIOCard7432OutputBit(0, 27, 1);         //小气缸控制4伸出
     GClsMontion.WaitIOCard7432InputBit(0, 15, 1, 3000, 75); //吸排线气缸4动作感应
 }