JHAction.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #include "global.h"
  2. #include "Action.h"
  3. #if JIN_HONG_MACHINE == 1
  4. void ExtiAcitionX02(void)
  5. {
  6. if(bCheckEN_FLG)
  7. {
  8. bCheckEN_FLG = 0;
  9. CheckInX02PosBuff = GetPos(X_AXIS);
  10. }
  11. }
  12. //初始化动作
  13. void JH_Mechine_InitAction(void)
  14. {
  15. switch(cMachineType)
  16. {
  17. case JIAO_YA_DIN_CUN:
  18. break;
  19. case CHU_CHI_JI:
  20. break;
  21. case JIAO_YA_CHU_CHI:
  22. break;
  23. case QIE_DUAN_JI:
  24. break;
  25. case CHUAN_TOU_QIE_DUAN_JI:
  26. //GL_QDCT_InitAction();
  27. break;
  28. case MXC_NILONG:
  29. MXC_InitAction();
  30. break;
  31. case JIN_SHU_DIN_CUN:
  32. break;
  33. case CHUAN_TOU_JI:
  34. break;
  35. case JIN_SHU_KLSZ_JI:
  36. break;
  37. case HE_LIAN_JI:
  38. break;
  39. case TIE_BU_JI:
  40. break;
  41. case FANG_KUAI_CHA_XIAO_JI:
  42. break;
  43. case GONG_ZHI_MA:
  44. break;
  45. case CHUANTOU_NL_HELIAN_JI: //穿头合链机
  46. JH_CTHL_NL_InitAction();
  47. break;
  48. default:
  49. break;
  50. }
  51. SetEncode_enable(ENCODE_X20X21);
  52. SetEncode_enable(ENCODE_X22X23);
  53. }
  54. void JH_Mechine_Action(void)
  55. {
  56. user_datas[122]=GetEncodePos(ENCODE_X20X21);
  57. user_datas[123]=GetEncodePos(ENCODE_X22X23);
  58. switch(cMachineType)
  59. {
  60. case MXC_NILONG:
  61. MXC_Action();
  62. break;
  63. case CHUAN_TOU_QIE_DUAN_JI: //穿头切断机
  64. //GL_QDCT_Action();
  65. break;
  66. case CHUANTOU_NL_HELIAN_JI: //穿头合链机
  67. JH_CTHL_NL_Action();
  68. break;
  69. default:
  70. break;
  71. }
  72. }
  73. #endif