Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
9 views

SmartLogger ModBus Interface Definitions

Uploaded by

Jan Kowalski
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

SmartLogger ModBus Interface Definitions

Uploaded by

Jan Kowalski
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 54

SmartLogger

ModBus Interface Definitions

Issue 37
Date 2020-06-24

HUAWEI TECHNOLOGIES CO., LTD.


Copyright © Huawei Technologies Co., Ltd. 2020. 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 Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.

Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.

The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base
Bantian, Longgang
Shenzhen 518129
People's Republic of China

Website: https://e.huawei.com

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. i


SmartLogger
ModBus Interface Definitions Change History

Change History

Issue Date Change Description

37 2020-06-24 Add the following registers in SmartLogger Register


Definitions Table:
Alarm Info 3 (50002);
Alarm Info 4 (50003).
Alarm Sub-ID 2 is added for alarm IDs 1120, 1121, and
1122 to identify certificate alarms related to management
system-1

36 2020-04-13 Add the following registers in SmartLogger Register


Definitions Table:
Plant status(Qinghai new) (40541);
Plant status(Shanxi) (40542).

35 2020-02-20 Add the following registers in SmartLogger Register


Definitions Table:
Plant status(40543), Communication abnormal
shutdown(41947), Communication anbormal detection
time(41948) and Auto start upon communication
recovery(41949).
Modified about SmartLogger Alarm Definitions Table:
Delete Alarm SubID 1-3 of Abnormal Active
Schedule(Alarm ID 1100), SubID 1-3 of Abnormal Reactive
Schedule(Alarm ID 1101) and Abnormal Power Meter
Data(Alarm ID 1102), and add Alarm ID 1116-1131.
Meanwhile its detail description are modified in Alarm
Descriptions and Impacts Table.

34 2019-05-28 Update enumeration name of "Active power control


mode" and "Reactive power control mode"

33 2019-04-22 Added Alarm ID: License Expired (supported by


V200R002C20SPC118 and later version)

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. ii


SmartLogger
ModBus Interface Definitions Change History

Issue Date Change Description

32 2018-11-15 Added the definition of the power meter register:


(supported by V100R001C00SPC118 and later version)
Phase A active power
Phase B active power
Phase C active power
Total active electricity
Total reactive electricity
Negative active electricity
Negative reactive electricity
Positive active electricity
Positive reactive electricity

31 2018-03-13 Added Duration of daily power generation


Added Plant status
Added Uab, Ubc, Uca

30 2018-01-12 Added Table 2 Environmental Monitor Instrument Register


Definitions of 2.7 Remapped Modbus
definitions(supported by V200R002C20 and later version)
Changed the power meter Apparent power to I32

29 2017-12-14 Added the definition of the power meter register:


(supported by V200R002C20 and later version)
Custom 1 ~ Custom 10

28 2017-12-11 Added CO2 emission reduction coefficient

27 2017-11-09 Changed Reactive power control mode, add new:


Distributed power factor closed-loop control (supported
by V100R001C00SPC113 and later version)

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. iii


SmartLogger
ModBus Interface Definitions Change History

Issue Date Change Description

26 2017-08-22 Added Power on/off (supported by V200R002C10SPC100


and later version)
Added Transfer trip (supported by V200R002C10SPC100
and later version)
Added Active adjustment (supported by
V200R002C10SPC100 and later version)
Added Reactive adjustment (supported by
V200R002C10SPC100 and later version)
Added the definition of the power meter register:
(supported by V200R002C10SPC100 and later version)
Electricity in positive active electricity price segment 1
Electricity in positive active electricity price segment 2
Electricity in positive active electricity price segment 3
Electricity in positive active electricity price segment 4
Electricity in negative active electricity price segment 1
Electricity in negative active electricity price segment 2
Electricity in negative active electricity price segment 3
Electricity in negative active electricity price segment 4
Added 2.7 Remapped Modbus definitions (supported by
V200R002C10SPC100 and later version)
Changed Active power control mode, add new: Remote
output control
Changed Reactive power control mode, add new: Power
factor closed-loop control

25 2017-08-15 Added CO2 reduction


Added the definition of the power meter register:
Positive active electricity
Positive reactive electricity

24 2017-07-26 Added Active scheduling percentage


Added PV module capacity
Added Rated plant capacity
Added Total rated capacity of grid-connected inverters
Added Conversion coefficient
Added Communication status
Added Daily irradiation amount,Unit: kWh/㎡
Added Daily irradiation amount 2,Unit: kWh/㎡
Changed the power meter Phase A current、Phase B
current、Phase C current to I32

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. iv


SmartLogger
ModBus Interface Definitions Change History

Issue Date Change Description

23 2016-10-22 Added DC current 2


Deleted Device feature code 1~4
Added the 24V power failure alarm.

22 2016-09-02 Baseline Document for Test.

21 2016-06-02 Added the following signals:


● Current error during scanning
● Inspection
● IV curve scanning
Changed Device feature code 1, add new Bit9:IV curve
scanning

20 2016-05-24 Add alarm AC SPD fault and DI1~8 custom alarm


Added the following signals:
● Current radiation 2
● Daily Radiation 2
● Custom 1
● Custom 2

19 2015-11-03 Added the entries of device featurecodes 1–4.


Added the entry of device list changenumber.

18 2015-10-19 Added the Device Address Conflict alarm.

17 2015-09-21 Added Reactive electricity and Apparentpower to the


power meter.
Added Port number and Physicaladdress to the common
register.
Added the entry of array reset.

16 2015-04-10 Changed the delete device signal to the device operation


signal.
Adjusted the register address for the subsequent signals.

15 2015-04-07 Updated the description for City.

14 2015-03-28 Added the following signals:


● Active power adjustment by percentage
● Power factor adjustment

13 2015-03-23 Added the Reactive power scheduling curve mode signal.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. v


SmartLogger
ModBus Interface Definitions Change History

Issue Date Change Description

12 2015-02-28 Added the following signals:


● Active power scheduling mode
● Active power scheduling target value
● Reactive power scheduling mode
● Reactive power scheduling target value

11 2015-02-26 Added System reset, Device search, Device search status ,


Delete device and Device search status signals.

10 2014-11-21 Added the DI group status.

09 2014-11-10 Added the Daily radiation read-only signals.

08 2014-09-24 Added Max. reactive adjustment, Min. reactive adjustment,


and Max. active adjustment read-only signals.

07 2014-08-30 Added the public register device alias.

06 2014-08-21 Added the Abnormal Cubicle alarm.

05 2014-07-29 Changed the gain of Active electricity to 10 for an


electricity meter.

04 2014-07-10 Added active alarm serial numbers and historical alarm


serial numbers.

03 2014-06-06 Added the device connection status public device interface.

02 2014-03-28 Updated EMI and power meter, and added a time setting
interface.

01 2013-09-22 Initial release.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. vi


SmartLogger
ModBus Interface Definitions Contents

Contents

Change History............................................................................................................................ ii
1 Introduction.............................................................................................................................. 1
1.1 Definitions of Terms and Abbreviations.......................................................................................................................... 1
1.2 System Requirements............................................................................................................................................................ 2

