GLChuantou_HeLian.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. #if CHANG_SHENG_GEI_LI_MACHINE==1
  2. extern void XYChuanTou_HeLian_InitAction(void);
  3. extern void XYChuanTou_HeLian_Action(void);
  4. extern void XYChuanTou_HeLian_SetAlarmCode(unsigned alarm_code);
  5. extern void ExtiAcitionX02(void);
  6. #define DIR_P 1
  7. #define DIR_N 0
  8. #define MOTOR_EN 1
  9. #define MOTOR_DISEN 0
  10. #define GL_CTHL_VAVLE_ERROR_TIME 3000
  11. #define GL_CTHL_MOTOR_ALARM_TIME 5000
  12. //故障代码列表
  13. #define GL_CTHL_NO_ALARM 0
  14. #define GL_CTHL_WLZDTJ_ALARM 1 //无拉链自动停机
  15. #define GL_CTHL_XKSC_Limit_ALARM 2 //X03斜口上止到位异常
  16. #define GL_CTHL_TLiao_Limit_ALARM 3 //X04推料到位异常
  17. #define GL_CTHL_HSLiao_Limit_ALARM 5 //X06横送料到位异常
  18. #define GL_CTHL_HSLiao_Origin_ALARM 6 //X07横送料原位异常
  19. #define GL_CTHL_JLiao_Limit_ALARM 7 //X10接料到位异常
  20. #define GL_CTHL_CTM_Limit_ALARM 8 //X11穿头模到位异常
  21. #define GL_CTHL_CTM_Origin_ALARM 9 //X12穿头模原位异常
  22. #define GL_CTHL_First_CT_Origin_ALARM 10 //X13一次穿头原位异常
  23. #define GL_CTHL_LTou_Check_ALARM 11 //X14拉头缺料感应异常
  24. #define GL_CTHL_CXSC_Limit_ALARM 12 //X15插稍上止感应异常
  25. #define GL_CTHL_CX_Limit_ALARM 13 //X16插稍到位感应异常
  26. #define GL_CTHL_XKTD_Origin_ALARM 14 //X17斜口原位感应异常
  27. #define GL_CTHL_CXGL_Limit_ALARM 15 //X20插稍下移到位异常
  28. #define GL_CTHL_SF_ALR_ALARM 16 //X22伺服报警异常
  29. #define GL_CTHL_SF_Origin_ALARM 17 //X23伺服原位(穿链原位)异常
  30. #define GL_CTHL_ZLT_ALARM 18 //装拉头异常
  31. #define GL_CTHL_FK_Check_ALARM 19 //X02方块检测
  32. #define GL_CTHL_FKCXDW_ALARM 20 //方块插销定位异常警告
  33. #define GL_CTHL_YCCRYWYC_ALARM 21 //一次穿入原位异常
  34. #define GL_CTHL_XCXXCYC_ALARM 22 //小插销行程异常
  35. #define GL_CTHL_HENSONGLIAO_ALARM 23 //横送料不能输出
  36. #define GL_CTHL_YCCT_ALARM 24 //一次穿头不能输出
  37. #define GL_CTHL_YCXM_Origin_ALARM 25 //一次穿头和下模不能输出
  38. #define GL_CTHL_DXKCTXM_Origin_ALARM 26 //顶斜口和穿头下模不能输出
  39. #define GL_CTHL_XKTD_ALARM 27 //斜口推带不能有输出
  40. #define GL_CTHL_CXQJD_ALARM 28 //插销前夹带不能有输出
  41. #define GL_CTHL_WFZIDONGCX_ALARM 29 //无法自动插销
  42. #define GL_CTHL_SafeDoor_ALARM 30 //安全门关上才能启动
  43. #define GL_CTHL_YAxis_Limit_ALARM 31 //合链电机超过最大行程范围
  44. #define GL_CTHL_YAxis_Origin_ALARM 32 //合链电机回零失败
  45. #define GL_CTHL_Y_SF_ALR_ALARM 33//Y伺服报警
  46. #define GL_CTHL_AutoStep cStepMByte
  47. #define GL_CTHL_ZhuangLiaoStep cStepMByte1
  48. #define GL_CTHL_TLiaoStep cStepMByte2
  49. #define GL_CTHL_TD_MotorStep cStepMByte3 //拖带电机
  50. #define GL_CTHL_JiaLianStep cStepMByte4
  51. #define GL_CTHL_ZhenDongStep cStepMByte6
  52. #define GL_CTHL_SongLiaoStep cStepMByte7
  53. #define GL_CTHL_CL_MotorStep cStepMByte8 //穿链
  54. #define GL_CTHL_AutoStep1 cStepMByte9
  55. #define GL_CTHL_bFKCXTDDW_Step cStepMByte10
  56. #define GL_CTHL_bCXCR_Step cStepMByte11
  57. #define GL_CTHL_bCLFirst_Step cStepMByte12
  58. #define GL_CTHL_HeMoStep cStepMByte13
  59. #define GL_CTHL_ZhuangLiaoDelay cDelayTime2
  60. #define GL_CTHL_TLiao_Delay cDelayTime3
  61. #define GL_CTHL_TD_MotorDelay cDelayTime4
  62. #define GL_CTHL_AutoDelay cDelayTime5
  63. #define GL_CTHL_TestDelay cDelayTime6
  64. #define GL_CTHL_CL_MotorDelay cDelayTime7
  65. #define GL_CTHL_TouchDelay cDelayTime8
  66. #define GL_CTHL_AutoDelay1 cDelayTime9
  67. #define GL_CTHL_ZDP_Delay cDelayTime10
  68. #define GL_CTHL_bCXCR_Delay cDelayTime11
  69. #define GL_CTHL_bFKCXTDDW_Delay cDelayTime12
  70. #define GL_CTHL_bCLFirst_Delay cDelayTime13
  71. #define GL_CTHL_bLTCHECK_Delay cDelayTime14
  72. #define GL_CTHL_bSFBBAOJIN_Delay cDelayTime15
  73. #define GL_CTHL_HeMo_Time cDelayTime16
  74. #define GL_CTHL_AlarmDisEn_Time cDelayTime17
  75. #define GL_CTHL_XAlarm_Time cDelayTime18
  76. #define GL_CTHL_YAlarm_Time cDelayTime19
  77. #define GL_CTHL_bSFBBAOJIN_Delay cDelayTime20
  78. #define GL_CTHL_RunStepSave cUShort16Buff1
  79. #define GL_CTHL_TDMotorStepSave cUShort16Buff2
  80. //32位无符号变量
  81. #define GL_CTHL_LianLengthCheck cUDword32Buff1
  82. #define GL_CTHL_LianLengthAutoCheck cUDword32Buff2
  83. #define GL_CTHL_LianLengthAutoCheckOLD cUDword32Buff3
  84. #define GL_CTHL_TimeBuff cUDword32Buff4
  85. //32位有符号变量
  86. #define GL_CTHL_XSavePosBuff cDword32Buff1
  87. #define GL_CTHL_X_CXPosBuff cDword32Buff2
  88. #define GL_CTHL_YSavePosBuff cDword32Buff3
  89. #define GL_CTHL_CheckInX02PosBuff cDword32Buff4
  90. #define GL_CTHL_YsaveCXDWPosBuff cDword32Buff5
  91. #define GL_CTHL_LENTH cDword32Buff6
  92. #define GL_CTHL_X_FKCheckPos cDword32Buff7
  93. #define GL_CTHL_Y_CL_Length cDword32Buff8
  94. #define GL_CTHL_Y_CL_PosBuff cDword32Buff9
  95. #define GL_CTHL_LENCountBuff cDword32Buff10
  96. #define GL_CTHL_X_CXPosBuff2 cDword32Buff11
  97. #define GL_CTHL_X_FKJDCheckPos cDword32Buff12
  98. #define GL_CTHL_X_XCCheckPos cDword32Buff13
  99. //8位变量
  100. #define GL_CTHL_TryCnt cCharBuff1
  101. #define GL_CTHL_cZipCnt cCharBuff2
  102. #define cStopInCnt cCharBuff3
  103. #define cStopMode cCharBuff4
  104. #define cXcxcrCnt cCharBuff5
  105. #define cWULATOUCnt cCharBuff6
  106. #define bSingOneCnt cCharBuff7
  107. #define cBanAuTo cCharBuff8
  108. #define cCXCONE cCharBuff9
  109. #define cCHULIANBAOJIN cCharBuff10
  110. #define cTDNUMBER cCharBuff11
  111. //位标志位
  112. #define bTuiLaTouOkFlg bBitFlag0
  113. #define bZhuangLiaoOkFlg bBitFlag1
  114. #define bXiaMoENFlg bBitFlag2
  115. #define bYFirstDingWeiFlg bBitFlag3
  116. #define bCL_EN_FLG bBitFlag4
  117. #define bCL_OK_FLG bBitFlag5
  118. #define bCheckEN_FLG bBitFlag6
  119. #define bSingOneFlg bBitFlag7
  120. #define GL_CTHL_bXCBackOK bBitFlag8
  121. #define GL_CTHL_bDinweiOK bBitFlag9
  122. #define GL_CTHL_bTest bBitFlag10
  123. #define GL_CTHL_bReStart bBitFlag11
  124. #define GL_CTHL_X_EN_FLG bBitFlag12
  125. #define GL_CTHL_Y_EN_FLG bBitFlag13
  126. #define GL_CTHL_CXDW_Stop bBitFlag14
  127. #define GL_CTHL_AlarmDisEnFlg bBitFlag15
  128. #define GL_CTHL_TOTAL_ADDR 76
  129. #define GL_CTHL_WORK_TOTAL_ADDR 102
  130. #define GL_CTHL_CUR_TOTAL_ADDR 104
  131. #define GL_CTHL_SPEED_ADDR 78
  132. #define GL_CTHL_ALARM_ADDR 100
  133. #define GL_CTHL_PARAM_CYCLE_PULSE user_datas[0]//0 转一圈脉冲数 (拖带)
  134. #define GL_CTHL_PARAM_CYCLE_LENGTH user_datas[1]//0.1 转一圈拖带多长 (拖带)
  135. #define GL_CTHL_PARAM_TD_RunSpeed user_datas[2]//整数 拖带电机拖带速度
  136. #define GL_CTHL_PARAM_FKDW_Speed user_datas[3]//整数 方块定位速度(低速度)
  137. #define GL_CTHL_PARAM_CL_Speed user_datas[4]//整数 合链速度
  138. #define GL_CTHL_PARAM_CL_Back_O_Speed user_datas[5]//整数 合链电机回零速度
  139. #define GL_CTHL_PARAM_FKDW_Length user_datas[6]//0.01 方块定位长度
  140. #define GL_CTHL_PARAM_CXDW_Length user_datas[7]//0.01 插销定位长度
  141. #define GL_CTHL_PARAM_CL_Length user_datas[8]//0.01 合链长度(气缸时为时间)
  142. #define GL_CTHL_PARAM_CLT_Time (10*user_datas[8])//0.01 合链时间
  143. #define GL_CTHL_PARAM_CL_MAX_Length user_datas[9]//0.01 穿链最长限制
  144. #define GL_CTHL_PARAM_TLiao_BACKDELAY (10*user_datas[10])//0.01推拉头到位延时返回
  145. #define GL_CTHL_PARAM_MaGou_DELAY (10*user_datas[11])//0.01接料到位延时码勾
  146. #define GL_CTHL_PARAM_HSLiaoOff_DELAY (10*user_datas[12])//0.01码勾输出后退横送料
  147. #define GL_CTHL_PARAM_CheckLT_DELAY (10*user_datas[13])//0.01码勾输出后延时检测拉头
  148. #define GL_CTHL_PARAM_HL_BACK_Time (10*user_datas[14])//0.01合链气缸返回时间
  149. #define GL_CTHL_PARAM_First_CL_Timer (10*user_datas[15]) //0.01一次穿入时间
  150. #define GL_CTHL_PARAM_MGOff_XiaMo_DELAY (10*user_datas[16]) //0.01松码勾后延时退下模
  151. #define GL_CTHL_PARAM_CXCR_DELAY (10*user_datas[17]) //0.01插销延时穿入
  152. #define GL_CTHL_PARAM_XKDW_TD_DELAY (10*user_datas[18]) //0.01斜口定位后延时拖带
  153. #define GL_CTHL_PARAM_XK_CR_DELAY (10*user_datas[19]) //0.01斜口延时穿拉头
  154. #define GL_CTHL_PARAM_DXK_XKDW_Off_DELAY (10*user_datas[20]) //0.01顶斜口后延时退方块勾针
  155. //#define GL_CTHL_PARAM_XCQJD_XCDW_DELAY (10*user_datas[21]) //0.01插销前夹带后延时插销定位
  156. #define GL_CTHL_PARAM_First_CL_DELAY (10*user_datas[22]) //0.01延时一次穿入
  157. #define GL_CTHL_PARAM_HLJJ_CL_DELAY (10*user_datas[23]) //0.01合链夹具延时合链
  158. #define GL_CTHL_PARAM_ZDP_Start_TIME (10*user_datas[24]) //0.01振动盘启动延时
  159. #define GL_CTHL_PARAM_ZDP_Stop_TIME (10*user_datas[25]) //0.01振动盘延时停止
  160. #define GL_CTHL_PARAM_XCX_LENTH user_datas[26] //0.01 小插销感应后再走标准长度
  161. #define GL_CTHL_PARAM_XCXWC_LENTH user_datas[27] //0.01 小插销标准长度过长的误差值
  162. #define GL_CTHL_PARAM_TDFZ_LENTH user_datas[28] //0.01拖带电机反转长度
  163. #define GL_CTHL_PARAM_WLCDSHEZHI_LENTH (10* user_datas[29]) //0.1无拉链情况再走长度设置
  164. #define GL_CTHL_PARAM_YCYCLE_PULSE user_datas[30]//Y轴转一圈脉冲数
  165. #define GL_CTHL_PARAM_YCYCLE_LENGTH user_datas[31]//Y轴 整数 转一圈拖带多长
  166. #define GL_CTHL_PARAM_CR_MODE user_datas[32]//气缸穿入(0)还时电机穿入(1)
  167. #define GL_CTHL_PARAM_XXHT_Time (10*user_datas[33])//0.01 插销退回时间
  168. #define GL_CTHL_PARAM_DXK_DELAY (10*user_datas[34])//0.01 延时顶斜口
  169. #define GL_CTHL_PARAM_CXJZ_HT_DELAY (10*user_datas[35]) //0.01插销前夹具延时后退
  170. #define GL_CTHL_PARAM_Y_MAX_LENTH (user_datas[36]) //0.01 合链电机最大行程
  171. #define GL_CTHL_PARAM_SCDW_LENTH (user_datas[37]) //0.01 上止定位延时停电机
  172. #define GL_CTHL_PARAM_UP_DOWN_OUT_SELECT (user_datas[38]) //拉链类型 0 树脂,1尼龙
  173. #define GL_CTHL_PARAM_TuiDXM_Lenght (user_datas[39]) //退顶斜码位置
  174. #define GL_CTHL_PARAM_GFJ_WorkMode (user_datas[40]) //公分节操作选择
  175. #define GL_CTHL_PARAM_GFJ_Length (user_datas[41]) //公分节长度标准
  176. #define GL_CTHL_PARAM_QianMaSelect (user_datas[42]) //前码类型选择
  177. #define GL_CTHL_PARAM_HareSelect (user_datas[43]) //板的版本选择, 0老版本接线端子 ,1 新DB15
  178. #define GL_CTHL_PARAM_ZhiMaDingchu (user_datas[44]) //直码一次顶出选择 0:不一次顶出 1:顶出
  179. #define GL_CTHL_PARAM_HDW_DELAY (user_datas[45]) //一次穿入延时松后定位时间 ms
  180. #define GL_CTHL_PARAM_HL_EN (user_datas[46]) //合链开关 0:开 1:关
  181. #define GL_CTHL_PARAM_HDW_TIME (user_datas[47]) //松后定位时间 ms
  182. #define GL_CTHL_PARAM_CL_LENTH_TYPE (user_datas[48]) //穿链长度类型选择 0:剩余长度 1:穿链长度
  183. #define GL_CTHL_PARAM_CXDW_SPEED (user_datas[49]) //插销定位速度
  184. #define GL_CTHL_PARAM_CXSCDW_Length user_datas[50]
  185. #define GL_CTHL_PARAM_TFKGD_DELAY (user_datas[51]*10) //延时退方块固定
  186. #define GL_CTHL_PARAM_XCRU user_datas[52]//作监控
  187. #define GL_CTHL_PARAM_CXCR user_datas[53]//作监控
  188. //#define GL_CTHL_PARAM_CXSCDW_Length user_datas[52] //插销穿入监控
  189. //#define GL_CTHL_PARAM_CXSCDW_Length user_datas[53]//拉头穿入监控
  190. #define GL_CTHL_PARAM_ECDW_Length user_datas[54]//小插感应后再走长度
  191. #define GL_CTHL_PARAM_TDFKJD_Length user_datas[55]//拖带时方块夹带开始输出长度
  192. #define GL_CTHL_PARAM_CXJD_MODE user_datas[56]//插销夹带
  193. #define GL_CTHL_PARAM_SongJiaDai_Time user_datas[57]*10//松夹带时间
  194. #define GL_CTHL_PARAM_GouZhen_mode user_datas[58]//大插钩针模式
  195. #define GL_CTHL_PARAM_TuoLian_Mode user_datas[59]//防拖带模式
  196. #define GL_CTHL_PARAM_LaZhi_length user_datas[60]//防脱带拉直长度
  197. //输入
  198. #define GL_CTHL_START_IN M0384 //X00 //启动
  199. #define GL_CTHL_START_IN_UP (M0384 && !OLDM384)//(X00 && !OLDX00)
  200. #define GL_CTHL_STOP_IN M0385 // X01 //停止
  201. #define GL_CTHL_STOP_IN_UP (M0385 && !OLDM385)//(X01 && !OLDX01)
  202. #define GL_CTHL_STOP_IN_DW (!M0385 && OLDM385)//(!X01 && OLDX01)
  203. #define GL_CTHL_FK_Check M0386 //X02方块检测
  204. #define GL_CTHL_XKSC_Limit_IN M0387 //X03斜口上止到位
  205. #define GL_CTHL_TLiao_Origin_IN M0388 //X04推料到位
  206. #define GL_CTHL_SafeDoor_IN 1//M0389 //X05安全门
  207. #define GL_CTHL_HSLiao_Limit_IN M0390 //X06横送料到位
  208. #define GL_CTHL_HSLiao_Origin_IN M0391 //X07横送料原位
  209. #define GL_CTHL_JLiao_Limit_IN M0392 //X10接料到位
  210. #define GL_CTHL_CTM_Limit_IN M0393 //X11穿头模到位
  211. #define GL_CTHL_CTM_Origin_IN M0394 //X12穿头模原位
  212. #define GL_CTHL_First_CT_Origin_IN M0395 //X13一次穿头原位
  213. #define GL_CTHL_LTou_Check M0396 //X14拉头缺料感应
  214. #define GL_CTHL_CXSC_Limit_IN M0397 //X15插稍上止感应
  215. #define GL_CTHL_CXSC_Limit_IN_UP (M0397 && !OLDM397)
  216. #define GL_CTHL_CXSC_Limit_IN_DW (!M0397 && OLDM397)
  217. #define GL_CTHL_CX_Limit_IN M0398 //X16插稍到位感应
  218. #define GL_CTHL_XKTD_Origin_IN M0399 //X17斜口推带原位感应
  219. #define GL_CTHL_CXXY_Limit_IN M0400 //X20插稍下移到位
  220. #define GL_CTHL_ZDP_IN M0401 //X21振动盘
  221. #define GL_CTHL_SF_ALR_IN M0402 //X22伺服报警
  222. #define GL_CTHL_SF_Origin_IN M0403 //X23伺服原位(穿链原位)
  223. #define GL_CTHL_Y_SF_ALR_IN M0404 //X24伺服报警
  224. //#define GL_CTHL_Test_Motor_P M0404 //测试用
  225. //#define GL_CTHL_Test_Motor_N M0405 //测试用
  226. //输出
  227. #define GL_CTHL_XKDW_VAVLE M0304 //Y00 斜口定位电磁阀(方块勾针)
  228. #define GL_CTHL_XKTD_VAVLE M0305 //Y01 斜口推带电磁阀(前码前后)
  229. #define GL_CTHL_DXK_VAVLE M0306 //Y02 顶斜口电磁阀(顶斜码)
  230. #define GL_CTHL_GDXM_VAVLE M0307 //Y03 固定斜码
  231. #define GL_CTHL_FKGD_VAVLE M0308 //Y04 方块固定电磁阀(方块定位)
  232. #define GL_CTHL_CXSCDW_VAVLE M0309 //Y05 插销上止定位电磁阀(小插勾针)
  233. #define GL_CTHL_CXSX_VAVLE M0310 //Y06 插销下移电磁阀(小插销上下) (小插顶出电磁)
  234. #define GL_CTHL_CXQJD_VAVLE M0311 //Y07 插销前夹带电磁阀(插销前锁带)
  235. #define GL_CTHL_CXHT_VAVLE M0312 //Y10 插销后退
  236. #define GL_CTHL_HLJJ_VAVLE M0313 //Y11 合链夹具电磁阀(夹子)
  237. #define GL_CTHL_CXHDW_VAVLE M0314 //Y12 插销后定位电磁阀(穿小插)
  238. #define GL_CTHL_CXHJD_VAVLE M0315 //Y13 插销后夹带电磁阀(穿小插锁带)
  239. #define GL_CTHL_FKJD_VAVLE M0316 //Y14 方块夹带电磁阀(大插锁带)
  240. #define GL_CTHL_TLiao_VAVLE M0317 //Y15 推料电磁阀
  241. #define GL_CTHL_HSLiao_VAVLE M0318 //Y16 横送料电磁阀
  242. #define GL_CTHL_JLTou_VAVLE M0319 //Y17 接拉头电磁阀
  243. #define GL_CTHL_CTXMSS_VAVLE M0320 //Y20 穿头下模上升电磁阀
  244. #define GL_CTHL_CTXMXJ_VAVLE M0321 //Y21 穿头下模下降电磁阀
  245. #define GL_CTHL_ZhenDongPian_OUT M0322 //Y22 振动盘启动
  246. #define GL_CTHL_First_CT_VAVLE M0323 //Y23 穿拉头电磁阀
  247. #define GL_CTHL_MGuo_VAVLE M0324 //Y24 码勾电磁阀
  248. #define GL_CTHL_HL_VAVLE M0325 //Y25 合链电磁阀
  249. #define GL_CTHL_CXDWZ_VAVLE M0326 //Y26 插销定位针(到位)电磁阀(小插卡位)
  250. #define GL_CTHL_CuiQi_VAVLE M0327 //Y27 吹气电磁阀
  251. #define GL_CTHL_SongDai_VAVLE M0328 //Y30 松带
  252. #define GL_CTHL_TestLED M0331 //Y30 测试状态灯
  253. #define GL_CTHL_Run_State M0329 //Y31 运行灯
  254. #define GL_CTHL_Stop_State M0330 //Y32 停止灯
  255. //M0~M4全局固定使用
  256. /*
  257. #define bRunning M0000
  258. #define bStart M0001
  259. #define bStop M0002
  260. #define bAlarmStop M0003
  261. #define bClearTotal M0004
  262. */
  263. #define GL_CTHL_bTLiao M0005 //手动推料
  264. #define GL_CTHL_bHSL M0006 //手动横送料
  265. #define GL_CTHL_bJLT M0007 //接拉头
  266. #define GL_CTHL_bMG M0008 //码勾
  267. #define GL_CTHL_bFKJD M0009 //方块夹带
  268. #define GL_CTHL_bXKTD M0010 //斜口推带
  269. #define GL_CTHL_bXKDW M0011 //斜口定位
  270. #define GL_CTHL_bCTXM M0012 //穿头下模
  271. #define GL_CTHL_bDXK M0013 //顶斜口
  272. #define GL_CTHL_bFKGD M0014 //方块固定
  273. #define GL_CTHL_bCXQJD M0015 //插销前夹带
  274. #define GL_CTHL_bCXSY M0016 //插销下移电磁阀
  275. #define GL_CTHL_bCXDWZ M0017 //Y14 插销定位针电磁阀
  276. #define GL_CTHL_bCXHJD M0018 //Y15 插销后夹带电磁阀
  277. #define GL_CTHL_bCXHDW M0019 //Y16 插销后定位电磁阀(插销穿入)
  278. #define GL_CTHL_bXKGD M0020 //Y17 固定斜码电磁阀
  279. #define GL_CTHL_bFirst_CT M0021 //Y20 一次穿头电磁阀(穿拉头)
  280. #define GL_CTHL_bHLJJ M0022 //Y21 合链夹具电磁阀
  281. #define GL_CTHL_bCXSCDW M0023 //Y23 插销上止定位电磁阀
  282. #define GL_CTHL_bCXHT M0034 //Y10 插销后退
  283. #define GL_CTHL_bHL M0035 //合链电磁阀
  284. #define GL_CTHL_bZDP M0036 //振动盘
  285. #define GL_CTHL_bTiaoShiStep M0041
  286. #define GL_CTHL_bTiaoShiMode M0040
  287. #define GL_CTHL_bOnceStart M0042 //单一启动,做一条停止
  288. #define GL_CTHL_bSongZhou M0043 //X松轴
  289. #define GL_CTHL_bXAxisEnSta M0044 //X轴使能状态
  290. #define GL_CTHL_bCLMotor_P M0026 //穿链电机正转
  291. #define GL_CTHL_bCLMotor_N M0025 //穿链电机反转
  292. //下面为动作组合按键
  293. #define GL_CTHL_bAutoZhuangLiao M0024 //自动装料
  294. #define GL_CTHL_bCLMotor_O M0027 //穿链电机定位原点
  295. #define GL_CTHL_bCL_First M0028 //一次穿链动作
  296. #define GL_CTHL_bFKTDDW M0029 //拖带方块定位
  297. #define GL_CTHL_bFKCXTDDW M0030 //拖带方块插销定位
  298. #define GL_CTHL_bCXMotorDW M0031 //插销电机前定位
  299. #define GL_CTHL_bCXCR M0032 //插销穿入(包含电机前定位,插销下移,后夹,后定位)
  300. #define GL_CTHL_bMotorHL M0033 //电机合链操作
  301. #define GL_CTHL_bBanZiDong M0045 //前码穿入
  302. #define GL_CTHL_CXC M0046 //插销穿入
  303. #endif