0% found this document useful (0 votes)
11 views7 pages

Single_Device_Control_via_Growatt_Modbus_TCP

Growatt introduces a new feature for the ShineWiFi-X datalogger that enables SCADA control via Modbus TCP protocol for third-party systems. The document details the system topology, communication protocols, and configuration steps required for integrating the ShineWiFi-X with third-party platforms to read inverter data. It also outlines the necessary IP address settings and provides examples of reading and modifying inverter registers using Modbus function codes.

Uploaded by

Kyi Zaw
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)
11 views7 pages

Single_Device_Control_via_Growatt_Modbus_TCP

Growatt introduces a new feature for the ShineWiFi-X datalogger that enables SCADA control via Modbus TCP protocol for third-party systems. The document details the system topology, communication protocols, and configuration steps required for integrating the ShineWiFi-X with third-party platforms to read inverter data. It also outlines the necessary IP address settings and provides examples of reading and modifying inverter registers using Modbus function codes.

Uploaded by

Kyi Zaw
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/ 7

Single Device Control via Growatt Modbus TCP

In order to meet the smart scheduling requirements from the regional grid companies, Growatt launches the new feature for
ShineWiFi-X datalogger. By using the newest software version, ShineWiFi-X could be used to support SCADA control based
on MODBUS TCP protocol for the third party. This paper will introduce the function in detail.

1. System Topology Diagram

2. Topology diagram description


The third party system is connected to the router through a LAN cable, the ShineWiFi-X is connected to the router through
WiFi, and the ShineWiFi-X communicates with the inverter via the USB port.
The communication protocol between the third-party system and ShineWiFi-X is Modbus TCP, and the protocol between
ShineWiFi-X and inverter is Modbus RTU. ShineWiFi-X is acting as an intermediary to convert Modbus TCP protocol to
Modbus RTU protocol. Customers still need to read and set the value of the inverter according to Growatt's inverter protocol
registration table.

3. Description of Modbus protocol

 Modbus TCP and Modbus RTU are both Modbus protocols. Due to the different media (RS485 and LAN), there is a little
difference in the data format of the protocols.
 Modbus RTU protocol data format:

 Modbus TCP/IP protocol data format:

 Modbus TCP and Modbus RTU are both Modbus protocols, but the connection methods used are different. Except for
the difference in the data header and inspection method, the content format of the data read from the slave is the same.

 Function Code Description

Commonly used function codes are: 03 and 04:

03 is Holding Register()

04 is Input Register()
 If a third-party platform wants to read the holding registers (0~19 address) of the No. 1 inverter, it needs to use the 03
command code.

The above is a case sent by the third-party platform to ShineWiFi-X, among which there are 7 bytes in MBAP, the
seventh byte 01 is the inverter address. The middle part is the Function Code, 03. And the Data area is based on
Growatt Modbus RTU protocol, the first two bytes 00 00 to indicate the start address of the register: the start address
is 0; and the last two bytes 00 14 are the number of addresses, which need to be converted into decimal, (the bytes
are hexadecimal), 00 14 converted to decimal is 20, which means there are 20 addresses.

 If the third-party platform needs to read the input registers (0-19 address) of the No. 1 inverter, it needs to
use the 04 Function Code.
The above is a case sent by the third-party platform to ShineWiFi-X, among which there are 7 bytes in MBAP, the seventh
byte 01 is the inverter address. The middle part is the Function Code, 04. And the Data area is based on Growatt Modbus RTU
protocol, the first two bytes 00 00 to indicate the start address of the register: the start address is 0; And the last two bytes
00 14 are the number of addresses, which need to be converted into decimal, (the bytes are hexadecimal), 00 14 converted to
decimal is 20.

4. How does the third party system read the inverter register data through ShineWiFi-X
 The third-party system reads the data of the inverter through ShineWiFi-X, which is to ask ShineWiFi-X to obtain the
data of a certain register of the inverter. ShineWiFi-X will read the data according to the register address required by the
third-party system and return the data to the third-party system. For the register table, please refer to the Growatt inverter
Modbus RTU protocol file.
 The register table in Growatt inverter Modbus RTU protocol file is only applicable to Growatt's inverter as the file list

5. IP Address Configuration between ShineWiFi-X and third-party platform


 It is necessary to ensure that ShineWiFi-X and the third-party system are in the same LAN system (e.g., under the same
router).
 For example, if the network segment of the LAN is 192.168.3.x, the IP of the ShineWiFi-X could be set to the fixed IP:
192.168.3.8
 Below are the configuration process of ShineWiFi-X datalogger to the server with the static IP:
(1) Enter the "Configure the network" interface under the Hotspot Mode in the ShinePhone APP.

(2) Click "Advanced" to enter the advanced settings, select "Router settings", enter password "growatt+YYMMDDDD", such
as: "growatt20231121", you can switch the DHCP and modify the IP address, gateway address and subnet mask.
(3) Turn off DHCP, change the IP to 192.168.3.8, change the gateway address to 192.168.3.1, the subnet mask to
255.255.255.0 by default.

(4) Return to the "Configure the network" interface, fill in the WiFi name and password that the ShineWiFi-X needs to
connect to, and then click the "Configure immediately" button to configure the network.

(5) After network configuration success, you can use the Modbus TCP function according to the following steps.
 The IP of the third-party platform is set to 192.168.3.7 (it should between 192.168.3.2 and 192.168.3.254 and can not use
the same IP as ShineWiFi-X)

6. Configuration of third-party system


 The IP of the third party system is set to 192.168.3.8 and needs to be on the same LAN as ShineWiFi-X (e.g.,under the
same router).

7. How to use a third-party system to read inverter data


 The simulation software of the third-party system may have a different operation interface, but you can refer to the
following process.
 The inverter data reading is according to the register table of Growatt inverter Modbus RTU protocol file.
e.g.
Read the register of the inverter whose address is 1, Function Code, 03, read 0-124, 125~249 in two segments, a total of 250.
Third party systems connect to the ShineWiFi-X through Modbus TCP:

Click on "Connect" to link up.

Configuration of connection parameters


Click OK to connect. If the connection is not successful, please make sure that the connection parameters are configured
correctly and that the IP of the ShineWiFi-X is set to static.

According to Growatt inverter Modbus RTU protocol file.

Read the inverter 0~124 holding registers (Holding)::

Read the inverter 125~249 holding registers (Holding):

 Set the 03 section of the inverter 1, and set the address 1 of the register to 200 and read.
First check section 03 of inverter 1, the original value of register 1 is 1.
Modify the value of register 1 to 200

Modify successfully:

You might also like