2 Register Definitions.................................................................................................................3
2.1 Register Definitions for the SmartLogger....................................................................................................................... 3
2.2 Alarm Definitions for the SmartLogger........................................................................................................................ 13
2.3 Register Definitions for the Environmental Monitor Instrument......................................................................... 19
2.4 Register Definitions for the Power Meter.....................................................................................................................20
2.5 Register Definitions for the SUN2000............................................................................................................................22
2.6 Public Register Definitions................................................................................................................................................. 22
2.7 Remapped Modbus definitions........................................................................................................................................ 23

3 Power Adjustment for Inverters........................................................................................ 26


3.1 40420, 40424: Active Adjustment....................................................................................................................................26
3.2 40422, 40426: Reactive Adjustment............................................................................................................................... 26
3.3 40428: Active Power Adjustment by Percentage....................................................................................................... 26
3.4 40429: Power Factor Adjustment.................................................................................................................................... 26

4 Communication Protocol Overview.................................................................................. 28


4.1 Physical Layer......................................................................................................................................................................... 28
4.2 Data Link Layer......................................................................................................................................................................28
4.2.1 Addressing Mode............................................................................................................................................................... 28
4.2.2 Frame Structure................................................................................................................................................................. 28
4.2.3 Data Encoding.................................................................................................................................................................... 30
4.2.4 Interaction Process............................................................................................................................................................ 30
4.3 Application Layer.................................................................................................................................................................. 30
4.3.1 Function Code List............................................................................................................................................................. 30
4.3.2 Exception Code List........................................................................................................................................................... 31
4.3.3 Reading Registers (0X03)............................................................................................................................................... 35
4.3.3.1 Frame Format for a Request from a Master Node............................................................................................ 35
4.3.3.2 Frame Format for a Normal Response from a Slave Node.............................................................................35
4.3.3.3 Frame Format for an Abnormal Response from a Slave Node......................................................................35
4.3.3.4 Example............................................................................................................................................................................. 36

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. vii


SmartLogger
ModBus Interface Definitions Contents

4.3.4 Writing a Single Register (0X06)................................................................................................................................. 36


4.3.4.1 Frame Format for a Request from a Master Node............................................................................................ 36
4.3.4.2 Frame Format for a Normal Response from a Slave Node.............................................................................37
4.3.4.3 Frame Format for an Abnormal Response from a Slave Node......................................................................37
4.3.4.4 Example............................................................................................................................................................................. 37
4.3.5 Writing Multiple Registers..............................................................................................................................................38
4.3.5.1 Frame Format for a Request from a Master Node............................................................................................ 38
4.3.5.2 Frame Format for a Normal Response from a Slave Node.............................................................................38
4.3.5.3 Frame Format for an Abnormal Response from a Slave Node......................................................................38
4.3.5.4 Example............................................................................................................................................................................. 39
4.3.6 Reading Device Identifiers (0X2B)............................................................................................................................... 40
4.3.6.1 Commands for Querying Device Identifiers.......................................................................................................... 40
4.3.6.2 Command for Querying a Device List.....................................................................................................................42
4.3.6.3 Device Description Definitions...................................................................................................................................43

5 Reference Documents...........................................................................................................45

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. viii


SmartLogger
ModBus Interface Definitions 1 Introduction

1 Introduction

1.1 Definitions of Terms and Abbreviations


Table 1-1 Terms Definitions
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 The address of a register is recorded in


two bytes.

U16 Unsigned integer (16 bits)

U32 Unsigned integer (32 bits)

U64 Unsigned integer (64 bits)

I16 Signed integer (16 bits)

I32 Signed integer (32 bits)

I64 Signed integer (64 bits)

STR String

MLD Multiple bytes

N/A Not applicable

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 1


SmartLogger
ModBus Interface Definitions 1 Introduction

1.2 System Requirements


Applicable model: SmartLogger
Firmware version:
SUN2000 V100R001C95 or later
SmartLogger V100R001C00 or later
SmartLogger V100R002C00 or later
SmartLogger V200R001C00 or later
SmartLogger V300R001C00 or later

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 2


SmartLogger
ModBus Interface Definitions 2 Register Definitions

2 Register Definitions

2.1 Register Definitions for the SmartLogger


NOTE

In the following table, the operation object of the register is the SmartLogger or all
inverters accessed by the SmartLogger. In the Modbus-TCP communications protocol, the
logic device ID is fixed to 0.

Table 2-1 SmartLogger Register Definitions


SN Name Read/ Type Unit Gain Address Quantity Range
Write

1 Date&Time RW U32 N/A 1 40000 2 Epoch seconds UTC

2 City RW U32 N/A 1 40002 2

3 Daylight RW U16 N/A 1 40004 1 0: Disabled


Saving Time 1: Enabled
(DST)

4 Time Zone RO I32 s 1 40005 2 Time zone offset


measured in seconds

5 DST state RO U16 N/A 1 40007 1 0: DST time not


entered
1: DST time entered

6 DST offset RO U16 mins 1 40008 1 N/A

7 The Local RO U32 N/A 1 40009 2 Epoch seconds, local


Time time of
theSmartLogger

8 Power on WO U16 N/A 1 40200 1 The data field can


only be 0 for
poweringon all
inverters.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 3


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Name Read/ Type Unit Gain Address Quantity Range


Write

9 Power off WO U16 N/A 1 40201 1 The data field can


only be 0 for
powering off all
inverters.

10 Power WO U16 N/A 1 40202 1 0:Power off all


on/off inverters
1:Power on all
inverters

11 Power WO U16 N/A 1 40203 1 0:Power on all


on/off inverters
1:Power off all
inverters

12 Transfer trip RW U16 N/A 1 40204 1 0:Run


1:Fault outage
The device shuts
down when it stops
due to faults and
does not respond to
the startup request.

13 Array reset WO U16 N/A 1 40205 1 The data domain can


only be 0.

14 Active RW U32 kW 10 40420 2 Adjusts the total


adjustment active output power
of all inverters
connected to the
SmartLogger.
The adjustment value
that is beyond the
range is discarded.

15 Reactive RW I32 kVar 10 40422 2 Adjusts the total


adjustment reactive output
power of all inverters
connected to the
SmartLogger.
The adjustment value
that is beyond the
range is discarded.

16 Active RW U32 kW 10 40424 2 Adjusts the total


adjustment active output power
of all inverters
connected to the
SmartLogger.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 4


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Name Read/ Type Unit Gain Address Quantity Range


Write

17 Reactive RW I32 kVar 10 40426 2 Adjusts the total


adjustment reactive output
power of all inverters
connected to the
SmartLogger.

18 Active RW U16 % 10 40428 1 Adjusts the total


power active output power
adjustment of all inverters
by connected to the
percentage SmartLogger. The
percentage range is
0–100%.

19 Power RW I16 N/A 1000 40429 1 Adjusts the total


factor reactive output
adjustment power of all inverters
connected to the
SmartLogger. The
range is
(-1,-0.8]U[0.8,1].

20 DC current RO I16 A 10 40500 1 Equals the total input


DC current of all
inverters.
If the value exceeds
the range specified
by I16, register 40554
is recommended.

21 Input power RO U32 kW 1000 40521 2 Equals the total input


power of allinverters.

22 CO2 RO U32 kg 10 40523 2 Equals the total CO2


reduction reduction of
allinverters.
If the value exceeds
the range specified
by U32, register
40550 is
recommended.

