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

0% found this document useful (0 votes)
7 views13 pages

Master-MPPT Controller Protocol (Modbus)

Uploaded by

azim.hashmi
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)
7 views13 pages

Master-MPPT Controller Protocol (Modbus)

Uploaded by

azim.hashmi
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/ 13

Translated from Chinese (Simplified) to English - www.onlinedoctranslator.

com

MPPTController communication protocol

(Modbus-RTUversion)

Update Record

Serial number Version Update Content Modified by date Audit date


0 1.0 MODBUSVersion 2020.08.30
1 1.1 Partial error correction 2022.01
2
3
4
5
6

1/13
Head record

1 introduction...................................................................................................................................3

2 Data format.................................................................................................................................3

3 address...................................................................................................................................3

4 Function Code Description.................................................................................................................4

5 Data Register Addresses and Descriptions................................................................................................4

5.1.1 Real-time data................................................................................................................4


5.1.2 Battery Types and Lead-Acid Battery Parameters................................................................4

5.1.3 Operating data..................................................................................................................5


5.1.4 Sampling Parameters..................................................................................................6
5.1.5 Load Mode and Parameters................................................................................................6
5.1.6 RemotControl Parameters..................................................................................................7
5.1.7 Lead-acid battery protection parameters................................................................................7

5.1.8 Device Firmware Information................................................................................................7

5.1.9 Lithium Battery Charging and Protection Parameters................................................................7

5.1.10 Power data storage................................................................................................................8

5.1.11 Fault information details..................................................................................8

6Load Control Mode Description:................................................................................................................8

7Command example: (with default device address01Example)................................................................................................10

2/13
1 introduction

Communication protocol requirements: The length of a single data packet shall not exceed120

Bytes. Default baud rate:9600 Data bits:8 Parity:NONE Stop bits:1

2 Data format

Read data command format:

Device Address Function code Starting address Read address number Check code

1byte 1byte 2byte 2byte 2byte


Read data response command format:

Device Address Function code Data length Read Data Check code

1byte 1byte 1byte Data Domain 2byte


Write single word command format:

Device Address Function code Starting address Writing data Check code

1byte 1byte 2byte 2byte 2byte


Write single word response command format:

Device Address Function code Starting address Writing data Check code

1byte 1byte 2byte 2byte 2byte


Write multiple consecutive words command format:

Device Address Function code Starting address Number of write addresses Data length Writing data Check code

1byte 1byte 2byte 2byte 1byte Data Domain 2byte


Write multiple consecutive words response command format:

Device Address Function code Starting address Number of write addresses Check code

1byte 1byte 2byte 2byte 2byte


2.1.1 Device Address: Required. Used to indicate the object to which the data packet is sent, used in multi-machine communication. The receiver will only parse the data packet if the received

address is consistent with its own address.

2.1.2 Function Code: Required. The function code is used to define the behavior of the current data packet. See (Function Code) below for details.

2.1.3 Data length: Required. The data length defined here refers only to the length of the data field that follows it, excluding the checksum field.

2.1.4 Data:120byte.
2.1.5 check:CRCstandardModbuscheck.
2.1.6 Data type description: Both data address and data are2Byte composition, high byte is sent first, then low byte; check code is2Bytes,

send the low byte first, then the high byte.

all32The data with bit length (four bytes) are all used2indivual16Bit length register storage.

If you send data1234, then the data is1234, converted into16Base is0x04D2, then when transmitting, first transmit0x04, then send0xD2 If

you send data123456789, converted into16Base is0x 7 5B CD 15, then during transmission, the data order is:0x07 0x5B 0xCD 0x15

3address

Device Class Address describe

0x01 Default Address

0x02

3/13
4Function code description

Function Function code

Get single or multiple data commands 0x03


Set single word data command 0x06
Set multiple consecutive word data commands 0x10

5Data Register Addresses and Descriptions

5.1.1Real-time data

R\
address Number of bytes content data Analysis unit Remark
W
Charging mode 0000 Standby Charging mode (0~4):
0001 CC 0- Standby
0002 CV 1- CC Mode
0000 2 R
0003 CF 2- CV Mode
3- CF Mode
0004 CC precharge
4- CC Mode

0001 2 R PV voltage
0.1V
0002 2 R Battery voltage 0.1V
0003 2 R Charging current 0.1A
0004 2 R Output voltage 0.1V /(Internal use)
0005 2 R Load voltage 0.1V
0006 2 R Load current 0.1A
0007 2 R Charging power 1W
0008 2 R Load power 1W
0009 2 R Battery temperature 1℃ Signed numbers

000A 2 R Internal temperature 1℃ Signed numbers

000B 2 R Battery level 1%


000C 0.001
000D
4 R CO2 emissions reduction

