Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
36 views128 pages

Main Content

This document provides Modbus interface definitions for Huawei's SUN2000LB solar inverters, detailing supported models, register definitions, and communication protocols. It includes information on the Modbus protocol's application in Huawei inverters and outlines the necessary firmware versions for compatibility. The document is intended for developers and integrators working with Huawei solar products and includes a change history and legal notices.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views128 pages

Main Content

This document provides Modbus interface definitions for Huawei's SUN2000LB solar inverters, detailing supported models, register definitions, and communication protocols. It includes information on the Modbus protocol's application in Huawei inverters and outlines the necessary firmware versions for compatibility. The document is intended for developers and integrators working with Huawei solar products and includes a change history and legal notices.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 128

SUN2000LB

V300R024C00

Modbus Interface Definitions

Issue 02
Date 2024-07-15

HUAWEI DIGITAL POWER TECHNOLOGIES CO., LTD.


Copyright © Huawei Digital Power Technologies Co., Ltd. 2024. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior
written consent of Huawei Digital Power Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are the property 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
Digital Power Technologies Co., Ltd. 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.

Huawei Digital Power Technologies Co., Ltd.


Address: Huawei Digital Power Antuoshan Headquarters

Futian, Shenzhen 518043

People's Republic of China

Website: https://digitalpower.huawei.com

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. i


SUN2000LB
Modbus Interface Definitions About This Document

About This Document

Change History
Issue Date Description

02 2024-07-15 This issue is the second official release.

01 2024-04-07 This issue is the first official release.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. ii


SUN2000LB
Modbus Interface Definitions Contents

Contents

About This Document................................................................................................................ ii


1 Supported Models................................................................................................................... 1
1.1 Model Description................................................................................................................................................................... 1

2 Overview....................................................................................................................................2
2.1 Terms and Abbreviations...................................................................................................................................................... 2

3 Register Definitions................................................................................................................ 4
3.1 Inverter Equipment Register................................................................................................................................................ 4
3.2 Battery Equipment Registe................................................................................................................................................ 21
3.3 Meter Equipment Register................................................................................................................................................. 65

4 Customized Interfaces.......................................................................................................... 68
4.1 Obtaining the System Information of Optimizers..................................................................................................... 68
4.2 Obtaining Real-time Data of Optimizers..................................................................................................................... 71

5 Interface Instructions........................................................................................................... 75
5.1 Alarm Information................................................................................................................................................................ 75
5.2 Power Grid Scheduling........................................................................................................................................................ 78
5.2.1 cosφ-P/Pn Characteristic Curve.................................................................................................................................... 78
5.2.2 Q-U Characteristic Curve................................................................................................................................................ 79
5.2.3 PF-U Characteristic Curve............................................................................................................................................... 80
5.3 Grid Codes............................................................................................................................................................................... 81
5.4 Energy Storage Specifications...........................................................................................................................................96

6 Overview of the Communications Protocol..................................................................101


6.1 Physical Layer...................................................................................................................................................................... 101
6.2 Data Link Layer................................................................................................................................................................... 101
6.2.1 Modbus-RTU..................................................................................................................................................................... 102
6.2.1.1 ADU Length................................................................................................................................................................... 102
6.2.1.2 Communications Address......................................................................................................................................... 102
6.2.1.3 CRC................................................................................................................................................................................... 102
6.2.2 Modbus-TCP...................................................................................................................................................................... 103
6.2.2.1 ADU Length................................................................................................................................................................... 103
6.2.2.2 MBAP Packet Header................................................................................................................................................. 104
6.2.2.3 Communications Address......................................................................................................................................... 105

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. iii
SUN2000LB
Modbus Interface Definitions Contents

6.2.2.4 TCP Port.......................................................................................................................................................................... 105


6.2.2.5 TCP Link Establishment Process............................................................................................................................. 105
6.3 Application Layer................................................................................................................................................................ 106
6.3.1 Function Code List.......................................................................................................................................................... 106
6.3.2 Exception Code List........................................................................................................................................................ 106
6.3.3 Reading Registers (0x03)............................................................................................................................................. 108
6.3.3.1 Frame Format of a Request from a Master Node........................................................................................... 108
6.3.3.2 Frame Format of a Normal Response from a Slave Node............................................................................ 108
6.3.3.3 Frame Format of an Abnormal Response from a Slave Node.....................................................................108
6.3.3.4 Examples......................................................................................................................................................................... 108
6.3.4 Writing a Single Register (0x06)............................................................................................................................... 110
6.3.4.1 Frame Format of a Request from a Master Node........................................................................................... 110
6.3.4.2 Frame Format of a Normal Response from a Slave Node............................................................................ 110
6.3.4.3 Frame Format of an Abnormal Response from a Slave Node.....................................................................110
6.3.4.4 Examples......................................................................................................................................................................... 111
6.3.5 Writing Multiple Registers (0x10)............................................................................................................................. 112
6.3.5.1 Frame Format of a Request from a Master Node........................................................................................... 112
6.3.5.2 Frame Format of a Normal Response from a Slave Node............................................................................ 113
6.3.5.3 Frame Format of an Abnormal Response from a Slave Node.....................................................................113
6.3.5.4 Examples......................................................................................................................................................................... 113
6.3.6 Reading Device Identifiers (0x2B)............................................................................................................................. 115
6.3.6.1 Command for Querying Device Identifiers......................................................................................................... 116
6.3.6.2 Command for Querying a Device List.................................................................................................................. 117
6.3.6.3 Device Description Definition.................................................................................................................................. 118
6.3.7 Huawei-defined Functions (0x41).............................................................................................................................119
6.3.7.1 Uploading Files............................................................................................................................................................. 119
6.3.7.1.1 Starting the Upload................................................................................................................................................. 120
6.3.7.1.2 Uploading Data.........................................................................................................................................................121
6.3.7.1.3 Completing the Data Upload............................................................................................................................... 122
6.3.7.1.4 Timeout Processing..................................................................................................................................................123

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. iv


SUN2000LB
Modbus Interface Definitions 1 Supported Models

1 Supported Models

This chapter describes the solar inverter models that use the Modbus protocol and
the earliest firmware version. When a host needs to connect to these solar
inverters, ensure that the firmware version is correct.

1.1 Model Description


Table 1-1 Supported models and firmware versions
Model Model ID Earliest Firm Version

SUN2000_6K_LB0 361 V300R024C00

SUN2000_5K_LB0 362 V300R024C00

SUN2000_4.6K_LB0 363 V300R024C00

SUN2000_4K_LB0 364 V300R024C00

SUN2000_3.68K_LB0 365 V300R024C00

SUN2000_3K_LB0 366 V300R024C00

SUN5000_6K_LB0 368 V300R024C00

SUN5000_3K_LB0 369 V300R024C00

NOTE

The maximum active power (Pmax), maximum reactive power (Qmax), and rated power (Pn)
corresponding to each model can be obtained from the register interface. The model ID is
the unique code of the model.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 1


SUN2000LB
Modbus Interface Definitions 2 Overview

2 Overview

Modbus is a widely used protocol for device communications. This document


describes the Modbus protocol used by Huawei solar inverters, and can be used to
regulate follow-up third-party integrated development. Huawei solar inverters
comply with the standard Modbus protocol, and this document focuses on the
information specific to Huawei solar inverters. For other information about
Modbus, see the standard documents about the Modbus protocol. For details
about the standard protocols used by Huawei solar inverters and customized
interaction modes and examples, see chapter 6 .

2.1 Terms and Abbreviations


Table 2-1 Terms and abbreviations
Name Description

Master node During master-slave communication, the party that initiates a


communication request is referred to as the master node.

Slave node During master-slave communication, the party that responds to


a communication request is referred to as the slave node.

Broadcast address Fixed to 0.

Register address A register address is recorded in two bytes.

U16 Unsigned integer (16 bits)

U32 Unsigned integer (32 bits)

I16 Signed integer (16 bits)

I32 Signed integer (32 bits)

STR Character string

MLD Multiple bytes

Bitfield16 16-bit data expressed by bit

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 2


SUN2000LB
Modbus Interface Definitions 2 Overview

Name Description

Bitfield32 32-bit data expressed by bit

N/A Not applicable

s Second

Epoch seconds The number of seconds that have elapsed since 1970-01-01
00:00:00

RO Data that is readable only

RW Data that is readable and writable

WO Data that is writable only

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 3


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

3 Register Definitions

3.1 Inverter Equipment Register


Table 3-1 Inverter Equipment Register definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

1 Model RO STR N/A N/A 30000 15 For details,


see .1.1 Model
Description

2 SN RO STR N/A N/A 30015 10 N/A

3 PN RO STR N/A N/A 30025 10 N/A

4 Model ID RO U16 N/A N/A 30070 1 For details,


see1.1 Model
Description .

5 Number of RO U16 N/A 1 30071 1 N/A


PV strings

6 Number of RO U16 N/A 1 30072 1 N/A


MPP
trackers

7 Rated power RO U32 kW 1000 30073 2 N/A


(Pn)

8 Maximum RO U32 kW 1000 30075 2 N/A


active power
(Pmax)

9 Maximum RO U32 kVA 1000 30077 2 N/A


apparent
power
(Smax)

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 4


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

10 Maximum RO I32 kVar 1000 30079 2 N/A


reactive
power
(Qmax, fed to
the power
grid)

11 Maximum RO I32 kVar 1000 30081 2 N/A


reactive
power
(Qmax,
absorbed
from the
power grid)

12 Offering RO String N/A N/A 30561 15 N/A


name of
southbound
device 1

13 Offering RO String N/A N/A 30576 15 N/A


name of
southbound
device 2

14 Offering RO String N/A N/A 30591 15 N/A


name of
southbound
device 3

15 Hardware RO String N/A 1 31000 15


version

16 Monitoring RO String N/A N/A 31015 10 N/A


board SN

17 Monitoring RO String N/A N/A 31025 15 N/A


software
version

18 Master DSP RO String N/A N/A 31040 15 N/A


version

19 CPLD RO String N/A N/A 31070 15 N/A


version

20 AFCI version RO String N/A N/A 31085 15 N/A

21 DC-MBUS RO String N/A N/A 31115 15 N/A


version

22 REGKEY RO String N/A 1 31200 10

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 5


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

23 [Remote RO Bitfield1 N/A N/A 32000 1 Bit 0: standby


communicati 6 Bit 1: grid-
on] Single- connected
machine
remote Bit 2: grid-
communicati connected
on normally
Bit 3: grid
connection with
derating due to
power rationing
Bit 4: grid
connection with
derating due to
internal causes
of the solar
inverter
Bit 5: normal
stop
Bit 6: stop due
to faults
Bit 7: stop due
to power
rationing
Bit 8: shutdown
Bit 9: spot
check
Bit 10: Off-grid
operation
Bit 11:Hot
Standby
Operation

24 [Remote RO Bitfield1 N/A N/A 32002 1 Bit 0: locking


communicati 6 status (0:
on] Running locked; 1:
status unlocked)
(monitoring Bit 1: PV
processing) connection
status (0:
disconnected; 1:
connected)
Bit 2: DSP data
collection (0:
no; 1: yes)

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 6


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

25 [Remote RO Bitfield3 N/A N/A 32003 2 Bit 0: off-grid


communicati 2 (0: on-grid; 1:
on] Running off-grid)
status Bit 1: off-grid
(power switch (0:
processing) disable; 1:
enable)
Bit2: DC switch
(0: OFF, 1: ON)
Bit3: On-grid
operation (0:
off-grid
operation, 1:
on-grid
operation)
Bit4: Off-grid
operation (0:
offline and not
running; 1:
offline and
running)
Bit5: Standby
(0: non-
standby; 1:
standby)

26 Alarm 1 RO Bitfield1 N/A N/A 32008 1 For details, see


6 5.1 Alarm
Information.

27 Alarm 2 RO Bitfield1 N/A N/A 32009 1 For details, see


6 5.1 Alarm
Information.

28 Alarm 3 RO Bitfield1 N/A N/A 32010 1 For details, see


6 5.1 Alarm
Information.

29 ESN RO UINT16 N/A N/A 32015 1 N/A

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 7


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

30 PV1 voltage RO I16 V 10 32016 1 A maximum of


24 PV strings
31 PV1 current RO I16 A 100 32017 1 are supported.
32 PV2 voltage RO I16 V 10 32018 1 The number of
PV strings read
33 PV2 current RO I16 A 100 32019 1 by the host is
defined by the
34 PV3 voltage RO I16 V 10 32020 1 Number of PV
strings signal.
35 PV3 current RO I16 A 100 32021 1
The voltage
36 PV4 voltage RO I16 V 10 32022 1 and current
register
37 PV4 current RO I16 A 100 32023 1 addresses for
each PV string
are as follows:
PVn voltage:
32014 + 2n
PVn current:
32015 + 2n
n indicates the
PV string
number, which
ranges from 1
to 24.

38 Input power RO I32 kW 1000 32064 2 N/A

39 Power grid RO U16 V 10 32066 1 When the


voltage/Line output mode is
voltage L/N, L1/L2/N,
between or L1/L2,
phases A Power grid
and B voltage is used.

40 Line voltage RO U16 V 10 32067 1 When the


between output mode is
phases B L/N, L1/L2/N,
and C or L1/L2, the
information is
invalid.

41 Line voltage RO U16 V 10 32068 1 When the


between output mode is
phases C L/N, L1/L2/N,
and A or L1/L2, the
information is
invalid.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 8


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

42 Phase A RO U16 V 10 32069 1 When the


voltage output mode is
L/N, L1/L2/N,
or L1/L2, the
information is
invalid.

43 Phase B RO U16 V 10 32070 1 When the


voltage output mode is
L/N, L1/L2/N,
or L1/L2, the
information is
invalid.

44 Phase C RO U16 V 10 32071 1 When the


voltage output mode is
L/N, L1/L2/N,
or L1/L2, the
information is
invalid.

45 Power grid RO I32 A 1000 32072 2 When the


current/ output mode is
Phase A L/N, L1/L2/N,
current or L1/L2,
Power grid
current is used.

46 Phase B RO I32 A 1000 32074 2 When the


current output mode is
L/N, L1/L2/N,
or L1/L2, the
information is
invalid.

