|  |  |  | 
|---|
|  |  |  | public CrnModeType modeType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机任务完成 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short taskFinish; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 校验结果 1表示检验成功 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short valid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 1 = 急停 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short eStop; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 异常码 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short alarm; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 任务号 | 
|---|
|  |  |  | 
|---|
|  |  |  | public Short level; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机当前排 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short row; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机当前巷道号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short lane; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机通讯状态 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean connStatus; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 申请入库修正 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean correction; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 托盘号错 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean tuError; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 取货无箱 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean noneError; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 双重入库 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean stockError; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 作业数据无效 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean jobInvalid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 空闲状态 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean idle; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 控制柜使能 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean control; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 停准 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean stopQuasi; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 运行 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean running; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 故障 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean fault; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 货叉中位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean forkHome; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 单伸位货叉左位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean forkSingleLeft; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 单伸位货叉右位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean forkSingleRight; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 双伸位货叉左位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean forkDoubleLeft; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 双伸位货叉右位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean forkDoubleRight; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 单伸位高位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean singleHigh; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 单伸位低位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean singleLow; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 双伸位高位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean doubleHigh; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 双伸位低位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean doubleLow; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 站台高位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean platformHigh; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 站台低位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Boolean platformLow; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 当前货叉位置 | 
|---|
|  |  |  | * 0 = 货叉原位 | 
|---|
|  |  |  | * 1 = 货叉在左侧 | 
|---|
|  |  |  | * 2 = 货叉在右侧 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short forkPos; | 
|---|
|  |  |  | public Short forkPos = -1; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public CrnForkPosType forkPosType; | 
|---|
|  |  |  | public CrnForkPosType forkPosType = CrnForkPosType.NONE; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 当前载货台位置 | 
|---|
|  |  |  | * 0 = 下定位 | 
|---|
|  |  |  | * 1 = 上定位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short liftPos; | 
|---|
|  |  |  | public Short liftPos = -1; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public CrnLiftPosType liftPosType; | 
|---|
|  |  |  | public CrnLiftPosType liftPosType = CrnLiftPosType.ERROR; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 走行在定位 | 
|---|
|  |  |  | * 0 = 在定位 | 
|---|
|  |  |  | * 1 = 不在定位 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short walkPos; | 
|---|
|  |  |  | public Short walkPos = 0; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 拨指位置 | 
|---|
|  |  |  | 
|---|
|  |  |  | public CrnFingerPosType fingerPosType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机任务完成 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short taskFinish; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 载货台有物 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Short loaded; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 异常码(数值显示) | 
|---|
|  |  |  | * 堆垛机垂直故障代码(数值显示) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Short alarm1; | 
|---|
|  |  |  | private Integer alarm1 = 0; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private Short temp1; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机水平故障代码(数值显示) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Integer alarm2 = 0;; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private Short temp2; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机货叉故障代码(数值显示) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Integer alarm3 = 0;; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private Short temp3; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private Short temp4; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机状态故障代码(数值显示) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Integer alarm4 = 0;; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 异常1 | 
|---|
|  |  |  | 
|---|
|  |  |  | private CrnError4 crnError4; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 异常5 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private boolean[] error5; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private CrnError5 crnError5; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 异常6 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private boolean[] error6; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private CrnError6 crnError6; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * X行走线速度m/min | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Float xSpeed; | 
|---|
|  |  |  | private Float xSpeed = 0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * Y行走线速度m/min | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Float ySpeed; | 
|---|
|  |  |  | private Float ySpeed = 0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * Z行走线速度m/min | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Float zSpeed; | 
|---|
|  |  |  | private Float zSpeed = 0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机累计走行距离km | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Float xDistance; | 
|---|
|  |  |  | public Float xDistance = 0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机累计升降距离km | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Float yDistance; | 
|---|
|  |  |  | public Float yDistance = 0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 堆垛机累计走行时长h | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Float xDuration; | 
|---|
|  |  |  | public Float xDuration = 0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | /**w | 
|---|
|  |  |  | * 堆垛机累计升降时长h | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Float yDuration; | 
|---|
|  |  |  | public Float yDuration = 0F; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setMode(Short mode) { | 
|---|
|  |  |  | this.mode = mode; | 
|---|
|  |  |  | 
|---|
|  |  |  | this.crnError4.xLooseBrakeTimeout = error4[1]; | 
|---|
|  |  |  | this.crnError4.yLooseBrakeTimeout = error4[2]; | 
|---|
|  |  |  | this.crnError4.zLooseBrakeTimeout = error4[3]; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setError5(boolean[] error5) { | 
|---|
|  |  |  | this.error5 = error5; | 
|---|
|  |  |  | this.crnError5 = new CrnError5(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setError6(boolean[] error6) { | 
|---|
|  |  |  | this.error6 = error6; | 
|---|
|  |  |  | this.crnError6 = new CrnError6(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|