#ifndef __FXWQUE_DUAN_JI_H__ #define __FXWQUE_DUAN_JI_H__ #if FU_XIAO_WEI_MACHINE #if FXW_CHANGLIAN_QIEDUAN_JI_CONFIG extern void QueDuan_Action(void); extern void QueDuan_InitAction(void); extern void QueDuanEx_ExtiActionX31(void); extern void FastTimerAction(void); #define QD_DIR_P 1 #define QD_DIR_N 0 #define QD_YDIR_P 0 #define QD_YDIR_N 1 #define QD_YL_DIR_P 0 #define QD_YL_DIR_N 1 #define QD_TOTAL_ADDR 76 #define QD_QIE_DUAN_TOTAL_ADDR 79 #define QD_ALARM_ADDR 100 #define QD_PROSPEED_ADDR 78 /* * 警告类型 警告编号 */ #define QD_NO_ALARM 0 /* 没警告*/ #define QD_NO_ZIPPER_ALARM 1 /* 没拉链,自动停机*/ #define QD_KA_DAI_ALARM 2 /* 卡带异常*/ #define QD_SM_YUANWEI 3 /* 上模上限位*/ #define QD_SM_DAOWEI 4 /* 上模下限位*/ #define QD_XM_YUANWEI 5 /* 下模上限位*/ #define QD_XM_DAOWEI 6 /* 下模下限位*/ #define QD_BACK_ALARM 7 #define QD_TOTAL_ALARM 8 #define QD_TL_ALARM 9 #define QD_GZ_ALARM 10 #define QD_JD_ORIGIN_ALARM 11 #define QD_DEC_ALARM 12 #define QD_BL_ALARM 17 #define QD_SM_ALARM 18 #define QD_LENGTH_LONG_ALARM 19 #define QD_LENGTH_SHORT_ALARM 20 #define QD_JD_IN_ALARM 21 #define QD_YL_LIMIT_ALARM 22 #define QD_STOP_IN_ALARM 23 #define QD_ERCI_XQ_ALARM 24 #define QD_LT_ERROR_ALARM 25 #define QD_SAFE_DOOR_ALARM 26 #define VAVLE_ALARM_TIME 3000 #define MOTOR_ALARM_TIME 5000 #define QD_PARAM_ZIPPER_LENGTH (user_datas[1] | (user_datas[2] >> 16)) #define QD_PARAM_SET_TOTAL (user_datas[74] | (user_datas[75] >> 16)) #define QD_PARAM_MAX_BACK_LENGTH (user_datas[42] | (user_datas[43] >> 16)) #define QD_PARAM_ON_BACK_LENGTH user_datas[5] #define QD_PARAM_SJZ_LENGTH user_datas[19] #define QD_PARAM_FZ_LENGTH user_datas[22] #define QD_PARAM_Go_LOW_SPEED_LENGTH user_datas[16] #define QD_PARAM_Back_LOW_SPEED_LENGTH user_datas[6] #define QD_PARAM_BACK_LENGTH user_datas[27] #define QD_PARAM_GO_HIGH_SPEED user_datas[15] #define QD_PARAM_GO_LOW_SPEED user_datas[17] #define QD_PARAM_BACK_SPEED user_datas[18] #define QD_PARAM_CUT_BACK_SPEED user_datas[26] #define QD_PARAM_HL_LENGTH user_datas[29] #define QD_PARAM_TABLE_NUM user_datas[40] #define QD_PARAM_CYCLE_LENGTH user_datas[38] #define QD_PARAM_CYCLE_PULSE user_datas[39] #define QD_PARAM_FIRST_SPEED user_datas[9] #define QD_PARAM_ZHA_SHU user_datas[85] #define QD_PARAM_NOW_CNT user_datas[84] #define QD_PARAM_DELAY_CS (user_datas[20] * 10) #define QD_PARAM_CS_TIME (user_datas[21] * 10) #define QD_PARAM_CS_COLD_TIME (user_datas[10] * 10) #define QD_PARAM_ZS_STOP_TIME (user_datas[11] * 10) #define QD_PARAM_DELAY_BACK (user_datas[12]*10) #define QD_PARAM_DELAY_FZ (user_datas[13]*10) #define QD_PARAM_CYCLE_DELAY (user_datas[14]*10) #define QD_PARAM_YD_DELAY (user_datas[4]*10) #define QD_PARAM_GZ_DELAY (user_datas[0]*10) #define QD_PARAM_CUT_DELAY (user_datas[7]*10) #define QD_PARAM_CUT_BACK_DELAY (user_datas[8]*10) #define QD_PARAM_TB_TIME (user_datas[23]*10) #define QD_PARAM_MOTOR_DELAY_LENGTH user_datas[41] #define QD_PARAM_TFK_DELAY (user_datas[44]*10) #define QD_PARAM_TL_MODE 0//user_datas[45] //推链方式0为气缸1为步进 #define QD_PARAM_TL_CYCLE_LENGTH user_datas[46] #define QD_PARAM_TL_CYCLE_PULSE user_datas[47] #define QD_PARAM_TL_SPEED user_datas[48] #define QD_PARAM_TL_LENGTH user_datas[49] #define QD_PARAM_DELAY_CHECK user_datas[50] #define QD_PARAM_DAO_MODE user_datas[51] //0为双刀1为单刀 #define QD_PARAM_DANDAO_MODE_LENGTH user_datas[52] #define QD_PARAM_OFFSET_LENGTH user_datas[53] #define QD_PARAM_GOUZHEN_LENGTH user_datas[54] #define QD_PARAM_TIAOSHI_MODE user_datas[55] #define QD_PARAM_DELAY_HL_LENGTH user_datas[56] #define QD_PARAM_HL_ENABLE user_datas[33] #define QD_PARAM_CS_ENABLE user_datas[90] #define QD_PARAM_XM_ENABLE user_datas[35] //0为下模不动带推链 1为下模工作带锁模 #define QD_PARAM_CS_MODE user_datas[36] //0为气切1为超声切 #define QD_PARAM_DELAY_XM (user_datas[58]*10) #define QD_PARAM_DELAY_XM_LENGTH user_datas[59] #define QD_PARAM_BACK_LOW_SPEED user_datas[60] #define QD_PARAM_NO_LT_DELAY_CHECK user_datas[63] #define QD_PARAM_ERROR_LENGTH user_datas[64] #define QD_PARAM_DELAYBACK_SM (user_datas[65]*10) #define QD_PARAM_SL_LENGTH user_datas[66] #define QD_PARAM_TC_LENGTH user_datas[67] #define QD_PARAM_DELAY_SJ_TIME user_datas[68] #define QD_PARAM_XHG_LENGTH user_datas[69] #define QD_PARAM_DELAY_BL_BACK user_datas[70] #define QD_PARAM_MAX_ERROR_LENGTH user_datas[71] #define QD_PARAM_MIN_SPEED user_datas[72] #define QD_PARAM_RUN_STATE user_datas[250] #define QD_PARAM_YD_ENABLE 1 #define QD_PARAM_DC_MODE 1//user_datas[31] //后退定寸模式,1为钩针,0为不用钩针 #define QD_PARAM_DEC_MODE user_datas[30] //后退方式 1为输入长度数控,0为前两条测长 #define QD_PARAM_GO_MODE 1//1前进使用数控降速 #define QD_PARAM_BACK_MODE user_datas[61]//1后退使用数控降速 #define QD_PARAM_BACK_ALARM_MODE 1 //后退限位模式 0为数控,1为感应限位 #define QD_PARAM_TFK_ENABLE 1 #define QD_PARAM_LT_ENABLE user_datas[62] #define QD_SAVE_POS (user_datas[200] | (user_datas[201] >> 16)) #define QD_PARAM_BL_ENABLE user_datas[57] #define QD_PARAM_YL_HIGH_SPEED user_datas[86] #define QD_PARAM_YL_LOW_SPEED user_datas[87] #define QD_PARAM_JD_DELAY (user_datas[88]*10) #define QD_PARAM_START_SPEED user_datas[89] #define QD_PARAM_ACC_SPEED user_datas[90] #define QD_PARAM_YL_TRANS_LENGTH user_datas[91] #define QD_PARAM_YL_SL_TIME (user_datas[92]*10) #define QD_PARAM_YL_SL_SPEED user_datas[93] #define QD_PARAM_YL_CYCLE_LENGTH user_datas[94] #define QD_PARAM_YL_CYCLE_PULSE user_datas[95] #define QD_PARAM_LONG_MODE user_datas[96] #define QD_PARAM_DELAY_YL (user_datas[97]*10) #define QD_PARAM_SJ_TIME (user_datas[98]*10) #define QD_PARAM_SJ_JZ_TIME (user_datas[99]*10) #define QD_PARAM_DELAY_GO (user_datas[101]*10) #define QD_PARAM_GO_LENGTH user_datas[102] #define QD_PARAM_SJ_ENABLE user_datas[103] #define QD_PARAM_CQ_TIME (user_datas[104]*10) #define QD_PARAM_GZ_BACK_DELAY_LENGTH user_datas[105] #define QD_PARAM_SPEED_MODE 0//user_datas[106] #define QD_PARAM_DELAY_YL_BACK user_datas[107] #define QD_PARAM_DELAY_LONG_GO (user_datas[108]*10) #define QD_PARAM_LATOU_ERROR_LENGTH user_datas[109] #define QD_PARAM_ERCI_XQ user_datas[110] #define QD_PARAM_ERCI_XQ_DELAY user_datas[111] #define QD_PARAM_YL_OUT_DELAY user_datas[112] #define QD_PARAM_ZY_BACK_DELAY user_datas[113] #define QD_PARAM_LT_CHECK_LENGTH user_datas[114] #define QD_PARAM_ERCI_CHECK_MODE user_datas[115] #define QD_PARAM_XM_TD_DELAY user_datas[116] #define QD_PARAM_YL_OUT_LENGTH user_datas[117] #define QD_PARAM_ERCI_TD_ENABLE user_datas[118] #define QD_PARAM_TL_DELAY (user_datas[119]*10) #define QD_AutoDelay cDelayTime1 #define QD_MotorDelay cDelayTime2 #define QD_XiaQieDelay cDelayTime3 #define QD_KaDaiDelay cDelayTime4 #define QD_CSDelay cDelayTime5 #define QD_TBDelay cDelayTime6 #define QD_TFKDelay cDelayTime7 #define QD_TLDelay cDelayTime8 #define QD_CheckDelay cDelayTime9 #define QD_ShenJiangDelay cDelayTime10 #define QD_YLBackDelay cDelayTime11 #define QD_XMDelay cDelayTime12 #define QD_GZDelay cDelayTime13 #define QD_BLDelay cDelayTime14 #define QD_CQDelay cDelayTime15 #define QD_BUTTONDelay cDelayTime16 #define QD_AutoStep cStepMByte #define QD_MotorStep cStepMByte1 #define QD_XiaQieStep cStepMByte2 #define QD_YuanDianStep cStepMByte3 #define QD_TuiLianStep cStepMByte4 #define QD_TuiFangKuaiStep cStepMByte5 #define QD_BinLianStep cStepMByte6 #define QD_ShenJiangStep cStepMByte7 #define QD_MotorStep2 cStepMByte8 //超声花边切输入输出 #define QD_GUO_LIAN_IN X02 #define QD_GUO_LIAN_IN_UP (X02 && !OLDX02) #define QD_GUO_LIAN_IN_DW (!X02 && OLDX02) #define QD_LATOU_IN X03 #define QD_GOUZHEN_IN X04 #define QD_QIAN_LIMIT_IN X05 #define QD_QIAN_LIMIT_IN_UP (X05 && !OLDX05) #define QD_QIAN_DEC_IN X06 #define QD_QIAN_DEC_IN_UP (X06 && !OLDX06) #define QD_QIAN_DEC_IN_DW (!X06 && OLDX06) #define QD_BACK_LIMIT_IN X07 #define QD_BACK_LIMIT_IN_UP (X07 && !OLDX07) #define QD_JD_IN X10 #define QD_SHANG_MU_ORIGIN_IN X11 #define QD_SHANG_MU_LIMIT_IN X12 #define QD_SHANG_MU_LIMIT_IN_DW (!X12 && OLDX12) #define QD_START_IN X13 #define QD_START_IN_UP (X13 && !OLDX13) #define QD_STOP_IN X14 #define QD_STOP_IN_UP (X14 && !OLDX14) #define QD_YL_ORIGIN_IN X15 #define QD_SAFE_DOOR_IN X16 #define QD_SAFE_DOOR_IN_OLD OLDX16 #define QD_XIA_MU_LIMIT_IN X17 #define QD_XIA_MU_LIMIT_IN_UP (X17 && !OLDX17) #define QD_TD_IN X30 #define QD_JD_ORIGIN_IN X35 #define QD_YL_DIR Y00 #define QD_XM_VAVLE Y01 #define QD_BL_VAVLE Y02 #define QD_YLOUT_VAVLE Y03 #define QD_JD_VAVEL Y04 #define QD_GZ_VAVLE Y05 #define QD_SM_VAVLE Y06 #define QD_YL_VAVLE Y07 #define QD_JZ_DIR Y10 #define QD_YLSZ_OUT Y11 #define QD_CQ_VAVLE Y12 #define QD_TABLE_VAVLE Y13 #define QD_SZ_OUT Y14 #define QD_CS_OUT Y30 #define QD_TD_VAVLE Y20 #define QD_RUNLED Y21 #define QD_STOPLED Y22 #define QD_STAYLED Y15 #define QD_ZY_VAVLE Y24 #define QD_SD_VAVLE Y25 #define QD_YD_VAVLE Y26 #define QD_YTZ_VAVLE Y23 #define QD_TD2_VAVLE Y27 #define QD_L_UP_VAVLE Y13 #define QD_R_UP_VAVLE Y03 #define QD_R_JD Y01 #define QD_TFK_VAVEL Y11 #define QD_TL_VAVLE Y13 #define QD_YBD_VAVLE Y25 //M0~M4全局固定使用 /* #define bRunning M0000 #define bStart M0001 #define bStop M0002 #define bAlarmStop M0003 #define bClearTotal M0004 */ #define QD_bSM M0006 #define QD_bXM M0007 #define QD_bClearTotal M0008 #define QD_bXiaQie M0009 #define QD_bQianDianDW M0010 #define QD_bChaoSheng M0011 #define QD_bJiaDai M0012 #define QD_bGoMotor M0013 #define QD_bBackMotor M0014 #define QD_bTL M0015 #define QD_bYD M0016 #define QD_bGZ M0017 #define QD_bJD M0018 #define QD_bHL M0019 #define QD_bYuanDianDW M0020 #define QD_bTestCS M0021 #define QD_bSingle M0022 #define QD_bTFK M0023 #define QD_bTB M0024 #define QD_bYBD M0025 #define QD_bClearNowTotal M0026 #define QD_bTS M0027 #define QD_bBL M0028 #define QD_bSetGZMode M0029 #define QD_bYL M0030 #define QD_bYLGO_MOTOR M0031 #define QD_bYLBACK_MOTOR M0032 #define QD_bR_UP M0033 #define QD_bR_JD M0034 #define QD_bCQ M0035 #define QD_bYLOUT M0036 #define QD_bTable M0037 #define QD_bTD M0038 #define QD_bZY M0039 #define QD_bSD M0040 #define QD_bYTZ M0041 #define QD_bERCI M0042 #define QD_bChangeMode M0043 #define QD_bChangeDecMode M0044 #else extern void QueDuan_Action(void); extern void QueDuan_InitAction(void); extern void QueDuanEx_ExtiActionX31(void); extern void FastTimerAction(void); #define QD_DIR_P 1 #define QD_DIR_N 0 #define QD_YDIR_P 0 #define QD_YDIR_N 1 #define QD_TOTAL_ADDR 76 #define QD_ALARM_ADDR 100 #define QD_PROSPEED_ADDR 78 #define QD_BACK_INDUCTION_MODE 0 //后退纯感应方式 #define QD_BACK_MEMORY_MODE 1 //后退记忆长度方式 #define QD_BACK_NOMAL_DEC_MODE 0 //后退感应减速方式 #define QD_BACK_DIGITAL_MODE 1 //后退数控减速方式 /* * 警告类型 警告编号 */ #define QD_NO_ALARM 0 /* 没警告*/ #define QD_NO_ZIPPER_ALARM 1 /* 没拉链,自动停机*/ #define QD_KA_DAI_ALARM 2 /* 卡带异常*/ #define QD_SM_YUANWEI 3 /* 上模上限位*/ #define QD_SM_DAOWEI 4 /* 上模下限位*/ #define QD_XM_YUANWEI 5 /* 下模上限位*/ #define QD_XM_DAOWEI 6 /* 下模下限位*/ #define QD_BACK_ALARM 7 #define QD_TOTAL_ALARM 8 #define QD_TL_ALARM 9 #define QD_GZ_ALARM 10 #define QD_JD_ORIGIN_ALARM 11 #define QD_DEC_ALARM 12 #define QD_BL_ALARM 17 #define QD_SM_ALARM 18 #define QD_LENGTH_LONG_ALARM 19 #define QD_LENGTH_SHORT_ALARM 20 #define VAVLE_ALARM_TIME 3000 #define MOTOR_ALARM_TIME 5000 #define QD_PARAM_GZ_DELAY (user_datas[0]*10) #define QD_PARAM_ZIPPER_LENGTH (user_datas[1] | (user_datas[2] >> 16)) #define QD_PARAM_TL_DELAY (user_datas[3]*10) #define QD_PARAM_YD_DELAY (user_datas[4]*10) #define QD_PARAM_CQ_DELAY (user_datas[5]*10) #define QD_PARAM_BACK_LOW_SPEED_LENGTH user_datas[6] #define QD_PARAM_CUT_DELAY (user_datas[7]*10) #define QD_PARAM_CUT_BACK_DELAY (user_datas[8]*10) #define QD_PARAM_FIRST_SPEED user_datas[9] #define QD_PARAM_CS_COLD_TIME (user_datas[10] * 10) #define QD_PARAM_ZS_STOP_TIME (user_datas[11] * 10) #define QD_PARAM_DELAY_BACK (user_datas[12]*10) #define QD_PARAM_CYCLE_DELAY (user_datas[14]*10) #define QD_PARAM_GO_HIGH_SPEED user_datas[15] #define QD_PARAM_GO_LOW_SPEED_LENGTH user_datas[16] #define QD_PARAM_GO_LOW_SPEED user_datas[17] #define QD_PARAM_BACK_SPEED user_datas[18] #define QD_PARAM_BACK_LENGTH user_datas[19] #define QD_PARAM_DELAY_CS (user_datas[20] * 10) #define QD_PARAM_CS_TIME (user_datas[21] * 10) #define QD_PARAM_FZ_LENGTH user_datas[22] #define QD_PARAM_TB_TIME (user_datas[23]*10) #define QD_PARAM_JD_DELAY (user_datas[24]*10) #define QD_PARAM_CUT_BACK_SPEED user_datas[26] #define QD_PARAM_SJZ_LENGTH user_datas[27] #define QD_PARAM_BACK_MODE user_datas[30] //后退方式 1为记忆长度,0为感应方式 #define QD_PARAM_HL_ENABLE 1// user_datas[33] #define QD_PARAM_XM_ENABLE user_datas[35] #define QD_PARAM_CS_MODE user_datas[36] //0为气切1为超声切 #define QD_PARAM_CYCLE_LENGTH user_datas[38] #define QD_PARAM_CYCLE_PULSE user_datas[39] #define QD_PARAM_TABLE_NUM user_datas[40] #define QD_PARAM_MOTOR_DELAY_LENGTH user_datas[41] #define QD_PARAM_TFK_DELAY (user_datas[44]*10) #define QD_PARAM_START_SPEED user_datas[45] #define QD_PARAM_ACC user_datas[46] #define QD_PARAM_DCC user_datas[47] #define QD_PARAM_CHECK_BACK_HSPEED user_datas[48] #define QD_PARAM_CHECK_BACK_LSPEED user_datas[49] #define QD_PARAM_DELAY_CHECK user_datas[50] #define QD_PARAM_GOUZHEN_LENGTH user_datas[54] #define QD_PARAM_TIAOSHI_MODE user_datas[55] #define QD_PARAM_DELAY_HL_LENGTH user_datas[56] #define QD_PARAM_BL_ENABLE 1//user_datas[57] #define QD_PARAM_DELAY_XM (user_datas[58]*10) #define QD_PARAM_DELAY_XM_LENGTH user_datas[59] #define QD_PARAM_BACK_LOW_SPEED user_datas[60] #define QD_PARAM_DEC_MODE user_datas[61]//0为使用感应减速 1后退使用数控降速 #define QD_PARAM_LT_ENABLE user_datas[62] #define QD_PARAM_NO_LT_DELAY_CHECK user_datas[63] #define QD_PARAM_ERROR_LENGTH user_datas[64] #define QD_PARAM_DELAYBACK_SM (user_datas[65]*10) #define QD_PARAM_TC_LENGTH user_datas[67] #define QD_PARAM_FIRST_GO_HIGHSPEED user_datas[69] #define QD_PARAM_LENGTH_MODE user_datas[70] #define QD_PARAM_FIRST_BACK_LOWSPEED user_datas[71] #define QD_PARAM_SET_TOTAL (user_datas[74] | (user_datas[75] >> 16)) #define QD_PARAM_CS_ENABLE user_datas[80] #define QD_PARAM_NOW_CNT user_datas[84] #define QD_PARAM_ZHA_SHU user_datas[85] #define QD_PARAM_NO_POS user_datas[86] #define QD_PARAM_ZIPPER_LENGTH_INCH (user_datas[87] | (user_datas[88] >> 16)) #define QD_PARAM_ZIPPER_TOOTH (user_datas[89] | (user_datas[90] >> 16)) #define QD_MODE_SELECT user_datas[91] #define QD_JIZHUN_CISHU user_datas[92] //基准齿数 #define QD_JIZHUN_LEN user_datas[93] //基准长度 //3# #define QD_JIZHUN_CISHU1 user_datas[94] //基准齿数 #define QD_JIZHUN_LEN1 user_datas[95] //基准长度 //5# #define QD_JIZHUN_CISHU2 user_datas[96] //基准齿数 #define QD_JIZHUN_LEN2 user_datas[97] //基准长度 //8# #define QD_JIZHUN_CISHU3 user_datas[98] //基准齿数 #define QD_JIZHUN_LEN3 user_datas[99] //基准长度 //特殊刀模 #define QD_JIZHUN_CISHU4 user_datas[101] //基准齿数 #define QD_JIZHUN_LEN4 user_datas[102] //基准长度 #define QD_COUNT_DIR user_datas[103] //数齿方向 #define QD_FILTER user_datas[104] //数齿滤波次数 #define QD_PARAM_TL_MODE 0 #define QD_PARAM_ON_BACK_LENGTH 2000 #define QD_AutoDelay cDelayTime1 #define QD_MotorDelay cDelayTime2 #define QD_XiaQieDelay cDelayTime3 #define QD_ChuiQiDelay cDelayTime4 #define QD_CSDelay cDelayTime5 #define QD_TBDelay cDelayTime6 #define QD_TFKDelay cDelayTime7 #define QD_TLDelay cDelayTime8 #define QD_CheckDelay cDelayTime9 #define QD_AlarmDelay cDelayTime10 #define QD_SJDelay cDelayTime11 #define QD_AutoStep cStepMByte #define QD_MotorStep cStepMByte1 #define QD_XiaQieStep cStepMByte2 #define QD_YuanDianStep cStepMByte3 #define QD_TuiLianStep cStepMByte4 #define QD_CheckLengthStep cStepMByte5 #define QD_BinLianStep cStepMByte6 //超声花边切输入输出 #define START_IN X00 #define START_IN_UP (X00 && !OLDX00) #define STOP_IN X01 #define STOP_IN_UP (X01 && !OLDX01) #define QD_KADAI_IN X02 #define QD_GOUZHEN_IN X04 #define QD_QIAN_LIMIT_IN X05 #define QD_QIAN_LIMIT_IN_UP (X05 && !OLDX05) #define QD_QIAN_DEC_IN X06 #define QD_QIAN_DEC_IN_UP (X06 && !OLDX06) #define QD_BACK_LIMIT_IN X07 #define QD_BACK_LIMIT_IN_UP (X07 && !OLDX07) #define QD_JD_ORIGIN_IN X10 #define QD_SHANG_MU_ORIGIN_IN X11 #define QD_SHANG_MU_LIMIT_IN X12 #define QD_SHANG_MU_LIMIT_IN_DW (!X12 && OLDX12) #define QD_GUO_LIAN_IN X17 #define QD_GUO_LIAN_IN_UP (X17 && !OLDX17) #define QD_GUO_LIAN_IN_DW (!X17 && OLDX17) #define QD_XIA_MU_LIMIT_IN X20 #define QD_COUNT_IN X17 #define QD_COUNT_IN_UP (X17 && !OLDX17) #define QD_COUNT_IN_DW (!X17 && OLDX17) #define QD_GZ_VAVLE Y00 #define QD_YD_VAVLE Y01 #define QD_SC_VAVLE Y01 #define QD_JD_VAVEL Y02 #define QD_SM_VAVLE Y04 #define QD_XM_VAVLE Y06 #define QD_SZ_OUT Y07 #define QD_CS_OUT Y15 #define QD_WARMMING_LED Y11 #define QD_COUNT_OUT Y12 #define QD_TABLE_VAVLE Y13 #define QD_CQ_VAVLE Y14 //推方块气切新增输入输出 //没有下模以及下模上限X17 Y06 //没有超声输出Y10 没有压带Y01 // #define QD_TFK_VAVEL Y03 #define QD_TL_VAVLE Y05 #define QD_YBD_VAVLE Y14 #define QD_JZ_DIR Y10 #define QD_BL_VAVLE Y11 #define QD_XHG_VAVLE Y12 //M0~M4全局固定使用 #define bRunning M0000 #define bStart M0001 #define bStop M0002 #define bAlarmStop M0003 #define bClearTotal M0004 #define QD_bSM M0006 #define QD_bXM M0007 #define QD_bClearTotal M0008 #define QD_bXiaQie M0009 #define QD_bQianDianDW M0010 #define QD_bChaoSheng M0011 #define QD_bJiaDai M0012 #define QD_bGoMotor M0013 #define QD_bBackMotor M0014 #define QD_bTL M0015 #define QD_bYD M0016 #define QD_bGZ M0017 #define QD_bJD M0018 #define QD_bHL M0019 #define QD_bYuanDianDW M0020 #define QD_bTestCS M0021 #define QD_bSingle M0022 #define QD_bTFK M0023 #define QD_bTB M0024 #define QD_bYBD M0025 #define QD_bClearNowTotal M0026 #define QD_bTS M0027 #define QD_bBL M0028 #define QD_bAdd M0029 #define QD_bDec M0030 #define QD_bSetLength M0031 #define QD_bSetInch M0032 #define QD_bSetTooth M0033 #define QD_bCQ M0034 #endif #endif #endif