JLTieBuJi-SF.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. #ifndef __JLTIEBUJI_H__
  2. #define __JLTIEBUJI_H__
  3. #if JIN_LONG_MACHINE == 1
  4. extern void TBJ_InitAction(void);
  5. extern void TBJ_ManualAction(void);
  6. extern void TBJ_Action(void);
  7. extern void TBJ_DelayAction(void);
  8. #define DIR_P 1
  9. #define DIR_N 0
  10. #define TBJ_ALARM_ADDR 100
  11. #define TBJ_TOTAL_ADDR 76
  12. #define TBJ_NOWTOTAL_ADDR 80
  13. #define TBJ_SPEED_ADDR 83
  14. #define TBJ_PROSPEED_ADDR 78
  15. #define ERRORTIME 2000
  16. #define VAVLE_ALARM_TIME 3000
  17. #define GUO_LIAN_OVER_TIME 10000
  18. //故障代码列表
  19. #define TBJ_NO_ALARM 0
  20. #define TBJ_XIACHONG_ARRIVE_ALARM 3
  21. #define TBJ_HM_LIMIT_ALARM 4
  22. #define TBJ_SM_LIMIT_ALARM 5
  23. #define TBJ_GUOLIAN_ALARM 6
  24. #define TBJ_Auto_Step cStepMByte //自动操作步骤
  25. #define TBJ_Motor_Step cStepMByte1 //电机拖带步骤
  26. #define TBJ_HMCS_Step cStepMByte2 //合模超声步骤
  27. #define TBJ_SJ_FJ_Step cStepMByte3 //送胶分胶步骤
  28. #define TBJ_STOP_Step cStepMByte4 //停机动作步骤
  29. #define TBJ_QJ_Step cStepMByte5 //切胶步骤
  30. #define TBJ_SFHM_Step cStepMByte6 //伺服合模动作
  31. #define TBJ_TJJ_FLG cStepMByte7 //退夹胶标志
  32. #define TBJ_XC_RstStep cStepMByte8 //下冲复位
  33. #define TBJ_HeMo_Step cStepMByte9
  34. #define TBJ_TEST_TIME cDelayTime1 //测试跳过条件时间
  35. #define TBJ_Auto_Delay cDelayTime2 //自动步骤延迟时间
  36. #define TBJ_FJ_Delay cDelayTime3 //延时分胶
  37. #define TBJ_SJ_Delay cDelayTime4 //延时送胶
  38. #define TBJ_CS_Delay cDelayTime5 //延时超声
  39. #define TBJ_Motor_Delay cDelayTime6 //延时电机
  40. #define TBJ_GZ_Delay cDelayTime7 //延时钩针
  41. #define TBJ_SM_ErrorTime cDelayTime8 //上模容错时间
  42. #define TBJ_SJ_ErrorTime cDelayTime9 //送胶容错时间
  43. #define TBJ_DJ_ErrorTime cDelayTime10 //电机容错时间
  44. #define TBJ_CQ_Delay cDelayTime11 //吹气延时
  45. #define TBJ_STOP_Delay cDelayTime12 //暂停延时
  46. #define TBJ_QieJiao_Delay cDelayTime13 //切胶延时
  47. #define TBJ_XCRst_Delay cDelayTime14
  48. #define TBJ_HeMo_Delay cDelayTime15
  49. #define TBJ_HeMo_JLXL_Delay cDelayTime16
  50. #define TBJ_QJCQ_Delay cDelayTime17 //吹气延时
  51. //32位无符号变量
  52. #define TBJ_LENTH cDword32Buff1
  53. //
  54. #define TBJ_SAVE_POS cUDword32Buff1 //保存当前位置信息,用于计算
  55. #define TBJ_XC_CS_LOCAL cUDword32Buff2 //下冲超声位置
  56. #define TEST1 cCharBuff2//判断是否为第一条拉链
  57. #define TBJ_Hand_Hemo_flag cCharBuff4 //手动合模完成标志位,做吹气用
  58. #define TBJ_Hemo_flag cCharBuff5 //手动合模完成标志位,做吹气用
  59. #define TBJ_XC_Reset_flag cCharBuff6 //下冲复位标志
  60. #define TBJ_LLPL_flag cCharBuff7 //拉链破链标志
  61. #define TBJ_FIRST_CS_Y_LOCAL cUShort16Buff1 //第一条超声位置
  62. #define TBJ_CS_Y_Local cUShort16Buff2 //超声位置
  63. #define TBJ_GH_Y_Local cUShort16Buff3 //固化位置
  64. #define TBJ_NJ_SEL cUShort16Buff4 //扭矩选择
  65. #define TBJ_DIR_P 1
  66. #define TBJ_DIR_N 0
  67. #define TBJ_MOTOR_EN 1
  68. #define TBJ_MOTOR_DISEN 0
  69. #define TBJ_NO_ALARM 0
  70. #define TBJ_PARAM_CS_DELAY (user_datas[0] * 10) //超声延时时间
  71. #define TBJ_PARAM_GZ_DELAY user_datas[1] //延时上钩针
  72. #define TBJ_PARAM_YD_TIME (user_datas[3] * 10) //压带夹胶时间
  73. #define TBJ_PARAM_FJ_DELAY (user_datas[4] * 10) //分胶延时输出
  74. #define TNJ_PARAM_TD_LENGTH user_datas[5] //过链由空位到上升沿时,电机拖带距离
  75. #define TBJ_PARAM_BJ_CS_TIME (user_datas[6]) //布胶超声时间
  76. #define TBJ_PARAM_BJ_GH_TIME (user_datas[7]) //布胶固化时间
  77. #define TBJ_PARAM_ChuiQi_TIME (user_datas[8] * 10) //吹气时间
  78. #define TBJ_PARAM_SJ_TIME (user_datas[9] * 10) //送胶时间
  79. #define TBJ_PARAM_MOTOR_START_SPEED user_datas[10] //电机启动速度
  80. #define TBJ_PARAM_MOTOR_ADD user_datas[11] //电机加速速度
  81. #define TBJ_PARAM_HIGH_SPEED user_datas[12] //电机高位速度
  82. #define TBJ_PARAM_NULL_SPEED user_datas[13] //电机空位速度
  83. #define TBJ_PARAM_SongJiaoMode user_datas[14] //送胶方式 0气缸 1滚轮
  84. #define TBJ_PARAM_XiaMo_Mode user_datas[15] //下模方式 0下模活动,1下模不动(下模活动,超声需要考虑烧坏焊头)
  85. #define TBJ_PARAM_TuiGouZhen_Mode user_datas[16] //0 先超声后下勾针,1 先下勾针后超声
  86. #define TBJ_PARAM_SGZSelect user_datas[17] //钩针方式选择 0为双钩针 1为单钩针
  87. #define TBJ_PARAM_TWOTD_SELECT user_datas[18] //二次拖带选择 0 为普通拖带 1为二次拖带
  88. #define TBJ_PARAM_GUNLUN_SIGN user_datas[19] //滚轮送胶时到位是否有信号 0 有前限位 1没前限位
  89. #define TBJ_PARAM_DJ_FANZHUAN user_datas[20] //电机是否反转 0不反转 1反转
  90. #define TBJ_PARAM_FenJiaoSelect user_datas[21] //是否有分胶阀,1为没有,0为有
  91. #define TBJ_PARAM_DJ_AUTO_STOP_TIME (user_datas[24] *100) //拖带自动停机时间(防止压坏轮胶)
  92. #define TBJ_PARAM_TWOTD_LENGTH user_datas[26] //二次拖带 过链由空位到上升沿时,电机拖带距离
  93. #define TBJ_TUILIAN_LENGTH user_datas[27] //退链长度
  94. #define TBJ_PARAM_WENDU_TIME (user_datas[28] * 10) //温度到达,超声时减少的时间
  95. #define TBJ_PARAM_LL_PRETECT_LENGTH (user_datas[29]) //自动测长度时自动允许拉带长度偏差
  96. #define TBJ_PARAM_XiaChong_MODE 1 //(user_datas[30]) //下冲方式 0为1气缸下冲,1为伺服下冲
  97. #define TBJ_PARAM_KAIMO_TD_DELAY (user_datas[31] * 10) //开模后延时拖带时间
  98. #define TBJ_PARAM_CS_MODE user_datas[32] //超声模式选择 0为透明胶 1为布胶
  99. #define TBJ_PARAM_TMJ_CS_TIME (user_datas[33]) //透明胶超声时间
  100. #define TBJ_PARAM_TMJ_GH_TIME (user_datas[34]) //透明胶固化时间
  101. #define TBJ_FJBACKMode user_datas[35] //1 为二次拖带后 退分胶
  102. #define TBJ_PARAM_HONGWAI_GanYin user_datas[36] //是否有红外(模拟)(0为没有感应器,1为有感应器)
  103. #define TBJ_PARAM_XCLocal_MODE user_datas[37] //下冲位置模式
  104. #define TBJ_PARAM_JL_BD_DELAY user_datas[38] //延时加力
  105. #define TBJ_PARAM_XL_BD_DELAY user_datas[39] //延时泄力
  106. #define TBJ_PARAM_SQJCOUNT user_datas[40] //上缺胶计数
  107. #define TBJ_PARAM_XQJCOUNT user_datas[41] //下缺胶计数
  108. #define TBJ_PARAM_SET_SQJCOUNT user_datas[42] //上缺胶计数
  109. #define TBJ_PARAM_SET_XQJCOUNT user_datas[43] //下缺胶计数
  110. #define TBJ_PARAM_Y_SOFT_PLIMIT user_datas[44] //软件正限位
  111. #define TBJ_PARAM_Y_SOFT_NLIMIT user_datas[45] //软件负限位
  112. #define TBJ_PARAM_Y_Wait_Local user_datas[46] //待机位置
  113. #define TBJ_PARAM_Y_Work_Local user_datas[47] //工作位置
  114. #define TBJ_PARAM_Y_HIGH_SPEED user_datas[48] //下冲高速
  115. #define TBJ_PARAM_Y_LOW_SPEED user_datas[49] //下冲低速
  116. #define TBJ_PARAM_SFXC_MODE user_datas[50] //伺服下冲方式
  117. #define TBJ_PARAM_SFZSY_SPEED user_datas[51] //自适应速度
  118. #define TBJ_PARAM_XCRest_MODE user_datas[52] //下冲复位方式
  119. #define TBJ_PARAM_QJCheck_MODE user_datas[53] //缺胶检测方式
  120. #define TBJ_PARAM_JL_TM_DELAY user_datas[54] //延时加力
  121. #define TBJ_PARAM_XL_TM_DELAY user_datas[55] //延时泄力
  122. #define TBJ_PARAM_QJCQ_TIME user_datas[56] //切胶吹气
  123. #define TBJ_PARAM_GZREBACK_TIME user_datas[57] //钩针回退时间
  124. #define TBJ_Frist_SetDefa user_datas[71] //写入程序后,第一次上电恢复默认出厂参数
  125. #define TBJ_CHENGXU_UPDATE user_datas[74] //便于屏幕判断程序有无更新
  126. #define TBJ_SET_TOTAL user_datas[75] //设定产量
  127. #define TBJ_TOTAL_DISPLAY user_datas[76] //显示产量
  128. #define TBJ_PARAM_SHENGJIAO user_datas[79] //是否开启节省布胶
  129. #define TBJ_PARAM_CYCLE_PULSE user_datas[84] //转一圈脉冲数
  130. #define TBJ_PARAM_CYCLE_LENGTH user_datas[85] //转一圈拖带多长
  131. #define TBJ_PARAM_DEC_MODE user_datas[86] //减速模式 0感应 1数控
  132. #define TBJ_PARAM_YCYCLE_PULSE user_datas[87] //转一圈脉冲数
  133. #define TBJ_PARAM_YCYCLE_LENGTH user_datas[88] //转一圈拖带多长
  134. #define TBJ_TEST_MODE (user_datas[90] == 55) //55为测试模式
  135. #define DISPLAY_DATA0 user_datas[121]
  136. #define DISPLAY_DATA1 user_datas[122]
  137. #define DISPLAY_DATA2 user_datas[123]
  138. #define DISPLAY_DATA3 user_datas[124]
  139. #define DISPLAY_DATA4 user_datas[125]
  140. #define DISPLAY_DATA5 user_datas[126]
  141. #define DISPLAY_DATA6 user_datas[127]
  142. #define DISPLAY_DATA7 user_datas[128]
  143. //伺服参数 180~190
  144. #define SERVO_PARAM_TRARR_BD_LIMITMAX user_datas[180]//伺服扭矩最大限制
  145. #define SERVO_PARAM_TRARR_BD_LIMITMIN user_datas[181]//伺服扭矩最小限制
  146. #define SERVO_PARAM_TRARR_TM_LIMITMAX user_datas[182]//伺服扭矩最大限制
  147. #define SERVO_PARAM_TRARR_TM_LIMITMIN user_datas[183]//伺服扭矩最小限制
  148. //// PFin(1)
  149. #define TBJ_Y_ORIGIN_IN M0384 //X00Y轴原点
  150. #define TBJ_Y_RUNING_IN M0385 //X01Y轴工作点
  151. #define TBJ_CS_CHECK_IN M0386 //X02超声检测
  152. #define TBJ_GZ_LIMIT_IN M0387 //X03钩针复位原位感应
  153. #define TBJ_FJ_ORIGIN_IN M0388 //X04分胶阀原位感应
  154. #define TBJ_FJ_LIMIT_IN M0389 //X05分胶阀到位感应
  155. #define TBJ_SJ_ORIGIN_IN M0390 //X06送胶复位感应
  156. #define TBJ_SJ_LIMIT_IN M0391 //X07送胶到位感应
  157. #define TBJ_SJ_LIMIT_IN_UP (M0391 && !OLDM391) //X07送胶到位感应上升沿
  158. #define TBJ_QJ_ORIGIN_IN M0392 //X10 下模原位
  159. #define TBJ_QJ_ORIGIN_IN_UP (M0392 && !OLDM392) //X10 下模原位
  160. #define TBJ_QJ_LIMIT_IN M0393 //X11下模到位
  161. #define TBJ_QJ_LIMIT_IN_UP (M0393 && !OLDM393) //X11下模到位
  162. #define TBJ_KADAI_IN M0394 //X12卡带
  163. #define TBJ_GUO_LIAN_IN M0395 //X13过链接近开关 有链为 1 无链(空位)为 0
  164. #define TBJ_GUO_LIAN_IN_UP (M0395 && !OLDM395) //X13过链接近开关上升沿
  165. #define TBJ_GUO_LIAN_IN_DOWN (!M0395 && OLDM395) //X13过链接近开关下降沿
  166. #define TBJ_XQJGY_IN M0396 //X14上缺胶感应
  167. #define TBJ_XQJGY_IN_UP (M0396 && !OLDM396)
  168. #define TBJ_XQJGY_IN_IN_DOWN (!M0396 && OLDM396)
  169. #define TBJ_SQJGY_IN M0396 //X14下缺胶感应
  170. #define TBJ_SQJGY_IN_UP (M0396 && !OLDM396)
  171. #define TBJ_SQJGY_IN_DOWN (!M0396 && OLDM396)
  172. #define TBJ_START_IN M0397 //X15启动
  173. #define TBJ_START_IN_UP (M0397 && !OLDM397) //X15启动上升沿
  174. //M0398备用
  175. #define TBJ_STOP_IN M0399 //X17停止
  176. #define TBJ_STOP_IN_UP (M0399 && !OLDM399) //X17停止上升沿
  177. #define TBJ_SafeDoor_IN M0400 //X20安全门
  178. #define TBJ_AIRCHECK_L_IN M0401 //X21气压低压检测
  179. #define TBJ_AIRCHECK_H_IN M0402 //X22气压高压检测
  180. #define TBJ_YSTOP_LOCAL_IN M0403 //X23Y待机位置
  181. //未定义的
  182. #define TBJ_TD_LIMIT_IN M0410 //X14拖带到位感应(双钩针才有)
  183. //#define TBJ_GZ_ORIGIN_IN !TBJ_GZ_LIMIT_IN //X20钩针复位原位感应
  184. #define TBJ_SM_LIMIT_IN M0411 //X03上模下冲到位感应
  185. #define TBJ_SM_ORIGIN_IN M0412 //X04上模下冲到位感应
  186. #define TBJ_SHANGCHAO_IN M0413 //X17上超
  187. #define TBJ_SHANGCHAO_IN_UP (M0413 && !OLDM413) //X17上超上升沿
  188. #define TBJ_SHANGCHAO_IN_DW (!M0413 && OLDM413) //X17上超下降沿
  189. /*
  190. #define TBJ_XQJGY_IN M0384 //X00上缺胶感应
  191. #define TBJ_XQJGY_IN_UP (M0384 && !OLDM384)
  192. #define TBJ_XQJGY_IN_IN_DOWN (!M0384 && OLDM384)
  193. #define TBJ_SQJGY_IN M0385 //X01下缺胶感应
  194. #define TBJ_SQJGY_IN_UP (M0385 && !OLDM385)
  195. #define TBJ_SQJGY_IN_DOWN (!M0385 && OLDM385)
  196. #define TBJ_SM_LIMIT_IN M0387 //X03上模下冲到位感应
  197. #define TBJ_SM_LIMIT_IN_UP (M0387 && !OLDM387) //X03上模下冲到位感应上升沿
  198. #define TBJ_SM_ORIGIN_IN M0388 //X04上模下冲到位感应
  199. #define TBJ_SM_ORIGIN_IN_UP (M0388 && !OLDM388) //X04上模下冲到位感应上升沿
  200. #define TBJ_FJ_LIMIT_IN M0389 //X05分胶阀到位感应
  201. #define TBJ_FJ_ORIGIN_IN M0390 //X06分胶阀原位感应
  202. #define TBJ_SJ_LIMIT_IN M0391 //X07送胶到位感应
  203. #define TBJ_SJ_LIMIT_IN_UP (M0391 && !OLDM391) //X07送胶到位感应上升沿
  204. #define TBJ_SJ_ORIGIN_IN M0392 //X10送胶复位感应
  205. #define TBJ_KADAI_IN M0393 //X11卡带
  206. #define TBJ_START_IN M0394 //X12启动
  207. #define TBJ_START_IN_UP (M0394 && !OLDM394) //X12启动上升沿
  208. #define TBJ_STOP_IN M0395 //X13停止
  209. #define TBJ_STOP_IN_UP (M0395 && !OLDM395) //X13停止上升沿
  210. #define TBJ_TD_LIMIT_IN M0396 //X14拖带到位感应(双钩针才有)
  211. #define TBJ_GUO_LIAN_IN M0397 //X15过链接近开关 有链为 1 无链(空位)为 0
  212. #define TBJ_GUO_LIAN_IN_UP (M0397 && !OLDM397) //X15过链接近开关上升沿
  213. #define TBJ_GUO_LIAN_IN_DOWN (!M0397 && OLDM397) //X15过链接近开关下降沿
  214. #define TBJ_NOJIAO_IN M0398 //X16切换自动位 目前空置
  215. #define TBJ_SHANGCHAO_IN M0399 //X17上超
  216. #define TBJ_SHANGCHAO_IN_UP (M0399 && !OLDM399) //X17上超上升沿
  217. #define TBJ_SHANGCHAO_IN_DW (!M0399 && OLDM399) //X17上超下降沿
  218. #define TBJ_GZ_ORIGIN_IN M0400 //X20钩针复位原位感应
  219. #define TBJ_AUTO_IN M0401 //X21缺胶信号--保护未知
  220. #define TBJ_XM_LIMIT_IN M0402 //X22下模到位感应
  221. */
  222. #define TBJ_FJ_VAVLE M0304 //Y00分胶
  223. #define TBJ_QJ_VAVLE M0305 //Y01切胶
  224. #define TBJ_JJ_VAVLE M0306 //Y02夹胶
  225. #define TBJ_SJ_VAVLE M0307 //Y03送胶电磁阀
  226. #define TBJ_YD_VAVLE M0308 //Y04压带
  227. #define TBJ_DZ_VAVLE M0309 //Y05顶针
  228. #define TBJ_GZ_VAVLE M0310 //Y06钩针
  229. #define TBJ_CS_OUT M0311 //Y07超声
  230. #define TBJ_LQFS_OUT M0312 //Y10风扇
  231. #define TBJ_LED_G_OUT M0313 //Y11绿灯
  232. #define TBJ_LED_Y_OUT M0314 //Y12黄灯
  233. #define TBJ_LED_R_OUT M0315 //Y13红
  234. #define TBJ_FMQ_OUT M0316 //Y14蜂鸣器
  235. #define TBJ_CQ_VAVLE M0317 //Y15吹气
  236. #define TBJ_SD_VAVLE M0318 //Y16松带
  237. #define TBJ_QJCQ_VAVLE M0319 //Y17切胶吹气
  238. #define TBJ_SM_VAVLE M0320 //Y03上模(下冲)
  239. #define TBJ_MOTOR_OUT M0321 //Y11
  240. #define TBJ_XM_VAVLE M0322 //Y01下模
  241. /*
  242. #define TBJ_CLUTH_VAVLE M0352 //Y00离合器(步进方向)
  243. #define TBJ_GZ_VAVLE M0354 //Y02钩针
  244. #define TBJ_SM_VAVLE M0355 //Y03上模(下冲)
  245. #define TBJ_FJ_VAVLE M0356 //Y04分胶#define TBJ_FJ_VAVLE M0356 //Y04分胶
  246. #define TBJ_YD_VAVLE M0357 //Y05夹胶
  247. #define TBJ_SJ_VAVLE M0358 //Y06送胶电磁阀
  248. #define TBJ_CQ_VAVLE M0359 //Y07吹气
  249. //#define TBJ_COUNT_OUT M0360 //Y10计数
  250. #define TBJ_CS_OUT M0361 //Y11超声
  251. #define TBJ_ALARM_OUT M0362 //Y12报警
  252. #define TBJ_RUN_OUT M0363 //Y13运行
  253. #define TBJ_MOTOR_OUT M0364 //Y11
  254. #define TBJ_XM_VAVLE M0365 //Y12下模
  255. //Y15电机松轴
  256. //Y12运行
  257. //Y13停止
  258. //Y14警告
  259. */
  260. //M0~M4 Actioon.h全局使用
  261. #define TBJ_bYD M0005 //压带 老版屏幕为M0003
  262. #define TBJ_bGZ M0006 //钩针 老版屏幕为M0004
  263. #define TBJ_bSJ M0007 //送胶
  264. #define TBJ_bHM M0008 //合模
  265. #define TBJ_bCS M0009 //超声
  266. #define TBJ_bCS_FLAG M0010 //超声标志
  267. #define TBJ_bSC M0011 //上超
  268. #define TBJ_bSC_FLAG M0012 //上超标志
  269. #define TBJ_bFJ M0013 //分胶
  270. #define TBJ_bRESET_TOTAL M0014 //产量清零
  271. #define TBJ_bJJ M0015 //夹胶
  272. #define TBJ_bDZ M0016 //顶针
  273. #define TBJ_bQJ M0017 //切胶
  274. #define TBJ_bSD M0018 //松带
  275. #define TBJ_bFS M0019 //风扇
  276. #define TBJ_bRunning M0020
  277. #define TBJ_bStart M0021
  278. #define TBJ_bStop M0022
  279. #define TBJ_bAlarmStop M0023
  280. #define TBJ_bClearTotal M0024
  281. #define TBJ_bMotor_N M0025
  282. #define TBJ_bMotor_P M0026
  283. #define TBJ_bSingle M0027
  284. #define TBJ_bSingleOne M0028
  285. #define TBJ_HandWork M0029
  286. #define TBJ_HandWorking M0030
  287. #define TBJ_bYMotor_N M0031
  288. #define TBJ_bYMotor_P M0032
  289. #define TBJ_bXCRest M0033
  290. #define TBJ_bXCResting M0034
  291. #define CTHL_bServo_Com_X M0035
  292. #define CTHL_bServo_Com_Y M0036
  293. #define CTHL_bServo_Com_Z M0037
  294. #define TBJ_bTiaoShi_MODE M0040
  295. #define DJ_NoZip_W 1 //E01 没拉链警告 请检查 X11 过链接近开关
  296. #define DJ_TuiGZ_W 2 //E02 退勾针不到位或 X15 钩针复位感应异常,当前程序处于电机第七步
  297. #define QD_GZDaoWei_W 3 //E03 钩针未退位或 X20 钩针到位感应异常警告,无法启动
  298. #define SJ_SongJiao_W 4 //E04 送胶不到位或 X16送胶前感应异常
  299. #define SJ_TuiJiao_W 5 //E05 退胶不到位警告 或 X16、X17送胶前后感应异常
  300. #define SJ_TuiFenJiao_W 6 //E06 退分胶不到位警告或 X12分胶后感应异常
  301. #define TBJ_NoJiao_W 7 //E07 胶已用完,请补充胶
  302. #define ZipperLengPRO_W 8 //E08 拉链长度异常,超过拉链保护长度
  303. #define TBJ_XC_NO_REST 9 //E09 下冲为复位
  304. #define SJ_FenJiao_DaoWei_W 10 //E10 分胶未到位,无法送胶或 X12分胶前感应异常
  305. #define TBJ_LLPL_ALARM 11 //E11 拉链破链告警
  306. #define TBJ_SERVO_ALARM 12 //E12 伺服告警
  307. #define TBJ_SERVO_COM_ALARM 13 //E13 伺服通讯异常
  308. #define QD_FenJiaoHou_W 14 //E14 X13 分胶后感应异常,无法启动
  309. #define TBJ_QJLIMIT_ALARM 15 //E15 切胶到位异常,检查X11
  310. #define TBJ_TOTAL_ALARM 16 //E16 已达设定产量,请清空产量或重新设定产量
  311. #define TBJ_KADAI_ALARM 17 //E17 卡带
  312. #define QD_GZOut_W 18 //E18 钩针阀未退回,无法启动
  313. #define TBJ_NO_YORIGIN_ALARM 19 //E19 超声结束后伺服未恢复到原点
  314. //#define QD_XiaChong_W 20 //E20 下冲气缸输出中,无法启动
  315. //#define FenJiao_BuDaoWei_W 21 //E21 分胶阀不到位或 X12 分胶前感应异常
  316. //#define SongJiao_BuDaoWei 22 //E22 送胶不到位 或 X16送胶前感应异常
  317. //#define Hemo_BuDaoWei_W 23 //E23 合模不到位警告或 X14 合模到位感应异常
  318. #define DJ_ZipperTimePRO_W 24 //E24 拉拉链时间过长,可能由以下原因:①超出保护时间,请检查保护时间是否设置过短②电机是否启动,速度是否过慢③拉链过紧,电机没拉动
  319. #define DJ_GZWeiDaoWei_W 25 //E25 钩针未到位或 X20钩针到位感应异常警告,电机停止
  320. #define CS_Hemo_DaoWei_W 26 //E26 超声停止,合模不到位或X14下冲到位感应异常
  321. #define CS_GZ_DaoWei_W 27 //E27 超声停止,钩针不到位或 X15钩针复位感应异常
  322. #define ZD_FenJiaoFa_W 28 //E28 自动停止,分胶阀输出停止异常
  323. #define ZD_FenJiaoQian_W 29 //E29 自动停止,分胶未退位或分胶前感应异常
  324. #define ZD_FenJiaoHou_W 30 //E30 自动停止,分胶未退位或分胶后感应异常
  325. #define ZD_SongJiaoFa_W 31 //E31 自动停止,送胶阀退位异常
  326. #define ZD_SongJiaoQian_W 32 //E32 自动停止,送胶未退位或送胶前感应异常
  327. #define ZD_SongJiaoHou_W 33 //E33 自动停止,送胶未退位或送胶后感应异常
  328. #define SDFJ_ModeAction_W 34 //E34 手动分胶停止,原因可能如下①夹胶非单独气缸,压胶阀未关闭;②单钩针模式下,钩针退位了;③双钩针模式下,钩针未退位;
  329. #define SDFJ_XiaChongFa_W 35 //E35 手动分胶停止,下冲气缸未退位
  330. #define SDFJ_XiaChong_DaoWei_W 36 //E36 手动分胶停止,下冲气缸未退位或X14下冲到位感应异常
  331. #define SDFJ_CS_W 37 //E37 手动分胶停止,超声未关闭
  332. #define SDFJ_SongJiaoDaoWei_W 38 //E38 手动分胶停止,送胶阀未退回,或X16送胶到位感应异常
  333. #define SDFJ_TuiJiaoDaoWei_W 39 //E39 手动分胶停止,送胶阀未退回,或X17退胶到位感应异常
  334. #define SDSJ_ModeAction_W 40 //E40 手动送胶停止,原因可能如下①夹胶非单独气缸,压胶阀未关闭;②单钩针模式下,钩针退位;③双钩针模式下,钩针未退位;
  335. #define SDSJ_FenJiaoFa_W 41 //E41 手动送胶停止,分胶阀处于异常状态,X12X13前后感应灯同亮或同灭
  336. #define SDSJ_TuiJiao_DaoWei_W 42 //E42 手动送胶停止,送胶阀未输出,送胶后感应亮
  337. #define TBJ_QJ_SJNORIGIN_ALARM 43 //E43 手动切胶,送胶不在原位
  338. #define SDSJ_XiaChong_DaoWei_W 44 //E44 手动送胶停止,下冲气缸未退回,或X14 下冲到位感应异常
  339. #define SDSJ_CS_W 45 //E45 手动送胶停止,超声未关闭
  340. #define SDHM_FenJiaoHou_W 46 //E46 手动合模停止,分胶阀未退位,或 X13分胶后感应异常
  341. #define SDHM_FenJiaoQian_W 47 //E47 手动合模停止,分胶阀未退位,或 X12分胶前感应异常
  342. #define SDHM_SongJiao_DaoWei_W 48 //E48 手动合模停止,送胶阀未退位,或 X16送胶前感应异常
  343. #define SDHM_SongJiao_TuiWei_W 49 //E49 手动合模停止,送胶阀未退位,或 X17分胶后感应异常
  344. #define SDHM_CS_W 50 //E50 手动合模停止,超声未关闭
  345. #define SDCS_FenJiaoFa_W 51 //E51 手动超声停止,分胶阀未退回
  346. #define SDCS_SongJiaoFa_W 52 //E52 手动超声停止,送胶阀未退回
  347. #define SDCS_FenJiaoQian_W 53 //E53 手动超声停止,分胶阀未退回,或X12分胶前感应异常
  348. #define SDCS_FenJiaoHou_W 54 //E54 手动超声停止,分胶阀未退回,或X13分胶后感应异常
  349. #define SDCS_SongJiao_DaoWei_W 55 //E55 手动超声停止,送胶阀未退回,或X16送胶到位感应异常
  350. #define SDCS_TuiJiao_DaoWei_W 56 //E56 手动超声停止,送胶阀未退回,或X17退胶到位感应异常
  351. #define SDSC_FenJiaoFa_W 57 //E57 手动上超停止,分胶阀未退回
  352. #define SDSC_FenJiaoQian_W 58 //E58 手动上超停止,分胶阀未退回,或X12分胶前感应异常
  353. #define SDSC_FenJiaoHou_W 59 //E59 手动上超停止,分胶阀未退回,或X13分胶后感应异常
  354. #define SDSC_SongJiaoFa_W 60 //E60 手动上超停止,送胶阀未退回
  355. #define SDSC_SongJiao_DaoWei_W 61 //E61 手动上超停止,送胶阀未退回,或X16送胶到位感应异常
  356. #define SDSC_TuiJiao_DaoWei_W 62 //E62 手动上超停止,送胶阀未退回,或X17退胶到位感应异常
  357. #define TBJ_NoSJiao_W 63 //E63 上胶已用完,请补充胶 或检查X01上胶感应信号
  358. #define TBJ_NoXJiao_W 64 //E64 下胶已用完,请补充胶,或检查X00下胶感应信号
  359. #endif
  360. #endif