#ifndef __XYJINSHUDINCUN_H__ #define __XYJINSHUDINCUN_H__ #if FJ_YING_XING_MACHINE==1 extern void JSDC_InitAction(void); extern void JSDC_NiLongXiuCiJiAction(void); extern void JSDC_ExtiActionX20(void); #define JSDC_ALARM_ADDR 100 #define JSDC_ZIPPER_LENGTH_ADDR 17 #define JSDC_TOTAL_ADDR 76 #define JSDC_PROSPEED_ADDR 78 #define JSDC_DIR_P 1 #define JSDC_DIR_N 0 #define JSDC_NO_ALARM 0 #define JSDC_TOTAL_ALARM 1 //到达预设数量 #define JSDC_XIA_CHONG_ALARM 2 // 下冲异常 #define JSDC_KA_DAI_ALARM 3 //卡带感应异常 #define JSDC_XC_ALARM 4 //下冲感应异常 #define JSDC_NO_ZIPPER_ALARM 5 //无尺寸 #define JSDC_NO_GOUZHEN_ALARM 7 //勾针 #define JSDC_LFZ_ORIGIN_ALARM 8 #define JSDC_LFZ_LIMIT_ALARM 9 #define JSDC_RFZ_ORIGIN_ALARM 10 #define JSDC_RFZ_LIMIT_ALARM 11 #define JSDC_LONG_TIME_NO_ZIPPER_ALARM 12 //长时间没有感应到拉链 #define JSDC_NO_SEBIAO_ALARM 13 #define JSDC_SEBIAO_ZIPPER_LENGTH_ALARM 14 //色标尺寸异常 #define JSDC_MOTOR_ALALRM_TIME 20000 #define JSDC_ERRORTIME 3000 //出错时间 #define JSDC_PARAM_CHUIQI_TIME (user_datas[1]*10) // 吹气时间 #define JSDC_TDCQ_TIME (user_datas[2]*10) //拖带吹气时间 #define JSDC_PARAM_DELAY_CHUIQI_TIME (user_datas[3]*10)//延时吹气 #define JSDC_SET_TOTAL user_datas[4] //设置数量 #define JSDC_PARAM_DAOKOU_LENGTH user_datas[13] //刀口长度 #define JSDC_SET_ZIPPER_LENGTH (user_datas[15] | (user_datas[16] << 16)) #define JSDC_SET_REVISE_ZIPPER_LENGTH user_datas[17] //8位变量 #define JSDC_bRunning cCharBuff1 #define JSDC_bAlarmStop cCharBuff2 #define JSDC_cAutoStep cStepMByte #define JSDC_cMotorStep cStepMByte1 #define JSDC_cXiaChongStep cStepMByte2 #define JSDC_cLeftFenZhenStep cStepMByte3 #define JSDC_cJiaoDaoStep cStepMByte5 #define JSDC_cChuiQiStep cStepMByte6 #define JSDC_cSDStep cStepMByte7 #define JSDC_cValveStep cStepMByte8 #define JSDC_cAutoDelay cDelayTime1 #define JSDC_cChuiQiDelay cDelayTime2 #define JSDC_cXiaZhiDelay cDelayTime3 #define JSDC_cGouZhenTime cDelayTime4 #define JSDC_cBudaiCheckDelay cDelayTime5 #define JSDC_cFenZhenLeftDelay cDelayTime6 #define JSDC_cSDDelay cDelayTime7 #define JSDC_cKaDaiDelay cDelayTime8 #define JSDC_cXiaChongDelay cDelayTime9 #define JSDC_cMotorDelay cDelayTime11 #define JSDC_cValveDelay cDelayTime12 //输入 #define JSDC_STOP_IN M0384 //X00停止 #define JSDC_STOP_IN_UP (M0384 && !OLDM384) #define JSDC_SeBiao_IN M0385 //X01色标 #define JSDC_GouZhen_IN M0386 //X02勾针 #define JSDC_ManualXC_IN M0387 //X03手动下冲 #define JSDC_ManualXC_IN_UP (M0387 && !OLDM387) #define JSDC_START_IN M0388 //X04 启动 #define JSDC_START_IN_UP (M0388 && !OLDM388) #define JSDC_XiaChong_ORIGIN M0389 //X05下冲原位 #define JSDC_BuDai_IN M0390 //X06 布袋感应 #define JSDC_LeftXC_IN M0391//X07 左分针到位 #define JSDC_RightXC_IN M0392//X10 右分针到位 #define JSDC_LeftXC_ORIGIN M0393//X11 左分针原位 #define JSDC_RightXC_ORIGIN M0394//X12 右分针原位 #define JSDC_KaDai_IN M0395 //X13卡带感应 #define JSDC_KaDai_IN_UP (M0395 && !OLDM395) //输出 #define JSDC_SZ_OUT M0353 // Y01电机使能 #define JSDC_LeftXC_VAVLE M0354 // Y02 左选齿气阀 #define JSDC_RightXC_VAVLE M0355 // Y03 右选齿气阀 #define JSDC_ChuiQi_VAVLE M0356 // Y04 吹气气阀 #define JSDC_GouZhen_VAVLE M0357 // Y05 勾针气阀 #define JSDC_XiaChong_MOTOR M0358 // Y06 下冲电机 #define JSDC_SeBiao_VAVLE M0359 // Y07 色标感应区分色线 #define JSDC_DingDaoBaoHu_VAVLE M0360 // Y10 顶刀保护 //M位地址位操作 #define JSDC_bStart M0001 #define JSDC_bStop M0002 #define JSDC_bMotorSZ M0005//电机使能 #define JSDC_bLeftXuanChi M0006 //手动左选齿气阀 #define JSDC_bRightXuanChi M0007 //手动右选齿气阀 #define JSDC_bChuiQi M0008 //手动吹气 #define JSDC_bGouZhen M0009 //手动勾针 #define JSDC_bXiaChong M0010 //手动下冲 #define JSDC_bSeBiao M0011 //手动色标感应 #define JSDC_bDingZhen M0012 //手动顶针 #define JSDC_Single M0013 //单循环 #define JSDC_bAddLength M0014 //加尺寸 #define JSDC_bDecLength M0015 //减尺寸 #endif #endif