| | |
| | | import com.zy.core.enums.CrnStatusType; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Created by vincent on 2020/8/7 |
| | | */ |
| | | import java.util.Map; |
| | | |
| | | @Data |
| | | public class CrnProtocol { |
| | | |
| | |
| | | public Integer mode; |
| | | |
| | | public CrnModeType modeType; |
| | | |
| | | /** |
| | | * 1 = 急停 |
| | | */ |
| | | public Integer eStop; |
| | | |
| | | /** |
| | | * 异常码 |
| | |
| | | /** |
| | | * X行走线速度m/min |
| | | */ |
| | | private Float xSpeed; |
| | | private Integer xSpeed; |
| | | |
| | | /** |
| | | * Y行走线速度m/min |
| | | */ |
| | | private Float ySpeed; |
| | | private Integer ySpeed; |
| | | |
| | | /** |
| | | * Z行走线速度m/min |
| | | */ |
| | | private Float zSpeed; |
| | | private Integer zSpeed; |
| | | |
| | | /** |
| | | * 堆垛机累计走行距离km |
| | | */ |
| | | public Float xDistance; |
| | | public Integer xDistance; |
| | | |
| | | /** |
| | | * 堆垛机累计升降距离km |
| | | */ |
| | | public Float yDistance; |
| | | public Integer yDistance; |
| | | |
| | | /** |
| | | * 堆垛机累计走行时长h |
| | | */ |
| | | public Float xDuration; |
| | | public Integer xDuration; |
| | | |
| | | /** |
| | | * 堆垛机累计升降时长h |
| | | */ |
| | | public Float yDuration; |
| | | public Integer yDuration; |
| | | |
| | | /** |
| | | * 最近一次入出库类型 |
| | |
| | | private Integer crnLane = 1; |
| | | |
| | | /** |
| | | * 称重数据 |
| | | */ |
| | | private Double weight; |
| | | |
| | | /** |
| | | * 条码数据 |
| | | */ |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 日志采集时间 |
| | | */ |
| | | private Long deviceDataLog = System.currentTimeMillis(); |
| | |
| | | */ |
| | | private Long lastCommandTime = System.currentTimeMillis(); |
| | | |
| | | /** |
| | | * 扩展数据 |
| | | */ |
| | | private Map<String, Object> extend; |
| | | |
| | | public void setMode(Integer mode) { |
| | | this.mode = mode; |
| | | this.modeType = CrnModeType.get(mode); |