23 Active RO I32 kW 1000 40525 2 Equals the total


power active output power
ofall inverters.

24 Power RO I16 N/A 1000 40532 1 Equals the total


factor power factor of
allinverters.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 5


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Name Read/ Type Unit Gain Address Quantity Range


Write

25 Plant status RO U16 N/A 1 40541 1 Used by


Qinghai(added 2020
year)
1:power operation
2:Idle
3:Outage
4:Communication
interrupt

26 Plant status RO U16 N/A 1 40542 1 Used by Shanxi


1:power operation
2:Idle
3:Outage
4:Communication
interrupt

27 Plant status RO U16 N/A 1 40543 1 Used by Qinghai


1: Unlimited power
operation
2: Limited power
operation
3: Idle
4: Outage (fault,
maintenance etc.)
5: Communication
interrupt

28 Reactive RO I32 kVar 1000 40544 2 Equals the total


power reactive output
power ofall inverters.

29 CO2 RO U64 kg 100 40550 4 Equals the total CO2


reduction reduction of
allinverters.
This register
represents a larger
value range
compared with
register 40523.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 6


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Name Read/ Type Unit Gain Address Quantity Range


Write

30 DC current RO I32 A 10 40554 2 Equals the total input


2 DC current of
allinverters.
This register
represents a larger
value range
compared with
register 40500.

31 E-Total RO U32 kWh 10 40560 2 Equals the total


energy yield
generatedby all
inverters.

32 E-Daily RO U32 kWh 10 40562 2 Equals daily energy


yield generated byall
inverters.

33 Duration of RO U32 h 10 40564 2


daily power
generation

34 Plant status RO U16 N/A 1 40566 1 Used by Xinjiang


0: Idle
1: On-grid
2: On-grid: self
derating
3: On-grid: Power
limit
4: Planned outage
5: Power limit outage
6: Fault outage
7: Communication
interrupt

35 Plant status RO U16 N/A 1 40567 1 Used by Ningxia


1: On-grid
2: Outage
3: Maintenance
4: Idle

36 Active RO U32 N/A 1 40568 2 N/A


alarm
sequence
number

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 7


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Name Read/ Type Unit Gain Address Quantity Range


Write

37 Historical RO U32 N/A 1 40570 2 N/A


alarm
sequence
number

38 Phase A RO I16 A 1 40572 1 Equals the sum of


current phase A currents of
allinverters.

39 Phase B RO I16 A 1 40573 1 Equals the sum of


current phase B currents of
allinverters.

40 Phase C RO I16 A 1 40574 1 Equals the sum of


current phase C currents of
allinverters.

41 Uab RO U16 V 10 40575 1

42 Ubc RO U16 V 10 40576 1

43 Uca RO U16 V 10 40577 1

44 Reserved RO U16 N/A 1 40608 10 N/A

45 Inverter RO U16 % 100 40685 1 N/A


Efficiency

46 Max. RO U32 kVar 10 40693 2 Equals the total


reactive maximum power of
adjustment allinverters
connected in parallel
multiplied by 60%.

47 Min. RO I32 kVar 10 40695 2 Equals the total


reactive maximum power of
adjustment allinverters
connected in parallel
multiplied by 60% x
(–1).

48 Max. RO U32 kW 10 40697 2 Equals the total


activeadjust maximum power of
ment allinverters
connected in parallel.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 8


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Name Read/ Type Unit Gain Address Quantity Range


Write

49 Locked RO U16 N/A 1 40699 1 0: Locked


1: Unlocked
If more than one
inverter is on-grid
andfeeding power to
the grid, the status is
Unlocked.

50 DI status RO U16 N/A 1 40700 1 Bit0: DI1



Bit7: DI8
1: Closed
0: Open
Equals the status of
the eight DIs of
theSmartLogger.

51 ESN RO STR N/A 1 40713 10 N/A

52 System WO U16 N/A 1 40723 1 Resets


reset theSmartLogger. The
data domain is not
checked.

53 Fast device WO U16 N/A 1 40724 1 Automatically


access allocates and
searches fordevices.

54 Device WO MLD N/A 1 40725 11 First 10 registers:


operation determine the
deviceto be operated
based on the ESN.
The register content
is the device ESN.
Last register: If the
operation type is0,
the SmartLogger
deletes inverters. If
the operation type is
1, theinverter alarm
is reset on the
SmartLogger side.

55 Device RO U16 N/A 1 40736 1 0: Search completed


access 1: Search in progress
status
2: Search failed

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 9


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Name Read/ Type Unit Gain Address Quantity Range


Write

56 Active RO U16 N/A 1 40737 1 0: No limit


power 1: DI active
control scheduling
mode
3: Percentage fixed-
value limitation(open
loop)
4: Remote scheduling
6: Export
Limitation(kW)
200: Remote output
control
65533: Slave
SmartLogger
65534: no scheduling

57 Active RO U32 kW 10 40738 2 Target total active


power power for
scheduling theSmartLogger
target value active power
scheduling

58 Reactive RO U16 N/A 1 40740 1 0: No output


power 1: DI reactive
control scheduling
mode
2: Reactive power fix
control
3: Power factor fix
control
4: Q-U characteristic
curve
5: cos(Phi)-P/Pn
characteristic curve
6: Q-U hysteresis
curve (CEI0-16)
7: Remote scheduling
9: Power factor
closed-loop
control(old policy)
10: Power factor
closed-loop control
65533: Slave
SmartLogger
65534: no scheduling

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 10


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Name Read/ Type Unit Gain Address Quantity Range


Write

59 Reactive RO U16 N/A 1 40741 1 0: indicates the


power power factor
scheduling 1: indicates the
curve mode reactive power
fixedvalue

60 Reactive RO I32 kVar 10/1 40742 2 SmartLogger


power 000 reactivepower
scheduling adjustment target
target value value: power factor
or total reactive
power. Thespecific
meaning depends on
the reactive power
scheduling mode.
When the modeis the
power factor, the
gain is 1000. When
the mode is the
reactive powerfixed
value, the gain is 10.

61 Active RO U32 % 1 40802 2 [0, 100]


scheduling
percentage

62 CO2 RW U16 kg/k 1000 41124 1 [0, 10]


emission Wh
reduction
coefficient

63 PV module RO U32 kW 1000 41934 2 [0, 2000000]


capacity

64 Rated plant RO U32 kW 1000 41936 2 N/A


capacity

65 Total rated RO U32 kW 1000 41938 2 N/A


capacity of
grid-
connected
inverters

66 Conversion RO U32 N/A 1000 41940 2 N/A


coefficient

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 11


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Name Read/ Type Unit Gain Address Quantity Range


Write

67 Communica RO U16 N/A 1 41942 1 Status of


tion status communication
between the
SmartLogger and the
servers of Japanese
power companies:
0: Connection success
1: Connection failed

68 Communica RW U16 N/A N/A 41947 1 0: Disable


tion 1: Enable
abnormal
shutdown

69 Communica RW U16 s N/A 41948 1 [60, 1800]


tion
anbormal
detection
time

70 Auto start RW U16 N/A N/A 41949 1 0: Disable


upon 1: Enable
communicat
ion recovery

71 The RW U16 N/A 1 42017 1 2000–2068 (local


SystemTime time)
: year