kg
000E 2 R Fault Code 5.1.11 Fault Information Details

000F 2 R System prompts /deactivate

5.1.2Battery types and lead-acid battery parameters

address Number of bytes R\W content data Analysis unit Remark

0000 Custom

0001 Flooded lead acid

0101 2 R\W Battery Type 0002 Sealed lead acid

0003 Colloidal lead acid

0004 lithium battery

0102 2 R\W Battery system voltage 0000 Automatic identification The data is multiplied by 12V, indicating that the system

4/13
0001 12V system Voltage, for lead-acid batteries

0002 24V system Use, you can force to modify this parameter

... Positive system voltage.

0103 2 R\W CVVoltage lead-acid batteries 0.1V Constant charging voltage (custom type)

0104 2 R\W CFVoltage lead-acid batteries 0.1V Float charge voltage (custom type)

0105 2 R\W Maximum charging current 0.1A The setting range is smaller than the nominal value

0106 2 R\W Maximum load current 0.1A The setting range is smaller than the nominal value

0107 2 R\W Equalizing charging voltage lead-acid batteries 0.1V (Custom type)
0108 2 R\W Equalizing charging time lead-acid batteries 1min (Custom type)
0109 2 R Load factor 1%
Single 12V lead-acid battery in series
010A 2 R Number of batteries connected in series
quantity

Note: The parameters of lead-acid batteries mentioned in this section are all single-cell 12V parameters, ranging from 9 to 15V. The principle is: float charge voltage < constant

charge voltage < equalization charge voltage. When multiple batteries are used in series, pay attention to parameter conversion. For example, you need to set the constant charge

voltage.57.6V When the parameter value is written14.4V.

5.1.3Operational data

address Number of bytes R\W content data Analysis unit Remark

0201
4 R\W Runtime 1min /deactivate
0202
0001 Default Address
0203 2 R\W Device Address Integer
other
0204 2 R\W Running days 1 day

0205 2 R\W Number of cycles 1 time This data is for reference only

0206
4 R\W Daily power generation 1wh Can be converted to kwh when used
0207
0208
4
Daily power generation
R\W 1 second Can be converted into hours when used
0209 long
020A
4 R\W Monthly power generation 1wh Can be converted to kwh when used
020B
020C
4
Monthly power generation
R\W 1 second Can be converted into hours when used
020D long
020E
4 R\W Total power generation 1wh Can be converted to kwh when used
020F
0210 Load daily use
4 R\W 1wh Can be converted to kwh when used
0211 Battery

0212 Monthly load


4 R\W 1wh Can be converted to kwh when used
0213 Battery

0214 Total load


4 R\W 1wh Can be converted to kwh when used
0215 Battery

0216 2 R\W Backlight time 1S Applicable to some models

Pushbutton switch 0000 invalid


0217 2 R\W Suspend use
Enable 0001 efficient

5/13
5.1.4Sampling parameters

address Number of bytes R\W content Analysis Remark

0301 2 R\W PvVoltRatio Calibration parameters Integer Internal Use

0302 2 R\W PvVoltOffset Calibration parameters Integer Internal Use

0303 2 R\W BatVoltRatio Calibration parameters Integer Internal Use

0304 2 R\W BatVoltOffset Calibration parameters Integer Internal Use

0305 2 R\W ChgCurrRatio Calibration parameters Integer Internal Use

0306 2 R\W ChgCurrOffset Calibration parameters Integer Internal Use

0307 2 R\W LoadCurrRatio Calibration parameters Integer Internal Use

0308 2 R\W LoadCurrOffset Calibration parameters Integer Internal Use

0309 2 R\W LoadVoltRatio Calibration parameters Integer Internal Use

030A 2 R\W LoadVoltOffset Calibration parameters Integer Internal Use

030B 2 R\W OutVoltRatio Calibration parameters Integer Internal Use

030C 2 R\W OutVoltOffset Calibration parameters Integer Internal Use

5.1.5Load modes and parameters

address Number of bytes R\W content data Analysis unit Remark

Load Mode: Select the load control mode


0401 2 R\W Integer
See attached table for instructions
5100~5118 Mode
Fixed light control mode When selecting 5101~5115
0402 2 R\W Integer
See attached table for instructions
Time 2: 5201~5215 This parameter takes effect when

0403 2 R\W Open load PV voltage 0.1V Light control mode parameters

0404 2 R\W Off load PV voltage 0.1V Light control mode parameters

2
Light-controlled load opening action
0405 R\W 1min Pure light control mode parameters
Delay

2
Light-controlled load-off action
0406 R\W 1min Pure light control mode parameters
Delay

0407 Hour
4 R\W Evening opening time
0408 minute

0409 Hour
4 R\W Night closing time
040A minute