47 Phase C RO I32 A 1000 32076 2 When the


current output mode is
L/N, L1/L2/N,
or L1/L2, the
information is
invalid.

48 Peak active RO I32 kW 1000 32078 2 N/A


power of
current day

49 Active power RO I32 kW 1000 32080 2 N/A

50 Reactive RO I32 kVar 1000 32082 2 N/A


power

51 Power factor RO I16 N/A 1000 32084 1 N/A

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 9


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

52 Grid RO U16 Hz 100 32085 1 N/A


frequency

53 Efficiency RO U16 % 100 32086 1 N/A

54 Internal RO I16 °C 10 32087 1 N/A


temperature

55 Insulation RO U16 MΩ 1000 32088 1 N/A


resistance

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 10


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

56 Device RO ENUM1 N/A N/A 32089 1 0x0000


status 6 Standby:
initializing
0x0001
Standby:
detecting
insulation
resistance
0x0002
Standby:
detecting
irradiation
0x0003
Standby: drid
detecting
0x0100 Starting
0x0200 On-grid
(Off-grid mode:
running)
0x0201 Grid
connection:
power limited
(Off-grid mode:
running: power
limited)
0x0202 Grid
connection:
self-derating
(Off-grid mode:
running: self-
derating)
0x0203 Off-grid
Running
0x0300
Shutdown: fault
0x0301
Shutdown:
command
0x0302
Shutdown:
OVGR
0x0303
Shutdown:
communication
disconnected

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 11


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

0x0304
Shutdown:
power limited
0x0305
Shutdown:
manual startup
required
0x0306
Shutdown: DC
switches
disconnected
0x0307
Shutdown:
rapid cutoff
0x0308
Shutdown:
input
underpower
0x0401 Grid
scheduling:
cosφ-P curve
0x0402 Grid
scheduling: Q-U
curve
0x0403 Grid
scheduling: PF-
U curve
0x0404 Grid
scheduling: dry
contact
0x0405 Grid
scheduling: Q-P
curve
0x0500 Spot-
check ready
0x0501 Spot-
checking
0x0600
Inspecting
0X0700 AFCI
self check
0X0800 I-V
scanning
0X0900 DC
input detection

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 12


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

0X0A00
Running: off-
grid charging
0xA000
Standby: no
irradiation

57 Fault code RO U16 N/A N/A 32090 1 N/A

58 Startup time RO EPOCHT s 1 32091 2 Epoch seconds,


IME local time

59 Shutdown RO EPOCHT s 1 32093 2 Epoch seconds,


time IME local time

60 Accumulate RO U32 kWh 100 32106 2 N/A


d energy
yield

61 Daily energy RO U32 kWh 100 32114 2 N/A


yield

62 [Manageme RO UINT16 N/A 1 35127 1


nt system]
Managemen
t system
status

63 [Smart I-V RO DBitfield N/A 1 35136 2 Bit 0: Smart I-V


Curve 32 Curve Diagnosis
Diagnosis]
Authorizatio
n function

64 [Smart I-V RO ENUM1 N/A N/A 35138 1 0: No license


Curve 6 1: Normal
Diagnosis]
License 2: In grace
status period
3: Revoked
4: SN not
match
5: Expired

65 [Smart I-V RO EPOCHT s 1 35139 2 N/A


Curve IME
Diagnosis]
License
expiration
time

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 13


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

66 License RO EPOCHT s 1 35141 2 N/A


loading time IME

67 License RO EPOCHT s 1 35143 2 N/A


revocation IME
time

68 License SN RO String N/A 1 35145 10

69 Revocation RO String N/A 1 35155 64


code

70 [4G] Module RO ENUM1 N/A N/A 35249 1 0: Card not


status 6 found
1: Card
registration
failed
2: No
connection
3: Low signal
strength
4: Medium
signal strength
5: High signal
strength
0x6: Connected
0x100: Card in
position
0x101: PIN
required
0x102: PUK
required
0xFFFF: Module
not found

71 [4G] IP RO UINT32 N/A 1 35250 2


address

72 [4G] Subnet RO UINT32 N/A 1 35252 2


mask

73 [4G] IMEI RO String N/A 1 35254 10

74 [4G] Signal RO UINT16 N/A 1 35264 1 [0,5]


strength

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 14


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

75 [4G] RO UINT16 N/A 1 35265 1


Maximum
number of
PIN
attempts

76 [4G] PIN RO ENUM1 N/A N/A 35266 1 0: Initial state


verification 6 1: Verifying...
status

77 Original RO MLD/ N/A 1 35268 15


model name Bytes

78 [Active] RO MLD/ N/A N/A 35300 4 0: percentage


Adjustment Bytes 1: fixed value
mode

79 [Reactive] RO MLD/ N/A N/A 35304 4 0: power factor


Adjustment Bytes 1: absolute
mode value
2: Q/S
3: Q-U
characteristic
curve
(command ID:
0)
4: cosφ-P/Pn
characteristic
curve
(command ID:
0)
5: PF-U
characteristic
curve
(command ID:
0)
6: Q-P
characteristic
curve
(command ID:
0)

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 15


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

80 [System RO ENUM1 N/A N/A 37006 1 0: N/A


level] 6 1: Forced
Charge/ charge/
Discharge discharge
mode
2: Time-of-use
3: Fixed charge
and discharge
4: Max. self-
consumption
5: Fully fed to
grid
6: TOU
7: Remote
scheduling–
Max. self-
consumption
8: Remote
scheduling–
Fully fed to grid
9: Remote
scheduling–
TOU
10: AI control
11: Remote
scheduling–AI
control
12: Three-party
scheduling

81 [Power RO I32 W 1 37113 2 > 0: feeding


meter power to the
collection] power grid
Active < 0: obtaining
power* power from the
power grid

82 [Optimizer] RO U16 N/A 1 37200 1 N/A


Total
number of
optimizers*

83 [Optimizer] RO U16 N/A 1 37201 1 N/A


Number of
online
optimizers*

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 16


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

84 [Optimizer] RO U16 N/A 1 37202 1 N/A


Feature
data*

85 System time RW EPOCHT s 1 40000 2 [2000-1-1


IME 00:00:00,
2068-12-31
23:59:59]
Epoch seconds,
local time

86 [Power grid RW ENUM1 N/A N/A 40037 1 0: non-


scheduling] 6 hysteresis
Q-U 1: hysteresis
characteristi
c curve
mode*

87 [Power grid RW I16 % 1 40038 1 [-100, 100]


scheduling]
Q-U
dispatch
trigger
power (%)*

88 [Power grid RW U16 kW 10 40120 1 Scope: [0, Pmax]


scheduling]
Fixed active
power
derated

89 power factor RW I16 N/A 1000 40122 1 (–1, –0.8]U[0.8,


1]

90 [Power grid RW I16 N/A 1000 40123 1 [–1, 1]


scheduling] The device
Reactive converts the
power value to a fixed
compensatio value of Q for
n (Q/S) reactive power
control. S
indicates Smax.

91 [Power grid RW I16 % 10 40125 1 Scope: [0, 100]


scheduling] Interface for
Active power fine adjustment
percentage of active power
derating
(0.1%)

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 17


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

92 [Power grid RW U32 W 1 40126 2 Scope: [0, Pmax]


scheduling]
Fixed active
power
derated (W)

93 [Power grid RW I32 kVar 1000 40129 2 [–Qmax, Qmax]


scheduling]
Reactive
power
compensatio
n at night
(kVar)

94 [Power grid RW MLD/ N/A N/A 40133 21 For details, see


scheduling] Bytes 5.2 Power Grid
cosφ-P/Pn Scheduling.
characteristi
c curve

95 [Power grid RW MLD/ N/A N/A 40154 21 For details, see


scheduling] Bytes 5.2 Power Grid
Q-U Scheduling.
characteristi
c curve

96 [Power grid RW MLD/ N/A N/A 40175 21 For details, see


scheduling] Bytes 5.2 Power Grid
PF-U Scheduling.
characteristi
c curve

97 [Power grid RW U16 s 1 40196 1 [1, 1000]. The


scheduling] default value is
Reactive 10.
power
adjustment
time

98 [Power grid RW I16 % 1 40198 1 [0, 100]


scheduling]
Q-U power
percentage
to exit
scheduling*

99 Startup WO ENUM1 N/A N/A 40200 1 0: startup


6

100 Shutdown WO ENUM1 N/A N/A 40201 1 0: shutdown


6

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 18


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

101 Grid code RW U16 NA NA 42000 1 For details, see


5.3 Grid Codes.

102 [Power grid RW U32 %/s 1000 42015 2 [0.1, 5000]


scheduling]
Reactive
power
change
gradient

103 [Power grid RW U32 %/s 1000 42017 2 [0.1, 5000]


scheduling]
Active power
change
gradient

104 [Power grid RW U32 s 1 42019 2 [0, 86400]


scheduling] The value 0
Schedule indicates that
instruction the command
valid is valid
duration permanently.

105 Failsafe RW I32 kW 1000 42405 2 [0.000,Pmax]


Active Power
Limit [kW]
[High
Accuracy]

106 Time zone RW I16 min 1 43006 1 [–720, 840]

107 [Manageme RW ENUM1 N/A N/A 43098 1 0: Disabled


nt system] 6 1: Enabled
TLS
encryption

108 WLAN RW ENUM1 N/A N/A 45052 1 0: Waken up


wakeup 6 1: Disabled

109 Fast power RW ENUM1 N/A N/A 45086 1 0: Disable


scheduling 6 1: Enable

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 19


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

110 [Inverter RW ENUM1 N/A N/A 47589 1 0: Local control


level] 6 1: Remote
Remote control–Max.
charge/ self-
discharge consumption
control
mode 2: Remote
control–Fully
fed to grid
3: Remote
control–TOU
4: Remote
control–AI
control
5: Remote
Control - Three-
party
Scheduling

111 Scheduled RW ENUM1 N/A N/A 47674 1 0: Disable


task 6 1: Enable

112 Default RW INT32 kW 1000 47675 2 [–1000, plant


maximum capacity]
feed-in
power

112 Default RW UINT32 %/s 1000 47677 2 [0.100,


active power 5000.000]
change
gradient

114 Peak RW ENUM1 N/A N/A 47954 1 0: Disabled


Shaving 6 1: Active power
limit
2: Apparent
power limit
(not supported
in the single-
device scenario)

115 Backup RW UINT16 % 10 47955 1 [0.0, 100.0]


power SOC
for peak
shaving

116 Peak power RW BYTES N/A N/A 47956 64

117 AI optical RW UINT16 N/A N/A 48020 1 0: Disabled


storage 1: Enabled

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 20


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

118 Backup Box RW ENUM1 N/A N/A 48089 1 0: Backup Box-


model 6 B0/B1
1: Compatible
Third Party
Backup Box
2: SmartGuard
3: No Backup
Box

119 Phase-to- RW ENUM1 N/A N/A 48090 1 0: Disabled


ground 6 1: Enabled
short-circuit
protection

NOTICE

Signals marked with * are supported only by certain models or standard codes.

3.2 Battery Equipment Registe


Table 3-2 Battery Equipment Registe definitions
No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

1 [Energ RO UIN N/A 1 37000 1 0: √ (√)[2]


y T16 offlin
storag e
e unit 1:
1] [1] stand
Runni by
ng
2:
status
runni
ng
3:
fault
4:
sleep
mode

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 21


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

2 [Energ RO INT3 W 1 37001 2 > 0: √ (√)


y 2 chargi
storag ng
e unit < 0:
1] disch
Charg argin
e and g
discha
rge
power

3 [Energ RO UIN V 10 37003 1 Energ √ (√)


y T16 y
storag stora
e unit ge
1] Bus modu
voltag le
e outpu
t
voltag
e

4 [Energ RO UIN % 10 37004 1 Batter √ (√)


y T16 y's
storag state
e unit of
1] capac
Batter ity
y SOC

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 22


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

5 [Energ RO UIN N/A 1 37006 1 0:non √ √


y T16 e
storag 1:Forc
e unit ible
1] charg
Worki e/
ng disch
mode arge
2:Tim
e of
Use(L
G)
3:Fixe
d
charg
e/
disch
arge
4:Max
imise
self
consu
mptio
n
5:Full
y fed
to
grid
6:Tim
e of
Use(L
UNA2
000)
7:
remot
e
sched
uling-
maxi
mum
self-
use
8:
remot
e
sched
uling

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 23


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

- full
Intern
et
acces
s
9:
remot
e
sched
uling
- TOU
10: AI
energ
y
mana
geme
nt
and
sched
uling

6 [Energ RO UIN W 1 37007 2 - √ √


y T32
storag
e unit
1]
Rated
charge
power

7 [Energ RO UIN W 1 37009 2 - √ √


y T32
storag
e unit
1]
Rated
discha
rge
power

8 [Energ RO UIN N/A 1 37014 1 - √ √


y T16
storag
e unit
1]
Fault
ID

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 24


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

9 [Energ RO UIN kWh 100 37015 2 - √ (√)


y T32
storag
e unit
1]
Curren
t-day
charge
capaci
ty

10 [Energ RO UIN kWh 100 37017 2 - √ (√)


y T32
storag
e unit
1]
Curren
t-day
discha
rge
capaci
ty

11 [Energ RO INT1 A 10 37021 1 Energ √ √


y 6 y
storag stora
e unit ge
1] Bus modu
curren le
t outpu
t
curre
nt

12 [Energ RO INT1 ℃ 10 37022 1 - √ √


y 6
storag
e unit
1]
batter
y
tempe
rature

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 25


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

13 [Energ RO UIN mins 1 37025 1 [0,14 √ √


y T16 40]
storag
e unit
1]
Remai
ning
charge
/
discha
rge
time

14 [Energ RO STRI N/A 1 37026 10 eg. √


y NG 7kW-
storag V1.3
e unit
1]
DCDC
versio
n

15 [Energ RO STRI N/A 1 37036 10 eg. √


y NG 001.
storag 002.
e unit 003.
1] 004
BMSve
rsion

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 26


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