72 The RW U16 N/A 1 42018 1 1–12


SystemTime
: month

73 The RW U16 N/A 1 42019 1 1–31


SystemTime
: day

74 The RW U16 N/A 1 42020 1 0–23


SystemTime
: hour

75 The RW U16 N/A 1 42021 1 0–59


SystemTime
: minute

76 The RW U16 N/A 1 42022 1 0–59


SystemTime
: second

77 Current RW U16 N/A 100 42150 1 0~2


error during
scanning

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 12


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Name Read/ Type Unit Gain Address Quantity Range


Write

78 Inspection WO U16 N/A 1 42730 1 00:Start


01:Stop

79 IV curve WO U16 N/A 1 42779 1 00:Stop


scanning 01:Start(64 Points)
02:Start(128 Points)
03:Start(256 Points)

80 Alarm Info RO U16 N/A 1 50000 1 N/A


1

81 Alarm Info RO U16 N/A 1 50001 1 N/A


2

82 Alarm Info RO U16 N/A 1 50002 1 N/A


3

83 Alarm Info RO U16 N/A 1 50003 1 N/A


4

2.2 Alarm Definitions for the SmartLogger


Table 2-2 Alarm Definitions
Alarm ID Alarm Alarm Alarm Cause Severity Registe Bit
Name Sub-ID r
Address

1100 Abnormal 4 If Active Power Control Mode Major 50000 3


Active is set to Dry contact remote
Schedule control, the four DI ports read
instruction combinations not
configured.

1101 Abnormal 4 If Reactive Power Control Major 50000 11


Reactive Mode is set to Dry contact
Schedule remote control, the four DI
ports read instruction
combinations not configured.

1103 MCB 1 The general AC circuit breaker at Major 50001 1


Disconnect the grid-tied point is OFF.

1104 Abnormal 1 The Cubicle device has detected Major 50001 2


Cubicle an exception at the grid-tied
point.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 13


SmartLogger
ModBus Interface Definitions 2 Register Definitions

Alarm ID Alarm Alarm Alarm Cause Severity Registe Bit


Name Sub-ID r
Address

1105 Device 1 The address set on the Major 50001 3


Address SmartLogger conflicts with an
Conflict existing access device address.

1106 AC SPD fault 1 Communication box SPD fault Major 50001 4

1107 DI1 custom 1 The dry contact signal from the Adaptab 50001 5
alarm peripheral to the corresponding le
DI port on the SmartLogger is
1108 DI2 custom 1 abnormal. 50001 6
alarm

1109 DI3 custom 1 50001 7


alarm

1110 DI4 custom 1 50001 8


alarm

1111 DI5 custom 1 50001 9


alarm

1112 DI6 custom 1 50001 10


alarm

1113 DI7 custom 1 50001 11


alarm

1114 DI8 custom 1 50001 12


alarm

1115 24V power 1 Communication box 24V power Major 50001 13


failure failure

1116 WebUI 1 WebUI server certificate invalid Warning 50002 0


server
certificate
invalid

1117 WebUI 1 WebUI server certificate to Warning 50002 1


server expire
certificate to
expire

1118 WebUI 1 WebUI server certificate expired Major 50002 2


server
certificate
expired

1119 License 1 1. The privilege certificate has Warning 50001 14


Expired entered the grace period.
2. The privilege feature will be
invalid soon.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 14


SmartLogger
ModBus Interface Definitions 2 Register Definitions

Alarm ID Alarm Alarm Alarm Cause Severity Registe Bit


Name Sub-ID r
Address

1120 Managemen 1 The management system Warning 50002 3


t system certificate is not yet valid.
certificate
invalid

1121 Managemen 1 The management system Warning 50002 4


t system certificate is about to expire.
certificate to
expire

1122 Managemen 1 The management system Major 50002 5


t system certificate has expired.
certificate
expired

1120 Managemen 2 The management system-1 Warning 50003 0


t system certificate is not yet valid.
certificate
invalid

1121 Managemen 2 The management system-1 Warning 50003 1


t system certificate is about to expire.
certificate to
expire

1122 Managemen 2 The management system-1 Major 50003 2


t system certificate has expired.
certificate
expired

1123 Remote 1 Remote output control Warning 50002 6


Control certificate invalid
Certificate
invalid

1124 Remote 1 Remote output control Warning 50002 7


Control certificate to expire
Certificate to
expire

1125 Remote 1 Remote output control Major 50002 8


Control certificate expired
Certificate
expired

1126 ESGCC 1 Poverty alleviation monitoring Warning 50002 9


Certificate center certificate invalid
invalid

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 15


SmartLogger
ModBus Interface Definitions 2 Register Definitions

Alarm ID Alarm Alarm Alarm Cause Severity Registe Bit


Name Sub-ID r
Address

1127 ESGCC 1 Poverty alleviation monitoring Warning 50002 10


Certificate to center certificate to expire
expire

1128 ESGCC 1 Poverty alleviation monitoring Major 50002 11


Certificate center certificate expired
expired

1129 SmartLogger 1 SmartLogger Certificate Invalid Warning 50002 12


Certificate
Invalid

1130 SmartLogger 1 SmartLogger Certificate About Warning 50002 13


Certificate to Expire
About to
Expire

1131 SmartLogger 1 SmartLogger Certificate Expired Major 50002 14


Certificate
Expired

NOTICE

Alarm ID 1106~1115 is only supported in the V200R001 version or later.

Table 2-3 Alarm Descriptions and Impacts


Alarm ID Alarm Name Alarm Description Impact on the System

1100 Abnormal After the active power control is The SmartLogger disables
Active enabled on the SmartLogger, an the active power control,
Schedule abnormal external input occurs or a and the active power
target device becomes faulty. output of the power
station may fail to satisfy
the requirements of the
power grid company.

1101 Abnormal After the reactive power control is The SmartLogger disables
Reactive enabled on the SmartLogger, an the reactive power
Schedule abnormal external input occurs or a control, and the reactive
target device becomes faulty. power output of the
power station may fail to
satisfy the requirements
of the power grid
company.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 16


SmartLogger
ModBus Interface Definitions 2 Register Definitions

Alarm ID Alarm Name Alarm Description Impact on the System

1103 MCB The SmartLogger has detected that the The power station stops
Disconnect general AC circuit breaker at the grid- feeding the power grid,
tied point is OFF. all inverters shut down,
and the SmartLogger
disables the power
control function.

1104 Abnormal This alarm is triggered when the dry The alarm indicates the
Cubicle contact point of a cubicle device joint test result for relays,
connected to the SmartLogger is open and does not affect other
or closed during the joint test for the service functions. The
relay used in the Japanese market. SmartLogger displays and
reports the alarm.

1105 Device Address The SmartLogger address configuredfor The SmartLogger


Conflict data forwarding using Modbus-TCP forwarding address is 0
conflicts with the address of aconnected by default. If the
device. configured address
conflicts with the access
deviceaddress, data of
the access device fails to
be forwarded using
Modbus-TCP.

1106 AC SPD fault This alarm warns you that the dry A faulty SPD is unable to
contact signal sent to the SmartLogger protect the SmartLogger
is abnormal in the communication box from lightning, and
scenario because the SPD inside the therefore the
communication box is faulty. SmartLogger may be
damaged under
thunderstorms.

