1
zhang
9 天以前 24f6766a113090fb97f9dd399586b61a364702ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.zy.acs.conveyor.core.constant;
 
    /**
     * PLC 报警定义(对应 §2.3)
     */
    public enum PlcAlarmDefinition {
        EMERGENCY_STOP("DB25",1, "急停"),
        LOWER_BREAKER_TRIP("DB25",2, "低位断路器断开"),
        LOWER_INVERTER_FAULT("DB25",3, "低位变频器故障"),
        CONVEYOR_TIMEOUT("DB25",4, "输送运行超时"),
        LIFT_TIMEOUT("DB25",5, "顶升运行超时"),
        TASK_REQUEST_TIMEOUT("DB25",6, "申请任务超时"),
        PALLET_PROTRUSION("DB25",7, "托盘突出报警"),
        TASK_DUPLICATE("DB25",8, "任务重复报警"),
        PRECONDITION_ERROR("DB25",9, "入站过程中前置条件异常");
 
        private final String addressPattern;
        private final int index;          // 报警序号(1-based)
        private final String description;
 
        PlcAlarmDefinition(String addressPattern,int index, String description) {
            this.addressPattern = addressPattern;
            this.index = index;
            this.description = description;
        }
    }