package com.dcs.equipment.constants;

/**
 * 设备ID表用于查询设备在设备参数列表中的索引 TODO 将ID替换为设备识别码
 * @author: wangpx
 * @date: 2025-05-10 11:22
 */
public class EquipmentConstants {
    // 阀门
    public static final Integer D1_OFF = 3;
    public static final Integer D2_ON = 5;
    public static final Integer D2_OFF = 6;
    public static final Integer D5_ON = 8;
    public static final Integer D5_OFF = 9;
    public static final Integer D6_ON = 11;
    public static final Integer D6_OFF = 12;
    public static final Integer D7_ON = 14;
    public static final Integer D7_OFF = 15;
    public static final Integer D11_ON = 17;
    public static final Integer D11_OFF = 18;
    public static final Integer D12_ON = 20;
    public static final Integer D12_OFF = 21;
    public static final Integer D17_ON = 23;
    public static final Integer D17_OFF = 24;
    public static final Integer D3_ON = 28;
    public static final Integer D3_OFF = 29;
    public static final Integer D4_ON = 31;
    public static final Integer D4_OFF = 32;
    public static final Integer D8_ON = 34;
    public static final Integer D8_OFF = 35;
    public static final Integer D9_ON = 37;
    public static final Integer D9_OFF = 38;
    public static final Integer D16_ON = 40;
    public static final Integer D16_OFF = 41;
    public static final Integer N22_ON = 240;
    public static final Integer N22_OFF = 241;
    public static final Integer N23_ON = 242;
    public static final Integer N23_OFF = 243;

    public static final Integer N1 = 154;
    public static final Integer N2 = 156;
    public static final Integer N3 = 158;
    public static final Integer N4 = 160;
    public static final Integer N5 = 162;
    public static final Integer N6 = 164;
    public static final Integer N7 = 166;
    public static final Integer N8 = 168;
    public static final Integer N9 = 170;
    public static final Integer N10 = 172;
    public static final Integer N11 = 174;
    public static final Integer N21 = 176;
    public static final Integer N12 = 178;
    public static final Integer N13 = 180;
    public static final Integer N14 = 182;
    public static final Integer N15 = 184;
    public static final Integer N16 = 186;
    public static final Integer N17 = 188;
    public static final Integer N18 = 190;
    public static final Integer N19 = 192;
    public static final Integer N20 = 194;
    public static final Integer N22 = 196;
    public static final Integer N23 = 198;
    public static final Integer N24 = 200;
    public static final Integer D1 = 209;
    public static final Integer D1_CLOSE = 210;
    public static final Integer D2 = 211;
    public static final Integer D2_CLOSE = 212;
    public static final Integer D5 = 213;
    public static final Integer D5_CLOSE = 214;
    public static final Integer D6 = 215;
    public static final Integer D6_CLOSE = 216;
    public static final Integer D7 = 217;
    public static final Integer D7_CLOSE = 218;
    public static final Integer D11 = 219;
    public static final Integer D11_CLOSE = 220;
    public static final Integer D12 = 221;
    public static final Integer D12_CLOSE = 222;
    public static final Integer D17 = 223;
    public static final Integer D17_CLOSE = 224;
    public static final Integer D3 = 226;
    public static final Integer D3_CLOSE = 227;
    public static final Integer D4 = 228;
    public static final Integer D4_CLOSE = 229;
    public static final Integer D8 = 230;
    public static final Integer D8_CLOSE = 231;
    public static final Integer D9 = 232;
    public static final Integer D9_CLOSE = 233;
    public static final Integer D16 = 234;
    public static final Integer D16_CLOSE = 235;
    public static final Integer N25 = 245;

    // 传感器
    public static final Integer S1_TEMPERATURE = 113;
    public static final Integer S1_PRESSURE = 126;
    public static final Integer S2_TEMPERATURE = 88;
    public static final Integer S2_PRESSURE = 90;
    public static final Integer M1_PRESSURE = 93;
    public static final Integer M2_PRESSURE = 130;
    public static final Integer F1_WEIGHT = 96;

    // 变频器反馈
    // 运行状态
    public static final Integer S1_STATE = 98;
    public static final Integer S2_STATE = 100;
    public static final Integer LB9_STATE = 102;
    public static final Integer LB3_STATE = 104;
    public static final Integer LB6_STATE = 106;
    public static final Integer LB7_STATE = 108;
    public static final Integer F1_STATE = 110;
    // 频率
    public static final Integer S1_FREQUENCY = 118;
    public static final Integer S2_FREQUENCY = 119;
    public static final Integer LB9_FREQUENCY = 120;
    public static final Integer LB3_FREQUENCY = 121;
    public static final Integer LB6_FREQUENCY = 122;
    public static final Integer LB7_FREQUENCY = 123;
    public static final Integer F1_FREQUENCY = 124;

    // 变频器设置
    // 频率
    public static final Integer S1_FREQUENCY_SETTING = 134;
    public static final Integer S2_FREQUENCY_SETTING = 135;
    public static final Integer LB9_FREQUENCY_SETTING = 136;
    public static final Integer LB3_FREQUENCY_SETTING = 137;
    public static final Integer LB6_FREQUENCY_SETTING = 138;
    public static final Integer LB7_FREQUENCY_SETTING = 139;
    public static final Integer F1_FREQUENCY_SETTING = 140;
    // 运行状态
    public static final Integer S1_STATE_SETTING = 141;
    public static final Integer S2_STATE_SETTING = 142;
    public static final Integer LB9_STATE_SETTING = 143;
    public static final Integer LB3_STATE_SETTING = 144;
    public static final Integer LB6_STATE_SETTING = 145;
    public static final Integer LB7_STATE_SETTING = 146;
    public static final Integer F1_STATE_SETTING = 147;


    // TODO 未获取设备参数，待补充
    public static final Integer D14_ON = 0;
    public static final Integer D14_OFF = 0;
    public static final Integer D14 = 0;
    public static final Integer M1_TEMPERATURE = 0;
    public static final Integer LB2_STATE = 26;
    public static final Integer LB4_STATE = 0;
    public static final Integer S1_TEMPERATURE_SETTING = 0; // S1到达设置温度参数地址
    public static final Integer M1_TEMPERATURE_SETTING = 0; // S1到达设置温度参数地址

    // 变频器控制参数
    // 反馈运行状态
    public static final Integer INVERTER_STATUS_FORWARD = 1;
    public static final Integer INVERTER_STATUS_REVERSE = 2;
    public static final Integer INVERTER_STATUS_STOP = 3;
    public static final Integer INVERTER_STATUS_ERROR = 4;
    // 设置运行状态
    public static final Integer INVERTER_SETTING_FORWARD = 1;
    public static final Integer INVERTER_SETTING_REVERSE = 2;
    public static final Integer INVERTER_SETTING_STOP = 5;
}
