whyclj
2019-11-11 dd4d4e91cdfb9806155d7dedca8907ef4fb67ae7
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
27
28
29
30
31
package com.concentrator;
 
public class Concentrator_ComBase {
    public static final int CMD_MODEBUS_READCMD             =  0x03;                //读寄存器
 
    public static final int CMD_MODEBUS_SINGLEWRITECMD         =  0x05;                //单点写寄存器
 
    public static final int CMD_MODEBUS_WRITECMD             =  0x10;                //多点写寄存器
 
    public static final int CMD_MODEBUS_SYSTEMPARAM_INDEX   =  0X1001;              //系统参数
 
    public static final int CMD_MODEBUS_DEVICEIDINFO_INDEX     =  0x201A;                //读取设备id
 
    public static final int CMD_MODEBUS_DEVICESTATE_INDEX     =  0x2001;                //读取设备状态信息、
 
    public static final int CMD_MODEBUS_BATTMONVOL_INDEX    =  0x201B;                //单体电压
 
    public static final int CMD_MODEBUS_BATTMONTMP_INDEX    =  0x2147;                //单体温度
 
    public static final int CMD_MODEBUS_BATTMONRES_INDEX     =  0x2273;                //单体内阻
 
    public static final int MonomerCountMax                 =  300;                  //最大单体数量
 
    public static final int CMD_STARTRESTEST_INDEX          = 0x4001;               //启动内阻测试寄存器地址
 
    public static final int CMD_STOPRESTTEST_INDEX          = 0x4002;               //停止内阻测试寄存器地址
 
    public static final int CMD_RESTART_INDEX               = 0x4003;               //重启系统
 
    public static final int CMD_CONTROL_VALUE               = 0x0001;               //设备控制传值
}