LUNA2000B ESS Modbus Port Definitions
LUNA2000B ESS Modbus Port Definitions
Issue 01
Date 2023-06-13
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://e.huawei.com
1 ESS Models
This chapter describes the energy storage system (ESS) models that use Modbus
protocol and the minimum software versions required.
NOTE
Different ESS models vary in the number of ESS subsystems and configuration of
commercial & industrial (C&I) cabinet subsystems. Check the information in the point table
before use.
2 Introduction
Term Description
- N/A
s Second
RO Read-only data
WO Write-only data
9 Energy RO U3 kW 10 3004 2
discharged 2 h 0 0
today
11 Energy RO U3 kW 10 3004 2
discharged this 2 h 0 4
month
20 Chargeable RO U3 kW 10 3006 2
capacity 2 h 00 8
21 Dischargeable RO U3 kW 10 3007 2
capacity 2 h 00 0
24 CO RO U1 pp 1 3009 1
concentration 1 6 m 1
25 CO RO U1 pp 1 3009 1
concentration 2 6 m 2
26 H2 RO U1 pp 1 3010 1
concentration 1 6 m 4
46 Quantity of RO U1 N/ 1 3050 1
rectifiers 6 A 2
3825 UPS Alarm A UPS alarm has been generated. Major 30000 3
3832 Fire Alarm A fire has been detected in the Major 30000 7
battery cabin.
3826 Combustible Gas 1. The safety valve of the lithium Major 30000 11
Alarm battery is open, and combustible
gas is leaked.
2. Lithium battery thermal
runaway has occurred.
3829 Battery Cabin There are too many faulty Minor 30118 4
T/H Sensor temperature and humidity sensors
Malfunction in the battery cabin.
3830 Battery Cabin Too many air conditioners in the Major 30118 6
T/H Control battery cabin are faulty. As a
Malfunction result, the temperature and
humidity in the battery cabin
cannot be controlled properly.
4 ESS Subsystem
No. Signal Name Read Data Unit Gain Regis Num Scop
/ Type ter ber e
Writ Addr of
e ess Regis
ters
No. Signal Name Read Data Unit Gain Regis Num Scop
/ Type ter ber e
Writ Addr of
e ess Regis
ters
No. Signal Name Read Data Unit Gain Regis Num Scop
/ Type ter ber e
Writ Addr of
e ess Regis
ters
No. Signal Name Read Data Unit Gain Regis Num Scop
/ Type ter ber e
Writ Addr of
e ess Regis
ters
0x02
03:
runni
ng
(curr
ent
limiti
ng);
0x03
00:
Unex
pecte
d
shutd
own;
0x03
01:
Com
man
ded
shutd
own;
0x03
02:
Emer
genc
y
powe
r off;
0x03
03:
Char
ge/
Disch
arge
disab
led;
0x03
04:
Batte
ry
pack
rapid
shutd
own;
No. Signal Name Read Data Unit Gain Regis Num Scop
/ Type ter ber e
Writ Addr of
e ess Regis
ters
0xB0
00:
off-
line;
0xC0
00:
Loadi
ng
No. Signal Name Read Data Unit Gain Regis Num Scop
/ Type ter ber e
Writ Addr of
e ess Regis
ters
3014 Rack Controller A major fault has occurred on the Major 39014 14
Abnormal internal circuit of the rack
controller.
3019 Controller Bus The bus cable is not correctly Major 39015 3
Side Overvoltage connected, or the bus voltage
exceeds the maximum operating
voltage of the power module.
3024 Controller Bus The bus terminal is not securely Major 39015 8
Terminal connected.
Temperature
High
3027 Pack Monitoring A major fault has occurred on the Major 39015 11
Board Error internal circuit of the battery pack
monitoring device.
3029 Pack Lockout A failure recurs many times in the Major 39015 13
battery pack.
3032 Pack Overvoltage The voltage of the battery pack or Major 39016 0
its cell is too high.
3034 Controller The battery rack and its power Major 39016 2
Connection module are connected incorrectly.
Detection Error
3036 Optimizer Error A major fault has occurred in the Major 39016 4
circuit inside the optimization unit
of the battery pack.
3041 Loose The copper bar of the battery pack Major 39016 9
Connection on is loosely connected.
Copper Bar
3043 Pack SOH Low The SOH of the battery pack is Warnin 39016 11
low. g
3044 Pack Overcurrent The battery pack current exceeds Major 39016 12
the maximum operating current
for long.
3048 Pack Aux. Power The relay control of the black start Warnin 39017 0
Supply Faulty auxiliary power supply is faulty. g
5.2.1 Modbus-TCP
Figure 5-3 Modbus-TCP frame format
In a non-VPN environment across the public network, the device deployed on the
internal network needs to initiate TCP socket link establishment to the master
node exposed on the public network. In this case, you need to specify the port
number of the master node on the slave node. To ensure security and minimize
traffic, the master node must provide at least one encrypted port and one non-
encrypted port.
0x01 Invalid function The function code received in the query is not an
allowable action for the server (or slave node).
This may be because the function code is only
applicable to newer devices, and cannot be
implemented in the unit selected. It also
indicates that the server (or slave node) is in the
wrong state to process a request of this type, for
example because it is not configured and is being
asked to return register values.
0x02 Invalid data The data address received in the query is not an
address allowable address for the server. More
specifically, the combination of the starting
register address and register quantity is invalid.
For a controller with 100 registers, the PDU
addresses the first register as 0 and the last one
as 99. If the starting register address in a request
is 96 and the register quantity is 4, the request
can obtain the return values of registers 96, 97,
98, and 99. If the starting register address of a
request is 96 and the register quantity is 5, the
request fails and the exception code 0x02
"Invalid data address" is returned because the
request attempts to read registers 96, 97, 98, 99,
and 100, among which 100 is not a defined
address.
0x03 Invalid data The value contained in the query data field is not
value an allowable value for the server (or slave node).
The value indicates a fault in the structure of the
remainder of a complex request, such as an
incorrectly implied length. It does not mean that
a data item submitted for storage in a register
has a value outside the expectation of the
application program since the Modbus protocol is
unaware of the significance of any particular
value of any particular register.
0x06 Slave node busy The server cannot accept a Modbus request PDU.
The client application determines whether and
when to retransmit the request.
0x91 Internal unit The response from the internal unit times out or
response the communication is disconnected.
timeout
NOTE
N refers to the number of registers.
5.3.3.4 Examples
This section takes the Modbus-TCP communications frames as an example. The
differences between Modbus-RTU and Modbus-TCP lie in the additional address
field and the CRC. Pay attention to the differences when using the Modbus-RTU
frames. This also works for the follow-up examples.
The master node sends a query request (register address: 32306/0X7E32) to the
slave node (logical device ID: 00).
01
Protocol 00
00
Data length 00
06
Logical device ID 00
Function Code 03
32
Number of registers 00
02
01
Protocol 00
00
Data length 00
07
Logical device ID 00
Function Code 03
Register data 00
00
00
01
01
Protocol 00
00
Data length 00
03
Logical device ID 00
Function Code 83
5.3.4.4 Examples
A master node sends a command (register address: 40200/0X9D08) to a slave
node (address: 00).
01
Protocol 00
00
Data length 00
06
Logical device ID 00
Function Code 06
08
Register data 00
00
01
Protocol 00
00
Data length 00
06
Logical device ID 00
Function Code 06
08
Register data 00
00
01
Protocol 00
00
Data length 00
03
Logical device ID 00
Function Code 86
NOTE
N refers to the number of registers.
5.3.5.4 Examples
The master node sets the register address 40118/0X9CB6 to 2 and the register
address 40119/0X9CB7 to 50 for the slave node (address: 00). The request frame
format is as follows.
01
Protocol 00
00
Data length 00
0B
Logical device ID 00
Function Code 10
B6
Number of registers 00
02
Byte count 04
Register data 00
02
00
32
01
Protocol 00
00
Data length 00
06
Logical device ID 00
Function Code 10
B6
Number of registers 00
02
01
Protocol 00
00
Data length 00
03
Logical device ID 00
Function Code 90
Simulate the interface of the read device identifier as an address space. This
address space consists of a set of addressable data elements. Data elements are
objects to be read, and the object IDs determine these data elements.
A data element consists of three objects:
1. Basic device identifier: All objects of this type are mandatory, such as the
vendor name, product code, and revision version.
2. Regular device identifier: In addition to the basic data objects, the device
provides additional and optional identifiers and data object description.
Define all types of objects according to definitions in the standard, but the
execution of this type of objects is optional.
3. Extended device identifier: In addition to regular data objects, the device
provides additional and optional identifiers and private data object
description. All the data is related to the device.
0x03–0x7F -- -- -- Regular
0x80–0xFF -- -- -- Extended
More 1 byte --
Object 1 byte N
length
Object N bytes --
value
More 1 byte --
Object 1 byte N
length
Object N bytes --
value
-- -- -- --
Table 5-14 PDU data field of the request frame for starting upload (0x05)
PDU Length Description
Data (Byte)
Field
Function 1 0x41
Code
Sub- 1 0x05
function
Code
Data 1 1+N
Length
Customiz N -
ed Data
Table 5-15 PDU data field of the response frame for starting the upload (0x05)
Data Length Description
Field (Byte)
Function 1 0x41
Code
Sub- 1 0x05
function
Code
Data 1 6+N
Length
File 4 -
Length
Data 1 -
Frame
Length
Customiz N -
ed Data
Table 5-16 PDU data field in the abnormal response frame of the slave node
PDU Data Field Length Description
NOTE
If the exception code is 0x06, the request will be retransmitted in 10 seconds. A maximum
of six attempts are supported.
Data Length 1 3
File Type 1 -
Frame Data N -
Data Length 1 1
File Type 1 -
Data Length 1 3
File Type 1 -
File CRC 2 -
Table 5-22 Abnormal response frame for completing the data upload
Data Field Length Description