| | |
| | | package com.zy.core.model.protocol; |
| | | |
| | | import com.zy.core.enums.CrnForkPosType; |
| | | import com.zy.core.enums.CrnLiftPosType; |
| | | import com.zy.core.enums.CrnModeType; |
| | | import com.zy.core.enums.CrnStatusType; |
| | | import com.zy.asrs.entity.BasCrnp; |
| | | import com.zy.core.enums.*; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | public Short walkPos; |
| | | |
| | | /** |
| | | * 拨指位置 |
| | | * 0 = 不在定位 |
| | | * 1 = 上定位 |
| | | * 2 = 下定位 |
| | | */ |
| | | public Short fingerPos; |
| | | |
| | | public CrnFingerPosType fingerPosType; |
| | | |
| | | /** |
| | | * 堆垛机任务完成 |
| | | */ |
| | | public Short taskFinish; |
| | |
| | | * 异常码(数值显示) |
| | | */ |
| | | private Short alarm1; |
| | | |
| | | private Short temp1; |
| | | |
| | | private Short temp2; |
| | | |
| | | private Short temp3; |
| | | |
| | | private Short temp4; |
| | | |
| | | /** |
| | | * 异常1 |
| | |
| | | this.status = CrnStatusType.get(type).id.shortValue(); |
| | | } |
| | | |
| | | public void setFingerPos(Short type) { |
| | | this.fingerPos = type; |
| | | this.fingerPosType = CrnFingerPosType.get(type); |
| | | } |
| | | |
| | | public void setError1(boolean[] error1){ |
| | | this.error1 = error1; |
| | | this.crnError1 = new CrnError1(); |
| | |
| | | */ |
| | | private String lastIo = "I"; |
| | | |
| | | |
| | | public BasCrnp toSqlModel(BasCrnp basCrnp){ |
| | | basCrnp.setCrnErr(alarm1.longValue()); |
| | | basCrnp.setWrkNo(taskNo.intValue()); |
| | | return basCrnp; |
| | | } |
| | | } |