16 [Energ RO UIN W 1 37046 2 The √ √


y T32 value
storag is the
e]Max small
imum er
charge value
power of the
sum
of the
maxi
mum
charg
e and
disch
arge
capab
ility
of the
solar
invert
er
and
the
charg
e and
disch
arge
capab
ility
of the
conne
cted
energ
y
stora
ge
unit
(ESU)
.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 27


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

17 [Energ RO UIN W 1 37048 2 The √ √


y T32 value
storag is the
e] small
Maxi er
mum value
discha of the
rge sum
power of the
maxi
mum
charg
e and
disch
arge
capab
ility
of the
solar
invert
er
and
the
charg
e and
disch
arge
capab
ility
of the
conne
cted
ESU.

18 [Energ RO STRI N/A 1 37052 10 - √ √


y NG
storag
e unit
1] SN

19 [Energ RO UIN kWh 100 37066 2 - √ √


y T32
storag
e unit
1]
Total
charge

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 28


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

20 [Energ RO UIN kWh 100 37068 2 - √ √


y T32
storag
e unit
1]
Total
discha
rge

21 [Energ RO BYTE N/A 1 37700 10 - √


y S
storag
e unit
2] SN

22 [Energ RO UIN % 10 37738 1 Batter √


y T16 y's
storag state
e unit of
2] capac
Batter ity
y SOC

23 [Energ RO UIN N/A 1 37741 1 0: √


y T16 offlin
storag e
e unit 1:
2] stand
Runni by
ng
status 2:
runni
ng
3:
fault
4:
sleep
mode

24 [Energ RO INT3 W 1 37743 2 > 0: √


y 2 chargi
storag ng
e unit < 0:
2] disch
Charg argin
e and g
discha
rge
power

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 29


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

25 [Energ RO UIN kWh 100 37746 2 - √


y T32
storag
e unit
2]
Curren
t-day
charge
capaci
ty

26 [Energ RO UIN kWh 100 37748 2 - √


y T32
storag
e unit
2]
Curren
t-day
discha
rge
capaci
ty

27 [Energ RO UIN V 10 37750 1 - √


y T16
storag
e unit
2] Bus
voltag
e

28 [Energ RO INT1 A 10 37751 1 - √


y 6
storag
e unit
2] Bus
curren
t

29 [Energ RO INT1 ℃ 10 37752 1 √


y 6
storag
e unit
2]
Batter
y
tempe
rature

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 30


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

30 [Energ RO UIN kWh 100 37753 2 - √


y T32
storag
e unit
2]
Total
charge

31 [Energ RO UIN kWh 100 37755 2 - √


y T32
storag
e unit
2]
Total
discha
rge

32 [Energ RO UIN Wh 1 37758 2 √


y T32
storag
e]Rate
d
capaci
ty

33 [Energ RO UIN % 10 37760 1 [0.0,1 √


y T16 00.0]
storag
e]SOC

34 [Energ RO UIN N/A 1 37762 1 0: √


y T16 offlin
storag e
e]Run 1:
ning stand
status by
2:
runni
ng
3:
fault
4:
sleep
mode

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 31


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

35 [Energ RO UIN V 10 37763 1 - √


y T16
storag
e]Bus
voltag
e

36 [Energ RO INT1 A 10 37764 1 - √


y 6
storag
e]Bus
curren
t

37 [Energ RO INT3 W 1 37765 2 - √


y 2
storag
e]Char
ge/
Discha
rge
power

38 [Energ RO UIN kWh 100 37780 2 Life- √ √


y T32 cycle
storag accu
e]Tota mulat
l ion
charge

39 [Energ RO UIN kWh 100 37782 2 Life- √ √


y T32 cycle
storag accu
e]Tota mulat
l ion
discha
rge

40 [Energ RO UIN kWh 100 37784 2 Curre √ √


y T32 nt-
storag day
e] accu
Curren mulat
t-day ion
charge
capaci
ty

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 32


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

41 [Energ RO UIN kWh 100 37786 2 Curre √ √


y T32 nt-
storag day
e] accu
Curren mulat
t-day ion
discha
rge
capaci
ty

42 [Energ RO STRI N/A 1 37799 15 - √


y NG
storag
e unit
2]
softwa
re
versio
n

43 [Energ RO STRI N/A 1 37814 15 - √


y NG
storag
e unit
1]
softwa
re
versio
n

44 [Energ RO UIN N/A N/A 37920 1


y T16
storag
e unit
1]
[Batte
ry
pack1
]SOH
Calibr
ation
Status

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 33


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

45 [Energ RO UIN N/A N/A 37921 1


y T16
storag
e unit
1]
[Batte
ry
pack2
]SOH
Calibr
ation
Status

46 [Energ RO UIN N/A N/A 37922 1


y T16
storag
e unit
1]
[Batte
ry
pack3
]SOH
Calibr
ation
Status

47 [Energ RO UIN N/A N/A 37923 1


y T16
storag
e unit
2]
[Batte
ry
pack1
]SOH
Calibr
ation
Status

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 34


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

48 [Energ RO UIN N/A N/A 37924 1


y T16
storag
e unit
2]
[Batte
ry
pack2
]SOH
Calibr
ation
Status

49 [Energ RO UIN N/A N/A 37925 1


y T16
storag
e unit
2]
[Batte
ry
pack3
]SOH
Calibr
ation
Status

50 SOH RO UIN N/A 1 37926 1


Calibr T16
ation
Status

51 SOH RO UIN N/A 10 37927 1


Calibr T16
ation
Releas
e the
lower
discha
rge
limit
of the
SOC

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 35


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

52 SOH RO UIN N/A 10 37928 1


Calibr T16
ation
Enable
the
backu
p
power
SOC.

53 [Energ RO STRI N/A N/A 38200 10 - √


y NG
storag
e unit
1]
[Batte
ry
pack1
]SN

54 [Energ RO STRI N/A N/A 38210 15 - √


y NG
storag
e unit
1]
[Batte
ry
pack1
]Firm
ware
versio
n

55 [Energ RO UIN N/A N/A 38228 1 - √


y T16
storag
e unit
1]
[Batte
ry
pack1
]Work
ing
status

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 36


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

56 [Energ RO UIN % 10 38229 1 - √


y T16
storag
e unit
1]
[Batte
ry
pack1
]SOC

57 [Energ RO INT3 kW 1000 38233 2 - √


y 2
storag
e unit
1]
[Batte
ry
pack1
]Char
ge/
Discha
rge
power

58 [Energ RO UIN V 10 38235 1 - √


y T16
storag
e unit
1]
[Batte
ry
pack1
]Volta
ge

59 [Energ RO INT1 A 10 38236 1 - √


y 6
storag
e unit
1]
[Batte
ry
pack1
]Curre
nt

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 37


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

60 [Energ RO UIN kWh 100 38238 2 - √


y T32
storag
e unit
1]
[Batte
ry
pack1
]Total
charge

61 [Energ RO UIN kWh 100 38240 2 - √


y T32
storag
e unit
1]
[Batte
ry
pack1
]Total
discha
rge

62 [Energ RO STRI N/A N/A 38242 10 - √


y NG
storag
e unit
1]
[Batte
ry
pack2
]SN

63 [Energ RO STRI N/A N/A 38252 15 - √


y NG
storag
e unit
1]
[Batte
ry
pack2
]Firm
ware
versio
n

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 38


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

64 [Energ RO UIN N/A N/A 38270 1 - √


y T16
storag
e unit
1]
[Batte
ry
pack2
]Work
ing
status

65 [Energ RO UIN % 10 38271 1 - √


y T16
storag
e unit
1]
[Batte
ry
pack2
]SOC

66 [Energ RO INT3 kW 1000 38275 2 - √


y 2
storag
e unit
1]
[Batte
ry
pack2
]Char
ge/
Discha
rge
power

67 [Energ RO UIN V 10 38277 1 - √


y T16
storag
e unit
1]
[Batte
ry
pack2
]Volta
ge

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 39


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

68 [Energ RO INT1 A 10 38278 1 - √


y 6
storag
e unit
1]
[Batte
ry
pack2
]Curre
nt

69 [Energ RO UIN kWh 100 38280 2 - √


y T32
storag
e unit
1]
[Batte
ry
pack2
]Total
charge

70 [Energ RO UIN kWh 100 38282 2 - √


y T32
storag
e unit
1]
[Batte
ry
pack2
]Total
discha
rge

71 [Energ RO STRI N/A N/A 38284 10 - √


y NG
storag
e unit
1]
[Batte
ry
pack3
]SN

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 40


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

72 [Energ RO STRI N/A N/A 38294 15 - √


y NG
storag
e unit
1]
[Batte
ry
pack3
]Firm
ware
versio
n

73 [Energ RO UIN N/A N/A 38312 1 - √


y T16
storag
e unit
1]
[Batte
ry
pack3
]Work
ing
status

74 [Energ RO UIN % 10 38313 1 - √


y T16
storag
e unit
1]
[Batte
ry
pack3
]SOC

75 [Energ RO INT3 kW 1000 38317 2 - √


y 2
storag
e unit
1]
[Batte
ry
pack3
]Char
ge/
Discha
rge
power

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 41


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

76 [Energ RO UIN V 10 38319 1 - √


y T16
storag
e unit
1]
[Batte
ry
pack3
]Volta
ge

77 [Energ RO INT1 A 10 38320 1 - √


y 6
storag
e unit
1]
[Batte
ry
pack3
]Curre
nt

78 [Energ RO UIN kWh 100 38322 2 - √


y T32
storag
e unit
1]
[Batte
ry
pack3
]Total
charge

79 [Energ RO UIN kWh 100 38324 2 - √


y T32
storag
e unit
1]
[Batte
ry
pack3
]Total
discha
rge

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 42


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

80 [Energ RO STRI N/A N/A 38326 10 - √


y NG
storag
e unit
2]
[Batte
ry
pack1
]SN

81 [Energ RO STRI N/A N/A 38336 15 - √


y NG
storag
e unit
2]
[Batte
ry
pack1
]Firm
ware
versio
n

82 [Energ RO UIN N/A N/A 38354 1 - √


y T16
storag
e unit
2]
[Batte
ry
pack1
]Work
ing
status

83 [Energ RO UIN % 10 38355 1 - √


y T16
storag
e unit
2]
[Batte
ry
pack1
]SOC

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 43


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

84 [Energ RO INT3 kW 1000 38359 2 - √


y 2
storag
e unit
2]
[Batte
ry
pack1
]Char
ge/
Discha
rge
power

85 [Energ RO UIN V 10 38361 1 - √


y T16
storag
e unit
2]
[Batte
ry
pack1
]Volta
ge

86 [Energ RO INT1 A 10 38362 1 - √


y 6
storag
e unit
2]
[Batte
ry
pack1
]Curre
nt

87 [Energ RO UIN kWh 100 38364 2 - √


y T32
storag
e unit
2]
[Batte
ry
pack1
]Total
charge

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 44


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

88 [Energ RO UIN kWh 100 38366 2 - √


y T32
storag
e unit
2]
[Batte
ry
pack1
]Total
discha
rge

89 [Energ RO STRI N/A N/A 38368 10 - √


y NG
storag
e unit
2]
[Batte
ry
pack2
]SN

90 [Energ RO STRI N/A N/A 38378 15 - √


y NG
storag
e unit
2]
[Batte
ry
pack2
]Firm
ware
versio
n

91 [Energ RO UIN N/A N/A 38396 1 - √


y T16
storag
e unit
2]
[Batte
ry
pack2
]Work
ing
status

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 45


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

92 [Energ RO UIN % 10 38397 1 - √


y T16
storag
e unit
2]
[Batte
ry
pack2
]SOC

93 [Energ RO INT3 kW 1000 38401 2 - √


y 2
storag
e unit
2]
[Batte
ry
pack2
]Char
ge/
Discha
rge
power

94 [Energ RO UIN V 10 38403 1 - √


y T16
storag
e unit
2]
[Batte
ry
pack2
]Volta
ge

95 [Energ RO INT1 A 10 38404 1 - √


y 6
storag
e unit
2]
[Batte
ry
pack2
]Curre
nt

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 46


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

96 [Energ RO UIN kWh 100 38406 2 - √


y T32
storag
e unit
2]
[Batte
ry
pack2
]Total
charge

97 [Energ RO UIN kWh 100 38408 2 - √


y T32
storag
e unit
2]
[Batte
ry
pack2
]Total
discha
rge

98 [Energ RO STRI N/A N/A 38410 10 - √


y NG
storag
e unit
2]
[Batte
ry
pack3
]SN

99 [Energ RO STRI N/A N/A 38420 15 - √


y NG
storag
e unit
2]
[Batte
ry
pack3
]Firm
ware
versio
n

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 47


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

100 [Energ RO UIN N/A N/A 38438 1 - √


y T16
storag
e unit
2]
[Batte
ry
pack3
]Work
ing
status

101 [Energ RO UIN % 10 38439 1 - √


y T16
storag
e unit
2]
[Batte
ry
pack3
]SOC

102 [Energ RO INT3 kW 1000 38443 2 - √


y 2
storag
e unit
2]
[Batte
ry
pack3
]Char
ge/
Discha
rge
power

103 [Energ RO UIN V 10 38445 1 - √


y T16
storag
e unit
2]
[Batte
ry
pack3
]Volta
ge

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 48


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

104 [Energ RO INT1 A 10 38446 1 - √


y 6
storag
e unit
2]
[Batte
ry
pack3
]Curre
nt

105 [Energ RO UIN kWh 100 38448 2 - √


y T32
storag
e unit
2]
[Batte
ry
pack3
]Total
charge

106 [Energ RO UIN kWh 100 38450 2 - √


y T32
storag
e unit
2]
[Batte
ry
pack3
]Total
discha
rge

107 [Energ RO INT1 ℃ 10 38452 1 - √


y 6
storag
e unit
1]
[Batte
ry
pack1
]Maxi
mum
tempe
rature

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 49


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

108 [Energ RO INT1 ℃ 10 38453 1 - √


y 6
storag
e unit
1]
[Batte
ry
pack1
]Mini
mum
tempe
rature

109 [Energ RO INT1 ℃ 10 38454 1 - √


y 6
storag
e unit
1]
[Batte
ry
pack2
]Maxi
mum
tempe
rature