040B Hour
4 R\W Morning opening time
040C minute

040D Hour
4 R\W Morning closing time
040E minute

0000 Load off


040F 2 R Load status
0001 Load on
0000 Timer 2 Off When selecting 5116, the
0410 2 R\W Period 2 Enable
0001 Timer 2 On Parameters take effect

6/13
5.1.6RemotControl parameters

address Number of bytes R\W content data Analysis Remark

0001 Power on

0002 Shutdown

0601 2 W System Commands 0004 Time Correction Communication commands (subcommands)

0005 Clear historical data

0006 Restore factory settings

Year
moon
day
0602
hour Command parameters (for time correction
~ 16 W Time parameters
point just)
0609
Second

5.1.7Lead-acid battery protection parameters

address Number of bytes R\W content data Analysis unit Remark

0701 2 R\W Load overvoltage protection point -- 0.1V


0702 2 R\W Load low voltage protection point -- 0.1V The parameter multiplied by the number of batteries in series (12V) equals

0703 2 R\W Battery overvoltage protection point -- 0.1V Battery pack parameters. Applicable to○ 1 0-User

0704 2 R\W Battery overvoltage recovery point 0.1V 2 1-Flooded;○3


Definition 2-Sealed;○4

0705 2 R\W Battery low voltage protection point 0.1V 3-Gel

0706 2 R\W Battery low voltage recovery point 0.1V


Note: The parameters of lead-acid batteries mentioned in this section are all single-cell 12V parameters, ranging from 9 to 15V. Example: Overcharge protection

needs to be set58.4VWhen the parameter value is written14.6V.

5.1.8Device firmware information

address Number of bytes R\W content data Analysis unit Remark

0801~0808 16 R Serial Number

0809
4
Read out and convert to character
R Version number
080A
080B~0812 16 R model

5.1.9Lithium battery charging and protection parameters

address Number of bytes R\W content data Analysis unit Remark

0000 Celsius
0904 2 R\W Temperature units

0001 Fahrenheit

0907 2 R\W Lithium battery charging voltage 0.1V The parameters are equal to those of the battery pack.

0908 2 R\W Lithium battery nominal voltage 0.1V Actual parameter settings of lithium-ion battery pack.

0909 2 R\W Lithium battery overdischarge voltage 0.1V Applies to○


5 4-Li-ion

July 13th
090A 2 R\W Lithium battery overcharge voltage 0.1V
090B 2 R\W Lithium battery low voltage recovery voltage 0.1V
090C 2 R\W Lithium battery overcharge recovery voltage 0.1V
Note: The lithium battery parameter values in this section are read or written according to the battery pack calibration parameters, and the data does not need to be converted.

5.1.10Power data storage

one
address Number of bytes R\W content data Analysis Remark
Bit
0A01 Data for the month 1WH Each data is 4 bytes,
recent12Monthly
~ 48 R\W Last month's data 1WH 0A01~0A02 corresponds to
Power data
0A18 ... ... 1WH Monthly data

0A19 Data for the month 1WH Each data is 4 bytes,


recent12Monthly use
~ 48 R\W Last month's data 1WH 0A19~0A1A corresponds to
Power data
0A30 ... ... 1WH Monthly data

0A31 Data for the day 1WH Each data is 4 bytes,


recent31Tiangen
~ 124 R\W Yesterday's data 1WH 0A31~0A32 corresponds to
Quantity data
0A6E ... ... 1WH Days' data
0A6F Data for the day 1WH Each data is 4 bytes,
recent31Daily electricity
~ 124 R\W Yesterday's data 1WH 0A6F~0A70 corresponds to
Quantity data
0AAC ... ... 1WH Days' data

5.1.11 Fault Information Details

Bit Fault information

1 bit Battery overvoltage

2 bits PVOvervoltage

3 bits Charging overcurrent

4 bits Discharge overcurrent

5 bit Battery temperature is too high

6 bit Internal temperature is too high

7 bit PVVoltage is too low

8 bit Battery voltage is too low

9bit TZProtection trigger

10bit Manual power on/off control

11bit --
12bit --

6Load control mode description:

4Mode (Note:whenLoadmodel-wLoadModuleSelect1Set to5100、5116、5117or5118Fixed light control timing 2-


wLoadModuleSelect2Data cannot be set, default is5200)

8/13

1Light-controlled delay mode (5100): Starting voltage (adjustable), shut-off voltage (settable), action time delay (settable) ;


2Fixed time light control mode:

Period 1 Period 2
5101 Light control turns on the load and turns off the load in 1 hour 5201 Open 1 hour after dawn and close at dawn

5102 Light control turns on the load and turns off the load in 2 hours 5202 Open for 2 hours at dawn and close at dawn

