#
lty
昨天 276d837c0bb808e6d93ac7c7ba6abe654c75552e
src/main/java/com/zy/core/model/protocol/StaProtocol.java
@@ -54,6 +54,9 @@
    // 锁定标记
    private boolean pakMk = true;
    private boolean pakMkRun = true;
    private boolean pakMkTask = true;
    private boolean pakMkWalk = true;
    // 入库暂存数
    private Short inQty;
@@ -108,6 +111,30 @@
    private Boolean upcontactErr = false; //顶升电机接触器故障
    // 电路保护器断开
    private boolean errOther1;
    // 光电异常
    private boolean errOther2;
    // 运行超时
    private boolean errOther3;
    // 占位超时
    private boolean errOther4;
    // 有任务无货故障
    private boolean errOther5;
    // 变频器故障
    private boolean errOther6;
    // 接触器故障
    private boolean errOther7;
    // 顶升电机接触器故障
    private boolean errOther8;
    //故障信号--------------------------------------------------------
    // 故障读取锁定标记
@@ -157,6 +184,15 @@
    private Boolean sensorArriveR = false; //右移方向到位
    private Boolean sensorDecR = false; //右移方向减速
    // Super有无信息
    private boolean loadingSuper = true;
    //指令ID
    private Integer commandId;
    private Double grossWt = 0D;
    private String errorDev = "-";
    private String barcodeNow = "-";
    public BasDevpErrorLog toSqlModelError(){
        BasDevpErrorLog basDevpErrorLog = new BasDevpErrorLog();
@@ -244,6 +280,53 @@
        }
        return null;
    }
    public int getErrorDev$(){
        if (errOther1){
            return 1;
        }
        if (errOther2){
            return 2;
        }
        if (errOther3){
            return 3;
        }
        if (errOther4){
            return 4;
        }
        if (errOther5){
            return 5;
        }
        if (errOther6){
            return 6;
        }
        if (errOther7){
            return 7;
        }
        return 0;
    }
    public java.util.List<java.util.Map<String, Object>> getExceptions() {
        java.util.List<java.util.Map<String, Object>> list = new java.util.ArrayList<>();
        if (errOther1) list.add(createException(0, "电路保护器断开"));
        if (errOther2) list.add(createException(1, "光电异常"));
        if (errOther3) list.add(createException(2, "运行超时"));
        if (errOther4) list.add(createException(3, "占位超时"));
        if (errOther5) list.add(createException(4, "有任务无货故障"));
        if (errOther6) list.add(createException(5, "变频器故障"));
        if (errOther7) list.add(createException(6, "接触器故障"));
        if (errOther8) list.add(createException(7, "顶升电机接触器故障"));
        return list;
    }
    private java.util.Map<String, Object> createException(int code, String msg) {
        java.util.Map<String, Object> map = new java.util.HashMap<>();
        map.put("code", code);
        map.put("msg", msg);
        return map;
    }
//    public Integer getNearbySta() {
//        if (getNearbySta == null) return 0;
//