Master-MPPT Controller Protocol (Modbus)
Master-MPPT Controller Protocol (Modbus)
com
(Modbus-RTUversion)
Update Record
1/13
Head record
1 introduction...................................................................................................................................3
2 Data format.................................................................................................................................3
3 address...................................................................................................................................3
2/13
1 introduction
Communication protocol requirements: The length of a single data packet shall not exceed120
2 Data format
Device Address Function code Starting address Read address number Check code
Device Address Function code Data length Read Data Check code
Device Address Function code Starting address Writing data Check code
Device Address Function code Starting address Writing data Check code
Device Address Function code Starting address Number of write addresses Data length Writing data Check code
Device Address Function code Starting address Number of write addresses Check code
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,
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
0x02
…
3/13
4Function code description
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
kg
000E 2 R Fault Code 5.1.11 Fault Information Details
0000 Custom
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
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
5.1.3Operational data
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
5/13
5.1.4Sampling parameters
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
6/13
5.1.6RemotControl parameters
0001 Power on
0002 Shutdown
Year
moon
day
0602
hour Command parameters (for time correction
~ 16 W Time parameters
point just)
0609
Second
0703 2 R\W Battery overvoltage protection point -- 0.1V Battery pack parameters. Applicable to○ 1 0-User
0809
4
Read out and convert to character
R Version number
080A
080B~0812 16 R model
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.
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.
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
2 bits PVOvervoltage
11bit --
12bit --
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:
○
4Manual switch mode:
September 13th
7Command example:(With default device address01For example)
Order:01 03 00 00 00 0E C4 0Eillustrate: 01
Device Address
00 00 Starting address
illustrate:
01 Device Address
0000 0001 000B 0000 0000 0000 0000 0000 0000 0000 001C 0000 0077 321FRead28bytes 02
6C Check code
Order:01 06 01 01 00 03 99 F7illustrate:
01 Device Address
01 01 Starting address
99 F7 Check code
Return Description:
01 Device Address
01 01 Starting address
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
06 01 Starting address
0E Data length
Return Description:
01 Device Address
06 01 Starting address
D0 83 Checksum
02 16 Starting address
A9 B5 Checksum
Return Description:
01 Device Address
02 16 Starting address
A9 B5 Checksum
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
04 01 Starting address
04 Data length
Return Description:
01 Device Address
04 01 Starting address
11 38 Checksum
(Set
Battery undervoltage protection point setting: the negative battery undervoltage protection point to10.4V,0705Address Data =10.4V)
07 05 Starting address
Return Description:
01 Device Address
07 05 Starting address
12/13
99 51 Checksum
06 01 Starting address
Return Description:
01 Device Address
06 01 Starting address
06 01 Starting address
Return Description:
01 Device Address
06 01 Starting address
13/13