1107~11 DI1~8 custom This alarm is generated when the The peripheral may be
14 alarm SmartLogger detects that the dry abnormal, which may
contact signal from the peripheral is impact the system
abnormal. running.

1115 24V power This alarm warns you that the dry The meteorological
failure contact signal sent to the SmartLogger sensor in the
is abnormal in the communication box communication box does
scenario because the 24V power inside not work properly due to
the communication box is faulty. no power supply.

1116 WebUI server WebUI server certificate valid date is NA


certificate future time
invalid

1117 WebUI server WebUI server certificate will be expire NA


certificate to
expire

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 17


SmartLogger
ModBus Interface Definitions 2 Register Definitions

Alarm ID Alarm Name Alarm Description Impact on the System

1118 WebUI server WebUI server certificate is expired NA


certificate
expired

1119 License Expired 1. The privilege certificate has entered The privilege feature will
the grace period. be invalid soon.
2. The privilege feature will be invalid
soon.

1120 Management Management system certificate valid Can't connect to


system date is future time management system
certificate
invalid

1121 Management Management system certificate will be The link to management


system deadline after 60 days system will be
certificate to disconnected after 60
expire days

1122 Management Management system certificate is Can't connect to


system expired management system
certificate
expired

1123 Remote Remote Control Certificate valid date is Can't connect to remote
Control future time output control server
Certificate
invalid

1124 Remote Remote Control Certificate will be The link to remote


Control deadline after 60 days output control server will
Certificate to be disconnected after 60
expire days

1125 Remote Remote Control Certificate is expired Can't connect to remote


Control output control server
Certificate
expired

1126 ESGCC Poverty alleviation monitoring center Can't connect to poverty


Certificate certificate valid date is future time alleviation monitoring
invalid center

1127 ESGCC Poverty alleviation monitoring center The link to poverty


Certificate to certificate will be deadline after 60 days alleviation monitoring
expire center will be
disconnected after 60
days

1128 ESGCC Poverty alleviation monitoring center Can't connect to poverty


Certificate certificate is expired alleviation monitoring
expired center

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 18


SmartLogger
ModBus Interface Definitions 2 Register Definitions

Alarm ID Alarm Name Alarm Description Impact on the System

1129 SmartLogger SmartLogger Certificate valid date is NA


Certificate future time
Invalid

1130 SmartLogger SmartLogger Certificate will be deadline Links pose security risks
Certificate after 60 days after certificate expired
About to
Expire

1131 SmartLogger SmartLogger Certificate is expired Links pose security risks


Certificate after certificate expired
Expired

2.3 Register Definitions for the Environmental Monitor


Instrument
NOTE

In the following table, the operating object of the register is an environmental monitor
instrument. In the Modbus-TCP communications protocol, the logic device ID is set to the
RS485 address of the environmental monitor instrument.

Table 2-4 Register Definitions


SN Signal Name Read/ Type Unit Gain Register Quantity
Write Address

1 Wind speed (WSP) RO I16 m/s 10 40031 1

2 Wind direction (WD) RO I16 ° 1 40032 1

3 PV module RO I16 ºC 10 40033 1


temperature

4 Ambient RO I16 ºC 10 40034 1


temperature

5 Total irradiance RO I16 W/m2 10 40035 1

6 Daily irradiation RO U32 MJ/m2 1000 40036 2


amount

7 Total irradiance 2 RO I16 W/㎡ 10 40038 1

8 Daily irradiation RO U32 MJ/㎡ 1000 40039 2


amount 2

9 Custom 1 RO I16 N/A 10 40041 1

10 Custom 2 RO I16 N/A 10 40042 1

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 19


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Signal Name Read/ Type Unit Gain Register Quantity


Write Address

11 Daily irradiation RO U32 kWh/㎡ 1000 40043 2


amount

12 Daily irradiation RO U32 kWh/㎡ 1000 40045 2


amount 2

2.4 Register Definitions for the Power Meter


NOTE

In the following table, the operating object of the register is a power meter. In the Modbus-
TCP communications protocol, the logic device ID is set to the RS485 address of the power
meter.

Table 2-5 Register Definitions

SN Signal Name Read/ Type Unit Gain Address Quantity


Write

1 Phase A voltage RO U32 V 100 32260 2

2 Phase B voltage RO U32 V 100 32262 2

3 Phase C voltage RO U32 V 100 32264 2

4 A-B line voltage RO U32 V 100 32266 2

5 B-C line voltage RO U32 V 100 32268 2

6 C-A line voltage RO U32 V 100 32270 2

7 Phase A current RO I32 A 10 32272 2

8 Phase B current RO I32 A 10 32274 2

9 Phase C current RO I32 A 10 32276 2

10 Active power RO I32 kW 1000 32278 2

11 Reactive power RO I32 kVar 1000 32280 2

12 Active electricity(Reserved) RO I32 kWh 10 32282 2

13 Power factor RO I16 N/A 1000 32284 1

14 Reactive electricity(Reserved) RO I32 kvarh 10 32285 2

15 Apparent power RO I32 kVA 1000 32287 2

16 Positive active RO I32 kWh 100 32289 2


electricity(Reserved)

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 20


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Signal Name Read/ Type Unit Gain Address Quantity


Write

17 Positive reactive RO I32 kvarh 100 32291 2


electricity(Reserved)

18 Electricity in positive active RO I32 kWh 100 32299 2


electricity price segment 1

19 Electricity in positive active RO I32 kWh 100 32301 2


electricity price segment 2

20 Electricity in positive active RO I32 kWh 100 32303 2


electricity price segment 3

21 Electricity in positive active RO I32 kWh 100 32305 2


electricity price segment 4

22 Electricity in negative active RO I32 kWh 100 32307 2


electricity price segment 1

23 Electricity in negative active RO I32 kWh 100 32309 2


electricity price segment 2

24 Electricity in negative active RO I32 kWh 100 32311 2


electricity price segment 3

25 Electricity in negative active RO I32 kWh 100 32313 2


electricity price segment 4

26 Custom 1 RO I32 N/A 1000 32315 2

27 Custom 2 RO I32 N/A 1000 32317 2

28 Custom 3 RO I32 N/A 1000 32319 2

29 Custom 4 RO I32 N/A 1000 32321 2

30 Custom 5 RO I32 N/A 1000 32323 2

31 Custom 6 RO I32 N/A 1000 32325 2

32 Custom 7 RO I32 N/A 1000 32327 2

33 Custom 8 RO I32 N/A 1000 32329 2

34 Custom 9 RO I32 N/A 1000 32331 2

35 Custom 10 RO I32 N/A 1000 32333 2

36 Phase A active power RO I32 kW 1000 32335 2

37 Phase B active power RO I32 kW 1000 32337 2

38 Phase C active power RO I32 kW 1000 32339 2

39 Total active electricity RO I64 kWh 100 32341 4

40 Total reactive electricity RO I64 kvarh 100 32345 4

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 21


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Signal Name Read/ Type Unit Gain Address Quantity


Write

41 Negative active electricity RO I64 kWh 100 32349 4

42 Negative reactive electricity RO I64 kvarh 100 32353 4

43 Positive active electricity RO I64 kWh 100 32357 4