5103〜5113 Light control turns on the load and turns off the load in 3 to 13 hours 5203〜5213 Open from 3 to 13 hours after dawn, closed at dawn

5114 Light control turns on the load and turns off the load for 14 hours 5214 Open 14 hours at dawn and close at dawn

5115 Light control turns on the load and turns off the load in 15 hours 5215 Open 15 hours at dawn and close at dawn


3Dual-period timing mode:

5116 Turn-On Time1:(Optional) Turn-On Time2:(Optional)


Turn-Off Time1:(Optional) Turn-Off Time2:(Optional)


4Manual switch mode:

5117: Normally open state 5118: Normally closed state

September 13th
7Command example:(With default device address01For example)

Reading Data ,Read the machine's status information

Order:01 03 00 00 00 0E C4 0Eillustrate: 01
Device Address

03 Read data function code

00 00 Starting address

00 0E Read address number (read14The data of the addresses is28bytes,0000~000DAddress data)

C4 0E Check code (low bit first)

illustrate:

01 Device Address

03 Return function code

1C Read data length

0000 0001 000B 0000 0000 0000 0000 0000 0000 0000 001C 0000 0077 321FRead28bytes 02
6C Check code

Write single data ,For example, setting the battery type

Order:01 06 01 01 00 03 99 F7illustrate:
01 Device Address

06 Write single word function code

01 01 Starting address

00 03 Write data (0003For colloidal lead-acid batteries)

99 F7 Check code

Return Description:

01 Device Address

06 Write single word function code

01 01 Starting address

00 03 Write data (0003For colloidal lead-acid batteries)

99 F7 Check code

10/13
Time Correction (Write multiple consecutive data ):
Write data:01 10 06 01 00 07 0E 00 04 00 01 00 01 00 01 00 02 00 02 00 01 D2 F3illustrate: 01
Device Address

10 Write multiple consecutive word function codes

06 01 Starting address

00 07 Number of write addresses

0E Data length

00 04 0001 0001 0001 0002 0002 0001 Writing data

(Subcommand Year, month, day, hour, minute, second)


D2 F3 Checksum

Return Description:

01 Device Address

10 Return function code

06 01 Starting address

00 07 Number of write addresses

D0 83 Checksum

Receiving this data indicates that the setting is successful

Backlight time setting: (set the backlight amount5seconds)

Write data:01 06 02 16 00 05 A9 B5illustrate: 01


Device Address

06 Write single word function code

02 16 Starting address

00 05 Write data (backlight duration:5seconds)

A9 B5 Checksum

Return Description:

01 Device Address

06 Write single word function code

02 16 Starting address

00 05 Write data (backlight duration:5seconds)

A9 B5 Checksum

Receiving this data indicates that the setting is successful

11/13
Load mode setting: (Set the load mode to fixed time light control mode, code:wLoadModuleSelect1 = 5101and
wLoadModuleSelect2 = 5201)
Write data:01 10 06 01 00 02 04 13 ED 14 51 5A EEillustrate:
01 Device Address

10 Write multiple consecutive word function codes

04 01 Starting address

00 02 Number of write addresses

04 Data length

13ED wLoadModuleSelect1 = 5101


14 51 wLoadModuleSelect2 = 5201
5A EE Checksum

Return Description:

01 Device Address

10 Return function code

04 01 Starting address

00 02 Number of write addresses

11 38 Checksum

Receiving this data indicates that the setting is successful

(Set
Battery undervoltage protection point setting: the negative battery undervoltage protection point to10.4V,0705Address Data =10.4V)

Write data:01 06 07 05 00 68 99 51illustrate:


01 Device Address

06 Write single word function code

07 05 Starting address

00 68 Write data (0705Data is set to10.4V)


99 51 Checksum

Return Description:

01 Device Address

06 Write single word function code

07 05 Starting address

00 68 Write data (0705Data is set to10.4V)

12/13
99 51 Checksum

Receiving this data indicates that the setting is successful

Stop charging command:

Write data:01 06 06 01 00 02 59 43illustrate:


01 Device Address

06 Write single word function code

06 01 Starting address

00 02 Write data ( remoteCmd_shutdown = 2)


99 51 Checksum

Return Description:

01 Device Address

06 Write single word function code

06 01 Starting address

00 02 Write data ( remoteCmd_shutdown = 2)


99 51 Checksum

Receiving this data means the sending is successful

Start charging command:

Write data:01 06 06 01 00 01 19 42illustrate:


01 Device Address

06 Write single word function code

06 01 Starting address

00 01 Write data ( remoteCmd_start = 1)


19 42 Checksum

Return Description:

01 Device Address

06 Write single word function code

06 01 Starting address

00 01 Write data ( remoteCmd_start = 1)


19 42 Checksum

Receiving this data means the sending is successful

13/13

You might also like