1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #include "global.h"
- #include "Action.h"
- #if JIN_HONG_MACHINE == 1
- void ExtiAcitionX02(void)
- {
- if(bCheckEN_FLG)
- {
- bCheckEN_FLG = 0;
- CheckInX02PosBuff = GetPos(X_AXIS);
- }
- }
- //初始化动作
- void JH_Mechine_InitAction(void)
- {
- switch(cMachineType)
- {
- case JIAO_YA_DIN_CUN:
- break;
- case CHU_CHI_JI:
- break;
- case JIAO_YA_CHU_CHI:
- break;
- case QIE_DUAN_JI:
- break;
- case CHUAN_TOU_QIE_DUAN_JI:
- //GL_QDCT_InitAction();
- break;
- case MXC_NILONG:
- MXC_InitAction();
- break;
- case JIN_SHU_DIN_CUN:
- break;
- case CHUAN_TOU_JI:
- break;
- case JIN_SHU_KLSZ_JI:
- break;
- case HE_LIAN_JI:
- break;
- case TIE_BU_JI:
- break;
- case FANG_KUAI_CHA_XIAO_JI:
- break;
- case GONG_ZHI_MA:
- break;
-
- case CHUANTOU_NL_HELIAN_JI: //穿头合链机
- JH_CTHL_NL_InitAction();
- break;
- default:
- break;
- }
- SetEncode_enable(ENCODE_X20X21);
- SetEncode_enable(ENCODE_X22X23);
- }
- void JH_Mechine_Action(void)
- {
-
- user_datas[122]=GetEncodePos(ENCODE_X20X21);
- user_datas[123]=GetEncodePos(ENCODE_X22X23);
- switch(cMachineType)
- {
- case MXC_NILONG:
- MXC_Action();
- break;
- case CHUAN_TOU_QIE_DUAN_JI: //穿头切断机
- //GL_QDCT_Action();
- break;
-
- case CHUANTOU_NL_HELIAN_JI: //穿头合链机
- JH_CTHL_NL_Action();
- break;
- default:
- break;
- }
- }
- #endif
|