SmartLi 1.0 and 2.0 Modbus Protocol
SmartLi 1.0 and 2.0 Modbus Protocol
Modbus Protocol
Issue 01
Date 2021-03-23
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Website: https://www.huawei.com
Email: [email protected]
Purpose
This document describes the protocol for command control and data exchange
between the monitoring module and its dedicated back end.
Intended Audience
This document is intended for development personnel of the monitoring module
and network management system (NMS) as well as the test personnel who must:
Be familiar with the basic principles of serial port communication.
Have experience in using serial port commissioning software.
Symbol Conventions
The symbols that may be found in this document are defined as follows.
Symbol Description
Symbol Description
Change History
Issue Date Description
Contents
2 Definition...................................................................................................................................2
3 Physical Interface.................................................................................................................... 3
3.1 MODBUS-RTU.......................................................................................................................................................................... 3
3.1.1 Electrical Standard............................................................................................................................................................... 3
3.1.2 Data Transmission Rate..................................................................................................................................................... 3
3.1.3 Cable Connection................................................................................................................................................................. 4
3.2 MODBUS-TCP............................................................................................................................................................................5
3.2.1 Electrical Standard............................................................................................................................................................... 5
3.2.2 Differences Between TCP and RTU................................................................................................................................ 5
1 Description
2 Definition
Master node: host computer, which is responsible for communication with slave
nodes.
Slave node: UPS monitoring module, which collects information from the UPS
power module.
RS485: a serial communication standard, which can support half-duplex serial
short-range communication.
Read command: The master node sends a read command to the slave node,
instructing the slave node to return relevant register contents.
Write command: The master node packs parameters and sends them to the slave
node to configure corresponding parameters.
Register address: Each signal or parameter of the slave device corresponds to a
register address, which the master device accesses to obtain relevant information
or configure relevant parameters.
Slave node address: The slave node address is set in the range from 1 to 254
3 Physical Interface
3.1 MODBUS-RTU
NOTE
When connecting a parallel system to the network management system (NMS), use an
active RS485/232 converter with the isolation function. A hot-swappable RS485/232
converter is not recommended.
3.2 MODBUS-TCP
The MBAP packet header (MBAP is short for Modbus Application Protocol) is
divided into four domains which include seven bytes in total.
After the slave nodes are powered on or reset and stably run, they respond to the
read or write command sent from the master node. After the slave nodes receive
related commands, the slave nodes can return requested information to the
master node under normal conditions, or return specific error codes corresponding
to the error types under abnormal conditions.
0 1 2 3 4 5 6 … L+1 L L L
+2 +3 +4
0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 8
NOTE
int i;
while (num--)
CRC ^= *addr++;
if (CRC & 1)
CRC >>= 1;
CRC ^= 0xA001;
else
CRC >>= 1;
return CRC;
7 Acquisition Signals
1 Reserved - 0 - -
3 Reserved - 2 - -
4 SOC % 3 R Unsigned
5 SOH % 4 R Unsigned
6 Reserved - 5 R Unsigned
12 Reserved - 11~13 - -
14 Reserved - 15~16 - -
16 Reserved - 18 - -
20 Reserved - 22~25 - -
23 Reserved - 28 - -
25 Reserved - 30~35 - -
27 Current L 37 R Signed
28 Reserved - 38~39 R -
NOTE
In the HVDC scenario, the battery cabinet online status refers to the battery string online
status.
Battery cabinet online status: Bits 0 to 14 correspond to the online status of battery
cabinets 1 to 15.
3 SOC % 42 R Unsigned
4 SOH % 43 R Unsigned
NOTE
In the HVDC scenario, the battery cabinet refers to the battery string.
Calculation of the analog signal address of the battery cabinet (1–12)
Start address of battery cabinet x: 40 + (x – 1) x 18, x = [1, 12]
The analog signals of each battery cabinet occupy 16 registers. The address range is 40–
255.
Calculation of the analog signal address of the battery cabinet (13–15)
Start address of battery cabinet x: 20040 + (x – 12 – 1) x 18, x = [13, 15]
The analog signals of each battery cabinet occupy 16 registers. The address range is 20040–
20093.
NOTE
In the HVDC scenario, the battery cabinet refers to the battery string.
Calculation of the analog signal address of the battery cabinet (1–12)
Formula for calculating the analog signal address of battery cabinet x – battery module y
Start address of battery cabinet x – battery module y: 260 + (x – 1) x 160 + (y – 1) x 10, x =
[1, 12], y = [1, 16]
Each battery module occupies 10 registers. The address range is 260–2179.
Calculation of the analog signal address of the battery cabinet (13–15)
Formula for calculating the analog signal address of battery cabinet x – battery module y
Start address of battery cabinet x – battery module y: 20260 + (x – 12 – 1) x 160 + (y – 1) x
10, x = [13, 15], y = [1, 16]
Each battery module occupies 10 registers. The address range is 20260–20739.
The Huawei-developed lithium battery system supports a maximum of 15 battery cabinets,
and each battery cabinet supports a maximum of 16 battery modules.
NOTE
In the HVDC scenario, the battery cabinet refers to the battery string.
Calculation of the analog signal address of the battery cabinet (1–12)
Formula for calculating the analog signal address of battery cabinet x – battery module y
Start address of battery cabinet x – battery module y: 5200 + (x – 1) x 320 + (y – 1) x 20, x
= [1, 12], y = [1, 16]
Each battery module occupies 20 registers. The address range is 5200–9039.
Calculation of the analog signal address of the battery cabinet (13–15)
Formula for calculating the analog signal address of battery cabinet x – battery module y
Start address of battery cabinet x – battery module y: 25200 + (x – 12 – 1) x 320 + (y – 1) x
20, x = [13, 15], y = [1, 16]
Each battery module occupies 20 registers. The address range is 25200–26159.
The Huawei-developed lithium battery system supports a maximum of 15 battery cabinets,
and each battery cabinet supports a maximum of 16 battery modules.
4 - - - - - -
2 Lithium battery 0: No 14 1 R
system battery
EOD 5 1: Yes
3 Lithium battery 0: No 14 2 R
system
overtemperature 1: Yes
4 Lithium battery 0: No 14 3 R
system
overtemperature 1: Yes
protection
5 Lithium battery 0: No 14 4 R
system
undertemperature 1: Yes
6 Lithium battery 0: No 14 5 R
system
overvoltage 1: Yes
7 Lithium battery 0: No 14 6 R
system
overvoltage 1: Yes
protection
8 Lithium battery 0: No 14 7 R
system overcurrent
1: Yes
9 Lithium battery 0: No 14 8 R
system
undervoltage 1: Yes
10 Lithium battery 0: No 14 9 R
SOH abnormal
1: Yes
NOTE
Items 1–10 in the system status table indicate the comprehensive status instead of actual
alarms.
49 Reversed - 2248 6 - -
51 Reversed - 2248 8 - -
74 - - 2250 1 - -
NOTE
In the HVDC scenario, the battery cabinet refers to the battery string.
The formula for calculating the alarm address of a battery cabinet in the Huawei-developed
lithium battery system is as follows:
Calculation of the alarm and status signal address of the battery cabinet (1–12)
Start address of battery cabinet x: 2200 + (x – 1) x 4, x = [1, 12]
Each battery cabinet has three alarm registers and one status register.
Address range: 2200–2247
Three alarm registers and one status register are added for each battery cabinet.
Address range: 2248–2295
Start address: 2248 + (x – 1) x 4, x = [1, 12]
Calculation of the alarm and status signal address of the battery cabinet (13–15)
Start address of battery cabinet x: 22200 + (x – 12 – 1) x 4, x = [13, 15]
Each battery cabinet has three alarm registers and one status register.
Address range: 22200–22211
Three alarm registers and one status register are added for each battery cabinet.
Address range: 22248–22259
Start address: 22248 + (x – 12 – 1) x 4, x = [13, 15]
9 Reserved - 2300 8
10 Reserved - 2300 9
11 Reserved - 2300 10
18 Reserved - 2301 1 R
19 Reserved - 2301 2 R
4 Reserved - 2303 - R -
NOTE
In the HVDC scenario, the battery cabinet refers to the battery string.
The formula for calculating the analog signal address of a battery module in the Huawei-
developed lithium battery system is as follows:
Calculation of the alarm and status signal address of the battery cabinet module (1–
12)
Start address of battery cabinet x – battery module y: 2300 + (x – 1) x 64 + (y – 1) x 4, x =
[1, 12], y = [1, 16]
Each battery module has two alarm registers and two status registers.
Address range: 2300–3067
Two alarm registers are added for each battery module.
Address range: 3068–3451
Start address: 3068 + (x – 1) x 2 x 16 + (y – 1) x 2, x = [1, 12], y = [1, 16]
Calculation of the alarm and status signal address of the battery cabinet module (13–
15)
Start address of battery cabinet x – battery module y: 22300 + (x – 12 – 1) x 64 + (y – 1) x
4, x = [13, 15], y = [1, 16]
Each battery module has two alarm registers and two status registers.
Address range: 22300–22311
Two alarm registers are added for each battery module.
Address range: 23068–23073
Start address: 23068 + (x – 12 –1) x 2 x 16 + (y – 1) x 2, x = [13, 15], y = [1, 16]
The Huawei-developed lithium battery system supports a maximum of 15 battery cabinets,
and each battery cabinet supports a maximum of 16 battery modules.