44 Positive reactive electricity RO I64 kvarh 100 32361 4

NOTE

SN16 ~ SN25 registers are supported only by DL/T 645 power meters.

2.5 Register Definitions for the SUN2000


NOTE

The operating object of the register is an SUN2000 inverter. In the Modbus-TCP


communications protocol, the logic device ID is set to the RS485 address of the inverter.

For the detailed register definitions, see the SUN2000VXXXRXXXCXX MODBUS


Protocol.

2.6 Public Register Definitions


The SmartLogger provides signals listed in the following table for all types of
devices connected to it, even if the devices do not provide the signals.

Table 2-6 Register Definitions


SN Signal Name Read/ Type Unit Gain Address Quantity
Write

1 Device list change RO U16 N/A 1 65521 1


number

2 Port number RO U16 N/A 1 65522 1

3 Device Address RO U16 N/A 1 65523 1

4 Device name RW STR N/A 1 65524 10

5 Device connection RO U16 N/A 1 65534 1


status

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 22


SmartLogger
ModBus Interface Definitions 2 Register Definitions

NOTE

Data definitions for Device connection status are as follows:


0XB000; Disconnection
0XB001; Online

NOTE

Data restrictions for Device name re as follows:


A device name consists of a maximum of 20 bytes (excluding the terminator), and can
contain only visible characters whose ASCII codes are in the range from 0x20 to 0x7e,
including letters (a–z, A–Z), digits (0–9), and single-byte punctuation (excluding '\").

2.7 Remapped Modbus definitions


NOTE

The mapped registers are accessed by the SmartLogger address. By default, each device
takes up 25 registers, the register address is derived from the initial register address, offset
address, and device address translation. Device address for Modbus physical address.
Supported devices: inverter, environmental monitor instrument.

The formula is as follows:


● Register address = Initial register address + (25 * (Device address – 1)) +
Offset address
● Initial register address = 51000
● For the registers must be set in sequence, the device address must be in strict
accordance with the continuous number to avoid waste of registers.

Table 2-7 Inverter Register Definitions


SN Signal Name Read/ Type Unit Gain Offset Quantity Scope
Write address

1 Active power RO I32 kW 1000 0 2

2 Reactive power RO I32 kVAR 1000 2 2

3 Total DC input RO I16 A 100 4 1


current

4 Total input RO U32 kW 1000 5 2


power

5 Insulation RO U16 MΩ 1000 7 1


resistance

6 Power factor RO I16 N/A 1000 8 1

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 23


SmartLogger
ModBus Interface Definitions 2 Register Definitions

SN Signal Name Read/ Type Unit Gain Offset Quantity Scope


Write address

7 Inverter status RO U16 N/A 1 9 1 In addition to


the Modbus
interface
protocol of the
specific inverter,
the following
two states are
added by the
SmartLogger:
0xB000:
Communication
interrupt
0xC000:
Uploading

8 Spare8 RO I16 N/A N/A 10 1

9 Cabinet RO I16 ℃ 10 11 1
temperature

10 Major Fault RO U32 N/A N/A 12 2 Alarm


Code ID(Bit31~16) +
Cause
ID(Bit15~0)

11 Minor Fault RO U32 N/A N/A 14 2 Alarm


Code ID(Bit31~16) +
Cause
ID(Bit15~0)

12 Warning Code RO U32 N/A N/A 16 2 Alarm


ID(Bit31~16) +
Cause
ID(Bit15~0)

13 Spare1 RO U16 N/A N/A 18 1

14 Spare2 RO U16 N/A N/A 19 1

15 Spare3 RO U16 N/A N/A 20 1

16 Spare4 RO U16 N/A N/A 21 1

17 Spare5 RO U16 N/A N/A 22 1

18 Spare6 RO U16 N/A N/A 23 1

19 Spare7 RO U16 N/A N/A 24 1

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 24


SmartLogger
ModBus Interface Definitions 2 Register Definitions

Table 2-8 Environmental Monitor Instrument Register Definitions


SN Signal Name Read/ Type Unit Gain Offset Quantity Scope
Write address

1 Wind speed RO I16 m/s 10 0 1


(WSP)

2 Wind direction RO I16 ° 1 1 1


(WD)

3 PV module RO I16 ℃ 10 2 1
temperature

4 Ambient RO I16 ℃ 10 3 1
temperature

5 Total irradiance RO I16 W/㎡ 10 4 1

6 Daily irradiation RO U32 MJ/ 1000 5 2


amount ㎡

7 Total irradiance RO I16 W/㎡ 10 7 1


2

8 Daily irradiation RO U32 MJ/ 1000 8 2


amount 2 ㎡

9 Custom 1 RO I16 N/A 10 10 1

10 Custom 2 RO I16 N/A 10 11 1

11 Daily irradiation RO U32 kWh 1000 12 2


amount /㎡

12 Daily irradiation RO U32 kWh 1000 14 2


amount 2 /㎡

13 Spare1 RO U16 N/A N/A 16 1

14 Spare2 RO U16 N/A N/A 17 1

15 Spare3 RO U16 N/A N/A 18 1

16 Spare4 RO U16 N/A N/A 19 1

17 Spare5 RO U16 N/A N/A 20 1

18 Spare6 RO U16 N/A N/A 21 1

19 Spare7 RO U16 N/A N/A 22 1

20 Spare8 RO U16 N/A N/A 23 1

21 Spare9 RO U16 N/A N/A 24 1

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 25


SmartLogger
ModBus Interface Definitions 3 Power Adjustment for Inverters

3 Power Adjustment for Inverters

3.1 40420, 40424: Active Adjustment


The external device sends an absolute active power value for active power
adjustment. The value is the sum of all inverters connected to the SmartLogger.
After the SmartLogger receives the instruction value, it synchronizes the value in
percentage to all connected inverters.
The real-time range for active power adjustment can be queried through Max.
active adjustment (register 40697).

3.2 40422, 40426: Reactive Adjustment


The external device sends an absolute reactive power value for reactive power
adjustment. The value is the sum of all inverters connected to the SmartLogger.
After the SmartLogger receives the instruction value, it synchronizes the value in
the form of Q/S to all connected inverters.
The real-time range for reactive power adjustment can be queried through Max.
reactive adjustment (register 40693) and Min. reactive adjustment (register
40695).

3.3 40428: Active Power Adjustment by Percentage


The external device sends the active power adjustment target value in percentage.
After the SmartLogger receives the instruction value, it synchronizes the value in
percentage to all connected inverters.
The reference value of this percentage value is the sum of the rated power of all
inverters.

3.4 40429: Power Factor Adjustment


The external device sends the reactive power adjustment target value in the form
of a power factor.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 26


SmartLogger
ModBus Interface Definitions 3 Power Adjustment for Inverters

After the SmartLogger receives the instruction value, it synchronizes the value in
the form of a power factor to all connected inverters.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 27


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

4 Communication Protocol Overview

4.1 Physical Layer


Communicates over an Ethernet.

Port number: 502

4.2 Data Link Layer

4.2.1 Addressing Mode


ModBus-TCP data frames identify devices by logic device IDs. The following table
describes how logic device IDs are allocated.

NOTE

The address of an access device is an RS485 address which can be read on the LCD or built-
in WebUI of the SmartLogger.

SmartLogger Local Access Device Address Reserved


Address

0 1–247 248–255

4.2.2 Frame Structure

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 28


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

WARNING

A ModBus-TCP frame can contain a maximum of 256 bytes.

The following table describes the format of an MBAP header:

Table 4-1 MBAP Definitions

Data Field Length Description Master Node Slave Node


(Bytes)

Transmission 2 Matching Assigned by The identifier


identifier identifier the master of the
between a node; better response
request frame be unique for frame from
and a each data the slave
response frame. node must be
frames consistent
with that of
the request
frame.

Protocol type 2 0 = Modbus Assigned by The identifier


protocol the master of the
node; 0 by response
default. frame from
the slave
node must be
consistent
with that of
the request
frame.

Data length 2 Follow-up Assigned by Assigned by


data length the master the slave
node based node based
on the actual on the actual
data frame. frame length.

Logic device 1 Identifies a Assigned by The identifier


ID SmartLogger the master of the
device or a node based response
subdevice on the actual frame from
accessed by data frame the slave
the request. node must be
SmartLogger. consistent
0: with that of
SmartLogger the request
frame.
1–247:
Inverters or
other device

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 29


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

4.2.3 Data Encoding


Modbus uses a big-Endian to represent addresses and data. When multiple bytes
are sent, the payload digit leftmost is sent first.

Example:

Register Size Value

16 bits 0x1234

The system sends 0x12, and then sends 0x34.

4.2.4 Interaction Process


A communication process is always initiated by a master node. Slave nodes do not
initiate communication processes.

In unicast mode, a slave node returns one response for each request from the
master node. If the master node does not receive any response from the slave
node in 5s, the communication process is regarded as timed out.

In broadcast mode, slave nodes receive instructions from the master node, but do
not respond to the instructions.

4.3 Application Layer

4.3.1 Function Code List

Table 4-2 Function code list

Function Code Meaning Remarks

0x03 Read registers. Supports continuous


reading of single or
multiple registers.

0x06 Write a single register. Supports writing into a


single register.

0x10 Write multiple registers. Supports continuous


writing into multiple
registers.

0x2B Read device identifiers. Obtains device types and


version numbers.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 30


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

4.3.2 Exception Code List


The exception codes must be unique for each NE type. The names and
descriptions are provided in the NE interface document. Different versions of the
same NE type must be backward compatible. Exception codes in use cannot be
assigned to other exceptions.

Table 4-3 Table of exception codes returned by an NE (0x00–0x8F are for common
exception codes)
Code Name Meaning

0x01 ILLEGAL FUNCTION The function code


received in the query is
not an allowable action
for the server. 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 is in the wrong
state to process a
request of this type, for
example because it is
unconfigured and is
being asked to return
register values.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 31


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

Code Name Meaning

0x02 ILLEGAL DATA ADDRESS The data address


received in the query is
not an 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
perform operations on
registers 96, 97, 98, 99
and 100, and there is no
register with address
100.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 32


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

Code Name Meaning

0x03 ILLEGAL DATA VALUE A value contained in the


query data field is not an
allowable value for
server. This indicates a
fault in the structure of
the remainder of a
complex request, such as
that the implied length is
incorrect. 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 SERVER DEVICE FAILURE An unrecoverable error


occurred while the server
was attempting to
perform the requested
action.

0x05 ACKNOWLEDGE Specialized use in


conjunction with
programming
commands. The server
has accepted the request
and is processing it, but
a long duration of time
will be required to do so.
This response is returned
to prevent a timeout
error from occurring in
the client. The client can
next issue a Poll Program
Complete message to
determine if processing
is completed.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 33


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

Code Name Meaning

0x06 SERVER DEVICE BUSY Specialized use in


conjunction with
programming
commands.
The server is engaged in
processing a long–
duration program
command. The client
should retransmit the
message later when the
server is free.

0x08 MEMORY PARITY ERROR Specialized use in


conjunction with
function codes 20 and 21
and reference type 6, to
indicate that the
extended file area failed
to pass a consistency
check. The server
attempted to read record
file, but detected a parity
error in the memory. The
client can retry the
request, but service may
be required on the server
device.

0x0A GATEWAY PATH Specialized use in


UNAVAILABLE conjunction with
gateways, indicates that
the gateway was unable
to allocate an internal
communication path
from the input port to
the output port for
processing the request.
Usually means that the
gateway is
misconfigured or
overloaded.

0x0B GATEWAY TARGET Specialized use in


DEVICE FAILED TO conjunction with
RESPOND gateways, indicates that
no response was
obtained from the target
device. Usually means
that the device is not
present on the network.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 34


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

Code Name Meaning

0x80 NO PERMISSION An operation is not


allowed because of a
permission
authentication failure or
permission expiration.

4.3.3 Reading Registers (0X03)

4.3.3.1 Frame Format for a Request from a Master Node


Data Field Length Description

Function code 1 byte 0x03

Register start address 2 byte 0x0000–0xFFFF

Number of registers 2 byte 1–125

4.3.3.2 Frame Format for a Normal Response from a Slave Node


Data Field Length Description

Function code 1 byte 0x03

Number of bytes 1 byte 2×N

Register value 2xN byte N/A

NOTE

N indicates the number of registers.

4.3.3.3 Frame Format for an Abnormal Response from a Slave Node


Data Field Length Description

Function code 1 byte 0x83

Exception code 1 byte See the 4.3.2 Exception


Code List

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 35


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

4.3.3.4 Example
A master node sends a request to a slave node (logic device ID: 01) to query
register whose address is 32306/0X7E32. The request frame format is as follows:

Descri MBAP Header Funct Data


ption ion
Protocol Protocol Data Length Logic Register Number of
Identifier Type Devi Code Address Registers
ce ID

Data 00 01 00 00 00 06 00 03 7E 32 00 02
frame

Frame format of a normal response from the slave node:

Descr MBAP Header Func Data


iption tion
ProtocolIde Protocol Data Logi Byte RegisterValue
ntifier Type Length c Code s
Devi
ceID

Data 00 01 00 00 00 07 00 03 04 00 00 00 01
frame

Frame format of an abnormal response from the slave node:

Descrip MBAP Header Functio Data


tion n
ProtocolIdentifier Protocol Type Data Length Logic Error
DeviceI Code Code
D

Data 00 01 00 00 00 03 00 83 03
frame

4.3.4 Writing a Single Register (0X06)

4.3.4.1 Frame Format for a Request from a Master Node


Data Field Length Description

Function code 1 byte 0x06

Register Address 2 bytes 0x0000–0xFFFF

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 36


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

Data Field Length Description

Register Value 2 bytes 0x0000–0xFFFF

4.3.4.2 Frame Format for a Normal Response from a Slave Node


Data Field Length Description

Function code 1 byte 0x06

Register Address 2 bytes 0x0000–0xFFFF

Register Value 2 bytes 0x0000–0xFFFF

4.3.4.3 Frame Format for an Abnormal Response from a Slave Node


Data Field Length Description

Function code 1 byte 0x86

Exception code 1 byte See the 4.3.2 Exception


Code List

4.3.4.4 Example
A master node sends a Power-On instruction(register address: 40200/0X9D08) to a
slave node whose address is 01. The request frame format is as follows:

Descri MBAP Header Func Data


ption tion
Protocol Protocol Data Length Logic Register Register
Identifier Type devic Code Address Value
e ID

Data 00 01 00 00 00 06 00 06 9D 08 00 00
frame

Frame format of a normal response from the slave node:

Descri MBAP Header Func Data


ption tion
Protocol Protocol Data Length Logic Register Register
Identifier Type Devic Code Address Value
e ID

Data 00 01 00 00 00 06 00 06 9D 08 00 00
frame

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 37


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

Frame format of an abnormal response from the slave node:

Descriptio MBAP Header Function Data


n Code
Protocol Protocol Data Length Logic Device Error
Identifier Type ID Code

Data 00 01 00 00 00 03 00 86 04
frame

4.3.5 Writing Multiple Registers

4.3.5.1 Frame Format for a Request from a Master Node


Data Field Length Description

Function code 1 byte 0x10

Register start address 2 byte 0x0000–0xFFFF

Number of registers 2 byte 0x0000–0x007b

Number of bytes 1 byte 2×N

Register value 2×N byte Value

NOTE

N indicates the number of registers.

4.3.5.2 Frame Format for a Normal Response from a Slave Node


Data Field Length Description

Function code 1 byte 0x10

Register address 2 bytes 0x0000–0xFFFF

Number of registers 2 bytes 0x0000–0x007b

4.3.5.3 Frame Format for an Abnormal Response from a Slave Node


Data Field Length Description

Function code 1 byte 0x90

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 38


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

Data Field Length Description

Exception code 1 byte See the 4.3.2 Exception


Code List

4.3.5.4 Example
A master node sends an instruction to a slave node whose address is 01 to set the
active power control mode (register address: 40118/0X9CB6) to 2, and set the
active power deration (register address: 40119/0X9CB7) to 50%. The request
frame format is as follows:

Des MBAP Header Func Data


crip tion
tio Protocol Protocol Data Logi Cod Registe Numb Byt Register Value
n Identifie Type Length c e r er of es
r devi Addres Regist
ce s ers
ID

Dat 00 01 00 00 00 0B 00 10 9C B 0 0 04 00 0 00 32
a 6 0 2 2
fra
me

Frame format of a normal response from the slave node:

Descri MBAP Header Func Data


ption tion
Protocol Protocol Data Length Logic Register Number of
Identifier Type Devic Code Address Registers
e ID

Datafr 00 01 00 00 00 06 00 10 9C B6 00 02
ame

Frame format of an abnormal response from the slave node:

Desc MBAP Header Functio Data


ripti n
on Protocol Protocol Data Length Logic Device Error Code
Identifier Type ID Code

Data 00 01 00 00 00 03 00 90 04
fram
e

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 39


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

4.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 port 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:

● Basic device identifier: All objects of this type are mandatory, such as the
manufacturer name, product code, and revision version.
● Normal device identifier:Except the basic data objects, the device provides
additional and optional identifiers and data object description. Normal device
identifiers define all types of objects according to standard definitions, but the
execution of this type of objects is optional.
● Extensive device identifier:Except the basic data objects, the device provides
additional and optional identifiers and special data object description. All
these data objects are related to the device.

Table 4-4 Reading Device Identifiers

Object ID Object Name or Type M/ Category


Description O

0x00 Manufacturer ASCII character string M Basic


name

0x01 Product code ASCII character string M

0x02 Main revision ASCII character string M

0x03– Normal
0x7F

0x80– Extensive
0xFF

4.3.6.1 Commands for Querying Device Identifiers

Table 4-5 Request frame format

Data Field Length (Byte) Description

Function code 1 0x2B

MEI type 1 0x0E

ReadDeviId code 1 01

Object ID 1 0x00

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 40


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

Table 4-6 Frame format for a normal response


Data Field Length Description
(Byte)

Slave node address 1 1–247

Function code 1 0x2B

MEI type 1 0x0E

ReadDeviId code 1 01

Consistency level 1 01

More 1 N/A

Next object ID 1 N/A

Number of objects 1 N/A

Object list First object Object ID 1 0x00

Object length 1 N

Object value N N/A

Table 4-7 Object list


Object ID Object Name or Description Category
Description

0x00 Manufacturer name HUAWEI Basic

0x01 Product code SUN2000

0x02 Main revision ASCII character


string, software
version

Table 4-8 Frame format for an abnormal response


Data Field Length (Byte) Description

Function code 1 0xAB

Exception code 1 See the 4.3.2


Exception Code List

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 41


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

4.3.6.2 Command for Querying a Device List

Table 4-9 Request frame format


Data Field Length (Byte) Description

Function code 1 0x2B

MEI type 1 0x0E

ReadDeviId code 1 03

Object ID 1 0x87

Table 4-10 Frame format for a normal response


Data Field Length Description
(Byte)

Function code 1 0x2B

MEI type 1 0x0E

ReadDeviId code 1 03

Consistency level 1 03

More 1 N/A

Next object ID 1 N/A

Number of objects 1 N/A

Object list First object Object ID 1 0x87

Object 1 N
length

Object N N/A
value

...

Table 4-11 Object list


Object ID Object Name Type Description

0x80-0x86 Reserved Returns a null


object with a
length of 0.

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 42


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

Object ID Object Name Type Description

0x87 Number of int Returns the


devices number of devices
connected to the
RS485 address.

0x88 Information about ASCII character Returns


the first device string information only
See the device for the first device
description if a network
definitions below. element allows
only one device to
be connected to
each RS485
address.

0x89 Information about same as above same as above


the second device

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

0xFF Information about same as above same as above


the 120th device

0x00 Information about same as above same as above


the 121th device

0x01 Information about same as above same as above


the 122th device

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

4.3.6.3 Device Description Definitions


Each device description consists of all"attribute = value" strings.

Attribute label=%s;attribute label=%s;…attribute label=%s

For example:1=SUN2000;2=V100R001C01SPC120;3=P1.0-
D1.0;4=123232323;5=2;6=1.

Table 4-12 Attribute definitions

Attribut Attribute Type Description


e Label Name

1 Device Model ASCII SUN2000


character
string

2 Software ASCII N/A


version character
string

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 43


SmartLogger
ModBus Interface Definitions 4 Communication Protocol Overview

Attribut Attribute Type Description


e Label Name

3 Version of the ASCII See the interface protocol version


communicatio character definitions.
ns protocol string

4 ESN ASCII N/A


character
string

5 Device number int 0,1,2,3...(Assigned by NE; 0


indicates the master device to
which the ModBus card is inserted)

6 Parallel int 0, 1,2, 3, … (assigned by NE)


network 0xFF:invalid value; indicates that a
number unit does not belong to any
parallel system
If not applicable, this attribute is
not returned.

Table 4-13 Frame format for an abnormal response


Data Field Length (Byte) Description

Function code 1 0xAB

Exception code 1 See the 4.3.2


Exception Code List

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 44


SmartLogger
ModBus Interface Definitions 5 Reference Documents

5 Reference Documents

Modbus_Application_Protocol_V1_1b3
Modbus over serial line specification and implementation guide V1.02
Modbus_Messaging_Implementation_Guide_V1_0b

Issue 37 (2020-06-24) Copyright © Huawei Technologies Co., Ltd. 45

You might also like