110 [Energ RO INT1 ℃ 10 38455 1 - √


y 6
storag
e unit
1]
[Batte
ry
pack2
]Mini
mum
tempe
rature

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 50


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

111 [Energ RO INT1 ℃ 10 38456 1 - √


y 6
storag
e unit
1]
[Batte
ry
pack3
]Maxi
mum
tempe
rature

112 [Energ RO INT1 ℃ 10 38457 1 - √


y 6
storag
e unit
1]
[Batte
ry
pack3
]Mini
mum
tempe
rature

113 [Energ RO INT1 ℃ 10 38458 1 - √


y 6
storag
e unit
2]
[Batte
ry
pack1
]Maxi
mum
tempe
rature

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 51


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

114 [Energ RO INT1 ℃ 10 38459 1 - √


y 6
storag
e unit
2]
[Batte
ry
pack1
]Mini
mum
tempe
rature

115 [Energ RO INT1 ℃ 10 38460 1 - √


y 6
storag
e unit
2]
[Batte
ry
pack2
]Maxi
mum
tempe
rature

116 [Energ RO INT1 ℃ 10 38461 1 - √


y 6
storag
e unit
2]
[Batte
ry
pack2
]Mini
mum
tempe
rature

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 52


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

117 [Energ RO INT1 ℃ 10 38462 1 - √


y 6
storag
e unit
2]
[Batte
ry
pack3
]Maxi
mum
tempe
rature

118 [Energ RO INT1 ℃ 10 38463 1 - √


y 6
storag
e unit
2]
[Batte
ry
pack3
]Mini
mum
tempe
rature

119 [Energ RW UIN N/A 1 47000 1 0: √ √


y T16 None
storag 1: LG-
e unit RESU
1]
Produ 2:
ct HUA
mode WEI-
LUNA
2000

120 [Energ RW MUL N/A 1 47028 41 For √


y TIDA detail
storag TA s,
e] see5.
Time- 4
of-use
electri
city
price
period
s

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 53


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

121 [Energ RW UIN W 1 47075 2 [0, √ √


y T32 Upper
storag thres
e]Max hold]
imum Defau
chargi lt
ng value:
power 3500;

122 [Energ RW UIN W 1 47077 2 [0, √ √


y T32 Upper
storag thres
e]Max hold]
imum Defau
discha lt
rging value:
power 3500;

123 [Energ RW UIN % 10 47081 1 [90,1 √ (√)


y T16 00]
storag Defau
e]Char lt
ging value:
cutoff 100
capaci
ty

124 [Energ RW UIN % 10 47082 1 [12,2 √ (√)


y T16 0]
storag Defau
e] lt
Discha value:
rge 15
cutoff
capaci
ty

125 [Energ RW UIN mins 1 47083 1 [0,14 √ (√)


y T16 40]
storag The
e]Forc value
ed is not
chargi stored
ng .
and
discha
rging
period

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 54


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

