#
lty
昨天 276d837c0bb808e6d93ac7c7ba6abe654c75552e
src/main/java/com/zy/core/model/protocol/CrnProtocol.java
@@ -189,6 +189,63 @@
    public Float yDuration;
    //堆垛机配置信号--------------------------------------------------------------
    public java.util.List<java.util.Map<String, Object>> getExceptions() {
        java.util.List<java.util.Map<String, Object>> list = new java.util.ArrayList<>();
        if (ibDriveFault) list.add(createException(0, "行走变频器故障"));
        if (ibSupplyFault) list.add(createException(1, "提供变频器故障"));
        if (ibForkDriveFault) list.add(createException(2, "货叉变频器故障"));
        if (ibDriveCircuitFault) list.add(createException(3, "行走断路器故障"));
        if (ibLiftCircuitFault) list.add(createException(4, "提升断路器故障"));
        if (ibForkCircuitFault) list.add(createException(5, "货叉断路器故障"));
        if (ibForwardLimit) list.add(createException(6, "前进限位"));
        if (ibReverseLimit) list.add(createException(7, "后退限位"));
        if (ibDriveStart) list.add(createException(8, "行走原点"));
        if (ibForwardBrakeSpeed) list.add(createException(9, "前进强制低速"));
        if (ibReverseBrakeSpeed) list.add(createException(10, "后退强制低速"));
        if (ibUpLimit) list.add(createException(11, "上升限位"));
        if (ibDownLimit) list.add(createException(12, "下限限位"));
        if (ibUpOrigin) list.add(createException(13, "提升原点"));
        if (ibUpBrakeSpeed) list.add(createException(14, "上升强制低速"));
        if (ibDownBrakeSpeed) list.add(createException(15, "下降强制低速"));
        if (ibPlatformSignal) list.add(createException(16, "载货台探货"));
        if (ibForkMidSignal) list.add(createException(17, "货叉中位信号"));
        if (ibForkLeftLimit) list.add(createException(18, "货叉左极限"));
        if (ibForkRightLimit) list.add(createException(19, "货叉右极限"));
        if (ibFrontOverLimit) list.add(createException(20, "前超限"));
        if (ibRearOverLimit) list.add(createException(21, "后超限"));
        if (ibLeftOverLimit) list.add(createException(22, "左超限"));
        if (ibRightOverLimit) list.add(createException(23, "右超限"));
        if (ibHighOverLimit1) list.add(createException(24, "高超限1"));
        if (ibHighOverLimit2) list.add(createException(25, "高超限2"));
        if (ibHighOverLimit3) list.add(createException(26, "高超限3"));
        if (ibOneExtendLeftLoad1) list.add(createException(27, "一伸左侧探货1"));
        if (ibOneExtendLeftLoad2) list.add(createException(28, "一伸左侧探货2"));
        if (ibOneExtendRightLoad1) list.add(createException(29, "一伸右侧探货1"));
        if (ibOneExtendRightLoad2) list.add(createException(30, "一伸右侧探货2"));
        if (ibTwoExtendLeftLoad1) list.add(createException(31, "二伸左侧探货1"));
        if (ibTwoExtendLeftLoad2) list.add(createException(32, "二伸左侧探货2"));
        if (ibTwoExtendRightLoad1) list.add(createException(33, "二伸右侧探货1"));
        if (ibTwoExtendRightLoad2) list.add(createException(34, "二伸右侧探货2"));
        if (ibSpeedSignal1) list.add(createException(35, "超速信号1"));
        if (ibSpeedSignal2) list.add(createException(36, "超速信号2"));
        if (ibOverweightSignal1) list.add(createException(37, "超重信号1"));
        if (ibOverweightSignal2) list.add(createException(38, "超重信号2"));
        if (ibRopeReleaseSignal1) list.add(createException(39, "松绳信号1"));
        if (ibRopeReleaseSignal2) list.add(createException(40, "松绳信号2"));
        if (ibSafetyClamp) list.add(createException(41, "安全钳"));
        if (ibTightener) list.add(createException(42, "张紧器"));
        if (ibSpeedLimiter) list.add(createException(43, "限速器"));
        if (ibSafetyDoorOpen) list.add(createException(44, "安全门打开"));
        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;
    }
    // 故障读取锁定标记
    private boolean errorMk = false;
    //写入标记