global.h 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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 "servocom_app.h"
  20. #include "axis_motion_config.h"
  21. #include "axis_motion.h"
  22. #include "servostep.h"
  23. #include "NodeLinkMaster.h"
  24. #include "nodelink_master_app.h"
  25. #include "AllServoDrv.h"
  26. #include "io_app.h"
  27. #include "extend_master.h"
  28. #include "log_app.h"
  29. #include "modbus_app.h"
  30. #include "poweroff_save_app.h"
  31. #include "user_app.h"
  32. #include "axis_app.h"
  33. #include "IOPinConfig.h"
  34. #include "Action.h"
  35. #include "MachineConfig.h"
  36. //#define USE_EXTEND_INOUTPUT (1)
  37. #define USE_EXTEND_ALARM (1)
  38. #if JING_LONG_MACHINE
  39. #include "../Machine/JinLongMachine/JLAction.h"
  40. #endif
  41. #if HAI_HUA_MACHINE
  42. #include "../Machine/HaiHuaMachine/HHChuChiJi.h"
  43. #include "../Machine/HaiHuaMachine/HHJiaoYaDinCun.h"
  44. #include "../Machine/HaiHuaMachine/HHQueDuanJi.h"
  45. #include "../Machine/HaiHuaMachine/HHJinShuDinCun.h"
  46. #include "../Machine/HaiHuaMachine/HHChuanTouJi.h"
  47. #endif
  48. #if JIN_HONG_MACHINE
  49. #include "../Machine/JinHongMachine/JHAction.h"
  50. #endif
  51. #if HONG_YE_MACHINE
  52. #include "../Machine/HongYeMachine/HYChuChiJi.h"
  53. #include "../Machine/HongYeMachine/HYJiaoYaDinCun.h"
  54. #include "../Machine/HongYeMachine/HYMXC_NiLong_StepJi.h"
  55. #include "../Machine/HongYeMachine/HYQueDuanJi.h"
  56. #include "../Machine/HongYeMachine/HYJinShuDinCun.h"
  57. #endif
  58. #if FU_XIAO_WEI_MACHINE
  59. #include "../Machine/FuXiaoWeiMachine/FXWAction.h"
  60. #endif
  61. #if FIE_YUE_MACHINE
  62. #include "../Machine/FeiYueMachine/FeiYueAction.h"
  63. #endif
  64. //ÁúÒ»
  65. #if LONG_YI_MACHINE
  66. #include "../Machine/LongYiMachine/LongYiAction.h"
  67. #endif
  68. #if CHANG_SHENG_GEI_LI_MACHINE
  69. #include "../Machine/ChangShengGeiLiMachine/GLAction.h"
  70. #endif
  71. #if YOU_GUAN_MACHINE
  72. #include "../Machine/YouGuanMachine/YGChuChiJi.h"
  73. #include "../Machine/YouGuanMachine/YGJiaoYaDinCun.h"
  74. #include "../Machine/YouGuanMachine/YGDaKong.h"
  75. #include "../Machine/YouGuanMachine/YGMXC_NiLong_StepJi.h"
  76. #include "../Machine/YouGuanMachine/YGQueDuanJi.h"
  77. #include "../Machine/YouGuanMachine/YGJinShuDinCun.h"
  78. #include "../Machine/YouGuanMachine/YGQueduanChuantou.h"
  79. #include "../Machine/YouGuanMachine/YGChuanTouJi.h"
  80. #endif
  81. #if ZHEN_YU_MACHINE==1
  82. #include "../Machine/ZhenYuMachine/ZhenYuAction.h"
  83. #endif
  84. #if JUN_TENG_MACHINE
  85. #include "../Machine/JunTengMachine/JTChuChiJi.h"
  86. #include "../Machine/JunTengMachine/JTJiaoYaDinCun.h"
  87. #include "../Machine/JunTengMachine/JTMXC_NiLong_StepJi.h"
  88. #include "../Machine/JunTengMachine/JTQueDuanJi.h"
  89. #include "../Machine/JunTengMachine/JTQueduanChuantou.h"
  90. #include "../Machine/JunTengMachine/JTDaKong.h"
  91. #include "../Machine/JunTengMachine/JTTieBuJi.h"
  92. #include "../Machine/JunTengMachine/JTJinShuDinCun.h"
  93. #include "../Machine/JunTengMachine/JTChuanTouJi.h"
  94. #endif
  95. #if JIA_CHENG_WEI_YE_MACHINE
  96. #include "../Machine/JiaChengWeiYeMachine/JCWYChuChiJi.h"
  97. #include "../Machine/JiaChengWeiYeMachine/JCWYJiaoYaDinCun.h"
  98. #include "../Machine/JiaChengWeiYeMachine/JCWYMXC_NiLong_StepJi.h"
  99. #include "../Machine/JiaChengWeiYeMachine/JCWYQueDuanJi.h"
  100. #include "../Machine/JiaChengWeiYeMachine/JCWYQueduanChuantou.h"
  101. #include "../Machine/JiaChengWeiYeMachine/JCWYDaKong.h"
  102. #include "../Machine/JiaChengWeiYeMachine/JCWYTieBuJi.h"
  103. #include "../Machine/JiaChengWeiYeMachine/JCWYJinShuDinCun.h"
  104. #include "../Machine/JiaChengWeiYeMachine/JCWYChuanTouJi.h"
  105. #include "../Machine/JiaChengWeiYeMachine/JCWYHuaXianJi.h"
  106. #endif
  107. #if XIN_SHENG_MACHINE
  108. #include "../Machine/XinShengMachine/XSChuChiJi.h"
  109. #include "../Machine/XinShengMachine/XSJiaoYaDinCun.h"
  110. #include "../Machine/XinShengMachine/XSMXC_NiLong_StepJi.h"
  111. #include "../Machine/XinShengMachine/XSQueDuanJi.h"
  112. #include "../Machine/XinShengMachine/XSQueduanChuantou.h"
  113. #include "../Machine/XinShengMachine/XSDaKong.h"
  114. #include "../Machine/XinShengMachine/XSTieBuJi.h"
  115. #include "../Machine/XinShengMachine/XSJinShuDinCun.h"
  116. #include "../Machine/XinShengMachine/XSChuanTouJi.h"
  117. #endif
  118. #if WEI_YUAN_SONG_MACHINE
  119. #include "../Machine/WeiYuanSongMachine/WYSChuChiJi.h"
  120. #include "../Machine/WeiYuanSongMachine/WYSJiaoYaDinCun.h"
  121. #include "../Machine/WeiYuanSongMachine/WYSMXC_NiLong_StepJi.h"
  122. #include "../Machine/WeiYuanSongMachine/WYSQueDuanJi.h"
  123. #include "../Machine/WeiYuanSongMachine/WYSQueduanChuantou.h"
  124. #include "../Machine/WeiYuanSongMachine/WYSDaKong.h"
  125. #include "../Machine/WeiYuanSongMachine/WYSTieBuJi.h"
  126. #include "../Machine/WeiYuanSongMachine/WYSJinShuDinCun.h"
  127. #include "../Machine/WeiYuanSongMachine/WYSChuanTouJi.h"
  128. #endif
  129. #if PENG_WEI_CHANG_MACHINE
  130. #include "../Machine/PengWeiChangMachine/PWCChuChiJi.h"
  131. #include "../Machine/PengWeiChangMachine/PWCJiaoYaDinCun.h"
  132. #include "../Machine/PengWeiChangMachine/PWCMXC_NiLong_StepJi.h"
  133. #include "../Machine/PengWeiChangMachine/PWCQueDuanJi.h"
  134. #include "../Machine/PengWeiChangMachine/PWCQueduanChuantou.h"
  135. #include "../Machine/PengWeiChangMachine/PWCDaKong.h"
  136. #include "../Machine/PengWeiChangMachine/PWCTieBuJi.h"
  137. #include "../Machine/PengWeiChangMachine/PWCJinShuDinCun.h"
  138. #include "../Machine/PengWeiChangMachine/PWCChuanTouJi.h"
  139. #include "../Machine/PengWeiChangMachine/PWCYYaJi.h"
  140. #include "../Machine/PengWeiChangMachine/PWCJinShuKLShuangSZ.h"
  141. #endif
  142. #if TONG_YONG_MACHINE
  143. #include "../Machine/TongYongMachine/TYChuChiJi.h"
  144. #include "../Machine/TongYongMachine/TYJiaoYaDinCun.h"
  145. #include "../Machine/TongYongMachine/TYMXC_NiLong_StepJi.h"
  146. #include "../Machine/TongYongMachine/TYQueDuanJi.h"
  147. #include "../Machine/TongYongMachine/TYQueduanChuantou.h"
  148. #include "../Machine/TongYongMachine/TYDaKong.h"
  149. #include "../Machine/TongYongMachine/TYTieBuJi.h"
  150. #include "../Machine/TongYongMachine/TYJinShuDinCun.h"
  151. #include "../Machine/TongYongMachine/TYChuanTouJi.h"
  152. #include "../Machine/TongYongMachine/TYYYaJi.h"
  153. #include "../Machine/TongYongMachine/TYHeLian.h"
  154. #include "../Machine/TongYongMachine/TYFangKuaiChaXiao.h"
  155. #include "../Machine/TongYongMachine/TYHongMenDZJ.h"
  156. #endif
  157. #if XIN_YE_MACHINE
  158. #include "../Machine/XinYeMachine/XingYeAction.h"
  159. #endif
  160. #if ZHANG_CHUN_YANG_MACHINE
  161. #include "../Machine/ZhangChunYangMachine/ZCYAction.h"
  162. #endif
  163. #if FJ_YING_XING_MACHINE
  164. #include "../Machine/YingXingMachine/YingXingAction.h"
  165. #endif
  166. #if Chuan_Chi_MACHINE
  167. #include "../Machine/ChuanChiMachine/CCAction.h"
  168. #endif
  169. #if XI_DONG_MACHINE
  170. #include "../Machine/XiDongMachine/XDChuChiJi.h"
  171. #include "../Machine/XiDongMachine/XDJiaoYaDinCun.h"
  172. #include "../Machine/XiDongMachine/XDMXC_NiLong_StepJi.h"
  173. #include "../Machine/XiDongMachine/XDQueDuanJi.h"
  174. #include "../Machine/XiDongMachine/XDQueduanChuantou.h"
  175. #include "../Machine/XiDongMachine/XDDaKong.h"
  176. #include "../Machine/XiDongMachine/XDTieBuJi.h"
  177. #include "../Machine/XiDongMachine/XDJinShuDinCun.h"
  178. #include "../Machine/XiDongMachine/XDChuanTouJi.h"
  179. #include "../Machine/XiDongMachine/XDYYaJi.h"
  180. #include "../Machine/XiDongMachine/XDSingleYYaJi.h"
  181. #include "../Machine/XiDongMachine/XDHeLian.h"
  182. #include "../Machine/XiDongMachine/XDFangKuaiChaXiao.h"
  183. #include "../Machine/XiDongMachine/XDGongZiMa.h"
  184. #include "../Machine/XiDongMachine/XDLaSiJi.h"
  185. #endif
  186. #if JU_XING_MACHINE
  187. #include "../Machine/JuXingMachine/JXChuChiJi.h"
  188. #include "../Machine/JuXingMachine/JXJiaoYaDinCun.h"
  189. #include "../Machine/JuXingMachine/JXMXC_NiLong_StepJi.h"
  190. #include "../Machine/JuXingMachine/JXQueDuanJi.h"
  191. #include "../Machine/JuXingMachine/JXQueduanChuantou.h"
  192. #include "../Machine/JuXingMachine/JXDaKong.h"
  193. #include "../Machine/JuXingMachine/JXTieBuJi.h"
  194. #include "../Machine/JuXingMachine/JXJinShuDinCun.h"
  195. #include "../Machine/JuXingMachine/JXChuanTouJi.h"
  196. #endif
  197. #if YU_WEN_XUAN_MACHINE
  198. #include "../Machine/YuWenXuanMachine/YuWenXuanAction.h"
  199. #endif
  200. //½ðÁúÀ­Á´
  201. #if BRUCE_MACHINE
  202. #include "../Machine/TongYongMachine/TYChuChiJi.h"
  203. #include "../Machine/TongYongMachine/TYJiaoYaDinCun.h"
  204. #include "../Machine/TongYongMachine/TYMXC_NiLong_StepJi.h"
  205. #include "../Machine/TongYongMachine/TYQueDuanJi.h"
  206. #include "../Machine/TongYongMachine/TYQueduanChuantou.h"
  207. #include "../Machine/TongYongMachine/TYDaKong.h"
  208. #include "../Machine/TongYongMachine/TYTieBuJi.h"
  209. #include "../Machine/TongYongMachine/TYJinShuDinCun.h"
  210. #include "../Machine/TongYongMachine/TYChuanTouJi.h"
  211. #include "../Machine/TongYongMachine/TYYYaJi.h"
  212. #include "../Machine/TongYongMachine/TYHeLian.h"
  213. #include "../Machine/TongYongMachine/TYFangKuaiChaXiao.h"
  214. #include "../Machine/TongYongMachine/TYHongMenDZJ.h"
  215. #include "../Machine/BruceMachine/BRUCE_DaZheJi.h"
  216. #endif
  217. #if JUN_YUE_MACHINE==1
  218. #include "../Machine/JunYueMachine/JuYueAction.h"
  219. #endif
  220. #endif