自动化立体仓库 - WCS系统
#
luxiaotao1123
2020-08-17 fb02f04ec63f00398e343e4b43eda00cce75c56e
src/main/java/com/zy/core/model/protocol/CrnProtocol.java
@@ -74,7 +74,7 @@
     */
    public Short forkPos;
    private CrnForkPosType forkPosType;
    public CrnForkPosType forkPosType;
    /**
     * 当前载货台位置
@@ -110,12 +110,16 @@
    /**
     * 异常1
     */
    private Short error1;
    private boolean[] error1;
    private CrnError1 crnError1;
    /**
     * 异常2
     */
    private Short error2;
    private boolean[] error2;
    private CrnError2 crnError2;
    /**
     * 保留
@@ -125,32 +129,37 @@
    /**
     * X行走线速度m/min
     */
    private Short xSpeed;
    private Float xSpeed;
    /**
     * Y行走线速度m/min
     */
    private Short ySpeed;
    private Float ySpeed;
    /**
     * Z行走线速度m/min
     */
    private Short zSpeed;
    private Float zSpeed;
    /**
     * 堆垛机累计走行距离km
     */
    public Integer xDistance;
    public Float xDistance;
    /**
     * 堆垛机累计升降距离km
     */
    public Integer yDistance;
    public Float yDistance;
    /**
     * 堆垛机累计运行时长h
     * 堆垛机累计走行时长h
     */
    public Integer duration;
    public Float xDuration;
    /**
     * 堆垛机累计升降时长h
     */
    public Float yDuration;
    public void setMode(Short mode) {
        this.mode = mode;
@@ -192,6 +201,48 @@
        this.status = CrnStatusType.get(type).id.shortValue();
    }
    public void setError1(boolean[] error1){
        this.error1 = error1;
        this.crnError1 = new CrnError1();
        this.crnError1.stop = error1[0];
        this.crnError1.xCoverErr = error1[1];
        this.crnError1.yCoverErr = error1[2];
        this.crnError1.zCoverErr = error1[3];
        this.crnError1.rangeErr = error1[4];
        this.crnError1.barcodeErr = error1[5];
        this.crnError1.xFrontLimitErr = error1[6];
        this.crnError1.xBackLimitErr = error1[7];
        this.crnError1.yUpLimitErr = error1[8];
        this.crnError1.yDownLimitErr = error1[9];
        this.crnError1.zLeftLimitErr = error1[10];
        this.crnError1.zRightLimitErr = error1[11];
        this.crnError1.xLocationUpErr = error1[12];
        this.crnError1.xLocationDownErr = error1[13];
        this.crnError1.yLocationUpErr = error1[14];
        this.crnError1.yLocationDownErr = error1[15];
    }
    public void setError2(boolean[] error2){
        this.error2 = error2;
        this.crnError2 = new CrnError2();
        this.crnError2.zLocationUpErr = error2[0];
        this.crnError2.zLocationDownErr = error2[1];
        this.crnError2.wcsCommandErr = error2[2];
        this.crnError2.leftWidthLimitErr = error2[3];
        this.crnError2.rightWidthLimitErr = error2[4];
        this.crnError2.leftLengthLimitErr = error2[5];
        this.crnError2.rightLengthLimitErr = error2[6];
        this.crnError2.highLimitErr = error2[7];
        this.crnError2.leftTakeNoneErr = error2[8];
        this.crnError2.rightTakeNoneErr = error2[9];
        this.crnError2.leftPutLoadErr = error2[10];
        this.crnError2.rightPutLoadErr = error2[11];
        this.crnError2.startErr = error2[12];
        this.crnError2.looseRopeErr = error2[13];
        this.crnError2.safeDoorSwitchErr = error2[14];
        this.crnError2.none = error2[15];
    }
    /**
     * 最近一次入出库类型
     *       I:入库