global.h 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. #ifndef __GLOBAL_H__
  2. #define __GLOBAL_H__
  3. #include <stdio.h>
  4. #include <string.h>
  5. #include <stdlib.h>
  6. #include <math.h>
  7. #include "st_sys.h"
  8. #include "encrypt_md5.h"
  9. #include "encrypt_xxtea.h"
  10. #include "MathHelper.h"
  11. #include "TinyLog.h"
  12. #include "board.h"
  13. #include "software_timer.h"
  14. #include "variable.h"
  15. #include "modbus_encoder.h"
  16. #include "modbus_common.h"
  17. #include "modbus_master.h"
  18. #include "modbus_slave.h"
  19. #include "axis_motion_config.h"
  20. #include "axis_motion.h"
  21. #include "NodeLinkMaster.h"
  22. #include "nodelink_master_app.h"
  23. #include "AllServoDrv.h"
  24. #include "io_app.h"
  25. #include "extend_master.h"
  26. #include "log_app.h"
  27. #include "modbus_app.h"
  28. #include "poweroff_save_app.h"
  29. #include "user_app.h"
  30. #include "axis_app.h"
  31. #include "IOPinConfig.h"
  32. #include "Action.h"
  33. #include "MachineConfig.h"
  34. //#define USE_EXTEND_INOUTPUT (1)
  35. //#define USE_EXTEND_ALARM (0)
  36. #if TEST_MACHINE
  37. #include "../Machine/TestMachine/TestAction.h"
  38. #endif
  39. #if HAI_HUA_MACHINE
  40. //#include "../Machine/HaiHuaMachine/HHChuChiJi.h"
  41. //#include "../Machine/HaiHuaMachine/HHJiaoYaDinCun.h"
  42. //#include "../Machine/HaiHuaMachine/HHQueDuanJi.h"
  43. //#include "../Machine/HaiHuaMachine/HHJinShuDinCun.h"
  44. //#include "../Machine/HaiHuaMachine/HHChuanTouJi.h"
  45. #include "../Machine/HaiHuaMachine/HHAction.h"
  46. #endif
  47. #if JIN_HONG_MACHINE
  48. #include "../Machine/JinHongMachine/JHAction.h"
  49. #endif
  50. #if HONG_YE_MACHINE
  51. #include "../Machine/HongYeMachine/HYChuChiJi.h"
  52. #include "../Machine/HongYeMachine/HYJiaoYaDinCun.h"
  53. #include "../Machine/HongYeMachine/HYMXC_NiLong_StepJi.h"
  54. #include "../Machine/HongYeMachine/HYQueDuanJi.h"
  55. #include "../Machine/HongYeMachine/HYJinShuDinCun.h"
  56. #endif
  57. #if FU_XIAO_WEI_MACHINE
  58. #include "../Machine/FuXiaoWeiMachine/FXWChuChiJi.h"
  59. #include "../Machine/FuXiaoWeiMachine/FXWJiaoYaDinCun.h"
  60. #include "../Machine/FuXiaoWeiMachine/FXWMXC_NiLong_StepJi.h"
  61. #include "../Machine/FuXiaoWeiMachine/FXWQueDuanJi.h"
  62. #include "../Machine/FuXiaoWeiMachine/FXWQueduanChuantou.h"
  63. #include "../Machine/FuXiaoWeiMachine/FXWDaKong.h"
  64. #include "../Machine/FuXiaoWeiMachine/FXWTieBuJi.h"
  65. #include "../Machine/FuXiaoWeiMachine/FXWJinShuDinCun.h"
  66. #include "../Machine/FuXiaoWeiMachine/FXWChuanTouJi.h"
  67. #endif
  68. #if CHANG_SHENG_GEI_LI_MACHINE
  69. #include "../Machine/ChangShengGeiLiMachine/GLAction.h"
  70. #endif
  71. #if CHUAN_CHI_MACHINE
  72. #include "../Machine/ChuanChiMachine/CCAction.h"
  73. #endif
  74. #if YOU_GUAN_MACHINE
  75. #include "../Machine/YouGuanMachine/YGChuChiJi.h"
  76. #include "../Machine/YouGuanMachine/YGJiaoYaDinCun.h"
  77. #include "../Machine/YouGuanMachine/YGDaKong.h"
  78. #include "../Machine/YouGuanMachine/YGMXC_NiLong_StepJi.h"
  79. #include "../Machine/YouGuanMachine/YGQueDuanJi.h"
  80. #include "../Machine/YouGuanMachine/YGJinShuDinCun.h"
  81. #include "../Machine/YouGuanMachine/YGQueduanChuantou.h"
  82. #include "../Machine/YouGuanMachine/YGChuanTouJi.h"
  83. #endif
  84. #if ZHEN_YU_MACHINE
  85. #include "../Machine/ZhenYuMachine/ZYChuChiJi.h"
  86. #include "../Machine/ZhenYuMachine/ZYJiaoYaDinCun.h"
  87. #include "../Machine/ZhenYuMachine/ZYMXC_NiLong_StepJi.h"
  88. #include "../Machine/ZhenYuMachine/ZYQueDuanJi.h"
  89. #include "../Machine/ZhenYuMachine/ZYQueduanChuantou.h"
  90. #include "../Machine/ZhenYuMachine/ZYDaKong.h"
  91. #include "../Machine/ZhenYuMachine/ZYTieBuJi.h"
  92. #include "../Machine/ZhenYuMachine/ZYJinShuDinCun.h"
  93. #include "../Machine/ZhenYuMachine/ZYChuanTouJi.h"
  94. #include "../Machine/ZhenYuMachine/ZYYYaJi.h"
  95. #include "../Machine/ZhenYuMachine/ZYSingleYYaJi.h"
  96. #include "../Machine/ZhenYuMachine/ZYHeLian.h"
  97. #include "../Machine/ZhenYuMachine/ZYFangKuaiChaXiao.h"
  98. #include "../Machine/ZhenYuMachine/ZYGongZiMa.h"
  99. #include "../Machine/ZhenYuMachine/ZYLaSiJi.h"
  100. #endif
  101. #if JUN_TENG_MACHINE
  102. #include "../Machine/JunTengMachine/JTChuChiJi.h"
  103. #include "../Machine/JunTengMachine/JTJiaoYaDinCun.h"
  104. #include "../Machine/JunTengMachine/JTMXC_NiLong_StepJi.h"
  105. #include "../Machine/JunTengMachine/JTQueDuanJi.h"
  106. #include "../Machine/JunTengMachine/JTQueduanChuantou.h"
  107. #include "../Machine/JunTengMachine/JTDaKong.h"
  108. #include "../Machine/JunTengMachine/JTTieBuJi.h"
  109. #include "../Machine/JunTengMachine/JTJinShuDinCun.h"
  110. #include "../Machine/JunTengMachine/JTChuanTouJi.h"
  111. #endif
  112. #if JIA_CHENG_WEI_YE_MACHINE
  113. #include "../Machine/JiaChengWeiYeMachine/JCWYChuChiJi.h"
  114. #include "../Machine/JiaChengWeiYeMachine/JCWYJiaoYaDinCun.h"
  115. #include "../Machine/JiaChengWeiYeMachine/JCWYMXC_NiLong_StepJi.h"
  116. #include "../Machine/JiaChengWeiYeMachine/JCWYQueDuanJi.h"
  117. #include "../Machine/JiaChengWeiYeMachine/JCWYQueduanChuantou.h"
  118. #include "../Machine/JiaChengWeiYeMachine/JCWYDaKong.h"
  119. #include "../Machine/JiaChengWeiYeMachine/JCWYTieBuJi.h"
  120. #include "../Machine/JiaChengWeiYeMachine/JCWYJinShuDinCun.h"
  121. #include "../Machine/JiaChengWeiYeMachine/JCWYChuanTouJi.h"
  122. #include "../Machine/JiaChengWeiYeMachine/JCWYHuaXianJi.h"
  123. #endif
  124. #if XIN_SHENG_MACHINE
  125. #include "../Machine/XinShengMachine/XSChuChiJi.h"
  126. #include "../Machine/XinShengMachine/XSJiaoYaDinCun.h"
  127. #include "../Machine/XinShengMachine/XSMXC_NiLong_StepJi.h"
  128. #include "../Machine/XinShengMachine/XSQueDuanJi.h"
  129. #include "../Machine/XinShengMachine/XSQueduanChuantou.h"
  130. #include "../Machine/XinShengMachine/XSDaKong.h"
  131. #include "../Machine/XinShengMachine/XSTieBuJi.h"
  132. #include "../Machine/XinShengMachine/XSJinShuDinCun.h"
  133. #include "../Machine/XinShengMachine/XSChuanTouJi.h"
  134. #endif
  135. #if WEI_YUAN_SONG_MACHINE
  136. #include "../Machine/WeiYuanSongMachine/WYSChuChiJi.h"
  137. #include "../Machine/WeiYuanSongMachine/WYSJiaoYaDinCun.h"
  138. #include "../Machine/WeiYuanSongMachine/WYSMXC_NiLong_StepJi.h"
  139. #include "../Machine/WeiYuanSongMachine/WYSQueDuanJi.h"
  140. #include "../Machine/WeiYuanSongMachine/WYSQueduanChuantou.h"
  141. #include "../Machine/WeiYuanSongMachine/WYSDaKong.h"
  142. #include "../Machine/WeiYuanSongMachine/WYSTieBuJi.h"
  143. #include "../Machine/WeiYuanSongMachine/WYSJinShuDinCun.h"
  144. #include "../Machine/WeiYuanSongMachine/WYSChuanTouJi.h"
  145. #endif
  146. #if PENG_WEI_CHANG_MACHINE
  147. #include "../Machine/PengWeiChangMachine/PWCChuChiJi.h"
  148. #include "../Machine/PengWeiChangMachine/PWCJiaoYaDinCun.h"
  149. #include "../Machine/PengWeiChangMachine/PWCMXC_NiLong_StepJi.h"
  150. #include "../Machine/PengWeiChangMachine/PWCQueDuanJi.h"
  151. #include "../Machine/PengWeiChangMachine/PWCQueduanChuantou.h"
  152. #include "../Machine/PengWeiChangMachine/PWCDaKong.h"
  153. #include "../Machine/PengWeiChangMachine/PWCTieBuJi.h"
  154. #include "../Machine/PengWeiChangMachine/PWCJinShuDinCun.h"
  155. #include "../Machine/PengWeiChangMachine/PWCChuanTouJi.h"
  156. #include "../Machine/PengWeiChangMachine/PWCYYaJi.h"
  157. #include "../Machine/PengWeiChangMachine/PWCJinShuKLShuangSZ.h"
  158. #endif
  159. #if TONG_YONG_MACHINE
  160. #include "../Machine/TongYongMachine/TYChuChiJi.h"
  161. #include "../Machine/TongYongMachine/TYJiaoYaDinCun.h"
  162. #include "../Machine/TongYongMachine/TYMXC_NiLong_StepJi.h"
  163. #include "../Machine/TongYongMachine/TYQueDuanJi.h"
  164. #include "../Machine/TongYongMachine/TYQueduanChuantou.h"
  165. #include "../Machine/TongYongMachine/TYDaKong.h"
  166. #include "../Machine/TongYongMachine/TYTieBuJi.h"
  167. #include "../Machine/TongYongMachine/TYJinShuDinCun.h"
  168. #include "../Machine/TongYongMachine/TYChuanTouJi.h"
  169. #include "../Machine/TongYongMachine/TYYYaJi.h"
  170. #include "../Machine/TongYongMachine/TYHeLian.h"
  171. #include "../Machine/TongYongMachine/TYFangKuaiChaXiao.h"
  172. #include "../Machine/TongYongMachine/TYHongMenDZJ.h"
  173. #endif
  174. #if XIN_YE_MACHINE
  175. #include "../Machine/XinYeMachine/XingYeAction.h"
  176. #endif
  177. #if XI_DONG_MACHINE
  178. #include "../Machine/XiDongMachine/XDChuChiJi.h"
  179. #include "../Machine/XiDongMachine/XDJiaoYaDinCun.h"
  180. #include "../Machine/XiDongMachine/XDMXC_NiLong_StepJi.h"
  181. #include "../Machine/XiDongMachine/XDQueDuanJi.h"
  182. #include "../Machine/XiDongMachine/XDQueduanChuantou.h"
  183. #include "../Machine/XiDongMachine/XDDaKong.h"
  184. #include "../Machine/XiDongMachine/XDTieBuJi.h"
  185. #include "../Machine/XiDongMachine/XDJinShuDinCun.h"
  186. #include "../Machine/XiDongMachine/XDChuanTouJi.h"
  187. #include "../Machine/XiDongMachine/XDYYaJi.h"
  188. #include "../Machine/XiDongMachine/XDSingleYYaJi.h"
  189. #include "../Machine/XiDongMachine/XDHeLian.h"
  190. #include "../Machine/XiDongMachine/XDFangKuaiChaXiao.h"
  191. #include "../Machine/XiDongMachine/XDGongZiMa.h"
  192. #include "../Machine/XiDongMachine/XDLaSiJi.h"
  193. #endif
  194. #if JU_XING_MACHINE
  195. #include "../Machine/JuXingMachine/JXAction.h"
  196. #endif
  197. #if YU_WEN_XUAN_MACHINE
  198. #include "../Machine/YuWenXuanMachine/YuWenXuanAction.h"
  199. #endif
  200. #if BRUCE_MACHINE
  201. #include "../Machine/TongYongMachine/TYChuChiJi.h"
  202. #include "../Machine/TongYongMachine/TYJiaoYaDinCun.h"
  203. #include "../Machine/TongYongMachine/TYMXC_NiLong_StepJi.h"
  204. #include "../Machine/TongYongMachine/TYQueDuanJi.h"
  205. #include "../Machine/TongYongMachine/TYQueduanChuantou.h"
  206. #include "../Machine/TongYongMachine/TYDaKong.h"
  207. #include "../Machine/TongYongMachine/TYTieBuJi.h"
  208. #include "../Machine/TongYongMachine/TYJinShuDinCun.h"
  209. #include "../Machine/TongYongMachine/TYChuanTouJi.h"
  210. #include "../Machine/TongYongMachine/TYYYaJi.h"
  211. #include "../Machine/TongYongMachine/TYHeLian.h"
  212. #include "../Machine/TongYongMachine/TYFangKuaiChaXiao.h"
  213. #include "../Machine/TongYongMachine/TYHongMenDZJ.h"
  214. #include "../Machine/BruceMachine/BRUCE_DaZheJi.h"
  215. #endif
  216. #if SHOU_JIA_MACHINE
  217. #include "../Machine/ShouJiaMachine/SJAction.h"
  218. #endif
  219. //½ðÁú
  220. #if JIN_LONG_MACHINE
  221. #include "../Machine/JinLongMachine/JLAction.h"
  222. #endif
  223. #if SHOU_JIA_MACHINE
  224. #include "../Machine/ShouJiaMachine/SJAction.h"
  225. #endif
  226. #if FJ_YING_XING_MACHINE
  227. #include "../Machine/YingXingMachine/YXAction.h"
  228. #endif
  229. #if XI_DONG_MACHINE
  230. #include "../Machine/XiDongMachine/XiDongAction.h"
  231. #endif
  232. #endif