PWCJinShuKLShuangSZ.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #ifndef __PWCJSKL_NILONG_STEP_JI_H__
  2. #define __PWCJSKL_NILONG_STEP_JI_H__
  3. #if PENG_WEI_CHANG_MACHINE
  4. extern void JSKL_InitAction(void);
  5. extern void JSKL_NiLongXiuCiJiAction(void);
  6. extern void JSKL_ExtiActionX31(void);
  7. #define JSKL_ALARM_ADDR 100
  8. #define JSKL_TOTAL_ADDR 76
  9. #define JSKL_PROSPEED_ADDR 78
  10. #define JSKL_DIR_N 0
  11. #define JSKL_DIR_P 1
  12. #define JSKL_NO_ALARM 0
  13. #define JSKL_FD_LIMIT_ALARM 1
  14. #define JSKL_XM_LIMIT_ALARM 2
  15. #define JSKL_PJ_LIMIT_ALARM 3
  16. #define JSKL_PJ_ORIGIN_ALARM 4
  17. #define JSKL_SM_LIMIT_ALARM 5
  18. #define JSKL_XM_ORIGIN_ALARM 6
  19. #define JSKL_GUOLIAN_ALARM 7
  20. #define JSKL_TM_LEFT_ALARM 8
  21. #define JSKL_TL_ALARM 9
  22. #define JSKL_GZ_ALARM 10
  23. #define JSKL_TOTAL_ALARM 11
  24. #define JSKL_TM_RIGHT_ALARM 12
  25. #define JSKL_VAVLE_ALARM_TIME 3000
  26. #define JSKL_PARAM_HIGH_SPEED user_datas[0]
  27. #define JSKL_PARAM_LOW_SPEED user_datas[1]
  28. #define JSKL_PARAM_GZ_DELAY (user_datas[2]*10)
  29. #define JSKL_PARAM_STOP_DELAY user_datas[3]
  30. #define JSKL_PARAM_FD_DELAY (user_datas[4]*10)
  31. #define JSKL_PARAM_FZ_DELAY (user_datas[5]*10)
  32. #define JSKL_PARAM_PJ_DELAYBACK (user_datas[6]*10)
  33. #define JSKL_PARAM_FZ_LENGTH user_datas[7]
  34. #define JSKL_PARAM_DELAY_START (user_datas[8]*10)
  35. #define JSKL_PARAM_ZIPPER_TIME (user_datas[9]*10)
  36. #define JSKL_PARAM_TM_TIME (user_datas[10]*10)
  37. #define JSKL_PARAM_TM_TIMES user_datas[11]
  38. #define JSKL_PARAM_DELAY_FD_BACK (user_datas[12]*10)
  39. #define JSKL_PARAM_DELAY_TM_BACK (user_datas[13]*10)
  40. #define JSKL_PARAM_DELAY_ALL_BACK user_datas[14]
  41. #define JSKL_PARAM_SINGLE_MODE user_datas[15]
  42. #define JSKL_PARAM_ZDP_ENABLE user_datas[16]
  43. #define JSKL_PARAM_DELAY_FD_BACK2 (user_datas[17]*10)
  44. #define JSKL_PARAM_DELAY_CHECK user_datas[18]
  45. #define JSKL_PARAM_PJ_DELAY (user_datas[19]*10)
  46. #define JSKL_PARAM_PJ_PUSH_LENGTH user_datas[20]
  47. #define JSKL_PARAM_FD_ENABLE 1// user_datas[21]
  48. #define JSKL_PARAM_FD_GO_LENGTH user_datas[22]
  49. #define JSKL_PARAM_LEFT_ENABLE user_datas[71]
  50. #define JSKL_PARAM_RIGHT_ENABLE user_datas[72]
  51. #define DISPLAY_DATA0 user_datas[121]
  52. #define DISPLAY_DATA1 user_datas[122]
  53. #define DISPLAY_DATA2 user_datas[123]
  54. #define DISPLAY_DATA3 user_datas[124]
  55. #define DISPLAY_DATA4 user_datas[125]
  56. #define DISPLAY_DATA5 user_datas[126]
  57. #define DISPLAY_DATA6 user_datas[127]
  58. #define DISPLAY_DATA7 user_datas[128]
  59. #define JSKL_bClear M0001
  60. #define JSKL_bOnceStart M0002
  61. #define JSKL_bGZStart M0003
  62. #define JSKL_bStop M0004
  63. #define JSKL_bZDP M0005
  64. #define JSKL_bGZ M0006
  65. #define JSKL_bFD M0008
  66. #define JSKL_bXM M0009
  67. #define JSKL_bSM M0010
  68. #define JSKL_bTL M0011
  69. #define JSKL_bPJ M0012
  70. #define JSKL_bAlarmStop M0013
  71. #define JSKL_bLTM M0014
  72. #define JSKL_bRTM M0016
  73. #define JSKL_bMotor M0017
  74. #define JSKL_bStart M0018
  75. #define JSKL_cAutoStep cStepMByte
  76. #define JSKL_cMotorStep cStepMByte1
  77. #define JSKL_cFDStep cStepMByte2
  78. #define JSKL_cCheckLStep cStepMByte3
  79. #define JSKL_cCheckRStep cStepMByte4
  80. #define JSKL_cAutoDelay cDelayTime1
  81. #define JSKL_cMotorDelay cDelayTime2
  82. #define JSKL_cFDDelay cDelayTime3
  83. #define JSKL_cTMDelay cDelayTime4
  84. #define JSKL_cCheckLDelay cDelayTime5
  85. #define JSKL_cCheckRDelay cDelayTime6
  86. #define JSKL_cFDBackDelay cDelayTime7
  87. #define JSKL_cGLCheckDelay cDelayTime8
  88. #define JSKL_cXiaChongDelay cDelayTime9
  89. #define JSKL_cXMDelay cDelayTime10
  90. #define JSKL_cPJDelay cDelayTime11
  91. #define START_IN X00
  92. #define START_IN_UP (X00 && !OLDX00)
  93. #define STOP_IN X01
  94. #define STOP_IN_UP (X01 && !OLDX01)
  95. #define JSKL_GuoLian_IN X02
  96. #define JSKL_GuoLian_IN_UP (X02 && !OLDX02)
  97. #define JSKL_GuoLian_IN_DW (!X02 && OLDX02)
  98. #define JSKL_GZ_ORIGIN_IN X03
  99. #define JSKL_GZ_ORIGIN_IN_DW (!X03 && OLDX03)
  100. #define JSKL_GZ_IN X04
  101. #define JSKL_FD_IN X05
  102. #define JSKL_XM_LIMIT_IN X06
  103. #define JSKL_XM_LIMIT_IN_UP (X06 && !OLDX06)
  104. #define JSKL_XM_LIMIT_IN_DW (!X06 && OLDX06)
  105. #define JSKL_XM_ORIGIN_IN X07
  106. #define JSKL_XM_ORIGIN_IN_DW (!X07 && OLDX07)
  107. #define JSKL_SM_LIMIT_IN X10
  108. #define JSKL_SM_LIMIT_IN_DW (!X10 && OLDX10)
  109. #define JSKL_PJ_LIMIT_IN X11
  110. #define JSKL_PJ_ORIGIN_IN X12
  111. #define JSKL_L_QL_IN X13
  112. #define JSKL_R_QL_IN X14
  113. #define JSKL_FMQ_OUT Y00
  114. #define JSKL_GZ_VAVLE Y01
  115. #define JSKL_FD_VAVLE Y02
  116. #define JSKL_XM_VAVLE Y03
  117. #define JSKL_SM_VAVLE Y04 //ËøÄ£
  118. #define JSKL_PJ_VAVLE Y05
  119. #define JSKL_LTM_VAVLE Y06
  120. #define JSKL_RTM_VAVLE Y07
  121. #define JSKL_ZDP_VAVLE Y13
  122. #define JSKL_SZ_OUT Y14
  123. #endif
  124. #endif