dubin
2025-08-21 2dde411c2736206f43f1ce5562ddc27862e62127
src/main/java/com/zy/core/model/protocol/StaProtocol.java
@@ -101,6 +101,11 @@
    private Boolean upcontactErr = false; //顶升电机接触器故障
    /**
     * 上一次指令下发时间
     */
    private Long lastCommandTime = System.currentTimeMillis();
    public Boolean isErr(){
        if (frontErr || backErr || highErr || leftErr || rightErr || weightErr || barcodeErr){
            return true;
@@ -121,7 +126,7 @@
        basDevp.setLocType2((short) 0);  // 宽窄类型{0:未知,1:窄库位,2:宽库位}
        basDevp.setLocType3((short) 0);  // 轻重类型{0:未知,1:轻库位,2:重库位}
        basDevp.setLocType1(high != low && low ? (short) 1 : (short) 2);
        basDevp.setInQty(weight !=null ?(int)weight : 0);
        basDevp.setMaxWt((double) (weight !=null ?(int)weight : 0));
        return basDevp;
    }