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 }
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 }
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 }
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 }
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 }
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 }
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 }
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 }
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 }
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 }
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 }
/// <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> public static void GeneralClynderMotion(int type, int cardNo, int pointNo, int onOff)//阻挡气缸伸出 { try { switch (type) { case 0: GClsMontion.WriteCardOutputBit(cardNo, pointNo, onOff); //轴卡上的4输出通道 break; case 1: GClsMontion.WriteCardExtendOutputBit(cardNo, pointNo, onOff);//轴卡扩展的16输出通道 break; case 2: ushort uCardNo = (ushort)cardNo; ushort uPointNo = (ushort)pointNo; ushort uOnOff = (ushort)onOff; if (CAMiClsVariable.strIOCard == "7432") { GClsMontion.WriteIOCard7432OutputBit(uCardNo, uPointNo, uOnOff);//7432 IO卡输出 } else { GClsMontion.WriteAPEIOCardOutputBit(cardNo, pointNo, onOff);//APE IO卡输出 } break; default: break; } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public static void CldSmallControl6Retract() //小气缸控制6缩回 { GClsMontion.WriteIOCard7432OutputBit(0, 29, 0); //小气缸控制6缩回 GClsMontion.WaitIOCard7432InputBit(0, 17, 0, 3000, 80); //吸排线气缸6动作感应 }
public static void CldSmallControl5Retract() //小气缸控制5缩回 { GClsMontion.WriteIOCard7432OutputBit(0, 28, 0); //小气缸控制5缩回 GClsMontion.WaitIOCard7432InputBit(0, 16, 0, 3000, 78); //吸排线气缸5动作感应 }
public static void CldSmallControl6Extend() //小气缸控制6伸出 { GClsMontion.WriteIOCard7432OutputBit(0, 29, 1); //小气缸控制6伸出 GClsMontion.WaitIOCard7432InputBit(0, 17, 1, 3000, 79); //吸排线气缸6动作感应 }
public static void CldSmallControl4Retract() //小气缸控制4缩回 { GClsMontion.WriteIOCard7432OutputBit(0, 27, 0); //小气缸控制4缩回 GClsMontion.WaitIOCard7432InputBit(0, 15, 0, 3000, 76); //吸排线气缸4动作感应 }
public static void CldSmallControl5Extend() //小气缸控制5伸出 { GClsMontion.WriteIOCard7432OutputBit(0, 28, 1); //小气缸控制5伸出 GClsMontion.WaitIOCard7432InputBit(0, 16, 1, 3000, 77); //吸排线气缸5动作感应 }
public static void CldSmallControl3Retract() //小气缸控制3缩回 { GClsMontion.WriteIOCard7432OutputBit(0, 26, 0); //小气缸控制3缩回 GClsMontion.WaitIOCard7432InputBit(0, 14, 0, 3000, 74); //吸排线气缸3动作感应 }
public static void CldSmallControl4Extend() //小气缸控制4伸出 { GClsMontion.WriteIOCard7432OutputBit(0, 27, 1); //小气缸控制4伸出 GClsMontion.WaitIOCard7432InputBit(0, 15, 1, 3000, 75); //吸排线气缸4动作感应 }
public static void CldSmallControl2Retract() //小气缸控制2缩回 { GClsMontion.WriteIOCard7432OutputBit(0, 25, 0); //小气缸控制2缩回 GClsMontion.WaitIOCard7432InputBit(0, 13, 0, 3000, 72); //吸排线气缸2动作感应 }
public static void CldSmallControl3Extend() //小气缸控制3伸出 { GClsMontion.WriteIOCard7432OutputBit(0, 26, 1); //小气缸控制3伸出 GClsMontion.WaitIOCard7432InputBit(0, 14, 1, 3000, 73); //吸排线气缸3动作感应 }
public static void CldSmallControl2Extend() //小气缸控制2伸出 { GClsMontion.WriteIOCard7432OutputBit(0, 25, 1); //小气缸控制2伸出 GClsMontion.WaitIOCard7432InputBit(0, 13, 1, 3000, 71); //吸排线气缸2动作感应 }
public static void CldVacuum11On() //吸真空4 { GClsMontion.WriteIOCard7432OutputBit(0, 10, 1); //吸真空11 GClsMontion.WriteIOCard7432OutputBit(0, 22, 0); //破真空11 GClsMontion.WaitIOCard7432InputBit(0, 10, 1, 3000, 65); //吸真空11感应 }
public static void CldSmallControl8Extend() //小气缸控制8伸出 { GClsMontion.WriteIOCard7432OutputBit(0, 31, 1); //小气缸控制8伸出 GClsMontion.WaitIOCard7432InputBit(0, 19, 1, 3000, 83); //吸排线气缸8动作感应 }
public static void CldSmallControl7Extend() //小气缸控制7伸出 { GClsMontion.WriteIOCard7432OutputBit(0, 30, 1); //小气缸控制7伸出 GClsMontion.WaitIOCard7432InputBit(0, 18, 1, 3000, 81); //吸排线气缸7动作感应 }
public static void CldVacuum12On() //吸真空2 { GClsMontion.WriteIOCard7432OutputBit(0, 11, 1); //吸真空12 GClsMontion.WriteIOCard7432OutputBit(0, 23, 0); //破真空12 GClsMontion.WaitIOCard7432InputBit(0, 11, 1, 3000, 67); //吸真空12感应 }
public static void CldSmallControl7Retract() //小气缸控制7缩回 { GClsMontion.WriteIOCard7432OutputBit(0, 30, 0); //小气缸控制7缩回 GClsMontion.WaitIOCard7432InputBit(0, 18, 0, 3000, 82); //吸排线气缸7动作感应 }
public static void CldSmallControl1Extend() //小气缸控制1伸出 { GClsMontion.WriteIOCard7432OutputBit(0, 24, 1); //小气缸控制1伸出 GClsMontion.WaitIOCard7432InputBit(0, 12, 1, 3000, 69); //吸排线气缸1动作感应 }
public static void CldSmallControl8Retract() //小气缸控制8缩回 { GClsMontion.WriteIOCard7432OutputBit(0, 31, 0); //小气缸控制8缩回 GClsMontion.WaitIOCard7432InputBit(0, 19, 0, 3000, 84); //吸排线气缸8动作感应 }
public static void CldSmallControl1Retract() //小气缸控制1缩回 { GClsMontion.WriteIOCard7432OutputBit(0, 24, 0); //小气缸控制1缩回 GClsMontion.WaitIOCard7432InputBit(0, 12, 0, 3000, 70); //吸排线气缸1动作感应 }