126 [Energ RW INT3 W 1 47084 2 [-


y 2 "Maxi
storag mum
e]Forc disch
ed arge
chargi power
ng ",
and "Maxi
discha mum
rging charg
power e
power
"]
Force
d
charg
e/
disch
arge
power

Maxi
mum
charg
e/
disch
arge
power

Rated
charg
e/
disch
arge
power
Do
not
store

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 55


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

127 [Energ RW UIN N/A 1 47086 1 0:Ada √ (√)


y T16 ptive(
storag Fixed
e]Wor charg
king e/
mode disch
settin arge/
gs Maxi
mise
self
consu
mptio
n);
1:Fixe
d
charg
e/
disch
arge;
2:Max
imise
self
consu
mptio
n;
3:Tim
e Of
Use(L
G);
4:Full
y fed
to
grid;
5:Tim
e Of
Use(L
una)

128 [Energ RW UIN N/A 1 47087 1 0: √ (√)


y T16 Disabl
storag e
e] 1:
Charg Enabl
e from e
grid
Functi
on

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 56


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

129 [Energ RW UIN % 10 47088 1 [20,1 √ (√)


y T16 00]
storag Defau
e] lt: 50
Grid
charge
cutoff
SOC

130 [Energ RW UIN N/A 1 47089 1 0: √


y T16 none
storag 1: LG-
e unit RESU
2]
Produ 2:
ct HUA
model WEI-
LUNA
2000

131 [Energ RW UIN N/A 1 47100 1 0: √ √


y T16 Stop
storag 1:
e] Charg
Forcibl e
e
charge 2:
/ Disch
discha arge
rge

132 [Energ RW UIN % 10 47101 1 [0,10


y T16 0]
storag
e]
Target
SOC

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 57


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

133 [Energ RW UIN % 10 47102 1 Defini √ √


y T16 tion:
storag Resev
e] ed
Backu energ
p y
power stora
SOC ge
capac
ity in
backu
p
mode
Settin
g
range:
[0,10
0]
Execu
tion
range:
LG:
[12,1
00],
Defau
lt
value:
15
Luna:
[0,10
0],
Defau
lt
value:
0

134 [Energ RW UIN N/A 1 47106 1 0:non


y T16 e
storag 1:LG-
e] RESU
Produ
ct 2:HU
model AWEI
-
LUNA
2000

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 58


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

135 [Energ RW UIN N/A 1 47107 1 [0,65 √


y T16 534]
storag Defau
e unit lt: 0.
1] No. Whic
h
mean
s no
equip
ment.

136 [Energ RW UIN N/A 1 47108 1 [0,65 √


y T16 534]
storag Defau
e unit lt: 0.
2] No. Whic
h
mean
s no
equip
ment.

137 [Energ RW MUL N/A 1 47200 41 For √


y TIDA detail
storag TA s,
e] see5.
Fixed 4
chargi
ng
and
discha
rging
period
s

138 [Energ RW UIN kW 1000 47242 2 [0, √ √


y T32 maxi
storag mum
e] power
Power of
of charg
charge e
from from
grid grid]

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 59


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

139 [Energ RW UIN kW 1000 47244 2 Defau √ √


y T32 lt:200
storag 0
e]Max
imum
power
of
charge
from
grid

140 [Energ RW UIN N/A 1 47246 1 0: √ √


y T16 Durati
storag on
e]Forci
ble
charge
/
discha
rge
settin
g
mode

141 [Energ RW UIN kW 1000 47247 2 [0,ma √ √


y T32 ximu
storag m
e] charg
Forcibl e
e power
charge ]
power

142 [Energ RW UIN kW 1000 47249 2 [0,ma √ √


y T32 ximu
storag m
e] disch
Forcibl arge
e power
discha ]
rge
power

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 60


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

143 [Energ RW Byte N/A 1 47255 43 For √


y s detail
storag s,
e]Tim see5.
e of 4
Use
chargi
ng
and
discha
rging
period
s

144 [Energ RW UIN N/A 1 47299 1 0: Fed √


y T16 to
storag grid
e] 1:
Excess Charg
PV e
energy
use in Note:
TOU Boun
d
with
the
grid
code.
Japan:
Fed
to
grid
Other
count
ries:
Charg
e

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 61


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

145 Active RW UIN N/A 1 47415 1 0:


power T16 Unlim
contro ited
l (defa
mode ult)
1: DI
active
sched
uling
5:
Zero
power
grid
conne
ction
6:
Power
-
limite
d grid
conne
ction
(kW)
7:
Power
-
limite
d grid
conne
ction
(%)

146 Maxi RW INT3 Kw 1000 47416 2 [-100


mum 2 0,Plan
Feed t
Grid Capac
Power ity]
(kW) defau
lt:0

147 Maxi RW INT1 % 10 47418 1 [0,10


mum 6 0]
Feed defau
Grid lt:0
Power
(%)

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 62


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

148 [Dong RW UIN Kw 1000 47590 2 [0,30] √ √


le] T32
[Plant
]maxi
mum
charge
-from-
grid
power

149 [Back RW UIN N/A 1 47604 1 0: √ √


up]Sw T16 Switc
itch to h
off- from
grid grid-
tied
to
off-
grid

150 [Back RW UIN V 1 47605 1 0: √ √


up] T16 101V
Voltag 1:
e in 202V
indepe
ndent
operat
ion

151 [Energ RW UIN N/A N/A 47750 1 [0,65 √


y T16 534]
storag Defau
e unit lt: 0.
1] Whic
[Batte h
ry mean
pack1 s no
]No. equip
ment.

152 [Energ RW UIN N/A N/A 47751 1 [0,65 √


y T16 534]
storag Defau
e unit lt: 0.
1] Whic
[Batte h
ry mean
pack2 s no
]No. equip
ment.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 63


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope HUAWEI- LG-
Name Write LUNA2000 RESU

153 [Energ RW UIN N/A N/A 47752 1 [0,65 √


y T16 534]
storag Defau
e unit lt: 0.
1] Whic
[Batte h
ry mean
pack3 s no
]No. equip
ment.

154 [Energ RW UIN N/A N/A 47753 1 [0,65 √


y T16 534]
storag Defau
e unit lt: 0.
2] Whic
[Batte h
ry mean
pack1 s no
]No. equip
ment.

155 [Energ RW UIN N/A N/A 47754 1 [0,65 √


y T16 534]
storag Defau
e unit lt: 0.
2] Whic
[Batte h
ry mean
pack2 s no
]No. equip
ment.

156 [Energ RW UIN N/A N/A 47755 1 [0,65 √


y T16 534]
storag Defau
e unit lt: 0.
2] Whic
[Batte h
ry mean
pack3 s no
]No. equip
ment.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 64


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

NOTICE

[1]Two sets of energy storage devices at most can be connected to one inverter. If
the inverter is connected to only one set of energy storage devices, the energy
storage unit(ESU) corresponds to [Energy storage unit 1]. If two ESUs are
connected, the second ESU corresponds to [Energy storage unit 2]. Currently, only
one set of LG-RESU can be connected, and two sets of HUAWEI-LUNA2000 can be
connected.
[2] (√) indicates that the register is used by LG energy storage devices in the old
inverter but is no longer used in the new version.

3.3 Meter Equipment Register


Table 3-3 Meter Register Defination List
No. Signal Read/ Type Unit Gain Address Quantity Scope
Name Write

1 Meter RO UINT1 N/A 1 37100 1 0: offline


status 6 1: normal

2 Grid RO INT32 V 10 37101 2


voltage (A
phase)

3 B phase RO INT32 V 10 37103 2


voltage

4 C phase RO INT32 V 10 37105 2


voltage

5 Grid RO INT32 A 100 37107 2


current(A
phase)

6 B phase RO INT32 A 100 37109 2


current

7 C phase RO INT32 A 100 37111 2


current

8 Active RO INT32 W 1 37113 2 >0: feed-in


power to the
power grid.
<0: supply
from the
power grid.

9 Reactive RO INT32 Var 1 37115 2


power

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 65


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

10 Power RO INT16 NA 1000 37117 1


factor

11 Grid RO INT16 Hz 100 37118 1


frequency

12 Positive RO INT32 kWh 100 37119 2 Electricity


active fed by the
electricity inverter to
the power
grid.

13 Reverse RO INT32 kWh 100 37121 2 Power


active supplied to
power a
distributed
system
from the
power grid.

14 Accumulat RO INT32 kVar 100 37123 2


ed reactive h
power

15 Meter type RO UINT1 N/A 1 37125 1 0: single-


6 phase.
1: three-
phase.

16 A-B line RO INT32 V 10 37126 2


voltage

17 B-C line RO INT32 V 10 37128 2


voltage

18 CA line RO INT32 V 10 37130 2


voltage

19 A phase RO INT32 W 1 37132 2 > 0: feed-in


active to the
power power grid.
<0: supply
from the
power grid

20 B phase RO INT32 W 1 37134 2 > 0: feed-in


active to the
power power grid.
<0: supply
from the
power grid

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 66


SUN2000LB
Modbus Interface Definitions 3 Register Definitions

No. Signal Read/ Type Unit Gain Address Quantity Scope


Name Write

21 C phase RO INT32 W 1 37136 2 > 0: feed-in


active to the
power power grid.
<0: supply
from the
power grid

22 Meter RO UINT1 N/A 1 37138 1 0: being


model 6 identified
detection 1: The
result selected
model is
the same
as the
actual
model of
the
connected
meter.
2: The
selected
model is
different
from the
actual
model of
the
connected
meter.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 67


SUN2000LB
Modbus Interface Definitions 4 Customized Interfaces

4 Customized Interfaces

4.1 Obtaining the System Information of Optimizers


Data synchronization mechanism: The host is driven to refresh the system
information of optimizers by the change of the serial number (SN).

Synchronization process: For details, see 6.3.7.1 Uploading Files.

Data storage of the solar inverters: After the device search and positioning are
complete, the record is updated. The record format is as follows:

File type: 0x45

Table 4-1 File format(V103)

Data Length (Bytes) Remarks

File version 4 V103

Feature data sequence number 2

Length 2

Reserved 1 The reserved byte 0 is defined


as the status.
bit0: inverter disconnection
status (1=disconnected)

Number of optimizers 2 Total number, including the


offline optimizers.

Feature data of optimizer 1 116 For details about the data


domain definition, see the
Optimizer Feature Data
Domain Definition.

Feature data of optimizer 2 116

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 68


SUN2000LB
Modbus Interface Definitions 4 Customized Interfaces

Data Length (Bytes) Remarks

Feature data of optimizer… 116

Feature data of optimizer N 116

Table 4-2 Feature data unit format(V103)

Data Length (Bytes) Remarks

Optimizer address 2 RS485 address

Online status 2 0: offline


1: online
2: disconnected

String number 2

Position in current string 2 relative positive connection


starting point

SN 20

Software version 30

Alias 20

Model 30

Model ID 2

One optimizer to N optimizers 2 Consistent with the optimizer


southbound interface 30067

Rated power 2

CPU Type 2 Consistent with the optimizer


southbound interface 3009

Table 4-3 File format(V102)

Data Length (Bytes) Remarks

File version 4 V102

Feature data sequence number 2

Length 2

Reserved 1 The reserved byte 0 is defined


as the status.
bit0: inverter disconnection
status (1=disconnected)

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 69


SUN2000LB
Modbus Interface Definitions 4 Customized Interfaces

Data Length (Bytes) Remarks

Number of optimizers 2 Total number, including the


offline optimizers.

Feature data of optimizer 1 108 For details about the data


domain definition, see the
Optimizer Feature Data
Domain Definition.

Feature data of optimizer 2 108

Feature data of optimizer… 108

Feature data of optimizer N 108

Table 4-4 Feature data unit format(V102)


Data Length (Bytes) Remarks

Optimizer address 2 RS485 address

Online status 2 0: offline


1: online
2: disconnected

String number 2

Position in current string 2 relative positive connection


starting point

SN 20

Software version 30

Alias 20

Model 30

Table 4-5 Record format(V101)


Data Length (Byte) Remarks

Format version 4 V101

SN 2 -

Length 2 -

Reserved 4 -

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 70


SUN2000LB
Modbus Interface Definitions 4 Customized Interfaces

Data Length (Byte) Remarks

Number of optimizers 2 n, including the offline


optimizers

Feature data of optimizer 1 78 -

Feature data of optimizer 2 78 -

... ... -

Feature data of optimizer n 78 -

Table 4-6 Feature data format (V101)

Data Length (Byte) Remarks

Optimizer address 2 Logical communication


address

Status 2 0: offline
1: online

String number 2 -

Relative position of the PV 2 1: near DC wiring terminals of


string the solar inverters

SN 20 -

Software version 30 -

Alias 20 -

4.2 Obtaining Real-time Data of Optimizers


Data synchronization mechanism: five-minute interval
Synchronization process: uploads the files and synchronizes data according to the
time period; uploads the most recent data if there is no filter condition. For details,
see 6.3.7.1 Uploading Files.
Data storage: stores real-time data at five-minute intervals.
File type: 0x44

Table 4-7 Record format

Data Length (Byte) Remarks

File version 4 V101

Reserved 8 -

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 71


SUN2000LB
Modbus Interface Definitions 4 Customized Interfaces

Data Length (Byte) Remarks

Optimizer data unit 1 N 12 + 26 x Number of


optimizers , For details about
the definition of this unit, see
the data unit format.

Optimizer data unit 2 N -

... - -

Optimizer data unit n N n indicates the number of data


records that meet the filter
condition. Each piece of data
contains all optimizer data for
a time node.

Table 4-8 Data unit format (V101)


Data Length (Byte) Remarks

Time 4 Epoch seconds, local time

Reserved 4 -

Length 2 -

Number of optimizers 2 -

Real-time data of optimizer 1 26 For details about the definition of this unit,
see the real-time data format.

Real-time data of optimizer 2 26 -

... - -

Real-time data of optimizer n 26 n is the number of optimizers.

Table 4-9 Real-time data format


Data Length (Byte) Remarks

Optimizer address 2 Logical communication address

Output power 2 Gain: 10


Unit: W

Voltage to ground 2 Gain: 10


Unit: V

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 72


SUN2000LB
Modbus Interface Definitions 4 Customized Interfaces

Data Length (Byte) Remarks

Alarm 4 Bit00: input overvoltage


Bit01: input undervoltage
Bit02: output overvoltage
Bit04: overtemperature
Bit06: output short circuit
Bit07: EEPROM fault
Bit08: internal hardware fault
Bit09: abnormal voltage to ground
Bit 10: power-off due to heartbeat timeout
Bit 11: fast shutdown
Bit 12: request escape alarm
Bit 13: version mismatch alarm
Bit 16: input overvoltage
Bit 17: overtemperature
Bit 18: output short circuit
Bit 19: internal hardware fault
Bit 20: version mismatch alarm
Bit 21: backfeed alarm
Bit 22: abnormal output voltage
Bit 23: upgrade failure
Bit 31: alarm display selection, 1=Display
bit 16 to bit 30 alarms, 0: Bits 0 to 15 are
displayed.

Output voltage 2 Gain: 10


Unit: V

Output current 2 Gain: 100


Unit: A

Input voltage 2 Gain: 10


Unit: V

Input current 2 Gain: 100


Unit: A

Temperature 2 Gain: 10
Unit: °C

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 73


SUN2000LB
Modbus Interface Definitions 4 Customized Interfaces

Data Length (Byte) Remarks

Running status 2 0: offline


1: standby
3: faulty
4: running
12: power-off

Accumulated energy yield 4 Gain: 1000


Unit: kWh

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 74


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

5 Interface Instructions

5.1 Alarm Information


Table 5-1 Alarm information

No. Alarm Bit Alarm Name Alarm ID Level

1 Alarm 0 High String Input Voltage 2001 Major


1

2 Alarm 1 DC Arc Fault[1] 2002 Major


1

3 Alarm 2 String Reverse Connection 2011 Major


1

4 Alarm 3 String Current Backfeed 2012 Warning


1

5 Alarm 4 Abnormal String Power 2013 Warning


1

6 Alarm 5 AFCI Self-Check Fail.[1] 2021 Major


1

7 Alarm 6 Phase Wire Short-Circuited to PE 2031 Major


1

8 Alarm 7 Grid Loss 2032 Major


1

9 Alarm 8 Grid Undervoltage 2033 Major


1

10 Alarm 9 Grid Overvoltage 2034 Major


1

11 Alarm 10 Grid Volt. Imbalance 2035 Major


1

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 75


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Alarm Bit Alarm Name Alarm ID Level

12 Alarm 11 Grid Overfrequency 2036 Major


1

13 Alarm 12 Grid Underfrequency 2037 Major


1

14 Alarm 13 Unstable Grid Frequency 2038 Major


1

15 Alarm 14 Output Overcurrent 2039 Major


1

16 Alarm 15 Output DC Component Overhigh 2040 Major


1

17 Alarm 0 Abnormal Residual Current 2051 Major


2

18 Alarm 1 Abnormal Grounding 2061 Major


2

19 Alarm 2 Low Insulation Resistance 2062 Major


2

20 Alarm 3 Overtemperature 2063 Minor


2

21 Alarm 4 Device Fault 2064 Major


2

22 Alarm 5 Upgrade Failed or Version Mismatch 2065 Minor


2

23 Alarm 6 License Expired 2066 Warning


2

24 Alarm 7 Faulty Monitoring Unit 61440 Minor


2

25 Alarm 8 Faulty Power Collector[2] 2067 Major


2

26 Alarm 9 Battery abnormal 2068 Minor


2

27 Alarm 10 Active Islanding 2070 Major


2

28 Alarm 11 Passive Islanding 2071 Major


2

29 Alarm 12 Transient AC Overvoltage 2072 Major


2

30 Alarm 13 Peripheral port short circuit[3] 2075 Warning


2

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 76


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Alarm Bit Alarm Name Alarm ID Level

31 Alarm 14 Churn output overload[4] 2077 Major


2

32 Alarm 15 Abnormal PV module configuration 2080 Major


2

33 Alarm 0 Optimizer fault[5] 2081 Warning


3

34 Alarm 1 Built-in PID operation abnormal[6] 2085 Minor


3

35 Alarm 2 High input string voltage to ground. 2014 Major


3

36 Alarm 3 External Fan Abnormal 2086 Major


3

37 Alarm 4 Battery Reverse Connection[7] 2069 Major


3

38 Alarm 5 On-grid/Off-grid controller 2082 Major


3 abnormal[4]

39 Alarm 6 PV String Loss 2015 Warning


3

40 Alarm 7 Internal Fan Abnormal 2087 Major


3

41 Alarm 8 DC Protection Unit Abnormal[8] 2088 Major


3

42 Alarm 9 EL Unit Abnormal 2089 Minor


3

43 Alarm 10 Active Adjustment Instruction 2090 Major


3 Abnormal

44 Alarm 11 Reactive Adjustment Instruction 2091 Major


3 Abnormal

45 Alarm 12 CT Wiring Abnormal 2092 Major


3

46 Alarm 13 DC Arc Fault(ADMC Alarm to be 2003 Major


3 clear manually)

47 Alarm 14 DC Switch Abnormal 2093 Minor


3

48 Alarm 15 Allowable discharge capacity of the 2094 Warning


3 battery is low

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 77


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

NOTICE
The preceding table lists the alarm information about Huawei solar inverters.
Some alarms can be detected only after corresponding functional modules are
configured.

NOTE
[1] AFCI functional unit
[2] Power collector or power meter connected to the solar inverters
[3] Detection of the external ports of the solar inverters that provide the 12 V power supply
[4] This item can be detected when a built-in or external on-grid/off-grid functional unit is
configured.
[5] This item can be detected when optimizers are configured on the DC side.
[6] This item can be detected when the solar inverters are configured with PID functional
units.
[7] This item can be detected when energy storage units (ESUs) are configured.
[8] Some models have DC protection units.

5.2 Power Grid Scheduling


This section describes the curve configuration format and precautions for power
grid scheduling by curve.

5.2.1 cosφ-P/Pn Characteristic Curve


Table 5-2 cosφ-P/Pn characteristic curve definition

Description Data Type Gain Unit Value Range

Number of points U16 1 N/A [2, 10]

P/Pn value at point 1 U16 10 % [0, 100]

cosφ value at point 1 I16 1000 N/A (–1, –0.8]U[0.8, 1]

P/Pn value at point 2 U16 10 % [0, 100]

cosφ value at point 2 I16 1000 N/A (–1, –0.8]U[0.8, 1]

P/Pn value at point 3 U16 10 % [0, 100]

cosφ value at point 3 I16 1000 N/A (–1, –0.8]U[0.8, 1]

P/Pn value at point 4 U16 10 % [0, 100]

cosφ value at point 4 I16 1000 N/A (–1, –0.8]U[0.8, 1]

P/Pn value at point 5 U16 10 % [0, 100]

cosφ value at point 5 I16 1000 N/A (–1, –0.8]U[0.8, 1]

P/Pn value at point 6 U16 10 % [0, 100]

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 78


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

Description Data Type Gain Unit Value Range

cosφ value at point 6 I16 1000 N/A (–1, –0.8]U[0.8, 1]

P/Pn value at point 7 U16 10 % [0,100]

cosφ value at point 7 I16 1000 N/A (–1,–0.8]U[0.8,1]

P/Pn value at point 8 U16 10 % [0, 100]

cosφ value at point 8 I16 1000 N/A (–1, –0.8]U[0.8, 1]

P/Pn value at point 9 U16 10 % [0, 100]

cosφ value at point 9 I16 1000 N/A (–1, –0.8]U[0.8, 1]

P/Pn value at point 10 U16 10 % [0, 100]

cosφ value at point 10 I16 1000 N/A (–1, –0.8]U[0.8, 1]

5.2.2 Q-U Characteristic Curve


Table2 Q-U Characteristic Curve definition

Description Data Gain Unit Value Range


Type

Number of points U16 1 N/A [2, 10]

U/Un value at point 1 U16 10 % [80, 136]

Q/S value at point 1 I16 1000 N/A [–0.6, 0.6]

U/Un value at point 2 U16 10 % [80, 136]

Q/S value at point 2 I16 1000 N/A [–0.6, 0.6]

U/Un value at point 3 U16 10 % [80, 136]

Q/S value at point 3 I16 1000 N/A [–0.6, 0.6]

U/Un value at point 4 U16 10 % [80, 136]

Q/S value at point 4 I16 1000 N/A [–0.6, 0.6]

U/Un value at point 5 U16 10 % [80, 136]

Q/S value at point 5 I16 1000 N/A [–0.6, 0.6]

U/Un value at point 6 U16 10 % [80, 136]

Q/S value at point 6 I16 1000 N/A [–0.6, 0.6]

U/Un value at point 7 U16 10 % [80, 136]

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 79


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

Description Data Gain Unit Value Range


Type

Q/S value at point 7 I16 1000 N/A [–0.6, 0.6]

U/Un value at point 8 U16 10 % [80, 136]

Q/S value at point 8 I16 1000 N/A [–0.6, 0.6]

U/Un value at point 9 U16 10 % [80, 136]

Q/S value at point 9 I16 1000 N/A [–0.6, 0.6]

U/Un value at point 10 U16 10 % [80, 136]

Q/S value at point 10 I16 1000 N/A [–0.6, 0.6]

NOTICE
In Italian standards, this curve may be used together with the Q-U characteristic
curve mode, Q-U dispatch trigger power (%), and Q-U power percentage to
exit scheduling parameters.

5.2.3 PF-U Characteristic Curve


Table3 PF-U Characteristic Curve definition

Description Data Type Gain Unit Value Range

Number of points U16 1 N/A [2, 10]

U/Un value at point 1 U16 10 % [80, 136]

PF value at point 1 I16 1000 N/A (–1, –0.8]U[0.8, 1]

U/Un value at point 2 U16 10 % [80, 136]

PF value at point 2 I16 1000 N/A (–1, –0.8]U[0.8, 1]

U/Un value at point 3 U16 10 % [80, 136]

PF value at point 3 I16 1000 N/A (–1, –0.8]U[0.8, 1]

U/Un value at point 4 U16 10 % [80, 136]

PF value at point 4 I16 1000 N/A (–1, –0.8]U[0.8, 1]

U/Un value at point 5 U16 10 % [80, 136]

PF value at point 5 I16 1000 N/A (–1, –0.8]U[0.8, 1]

U/Un value at point 6 U16 10 % [80, 136]

PF value at point 6 I16 1000 N/A (–1, –0.8]U[0.8, 1]

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 80


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

Description Data Type Gain Unit Value Range

U/Un value at point 7 U16 10 % [80, 136]

PF value at point 7 I16 1000 N/A (–1, –0.8]U[0.8, 1]

U/Un value at point 8 U16 10 % [80, 136]

PF value at point 8 I16 1000 N/A (–1, –0.8]U[0.8, 1]

U/Un value at point 9 U16 10 % [80, 136]

PF value at point 9 I16 1000 N/A (–1, –0.8]U[0.8, 1]

U/Un value at point 10 U16 10 % [80, 136]

PF value at point 10 I16 1000 N/A (–1, –0.8]U[0.8, 1]

5.3 Grid Codes


Table 5-3 List of grid codes

No. Standard Applicable Country or


Region

0 VDE-AR-N-4105 Germany

1 NB/T 32004 China

2 UTE C 15-712-1(A) France

3 UTE C 15-712-1(B) France

4 UTE C 15-712-1(C) France

5 VDE 0126-1-1-BU Bulgarian

6 VDE 0126-1-1-GR(A) Greece

7 VDE 0126-1-1-GR(B) Greece

8 BDEW-MV Germany

9 G59-England United Kingdom

10 G59-Scotland United Kingdom

11 G83-England United Kingdom

12 G83-Scotland United Kingdom

13 CEI0-21 Italy

14 EN50438-CZ Czech Republic

15 RD1699/661 Spain

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 81


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

16 RD1699/661-MV480 Spain

17 EN50438-NL Netherlands

18 C10/11 Belgium

19 AS4777 Australia

20 IEC61727 common

21 自定义(50Hz) Custom

22 自定义(60Hz) Custom

23 CEI0-16 Italy

24 CHINA-MV480 China

25 CHINA-MV China

26 TAI-PEA Thailand

27 TAI-MEA Thailand

28 BDEW-MV480 Germany

29 自定义-MV480(50Hz) Custom

30 自定义-MV480(60Hz) Custom

31 G59-England-MV480 United Kingdom

32 IEC61727-MV480 common

33 UTE C 15-712-1-MV480 France

34 TAI-PEA-MV480 Thailand

35 TAI-MEA-MV480 Thailand

36 EN50438-DK-MV480 Denmark

37 日本标准(50Hz) Japan

38 日本标准(60Hz) Japan

39 EN50438-TR-MV480 Turkey

40 EN50438-TR Turkey

41 C11/C10-MV480 Belgium

42 Philippines Philippines

43 Philippines-MV480 Philippines

44 AS4777-MV480 Australia

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 82


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

45 NRS-097-2-1 South Africa

46 NRS-097-2-1-MV480 South Africa

47 KOREA Korea

48 IEEE 1547-MV480 United States

49 IEC61727-60Hz common

50 IEC61727-60Hz-MV480 common

51 CHINA_MV500 China

52 ANRE Romania

53 ANRE-MV480 Romania

54 ELECTRIC RULE NO.21- California, USA


MV480

55 HECO-MV480 Hawaii, United States

56 PRC_024_Eastern-MV480 Eastern U.S.

57 PRC_024_Western- American West


MV480

58 PRC_024_Quebec-MV480 Quebec, Canada

59 PRC_024_ERCOT-MV480 Texas, USA

60 PO12.3-MV480 Spain

61 EN50438_IE-MV480 Ireland

62 EN50438_IE Ireland

63 IEEE 1547a-MV480 United States

64 日本标准(MV420-50Hz) Japan

65 日本标准(MV420-60Hz) Japan

66 日本标准(MV440-50Hz) Japan

67 日本标准(MV440-60Hz) Japan

68 IEC61727-50Hz-MV500 common

69 VDE-AR-N-4105-MV480 Germany

70 CEI0-16-MV480 Italy

71 PO12.3 Spain

72 日本标准(MV400-50Hz) Japan

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 83


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

73 日本标准(MV400-60Hz) Japan

74 CEI0-21-MV480 Italy

75 KOREA-MV480 Korea

76 Egypt ETEC Egypt

77 Egypt ETEC-MV480 Egypt

78 CHINA_MV800 China

79 IEEE 1547-MV600 United States

80 ELECTRIC RULE NO.21- California, USA


MV600

81 HECO-MV600 Hawaii, United States

82 PRC_024_Eastern-MV600 Eastern U.S.

83 PRC_024_Western- American West


MV600

84 PRC_024_Quebec-MV600 Quebec, Canada

85 PRC_024_ERCOT-MV600 Texas, USA

86 IEEE 1547a-MV600 United States

87 EN50549-LV Ireland

88 EN50549-MV480 Ireland

89 Jordan-Transmission Jordan

90 Jordan-Transmission- Jordan
MV480

91 NAMIBIA Namibia

92 ABNT NBR 16149 Brazil

93 ABNT NBR 16149- Brazil


MV480

94 SA_RPPs South Africa

95 SA_RPPs-MV480 South Africa

96 INDIA India

97 INDIA-MV500 India

98 ZAMBIA Zambia

99 ZAMBIA-MV480 Zambia

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 84


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

100 Chile Chile

101 Chile-MV480 Chile

102 CHINA-MV500-STD China

103 CHINA-MV480-STD China

104 Mexico-MV480 Mexico

105 Malaysian Malaysia

106 Malaysian-MV480 Malaysia

107 KENYA_ETHIOPIA East Africa

108 KENYA_ETHIOPIA- East Africa


MV480

109 G59-England-MV800 United Kingdom

110 NIGERIA Nigeria

111 NIGERIA-MV480 Nigeria

112 DUBAI Duba

113 DUBAI-MV480 Duba

114 Northern Ireland Northern Ireland

115 Northern Ireland-MV480 Northern Ireland

116 Cameroon Cameroon

117 Cameroon-MV480 Cameroon

118 Jordan-Distribution Jordan

119 Jordan-Distribution- Jordan


MV480

120 Custom-MV600-50Hz Custom

121 AS4777-MV800 Australia

122 INDIA-MV800 India

123 IEC61727-MV800 common

124 BDEW-MV800 Germany

125 ABNT NBR 16149- Brazil


MV800

126 UTE C 15-712-1-MV800 France

127 Chile-MV800 Chile

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 85


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

128 Mexico-MV800 Mexico

129 EN50438-TR-MV800 Turkey

130 TAI-PEA-MV800 Thailand

131 Philippines-MV800 Philippines

132 Malaysian-MV800 Malaysia

133 NRS-097-2-1-MV800 South Africa

134 SA_RPPs-MV800 South Africa

135 Jordan-Transmission- Jordan


MV800

136 Jordan-Distribution- Jordan


MV800

137 Egypt ETEC-MV800 Egypt

138 DUBAI-MV800 Duba

139 SAUDI-MV800 Saudi Arabia

140 EN50438_IE-MV800 Ireland

141 EN50549-MV800 Ireland

142 Northern Ireland-MV800 Northern Ireland

143 CEI0-21-MV800 Italy

144 IEC 61727-MV800-60Hz common

145 NAMIBIA_MV480 Namibia

146 Japan(LV202-50Hz) Japan

147 Japan(LV202-60Hz) Japan

148 Pakistan-MV800 Pakistan

149 BRASIL-ANEEL-MV800 Brazil

150 Israel-MV800 Israel

151 CEI0-16-MV800 Italy

152 ZAMBIA-MV800 Zambia

153 KENYA_ETHIOPIA- East Africa


MV800

154 NAMIBIA_MV800 Namibia

155 Cameroon-MV800 Cameroon

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 86


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

156 NIGERIA-MV800 Nigeria

157 ABUDHABI-MV800 Abu Dhabi

158 LEBANON Lebanon

159 LEBANON-MV480 Lebanon

160 LEBANON-MV800 Lebanon

161 ARGENTINA-MV800 Argentina

162 ARGENTINA-MV500 Argentina

163 Jordan-Transmission-HV Jordan

164 Jordan-Transmission- Jordan


HV480

165 Jordan-Transmission- Jordan


HV800

166 TUNISIA Tunisia

167 TUNISIA-MV480 Tunisia

168 TUNISIA-MV800 Tunisia

169 JAMAICA-MV800 Jamaica

170 AUSTRALIA-NER Australia

171 AUSTRALIA-NER-MV480 Australia

172 AUSTRALIA-NER-MV800 Australia

173 SAUDI Saudi Arabia

174 SAUDI-MV480 Saudi Arabia

175 Ghana-MV480 Ghana

176 Israel Israel

177 Israel-MV480 Israel

178 Chile-PMGD Chile

179 Chile-PMGD-MV480 Chile

180 VDE-AR-N4120-HV Germany

181 VDE-AR-N4120-HV480 Germany

182 VDE-AR-N4120-HV800 Germany

183 IEEE 1547-MV800 United States

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 87


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

184 Nicaragua-MV800 Nicaragua

185 IEEE 1547a-MV800 United States

186 ELECTRIC RULE NO.21- California, USA


MV800

187 HECO-MV800 Hawaii, United States

188 PRC_024_Eastern-MV800 Eastern U.S.

189 PRC_024_Western- American West


MV800

190 PRC_024_Quebec-MV800 Quebec, Canada

191 PRC_024_ERCOT-MV800 Texas, USA

192 Custom-MV800-50Hz Custom

193 RD1699/661-MV800 Spain

194 PO12.3-MV800 Spain

195 Mexico-MV600 Mexico

196 Vietnam-MV800 Vietnam

197 CHINA-LV220/380 China

198 SVG-LV Specialized

199 Vietnam Vietnam

200 Vietnam-MV480 Vietnam

201 Chile-PMGD-MV800 Chile

202 Ghana-MV800 Ghana

203 TAIPOWER China Taiwan

204 TAIPOWER-MV480 China Taiwan

205 TAIPOWER-MV800 China Taiwan

206 IEEE 1547-LV208 United States

207 IEEE 1547-LV240 United States

208 IEEE 1547a-LV208 United States

209 IEEE 1547a-LV240 United States

210 ELECTRIC RULE NO.21- United States


LV208

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 88


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

211 ELECTRIC RULE NO.21- United States


LV240

212 HECO-O+M+H-LV208 United States

213 HECO-O+M+H-LV240 United States

214 PRC_024_Eastern-LV208 United States

215 PRC_024_Eastern-LV240 United States

216 PRC_024_Western-LV208 United States

217 PRC_024_Western-LV240 United States

218 PRC_024_ERCOT-LV208 United States

219 PRC_024_ERCOT-LV240 United States

220 PRC_024_Quebec-LV208 United States

221 PRC_024_Quebec-LV240 United States

222 ARGENTINA-MV480 Argentina

223 Oman Oman

224 Oman-MV480 Oman

225 Oman-MV800 Oman

226 Kuwait Kuwait

227 Kuwait-MV480 Kuwait

228 Kuwait-MV800 Kuwait

229 Bangladesh Bengal

230 Bangladesh-MV480 Bengal

231 Bangladesh-MV800 Bengal

232 Chile-Net_Billing Chile

233 EN50438-NL-MV480 Netherlands

234 Bahrain Bahrain

235 Bahrain-MV480 Bahrain

236 Bahrain-MV800 Bahrain

237 Fuel-Engine-Grid Specialized

238 Japan-MV550-50Hz Japan

239 Japan-MV550-60Hz Japan

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 89


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

240 Fuel-Engine-Grid-60Hz Specialized

241 ARGENTINA Argentina

242 KAZAKHSTAN-MV800 Kazakhstan

243 Mauritius Mauritius

244 Mauritius-MV480 Mauritius

245 Mauritius-MV800 Mauritius

246 Oman-PDO-MV800 Oman

247 EN50438-SE Sweden

248 TAI-MEA-MV800 Thailand

249 Pakistan Pakistan

250 Pakistan-MV480 Pakistan

251 PORTUGAL-MV800 Portugal

252 HECO-L+M-LV208 United States

253 HECO-L+M-LV240 United States

254 C10/11-MV800 Belgium

255 Austria Austria

256 Austria-MV480 Austria

257 G98 United Kingdom

258 G99-TYPEA-LV United Kingdom

259 G99-TYPEB-LV United Kingdom

260 G99-TYPEB-HV United Kingdom

261 G99-TYPEB-HV-MV480 United Kingdom

262 G99-TYPEB-HV-MV800 United Kingdom

263 G99-TYPEC-HV-MV800 United Kingdom

264 G99-TYPED-MV800 United Kingdom

265 G99-TYPEA-HV United Kingdom

266 CEA-MV800 India

267 EN50549-MV400 Europe

268 VDE-AR-N4110 Germany

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 90


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

269 VDE-AR-N4110-MV480 Germany

270 VDE-AR-N4110-MV800 Germany

271 Panama-MV800 Panama

272 Macedonia-MV800 Macedonian

273 NTS Spain

274 NTS-MV480 Spain

275 NTS-MV800 Spain

276 AS4777-WP Australia

277 CEA India

278 CEA-MV480 India

279 SINGAPORE Singapore

280 SINGAPORE-MV480 Singapore

281 SINGAPORE-MV800 Singapore

282 HONGKONG Hong Kong

283 HONGKONG-MV480 Hong Kong

284 C10/11-MV400 Belgium

285 KOREA-MV800 Korea

286 Cambodia Cambodia

287 Cambodia-MV480 Cambodia

288 Cambodia-MV800 Cambodia

289 EN50549-SE Sweden

290 GREG030 Columbia

291 GREG030-MV440 Columbia

292 GREG030-MV480 Columbia

293 GREG060-MV800 Columbia

294 PERU-MV800 Peru

295 PORTUGAL Portugal

296 PORTUGAL-MV480 Portugal

297 AS4777-ACT Australia

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 91


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

298 AS4777-NSW-ESS Australia

299 AS4777-NSW-AG Australia

300 AS4777-QLD Australia

301 AS4777-SA Australia

302 AS4777-VIC Australia

303 EN50549-PL Poland

304 Island-Grid common

305 TAIPOWER-LV220 China Taiwan

306 Mexico-LV220 Mexico

307 ABNT NBR 16149-LV127 Brazil

308 Philippines-LV220-50Hz Philippines

309 Philippines-LV220-60Hz Philippines

310 Israel-HV800 Israel

311 DENMARK-EN50549- Denmark


DK1-LV230

312 DENMARK-EN50549- Denmark


DK2-LV230

313 SWITZERLAND-NA/ Switzerland


EEA:2020-LV230

314 Japan-LV202-50Hz Japan

315 Japan-LV202-60Hz Japan

316 AUSTRIA-MV800 Austria

317 AUSTRIA-HV800 Austria

318 POLAND-EN50549- Poland


MV800

319 IRELAND-EN50549- Ireland


LV230

320 IRELAND-EN50549- Ireland


MV480

321 IRELAND-EN50549- Ireland


MV800

322 DENMARK-EN50549- Denmark


MV800

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 92


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

323 FRANCE-RTE-MV800 France

324 AUSTRALIA-AS4777_A- Australia


LV230

325 AUSTRALIA-AS4777_B- Australia


LV230

326 AUSTRALIA-AS4777_C- Australia


LV230

327 AUSTRALIA-AS4777_NZ- Australia


LV230

328 AUSTRALIA-AS4777_A- Australia


MV800

329 CHINA-GBT34120- China


MV800

330 UZBEKISTAN-MV800 Uzbekistan

331 CHINA-GBT34120- China


MV380

332 N/A N/A

333 CHINA-MV690 China

334 IEC61727-MV720 India

335 INDIA-CEA-MV720 India

336 SA-NRS-097-MV720 South Africa

337 SA-RPPS-MV720 South Africa

338 SAUDI-MV720 Saudi Arabia

339 UZBEKISTAN-MV720 Uzbekistan

340 EGYPT-ETEC-MV720 Egypt

341 KAZAKHSTAN-MV690 Kazakhstan

342 CHINA-CUSTOM-MV800 China

343 JAPAN-MV200-50Hz Japan

344 JAPAN-MV210-50Hz Japan

345 JAPAN-MV230-50Hz Japan

346 JAPAN-MV250-50Hz Japan

347 JAPAN-MV200-60Hz Japan

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 93


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

348 JAPAN-MV210-60Hz Japan

349 JAPAN-MV230-60Hz Japan

350 JAPAN-MV250-60Hz Japan

351 CZECH-EN50549-LV230 Czech Republic

352 CZECH-EN50549-MV480 Czech Republic

353 CZECH-EN50549-MV800 Czech Republic

354 CHINA_MV315 China

355 KOREA-MV690-60Hz Korea

356 ANRE-MV800 Romania

357 FINLAND-EN50549- Finland


LV230

358 AUSTRIA-MV400-50Hz Austria

359 SAUDI-LV220 Saudi Arabia

360 CHINA-MV285 China

361 CHINA-MV360 China

362 JAPAN-MV270-50Hz Japan

363 JAPAN-MV330-50Hz Japan

364 JAPAN-MV380-50Hz Japan

365 JAPAN-MV270-60Hz Japan

366 JAPAN-MV330-60Hz Japan

367 JAPAN-MV380-60Hz Japan

368 LITHUANIA-EN50549- Lithuania


MV800

369 FINLAND-EN50549- Finland


MV400

370 FINLAND-EN50549- Finland


MV480

371 FINLAND-EN50549- Finland


MV800

372 EN50549-SE-MV400 Sweden

373 EN50549-SE-MV480 Sweden

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 94


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

374 EN50549-SE-MV800 Sweden

375 CEPM Dominican Republic

376 CEPM-MV480 Dominican Republic

377 CEPM-MV800 Dominican Republic

378 SA-BESF-L South Africa

379 SA-BESF-L-MV480 South Africa

380 SA-BESF-L-MV800 South Africa

381 SA-BESF-H South Africa

382 SA-BESF-H-MV480 South Africa

383 SA-BESF-H-MV800 South Africa

384 BRAZIL-P140-LV220 Brazil

385 NEW CALEDONIA-LV230 New Caledonia

386 Israel-MV400 Israel

387 ANRE-TYPEB Romania

388 ANRE-TYPEB-MV480 Romania

389 AUSTRIA- Austria


NER_TYPEB_LV400

390 AUSTRIA- Austria


NER_TYPEB_LV480

391 AUSTRIA- Austria


NER_TYPEB_MV400

392 AUSTRIA- Austria


NER_TYPEB_MV480

393 IRAQ-MV800 Iraq

394 MOROCCO-MV800 Morocco

395 ALGERIA-MV800 Algeria

396 CHINA-GBT19964- China


MV800

397 CHINA-GBT29319- China


MV800

398 SENEGAL Senegal

399 SENEGAL-MV480 Senegal

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 95


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

No. Standard Applicable Country or


Region

400 SENEGAL-MV800 Senegal

401 NC2022 New Caledonia

NOTICE

Set the grid code based on local laws and regulations.

5.4 Energy Storage Specifications


Table 5-4 Format description of parameters for time-of-use electricity price periods(LG-RESU)
Description Data Type Gain Unit Value Range

Number of periods U16 1 N/A [0, 10]

Start time of period 1 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

End time of period 1 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

Electricity price in period 1 U32 1000 N/A N/A

Start time of period 2 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

End time of period 2 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

Electricity price in period 2 U32 1000 N/A N/A

... ... ... ... ...

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 96


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

Description Data Type Gain Unit Value Range

Start time of period 10 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

End time of period 10 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

Electricity price in period U32 1000 N/A N/A


10

Table 5-5 Format description of parameters for fixed charging and discharging periods
Description Data Type Gain Unit Value Range

Number of periods U16 1 N/A [0, 10]

Start time of period 1 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

End time of period 1 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

Charging and discharging I32 1 W [Discharging power limit,


power in period 1 Charging power limit]. For
details, see the description
of the supported model.

Start time of period 2 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

End time of period 2 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 97


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

Description Data Type Gain Unit Value Range

Charging and discharging I32 1 W [Discharging power limit,


power in period 2 Charging power limit]. For
details, see the description
of the supported model.

... ... ... ... ...

Start time of period 10 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

End time of period 10 U16 1 min [0, 1440]. The value is the
elapsed minutes since
00:00 a.m. The start time
should be earlier than the
end time.

Charging and discharging I32 1 W [Discharging power limit,


power in period 10 Charging power limit]. For
details, see the description
of the supported model.

Table 5-6 Format description of parameters for time-of-use electricity price periods(HUAWEI-
LUNA2000)
Description Data Type Gain Unit Value Range

Number of periods U16 1 - [0, 14]

Start time of period 1 U16 1 min [0, 1440]. The value is


the elapsed minutes
since 00:00 a.m. The start
time should be earlier
than the end time.

End time of period 1 U16 1 min [0, 1440]. The value is


the elapsed minutes
since 00:00 a.m. The start
time should be earlier
than the end time.

Charge/Discharge flag of U8 - - 0:Charge


period 1 1:Discharge

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 98


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

Description Data Type Gain Unit Value Range

Effective time flag of U8 - - There are 7 bits (from bit


period 1 0 to bit 6) standing for
each day of a week
(from Sunday to
Saturday).
0: invalid
1: valid

Start time of period 2 U16 1 min [0, 1440]. The value is


the elapsed minutes
since 00:00 a.m. The start
time should be earlier
than the end time.

End time of period 2 U16 1 min [0, 1440]. The value is


the elapsed minutes
since 00:00 a.m. The start
time should be earlier
than the end time.

Charge/Discharge flag of U8 - - 0:Charge


period 2 1:Discharge

Effective time flag of U8 - - There are 7 bits (from bit


period 2 0 to bit 6) standing for
each day of a week
(from Sunday to
Saturday).
0: invalid
1: valid

…… - - - -

Start time of period 14 U16 1 min [0, 1440]. The value is


the elapsed minutes
since 00:00 a.m. The start
time should be earlier
than the end time.

End time of period 14 U16 1 min [0, 1440]. The value is


the elapsed minutes
since 00:00 a.m. The start
time should be earlier
than the end time.

Charge/Discharge flag of U8 - - 0:Charge


period 14 1:Discharge

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 99


SUN2000LB
Modbus Interface Definitions 5 Interface Instructions

Description Data Type Gain Unit Value Range

Effective time flag of U8 - - There are 7 bits (from bit


period 14 0 to bit 6) standing for
each day of a week
(from Sunday to
Saturday).
0: invalid
1: valid

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 100
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

6 Overview of the Communications


Protocol

The Modbus communications protocol consists of the following layers.

Figure 6-1 Modbus protocol layers

6.1 Physical Layer


Huawei solar inverters provide Modbus communication based on physical media
such as MBUS, RS485, WLAN, FE, and 4G. MBUS and RS485 comply with the
Modbus-RTU format. The communication through the WLAN, FE, and 4G media is
based on the TCP link and complies with the Modbus-TCP format.

6.2 Data Link Layer


The following figure shows the generic frame structure of the Modbus protocol.

Figure 6-2 Modbus generic frame format

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 101
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

6.2.1 Modbus-RTU
Figure 6-3 Modbus-RTU frame format

6.2.1.1 ADU Length


The application data unit (ADU) consists of 256 bytes based on the serial bus.
1. Slave address: 1 byte
2. Cyclic redundancy check (CRC): 2 bytes
3. PDU: 253 bytes

6.2.1.2 Communications Address


As shown in Figure 6-3, Modbus-RTU is usually used for serial communication.
Slave address represents the address of a slave solar inverter. The address range is
allocated as follows:

Table 6-1 Serial link address allocation

Broadcast Address Slave Node Address Reserved Address

0 1–247 248–255

Reserved addresses are used for access control of the communication extension
modules. Huawei reserves the right to allocate the reserved addresses.

6.2.1.3 CRC
CRC applies to all bytes in front of the CRC code, which consists of 16 bits. The
reference code is as follows:
static unsigned char auchCRCHi[] = {
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81,
0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01,
0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81,
0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01,
0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81,
0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01,
0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81,
0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01,

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 102
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81,
0x40
};
/*CRC values for the low-order byte*/
static char auchCRCLo[] = {
0x00, 0xC0, 0xC1, 0x01, 0xC3, 0x03, 0x02, 0xC2, 0xC6, 0x06, 0x07, 0xC7, 0x05, 0xC5, 0xC4,
0x04, 0xCC, 0x0C, 0x0D, 0xCD, 0x0F, 0xCF, 0xCE, 0x0E, 0x0A, 0xCA, 0xCB, 0x0B, 0xC9, 0x09,
0x08, 0xC8, 0xD8, 0x18, 0x19, 0xD9, 0x1B, 0xDB, 0xDA, 0x1A, 0x1E, 0xDE, 0xDF, 0x1F, 0xDD,
0x1D, 0x1C, 0xDC, 0x14, 0xD4, 0xD5, 0x15, 0xD7, 0x17, 0x16, 0xD6, 0xD2, 0x12, 0x13, 0xD3,
0x11, 0xD1, 0xD0, 0x10, 0xF0, 0x30, 0x31, 0xF1, 0x33, 0xF3, 0xF2, 0x32, 0x36, 0xF6, 0xF7,
0x37, 0xF5, 0x35, 0x34, 0xF4, 0x3C, 0xFC, 0xFD, 0x3D, 0xFF, 0x3F, 0x3E, 0xFE, 0xFA, 0x3A,
0x3B, 0xFB, 0x39, 0xF9, 0xF8, 0x38, 0x28, 0xE8, 0xE9, 0x29, 0xEB, 0x2B, 0x2A, 0xEA, 0xEE,
0x2E, 0x2F, 0xEF, 0x2D, 0xED, 0xEC, 0x2C, 0xE4, 0x24, 0x25, 0xE5, 0x27, 0xE7, 0xE6, 0x26,
0x22, 0xE2, 0xE3, 0x23, 0xE1, 0x21, 0x20, 0xE0, 0xA0, 0x60, 0x61, 0xA1, 0x63, 0xA3, 0xA2,
0x62, 0x66, 0xA6, 0xA7, 0x67, 0xA5, 0x65, 0x64, 0xA4, 0x6C, 0xAC, 0xAD, 0x6D, 0xAF, 0x6F,
0x6E, 0xAE, 0xAA, 0x6A, 0x6B, 0xAB, 0x69, 0xA9, 0xA8, 0x68, 0x78, 0xB8, 0xB9, 0x79, 0xBB,
0x7B, 0x7A, 0xBA, 0xBE, 0x7E, 0x7F, 0xBF, 0x7D, 0xBD, 0xBC, 0x7C, 0xB4, 0x74, 0x75, 0xB5,
0x77, 0xB7, 0xB6, 0x76, 0x72, 0xB2, 0xB3, 0x73, 0xB1, 0x71, 0x70, 0xB0, 0x50, 0x90, 0x91,
0x51, 0x93, 0x53, 0x52, 0x92, 0x96, 0x56, 0x57, 0x97, 0x55, 0x95, 0x94, 0x54, 0x9C, 0x5C,
0x5D, 0x9D, 0x5F, 0x9F, 0x9E, 0x5E, 0x5A, 0x9A, 0x9B, 0x5B, 0x99, 0x59, 0x58, 0x98, 0x88,
0x48, 0x49, 0x89, 0x4B, 0x8B, 0x8A, 0x4A, 0x4E, 0x8E, 0x8F, 0x4F, 0x8D, 0x4D, 0x4C, 0x8C,
0x44, 0x84, 0x85, 0x45, 0x87, 0x47, 0x46, 0x86, 0x82, 0x42, 0x43, 0x83, 0x41, 0x81, 0x80, 0x40
};

unsigned short CRC16 ( puchMsg, usDataLen ) /* The function returns the CRC as a unsigned short type */
unsigned char *puchMsg ; /* message to calculate CRC upon */
unsigned short usDataLen ; /* quantity of bytes in message */
{
unsigned char uchCRCHi = 0xFF ; /* high byte of CRC initialized */
unsigned char uchCRCLo = 0xFF ; /* low byte of CRC initialized */
unsigned uIndex ; /* will index into CRC lookup table */
while (usDataLen--) /* pass through message buffer */
{
uIndex = uchCRCLo ^ *puchMsg++ ; /* calculate the CRC */
uchCRCLo = uchCRCHi ^ auchCRCHi[uIndex] ;
uchCRCHi = auchCRCLo[uIndex] ;
}
return (uchCRCHi << 8 | uchCRCLo) ;
}

Code source: MODBUS over Serial Line Specification and Implementation Guide
V1.02

6.2.2 Modbus-TCP
Figure 6-4 Modbus-TCP frame format

6.2.2.1 ADU Length


The recommended frame length is 260 bytes based on the standard. When some
extended functions are applied, the data service provider may extend the ADU to
a proper length based on the resources it possesses, to improve network

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 103
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

transmission efficiency. The ADU length is indicated by the length field in the
MBAP packet header.

6.2.2.2 MBAP Packet Header


If Modbus is applied to TCP/IP, a dedicated MBAP packet header (Modbus
application protocol packet header) is used to identify the Modbus ADU. The
Modbus packet header consists of four fields and seven bytes, which are defined
as follows.

Table 6-2 MBAP definition


Data Field Length Description Client Server
(Byte)

Transmissio 2 Matching identifier Assigned by the The identifier


n identifier between a request client; better be of the
frame and a unique for each response
response frame data frame frame from
the server
must be
consistent
with that of
the request
frame.

Protocol 2 0 = Modbus Assigned by the The identifier


type protocol client; 0 by of the
default response
frame from
the server
must be
consistent
with that of
the request
frame.

Data 2 Follow-up data Assigned by the Assigned by


length length client based on the server
the actual data based on the
frame actual frame
length

Logical 1 0 Assigned by the The identifier


device ID client based on of the
the actual data response
frame request frame from
the server
must be
consistent
with that of
the request
frame.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 104
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

6.2.2.3 Communications Address


Based on the TCP communications host, unit 0 is used by default to access the
directly connected slave node, and other addresses are used to access the
downstream devices of the slave node. The default address of the slave node is 0.
The address is adjustable.

Figure 6-5 Communications address of the three-layer object structure

6.2.2.4 TCP Port


In a local area network or VPN environment, the master node may actively initiate
TCP socket link establishment to the slave node. The master node can use the
6607 port to request data services from the slave node.

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 preset the fixed
access port number of the master node on the slave node. To ensure security and
reduce traffic, the master node must provide at least one encrypted port and one
non-encrypted port.

6.2.2.5 TCP Link Establishment Process


This section focuses on the cross-public network application.

The following figure shows the process of connecting a slave node.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 105
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Figure 6-6 Process of establishing a secure TCP connection

6.3 Application Layer


6.3.1 Function Code List
Table 6-3 Function code list
Function Code Meaning Remarks

0x03 Read registers. Continuously reads a


single register or
multiple registers.

0x06 Write a single register. Writes into a single


register.

0x10 Write multiple registers. Continuously writes into


multiple registers.

6.3.2 Exception Code List


The exception codes must be unique for each network element (NE) type. The
names and descriptions should be provided in both the Chinese and English NE

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 106
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

interface document. Different versions of the same NE type must be backward


compatible. Exception codes in use cannot be assigned to other exceptions.

Table 6-4 Exception codes returned by an NE (0x00–0x8F are for common


exception codes)
Code Name Description

0x01 Illegal 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 was not
implemented in the unit selected. It could also
indicate 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 Illegal data The data address received in the query is not an
address allowable address for the server. More
specifically, the combination of reference number
and transfer length is invalid. For a controller
with 100 registers, the PDU addresses the first
register as 0, and the last one as 99. If a request
is submitted with a starting register address of
96 and a quantity of registers of 4, then this
request will successfully operate (address-wise at
least) on registers 96, 97, 98, 99. If a request is
submitted with a starting register address of 96
and a quantity of registers of 5, then this request
will fail with Exception Code 0x02 "Illegal Data
Address" since it attempts to operate on registers
96, 97, 98, 99 and 100, and there is no register
with address 100.

0x03 Illegal data The value contained in the query data field is not
value an allowable value for the server (or slave). The
value indicates a fault in the structure of the
remainder of a complex request, such as an
incorrectly implied length. It specifically 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.

0x04 Slave node An error occurred while the server was


failure attempting to perform the requested action.

0x06 Slave device The server cannot accept a Modbus request PDU.
busy A client application determines whether and
when to resend the request.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 107
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Code Name Description

0x80 No permission An operation is not allowed because of a


permission authentication failure or permission
expiration.

6.3.3 Reading Registers (0x03)

6.3.3.1 Frame Format of a Request from a Master Node


Data Field Length (Byte) Description

Function code 1 0x03

Register start address 2 0x0000–0xFFFF

Number of registers 2 1–125

6.3.3.2 Frame Format of a Normal Response from a Slave Node


Data Field Length (Byte) Description

Function code 1 0x03

Number of bytes 1 2xN

Register value 2xN N/A

N refers to the number of registers.

6.3.3.3 Frame Format of an Abnormal Response from a Slave Node


Data Field Length (Byte) Description

Function code 1 0x83

Exception code 1 See 6.3.2 .

6.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.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 108
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

The master node sends a query request (register address: 32306/0X7E32) to the
slave node (logical device ID: 00).

Description Frame Data

MBAP header Protocol identifier 00

01

Protocol type 00

00

Data length 00

06

Logical device ID 00

Function code 03

Data Register address 7E

32

Number of registers 00

02

Normal response from the slave node

Description Frame Data

MBAP header Protocol identifier 00

01

Protocol type 00

00

Data length 00

07

Logical device ID 00

Function code 03

Data Number of bytes 04

Register data 00

00

00

01

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 109
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Abnormal response from the slave node

Description Frame data

MBAP header Protocol identifier 00

01

Protocol type 00

00

Data length 00

03

Logical device ID 00

Function code 83

Data Error code 03

6.3.4 Writing a Single Register (0x06)

6.3.4.1 Frame Format of a Request from a Master Node


Data Field Length (Byte) Description

Function code 1 0x06

Register address 2 0x0000–0xFFFF

Register value 2 0x0000–0xFFFF

6.3.4.2 Frame Format of a Normal Response from a Slave Node


Data Field Length (Byte) Description

Function code 1 0x06

Register address 2 0x0000–0xFFFF

Register value 2 0x0000–0xFFFF

6.3.4.3 Frame Format of an Abnormal Response from a Slave Node


Data Field Length (Byte) Description

Function code 1 0x86

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 110
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Data Field Length (Byte) Description

Exception code 1 See 6.3.2 .

6.3.4.4 Examples
A master node sends a command (register address: 40200/0X9D08) to a slave
node (address: 00).

Description Frame data

MBAP header Protocol identifier 00

01

Protocol type 00

00

Data length 00

06

Logical device ID 00

Function code 06

Data Register address 9D

08

Register data 00

00

Normal response from the slave node

Description Frame Data

MBAP header Protocol identifier 00

01

Protocol type 00

00

Data length 00

06

Logical device ID 00

Function code 06

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 111
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Description Frame Data

Data Register address 9D

08

Register data 00

00

Abnormal response from the slave node

Description Frame Data

MBAP header Protocol identifier 00

01

Protocol type 00

00

Data length 00

03

Logical device ID 00

Function code 86

Data Error code 04

6.3.5 Writing Multiple Registers (0x10)

6.3.5.1 Frame Format of a Request from a Master Node


Data Field Length (Byte) Description

Function code 1 0x10

Register start address 2 0x0000–0xFFFF

Number of registers 2 0x0000–0x007b

Number of bytes 1 2xN

Register value 2xN Value

N refers to the number of registers.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 112
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

6.3.5.2 Frame Format of a Normal Response from a Slave Node


Data Field Length (Byte) Description

Function code 1 0x10

Register address 2 0x0000–0xFFFF

Number of registers 2 0x0000–0x007b

6.3.5.3 Frame Format of an Abnormal Response from a Slave Node


Data Field Length (Byte) Description

Function code 1 0x90

Exception code 1 See 6.3.2 .

6.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.

Description Frame Data

MBAP header Protocol identifier 00

01

Protocol type 00

00

Data length 00

0B

Logical device ID 00

Function code 10

Data Register address 9C

B6

Number of registers 00

02

Number of bytes 04

Register data 00

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 113
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Description Frame Data

02

00

32

Normal response from the slave node

Description Frame Data

MBAP header Protocol identifier 00

01

Protocol type 00

00

Data length 00

06

Logical device ID 00

Function code 10

Data Register address 9C

B6

Number of registers 00

02

Abnormal response from the slave node

Description Frame Data

MBAP header Protocol identifier 00

01

Protocol type 00

00

Data length 00

03

Logical device ID 00

Function code 90

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 114
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Description Frame Data

Data Error code 04

6.3.6 Reading Device Identifiers (0x2B)


This command code allows reading identifiers and added packets that are relevant
to the physical and function description of the remote devices.
Simulate the interface of the read device identifier as an address space. This
address space consists of a set of addressable data elements. The 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. Normal device identifier: Except 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 the normal data objects, the device
provides additional and optional identifiers and special data object
description. All the data is related to the device.

Table 6-5 Reading device identifiers


Object ID Object Name Type Mandatory Type
or or Optional
Description (M/O)

0x00 Manufacturer ASCII M Basic


name character
string

0x01 Product code ASCII M


character
string

0x02 Main revision ASCII M


version character
string

0x03–0x7F - - - Normal

0x80–0xFF - - - Expansion

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 115
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

6.3.6.1 Command for Querying Device Identifiers

Table 6-6 Request frame format


Data Field Length (Byte) Description

Function code 1 0x2B

MEI type 1 0x0E

ReadDevId code 1 01

Object ID 1 0x00

Table 6-7 Frame format for a normal response


Data Field Length (Byte) Description

Function code 1 0x2B

MEI type 1 0x0E

ReadDevId code 1 01

Consistency level 1 01

More 1 -

Next object ID 1 -

Number of objects 1 -

Object list First Object 1 0x00


object ID

Object 1 N
length

Object N -
value

... ... ... ...

Table 6-8 Object list


Object ID Object Name or Description Type
Description

0x00 Manufacturer HUAWEI Basic


name

0x01 Product code SUN2000

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 116
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Object ID Object Name or Description Type


Description

0x02 Main revision ASCII character


version string, software
version

Table 6-9 Frame format for an abnormal response


Data Field Length (Byte) Description

Function code 1 0xAB

Exception code 1 See 6.3.2 .

6.3.6.2 Command for Querying a Device List

Table 6-10 Request frame format


Data Field Length (Byte) Description

Function code 1 0x2B

MEI type 1 0x0E

ReadDevId code 1 03

Object ID 1 byte 0x87

Table 6-11 Frame format for a normal response


Data Field Length (Byte) Description

Function code 1 0x2B

MEI type 1 0x0E

ReadDevId code 1 03

Consistency level 1 03

More 1 -

Next object ID 1 -

Number of objects 1 -

Object list First object Object 1 0x87


ID

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 117
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Data Field Length (Byte) Description

Object 1 N
length

Object N -
value

... ... ... ...

Table 6-12 Object list


Object ID Object Name Type Description

0x80–0x86 Reserved -- Returns a null


object with a
length of 0.

0x87 Number of int Returns the


devices number of devices
connected to the
RS485 address.

0x88 Description about ASCII character Returns only


the first device string description about
See the device the first device if
description a NE allows only
definitions. one device to be
connected to each
RS485 address.

0x8A Description about - -


the second device

- - - -

0xFF Description about - -


the 120th device

6.3.6.3 Device Description Definition


Each device description consists of all "attribute=value" character strings.
"Attribute ID=%s;attribute ID=%s;... attribute ID=%s"
For example: "1=SUN2000MA-XXKTL;2=V100R001C00SPC100;3=P1.0-
D5.0;4=123232323;5=1;6=1.1"

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 118
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Table 6-13 Attribute definition


Attribut Name Type Description
e ID

1 Device model ASCII SUN2000


character
string

2 Device software ASCII -


version character
string

3 Port protocol ASCII See the interface protocol version


version character definitions.
string

4 ESN ASCII -
character
string

5 Device ID int 0, 1, 2, 3...(assigned by NEs; 0


indicates the master device into
which the Modbus card is
inserted)

6 Feature version ASCII -


character
string

Table 6-14 Frame format for an abnormal response


Data Field Length (Byte) Description

Function code 1 0xAB

Exception code 1 See 6.3.2 .

6.3.7 Huawei-defined Functions (0x41)

6.3.7.1 Uploading Files


Uploading files means uploading them by stream data from a slave node to a
master node. The following figure shows the file uploading process.

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 119
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Figure 6-7 File uploading process

6.3.7.1.1 Starting the Upload


Frame format of a request from a master node

Table 6-15 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

File type 1 Unique ID of a file

Customiz N -
ed data

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 120
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Table 6-16 PDU data field of the response frame for starting upload (0x05)

Data Length Description


Field (Byte)

Function 1 0x41
code

Sub- 1 0x05
function
code

Data 1 6+N
length

File type 1 Unique ID of a file

File 4 -
length

Data 1 -
frame
length

Customiz N -
ed data

Table 6-17 PDU data field in the abnormal response frame of the slave node

PDU Data Field Length Description


(Byte)

Error code 1 0xC1

Exception code 1 See 6.3.2 .

If the exception code is 0x06, resend the request after 10 seconds. A request can
be resent for no more than six times.

6.3.7.1.2 Uploading Data

Table 6-18 Request frame for uploading data (0x06)

PDU Data Field Length Description


(Byte)

Function code 1 0x41

Sub-function code 1 0x06

Data length 1 3

File type 1 Unique ID of a file

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 121
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

PDU Data Field Length Description


(Byte)

Frame No. 2 0x0000–0xFFFF

Table 6-19 Response frame for uploading data (0x06)


PDU Data Field Length Description
(Byte)

Function code 1 0x41

Sub-function code 1 0x06

Data length 1 3+N

File type 1 -

Frame No. 2 0x0000–0xFFFF

Frame data N -

Table 6-20 Abnormal response frame for uploading data


PDU Data Field Length Description
(Byte)

Error code 1 0xC1

Exception code 1 See 6.3.2 .

6.3.7.1.3 Completing the Data Upload

Table 6-21 Request frame for completing the data upload


PDU Data Field Length Description
(Byte)

Function code 1 0x41

Sub-function code 1 0x0c

Data length 1 1

File type 1 -

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 122
SUN2000LB
Modbus Interface Definitions 6 Overview of the Communications Protocol

Table 6-22 Response frame for completing the data upload


PDU Data Field Length Description
(Byte)

Function code 1 0x41

Sub-function code 1 0x0c

Data length 1 3

File type 1 -

File CRC 2 -

Table 6-23 Abnormal response frame for completing the data upload
Data Field Length Description
(Byte)

Error code 1 0xC1

Exception code 1 See 6.3.2 .

6.3.7.1.4 Timeout Processing

Table 6-24 Processing specifications of sub-process timeout


Name Restraints

Response timeout period for starting an 10s


upload

Response timeout period for uploading data 10s

Number of times of resending a data upload 6


command

Response timeout period for completing a 10s


data upload

Issue 02 (2024-07-15) Copyright © Huawei Digital Power Technologies Co., Ltd. 123

You might also like