MODBUS Interface Definitions - SUN2000 V200R002 MODBUS Interface Definitions
MODBUS Interface Definitions - SUN2000 V200R002 MODBUS Interface Definitions
V200R002
Issue 05
Date 2017-04-27
~~
H
~A:e, and other Huawei trademarks are trademarks of Huawei Technologies Co. , Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
The purchased products , services and features are stipulated by the contract made between Huawei and the
customer. All or part of the products, services and features described in this document may not be within the
purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information ,
and recommendations in this document are provided "AS IS" without warranties, guarantees or
representations of any kind , either express or implied .
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information , and
recommendations in this document do not constitute a warranty of any kind , express or implied.
Website: http://e.huawei.com
Change History
Change History
Issue Date Description
Contents
1 Introduction
As the Huawei inverter business continues to expand, more and more general and customized
inverters use the ModBus protocol for communication. This document provides information
about the ModBus protocol used in Huawei inverters, and can be used to regulate and restrict
follow-up third-party integration R&D and customizations.
Name Description
Name Description
STR String
s Second
SUN2000-50KTL-C 1
SUN2000-50KTL
SUN2000-42KTL
SUN2000-36KTL
SUN2000-33KTL-JP
SUN2000-40KTL-JP
SUN2000-43KTL-IN-Cl
SUN2000-24. 7KTL-JP
SUN2000-40KTL-US
SUN2000-33KTL-US
SUN2000-36KTL-US
SUN2000-33KTL-A
26 SUN2000-42KTL 47 28.2 42
27 SUN2000-36KTL 40 24 36
29 SUN2000-40KTL-JP 40 27.6 40
35 SUN2000-40KTL-US 44 26.4 40
37 SUN2000-36KTL-US 40 24 36
43 SUN2000-33KTL-A 33 19.8 30
2 Register Definitions
2.3 Alarms
20 Ua RO U16 V 10 32277 1
21 Ub RO U16 V 10 32278 1
22 Uc RO U16 V 10 32279 1
23 Ia RO U16 A 10 32280 1
24 lb RO U16 A 10 32281 1
25 le RO U16 A 10 32282 1
cos\j/-P/Pn curve point 1 cos\j/ value 116 1000 NIA - 0.8 to 0.8
cos\j/-P/Pn curve point 2 cos\j/ value 116 1000 NIA - 0.8 to 0.8
cos\j/-P/Pn curve point 3 cos\j/ value 116 1000 NIA - 0.8 to 0.8
cos\j/-P/Pn curve point 4 cos\j/ value 116 1000 NIA - 0.8 to 0.8
cos\j/-P/Pn curve point 5 cos\j/ value 116 1000 NIA - 0.8 to 0.8
cos\j/-P/Pn curve point 6 cos\j/ value 116 1000 NIA - 0.8 to 0.8
cos\j/-P/Pn curve point 7 cos\j/ value 116 1000 NIA - 0.8 to 0.8
cos\j/-P/Pn curve point 8 cos\j/ value 116 1000 NIA - 0.8 to 0.8
cos\j/-P/Pn curve point 9 cos\j/ value 116 1000 NIA - 0.8 to 0.8
cos\j/-P/Pn curve point 10 cos\j/ value 116 1000 NIA - 0.8 to 0.8
2.3 Alarms
Table 2-3 Alarms List
• If both storage and high-frequency write interfaces are required, ensure that the inverter version is
V100R001C81SPC107 or V200R001C00SPC106, or a later version.
• If the Active power deration fixed value interface is required, ensure that the inverter version is
V100R001C81SPC107 or V200R001C00SPC106, or a later version.
WNOTE
After the mode of Active power control (register 40118) is changed, the inverter automatically saves the
register value. You do not need to write the value repeatedly. If you need to send a value periodically,
send the value at intervals greater than 12 minutes.
Operation:
• Scenario in which the derating precision is 1%: Change the value of Active power
control (register 40118) to 1, and change the value of Active power deration percent
(register 40234) to the target value(%).
• Scenario in which the derating precision is 0.1 %: Change the value of Active power
control (register 40118) to 1, and change the value of Active power deration percent
(precision) (register 40232) to the target value(%).
WNOTE
• After the mode of Active power control (register 40118) is changed, the inverter automatically saves
the register value. You do not need to write the value repeatedly. If you need to send a value
periodically, send the value at intervals greater than 12 minutes.
• Active power deration percent (register 40234) and Active power deration percent (precision)
(register 40232) need to be sent by the external device periodically at intervals no more than 10
minutes. Otherwise, the inverter will automatically restore the active output to l 00% of Pmax. The
inverter does not save the derating instruction set in Active power deration percent (register 40234)
or Active power deration percent (precision) (register 40232) mode. After the inverter is powered on
again, the power is restored to l 00% of Pmax.
Operation: Change the value of Active power control (register 40118) to 2, and then change
the value of Active power deration setting [fixed value] (register 40120) to the target value
(kW).
• After the mode of Active power control (register 40118) is changed, the inverter automatically saves
the register value. You do not need to write the value repeatedly. If you need to send a value
periodically, send the value at intervals greater than 12 minutes.
• After Active power deration setting [fixed value] (register 40120) is set, the inverter applies and
saves the setting. The value does not need to be sent periodically. If you need to send a value
periodically, send the value at intervals greater than 12 minutes.
Operation:
• Scenario in which the derating precision is 1%: Change the value of Active power
control (register 40118) to 3, and change the value of Active power deration setting
[percentage] (register 40119) to the target value (%).
• Scenario in which the derating precision is 0.1 %: Change the value of Active power
control (register 40118) to 3, and change the value of Active power deration setting
[percentage] (precision) (register 40125) to the target value(%).
WNOTE
• After the mode of Active power control (register 40118) is changed, the inverter automatically saves
the register value. You do not need to write the value repeatedly. If you need to send a value
periodically, send the value at intervals greater than 12 minutes.
• After Active power deration setting [percentage] (register 40119) or Active power deration setting
[percentage] (precision) (register 40125) is set, the inverter applies and saves the setting. The value
does not need to be sent periodically. If you need to send a value periodically, send the value at
intervals greater than 12 minutes.
Operation: Change the value of Active power control (register 40118) to 4, and then change
the value of Active power deration fixed value (register 40235) to the target value (kW).
WNOTE
• After the mode of Active power control (register 40118) is changed, the inverter automatically saves
the register value. You do not need to write the value repeatedly. If you need to send a value
periodically, send the value at intervals greater than 12 minutes.
• Active power deration fixed value (register 40235) needs to be sent by the external device at
intervals no more than 10 minutes. Otherwise, the inverter will automatically restore active power
output to 100% of Pmax. The inverter does not save the derating instruction set in Active power
deration fixed value mode. After the inverter is powered on again, the power is restored to 100% of
Pmax.
WNOTE
• If both storage and high-frequency write interfaces are required, ensure that the inverter version is
V100R001C81SPC107 or V200R001C00SPC106, or a later version.
• If the Reactive power compensation Q/S interface is required, ensure that the inverter version is
Vl00R001C81SPC107 or V200R001C00SPC106, or a later version.
After the mode of Reactive power compensation (register 40117) is changed, the inverter automatically
saves the register value. You do not need to write the value repeatedly. If you need to send a value
periodically, send the value at intervals greater than 12 minutes.
Operation: Change the value of Reactive power compensation (register 40117) to 1 and then
change the value of Reactive power compensation power factor (register 40237) to the target
value.
• After the mode of Reactive power compensation (register 4011 7) is changed, the inverter
automatically saves the register value. You do not need to write the value repeatedly. If you need to
send a value periodically, send the value at intervals greater than 12 minutes.
• Reactive power compensation power factor (register 40237) needs to be sent by the external device
at intervals no more than 10 minutes. Otherwise, the inverter will automatically disable reactive
power output.
Operation: Change the value of Reactive power compensation (register 40117) to 2, and then
change the value of Reactive power compensation setting [Q/S] (register 40123) to the target
value (kW).
• After the mode of Reactive power compensation (register 40117) is changed, the inverter
automatically saves the register value. You do not need to write the value repeatedly. If you need to
send a value periodically, send the value at intervals greater than 12 minutes.
• After Reactive power compensation setting [Q/S] (register 40123) is set, the inverter applies and
saves the setting. The value does not need to be sent periodically. If you need to send a value
periodically, send the value at intervals greater than 12 minutes.
Operation: Change the value of Reactive power compensation (register 40117) to 3, and then
change the value of Reactive power compensation setting [power factor] (register 40122) to
the target value (kW).
WNOTE
• After the mode of Reactive power compensation (register 40117) is changed, the inverter
automatically saves the register value. You do not need to write the value repeatedly. If you need to
send a value periodically, send the value at intervals greater than 12 minutes.
• After Reactive power compensation setting [power factor] (register 40122) is set, the inverter applies
and saves the setting. The value does not need to be sent periodically. If you need to send a value
periodically, send the value at intervals greater than 12 minutes.
Operation: Change the value of Reactive power compensation (register 40117) to 6 and then
change the value of Reactive power compensation Q/S (register 40236) to the target value.
0JNOTE
• After the mode of Reactive power compensation (register 4011 7) is changed, the inverter
automatically saves the register value. You do not need to write the value repeatedly. If you need to
send a value periodically, send the value at intervals greater than 12 minutes.
• Reactive power compensation Q/S (register 40236) needs to be sent by the external device at
intervals no more than 10 minutes. Otherwise, the inverter will automatically disable reactive power
output.
Appllication Layer
Data Linlk Layer
Physical! Layer
4.1 Physical Layer
Example:
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.
0x00,0xC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x51,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 an
unsigned short type */
uchCRCHi = auchCRCLo[ulndex];
Code source: MODBUS over Serial Line Specification and Implementation Guide Vl.02
Table 4-5 Exception codes returned by an NE (0x00 - 0x8F are for common exception codes)
CRC 2 NIA
Table 4-7 Frame Format for a Normal Response from a Slave Node
CRC 2 NIA
WNOTE
Table 4-8 Frame Format for an Abnormal Response from a Slave Node
CRC 2 NIA
4.3.3.4 Example
A master node sends an instruction for querying Active power derating (register address:
40120) to a slave node whose address is 01. The frame format is as follows:
01 03 9C BS 00 01 2A 7F
01 03 02 00 00 b8 44
01 83 04 40 F3
CRC 2 NIA
Table 4-10 Frame Format for a Normal Response from a Slave Node
CRC 2 NIA
Table 4-11 Frame Format for an Abnormal Response from a Slave Node
CRC 2 NIA
4.3.4.4 Example
A master node sends an instruction for setting Active power derating (register address:
40120) to a slave node whose address is 01. The frame format is as follows:
01 06 9C B8 00 01 E6 7F
01 06 9C B8 00 01 E6 7F
01 83 04 40 F3
CRC 2 NIA
Table 4-13 Frame Format for a Normal Response from a Slave Node
CRC 2 NIA
Table 4-14 Frame Format for an Abnormal Response from a Slave Node
CRC 2 NIA
4.3.5.4 Example
A master node sends an instruction for setting Active power derating (register address:
40120,data:0) and Reactive power compensation (PF) (register address: 40122, data:1) and
to a slave node whose address is 01. The frame format is as follows:
01 10 9C B8 00 03 06 00 00 00 00 03 E8 A2 91
01 10 9C B8 00 03 2E 7D
019004 4D C3
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.
• 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.
0x03 - -- -- -- Normal
0x7F
0x80 - -- -- -- Extensive
0xFF
ReadDeviid code 1 01
Object ID 1 0x00
CRC 2 NIA
ReadDeviid code 1 01
Consistency level 1 01
More 1 NIA
Next object ID 1 NIA
Number of objects 1 NIA
Object length 1 N
CRC 2 NIA
ReadDevild code 1 03
Object ID 1 0x87
CRC 2 NIA
ReadDeviid code 1 03
Consistency level 1 03
More 1 NIA
Next object ID 1 NIA
Number of objects 1 NIA
Object list First object Object ID 1 0x87
Object length 1 N
For example:l=SUN2000;2=V100R001C01SPC120;3=Pl.0-Dl.0;4=123232323;5=2;6=1.
CRC 2 NIA