MAP - MODBUS Communication Protocol SAJ R5, R6, C6
MAP - MODBUS Communication Protocol SAJ R5, R6, C6
Version Page
SAJ Modbus communication protocol A
Version: A Edition:
7.2
Authorized Reviewed
SAJ Modbus Communication Protocol
1 Introduction
Communication frame adopts MODBUS RTU (Remote Terminal Unit) mode protocol frame,
Communication setting parameters are: Data bit 8, stop bit 1, parity none, and flow control none. The
communication mode is UART half duplex. At the same time, only one host and slave can send data and
the other can receive data.
RS232 factory default: 115200bps. RS485 the
default baud rate: 9600bps.
Frame structure
Slave address domain 0-247(decimalist) (0
indicates the broadcast address)
Functional domain 0x03: Read multiple parameters 0x10: Write
multiple
parameters
Data domain Data domains include address
domains and data load domains
CRC domain 16bit CRC checksum
Multiplier: Since MCU does not have a complete floating-point arithmetic unit, integers will be used to replace
floating-point arithmetic for calculation and transmission. In order to represent values less than 1, the number of
digits after the decimal point is explained by the multiplier. For example, a register is defined as follows:
Address SIZE(Word Register Data Type Multiple Units Attribute Register
) Name description
1 PV1Volt UInt16 -1 V R PV1 voltage
When the voltage of PV1 is 300.5, the value of the PV1Volt register is 3005. Attributes: R for read-
only, W for write-only.
3.1 Communication frame command and frame description
The CRC check range is frame address~CRC domain (excluding CRC domain).
The function code (command) is used to read the contents of a contiguous block in the register. Request
the protocol data unit to specify the start register address and the number of registers.
In the register data of the response, each register data contains two bytes (the binary number is right-aligned
on each byte). For each register, the first byte is the high and the second byte is the low.
For example, request to read a register 0x0001-0x0002
Once the slave (server) receives the request, there are two types of responses based on the processing result:
• Positive response:
The code of the response function responds to the code of the request function.
• Anomaly response:
In an exception response, the server sets the function code to the highest position 1. Returns the
function code value + 0x80 to the exception code.
Exceptional code:
Error code
Description
(Hex)
Invalid function
01
code
Invalid request
02
address
Invalid request
03
data value
04 SERVFAIL
06 Serverbusy
10 Password error
11 Check error
Invalid
12
parameter
13 System Lock-In
For example, when the host reads data, the slave receives an abnormal response.
Att
HH:Hour(24-hour
format)
4000H 4 Time HEX 0 R
mm: Minute
ss: Second
zz: Reserved bit
2015-1-2 10:11:12
The corresponding
data is 07DF 01 02 0A 0B
0C 00
Inverter operating mode
0 :Initialize
1 :Wait
2 :Operate
3 : Off-grid mode,
energy storage
4 : Power grid with
load mode, energy storage
Uint1 5 :Fault
4004H 1 MPVMode R
6 6 :Upgrade
7 :Debug
8 :Auto-Check
9 :Reset
Displays
Uint3
board/slave error messages
4005H 2 HFaultMSG 2 R
2 error message
area
UInt1
401CH 1 FCASTriggerFlag 0 R FCAS Trigger flag
6
Uint1
401DH 5 Running_data 0 R
6
Inverter sets the
4022H 1 SetAppMode Int16 0 R
application mode
Inverter sets the
4023H 1 InvDisPowerSet Int16 0 W R
discharge power
Inverter sets the
4024H 1 InvChgPowerSet Int16 0 W R
charge power
Inverter sets battery
discharge
4025H 1 BatDisCurrSet Int16 -1 A R
current
Inverter sets
battery charge
4026H 1 BatChgCurrSet Int16 -1 A R
current
Uint1 Battery operating
4027H 1 BatStatusDisp 0 R
6 status
4028H 1 BatProtocolSet Int16 0 R Battery protocol
Battery setted
4029H 1 BatChgSocUpLimit Int16 0 % R
SOC_H
Battery setted
402AH 1 BatDisSocDowLimit Int16 0 % R
SOC_L
Battery setted
402BH 1 BatDODSet Int16 0 % R
DOD
Set the battery
402CH 1 BatResSoc Int16 0 % R
reserved SOC value
Charging voltage set
402DH 1 BmsChgVoltSet Int16 -1 V R
by BMS
402EH 1 BmsDisPowerSet Int16 0 A R Discharge power set
by BMS
Charge power set by
402FH 1 BmsChgPowerSet Int16 0 A R
BMS
R Phase grid
4032H 1 RGridCurr Int16 -2 A R
current
Uint1 R Phase grid
4033H 1 RGridFreq -2 Hz R
6 frecuency
R Phase grid DC
4034H 1 RGridDCI Int16 0 mA R
component
R Phase grid active
4035H 1 RGridPowerWatt Int16 0 W R
power
Uint1 R Phase grid
4036H 1 RGridPowerVA 0 W R
6 apparent power
S Phase grid
4039H 1 SGridCurr Int16 -2 A R
current
Uint1 S Phase grid
403AH 1 SGridFreq -2 Hz R
6 frecuency
S Phase grid DC
403BH 1 SGridDCI Int16 0 mA R
component
S Phase grid active
403CH 1 SGridPowerWatt Int16 0 W R
power
Uint1 S Phase grid
403DH 1 SGridPowerVA 0 W R
6 apparent power
T Phase grid
4040H 1 TGridCurr Int16 -2 A R
current
Uint1 T Phase grid
4041H 1 TGridFreq -2 Hz R
6 frecuency
T Phase grid DC
4042H 1 TGridDCI Int16 0 mA R
component
T Phase grid active
4043H 1 TGridPowerWatt Int16 0 W R
power
Uint1 T Phase grid
4044H 1 TGridPowerVA 0 W R
6 apparent power
R Phase-inverting
4047H 1 RInvCurr Int16 -2 A R
current
Uint1 R Phase-inverting
4048H 1 RInvFreq -2 Hz R
6 frequency
R Phase-inverting
4049H 1 RInvPowerWatt Int16 0 W R
active power
Uint1 R Phase-inverting
404AH 1 RInvPowerVA 0 VA R
6 apparent power
Uint1 S Phase-inverting
404BH 1 SInvVolt -1 V R
6 voltage
S Phase-inverting
404CH 1 SInvCurr Int16 -2 A R
current
Uint1 S Phase-inverting
404DH 1 SInvFreq -2 Hz R
6 frequency
S Phase-inverting
404EH 1 SInvPowerWatt Int16 0 W R
active power
Uint1 S Phase-inverting
404FH 1 SInvPowerVA 0 VA R
6 apparent power
Uint1 T Phase-inverting
4050H 1 TInvVolt -1 V R
6 voltage
T Phase-inverting
4051H 1 TInvCurr Int16 -2 A R
current
Uint1 T Phase-inverting
4052H 1 TInvFreq -2 Hz R
6 frequency
T Phase-inverting
4053H 1 TInvPowerWatt Int16 0 W R
active power
Uint1 T Phase-inverting
4054H 1 TInvPowerVA 0 VA R
6 apparent power
R Phase output
voltage
4058H 1 ROutDVI Int16 0 mV R
DC
component
Uint1 R Phase output
4059H 1 ROutPowerWatt 0 W R
6 active power
6 voltage
S Phase output
voltage
405EH 1 SOutDVI Int16 0 mV R
DC
component
Uint1 S Phase output
405FH 1 SOutPowerWatt 0 W R
6 active power
T Phase output
voltage
4064H 1 TOutDVI Int16 0 mV R
DC
component
Uint1 T Phase output
4065H 1 TOutPowerWatt 0 W R
6 active power
Uint1 T Phase output
4066H 1 TOutPowerVA 0 VA R
6 apparent power
Uint1
4067H 1 BusVoltMaster -1 V R Bus master voltage
6
Uint1
4068H 1 BusVoltSlave -1 V R Bus slave voltage
6
Uint1
4069H 1 BatVolt -1 V R Battery voltage
6
406AH 1 BatCurr Int16 -2 A R Battery current
Battery controller
406BH 1 BatCurr1 Int16 -2 A R
1 Current
Battery controller
406CH 1 BatCurr2 Int16 -2 A R
2 Current
406DH 1 BatPower Int16 0 W R Battery power
Battery
406EH 1 BatTempC Int16 -1 ℃ R
temperature
Uint1
406FH 1 BatEnergyPercent -2 % R Battery energy
6
Uint1
4070H 1 Reserve 0 R Reserve
6
UInt1 V PV1 voltage
4071H 1 PV1Volt -1 R
6
4072H 1 PV1Curr UInt1 -2 A R PV1 total current
6
UInt1 W PV1 power
4073H 1 PV1Power 0 R
6
UInt1 V PV2 voltage
4074H 1 PV2Volt -1 R
6
UInt1 A PV2 total current
4075H 1 PV2Curr -2 R
6
UInt1 W PV2 power
4076H 1 PV2Power 0 R
6
UInt1 V PV3 voltage
4077H 1 PV3Volt -1 R
6
UInt1 A PV3 total current
4078H 1 PV3Curr -2 R
6
1 Uint1 R T Grid-connected
4094H TOnGridOutPowerWatt 0 W
6 side active power
Uint1 PV Direction of
4095H 1 PV_direction 0 R
6 energy flow
Battery direction of
4096H 1 Battery_direction int16 0 R energy flow
Grid direction of
4097H 1 Grid_direction int16 0 R energy flow
Output to load
Uint1
direction of energy
4098H 1 OutPut_direction 6 0 R
flow
The power flowing
4099H 1 PVConsumpWatt Int16 0 W R
from PV to the load
The power flowing
from the grid to the
409AH 1 GridConsumpWatt Int16 0 W R
load
The power flowing
409BH 1 GridFeedInPVWatt Int16 0 W R
from PV to the grid
The power flowing
from the battery to the
409CH 1 GridFeedInBatWatt Int16 0 W R
grid
The power flowing
from the battery to the
409DH 1 BatConsumpWatt Int16 0 W R
load
Charging power from
409EH 1 BatChgPVWatt Int16 0 W R
PV to the battery
Charging power from
the grid to the battery
409FH 1 BatChgGridWatt Int16 0 W R
CT PV apparent
40A4H 1 CT_PVPowerVA int16 0 VA R
power
40A5H 1 TotalPVPower Int16 0 W R PV total power
Battery total
40A6H 1 TotalBatteryPower Int16 0 W R
power
Grid total active
40A7H 1 TotalGridPowerWatt Int16 0 W R
power
Grid total
40A8H 1 TotalGridPowerVA Int16 0 VA R
apparent power
Inverter total
40A9H 1 TotalInvPowerWatt Int16 0 W R
active power
40AA Inverter total
1 TotalInvPowerVA Int16 0 VA R
H apparent power
Maximum average
power input to the
40AE Input_AVG_Power_5Min_M Uint1
1 0 R inverter (5
H ax 6
minutes)
Maximum average
power output of the
40AF Output_AVG_Power_5Min_ Uint1 inverter to the power
1 0 R
H Max 6 grid (5
minutes)
Uint1 R Phase intelligent
40B0H 1 RIntelligentLoadPower W R
6 load power
6 load power
9 Uint1
40B3H Reserve 0 R Reserve
6
PV Daily
40BC Uint1
generating time of
H 1 Today_Hour 6 -1 H R
grid-connection
PV Total
40BD Uint3
generating time of
H 2 Total_Hour 2 -1 H R
grid-connection
Uint3 Kw
40BFH 2 Today_PVEnergy -2 R Daily PV generation
2 h
Uint3 Kw Monthly PV
40C1H 2 Month_PVEnergy -2 R
2 h generation
Uint3 Kw
40C3H 2 Year_PVEnergy -2 R Yearly PV generation
2 h
Uint3 Kw
40C5H 2 Total_PVEnergy -2 R Total PV generation
2 h
Uint3 Kw Daily battery
40C7H 2 Today_BatChgEnergy -2 R
2 h charge capacity
address SIZE(Word Register name Date Multiple Unit Attribution Register description
) type
Current time of the
6000H 4 Time HEX 0 R
inverter
2 TotalEnergy UInt32 R Totalgeneration ofthe
6004H -2 kWh
inverter
2 YearEnergy UInt32 R Current year output of
6006H -2 kWh
the inverter
2 MonthEnergy UInt32 R Currentmonthoutputof
6008H -2 kWh
the inverter
2 TodayEnergy UInt32 R Current day output of
600AH -2 kWh
the inverter
2 TotalHour UInt32 R Total working hours of
600CH -1 H
the inverter
1 TodayHour UInt16 R Daily working hours of
600EH -1 H
the inverter
1 ErrorCount UInt16 R Number of errors of
600FH 0
inverter
1 ErrorSN UInt16 R Historical error fault
6010H 0
serial number
1 SettingDataSN Uint16 R the serial number of the
Register
Addr SIZE(Wo Register Data Multip uni Attributi on
descriptio
r Note
e ss name type le t
n
d)
Inverter safety
UInt1 Refer to the safety table setting
1008H 1 SafetyType R/W number
6
bit0: RelayCheckEn: Relay detection
bit1: ISOCheckEn:ISO check bit2:
GFCIDevCheckEn:GFCIDEV check
bit3: GFCICheckEn:GFCI check bit4:
DCICheckEn:DCI check bit5:
DCIAdjustEn::DCI adjust bit6:
AntiIslandEn: island check bit7:
FancheckEn: Fan check bit8:
FreqDeratEn: overfrequency derating
bit9: ReactiveEn: reactive power control
bit10:GlobalMPPTEn: Global MPPT
bit11: ReConnDelayEn: reconnection
delay in countdown bit12:
PV_ATEModeEn:PV_ATE test mode
bit13: NEVolCheckEn: grounding
Inverter check
UInt1 function
1009H 1 FunMask R/W
6 mask
bit14: PowerLimitByVolEn:
over-voltage derating
bit15: PreINVEn: preinverter
Corresponding bit
1:Enabled 0:Closed
UInt1
1019H 1 ISOLimit 0 kΩ R/W ISO limit
6
PowerLimit UInt1 Value 0-1100
101CH 1 -3 R/W Power limit
ed 6 corresponding to 0-110%
2 is capacitive power factor
Reactive
regulation, 3 is inductive
power
ReactiveMo UInt1 power factor regulation, and
101DH 1 0 R/W compensati on
de 6 5 is no
mode
reactive power mode
Reactive
Address SIZE(Word) Register name Data Multiple Unit Attribution Register description
type
Inverter function mask
PV inpute mode
PV independent
343AH 1 PVInputMode UInt16 R/W mode:0x00
PV parallel mode: 0x08
Data Register
Address SIZE(Word) Register name Multiplier Unit Attribute
type description
Display
board/slave
4005H 2 HFaultMSG Uint32 - - R
error
message
Master
controller
4007H 2 MFaultMSG Uint32 - - R
error
message
Master
Controller
4009H 2 MFaultMSG2 Uint32 - - R
Error
Message 2
Tag Manual
Host fault code definition (0x 4007) Host Fault Code Definition
number code
Host bus software
0 Master Bus Voltage High 33
overvoltage
Undervoltage of host bus
1 Master Bus Voltage Low 34
software
2 Master Grid Phase Error Host grid phase error 35
3 Master PV Voltage High Error Overvoltage of host PV 36
4 Master Islanding Error Host Island Error 37
5 Master Arc Device Error Main machine arc equipment 83
fault
6 Master PVInput Error Host PV input error 84
Loss of communication
Lost Communication between DSP and
7 between host and electricity 49
PowerMeter
meter
Host Bus Hardware
8 Master HW Bus Voltage High 38
Overvoltage
Host PV hardware
9 Master HW PV Current High 39
overcurrent
10 Reserved(bit 11) Reserved(bit 11) 40
Host inverter hardware
11 Master HW Inv Current High 41
overcurrent
12 Reserved(bit 13) Reserved(bit 13) 42
13 Reserved(bit 14) Reserved(bit 14) 43
Host N to ground voltage
14 Master Grid NE Voltage Error 44
fault
15 Master DRM0 Error DRM0 failure 86
16 Master Fan1 Error Host Fan 1 Fault 45
17 Master Fan2 Error Host Fan 2 Fault 46
18 Master Fan3 Error Host Fan 3 Fault 47
19 Master Fan4 Error Host Fan 4 Fault 48
20 Master Arc Error Main engine arcing fault 87
PV overcurrent of host
21 Master SW PV Current High 88
software
22 Master Battery Voltage High Host battery overvoltage 89
23 Master Battery Current High Overcurrent of host battery 90
Host battery charging voltage
24 Master Battery Charge Voltage High 91
high
25 Master Battery OverLoad Host battery overload 92
Host battery soft connection
26 Master Battery SoftConnet TimeOut 93
timeout
The output of the main engine
27 Master Output OverLoad 94
is overloaded
The battery of the main unit is
28 Master Battery Open Circuit Error 95
open
Host battery discharge
29 Master Battery Discharge Voltage Low 96
voltage low
30 Authority expires Authorization expires 85
Loss of communication
31 Lost Communication D<->C 81
between inverter internal
display panel and main
controller
Tag Manual
Host fault code definition (0x 4009) Host Fault Code Definition
number code
0 Master Relay Error Host relay failure 1
1 Master EEPROM Error Host memory (EEPROM) failure 2
2 Master Temperature High Error Host temperature is high 3
The temperature of the main
3 Master Temperature Low Error 4
machine is low
Host internal communication
4 Master Lost Communication M<->S 5
failure
Main engine earth fault leakage
5 Master GFCI Device Error 6
current detection equipment fault
Faults of DC component detection
6 Master DCI Device Error 7
equipment of the host
Faulty host current detection
7 Master Current Sensor Error 8
device
Overvoltage of L1 phase power
8 Master Phase1 Voltage High 9
grid of main engine
Undervoltage of L1 phase power
9 Master Phase1 Voltage Low 10
grid of the host
Overvoltage of main engine L2
10 Master Phase2 Voltage High 11
phase power grid
Undervoltage of host L2 phase
11 Master Phase2 Voltage Low 12
power grid
Overvoltage of host L3 phase
12 Master Phase3 Voltage High 13
power grid
Undervoltage of host L3 phase
13 Master Phase3 Voltage Low 14
power grid
Overvoltage of 10-minute average
14 Master Voltage 10Min High 15
value of main power grid voltage
15 Master OffGrid Voltage Low Host off-grid output undervoltage 16
16 Reserved(bit 49) Reserved(bit 49) 17
The power grid of the main engine
17 Master Grid Frequency High 18
is over-frequency
Underfrequency of host power
18 Master Grid Frequency Low 19
grid
19 Reserved(bit 52) Reserved(bit 52) 20
High DC component of L1 phase
20 Master Phase1 DCV Error 21
voltage of host
High DC component of L2 phase
21 Master Phase2 DCV Error 22
voltage of main machine
High DC component of L3 phase
22 Master Phase3 DCV Error 23
voltage of host
23 Master No Grid Error Loss of host power grid 24
24 Reserved(bit 57) Reserved(bit 57) 25
25 Reserved(bit 58) Reserved(bit 58) 26
Host to ground leakage current
26 Master GFCI Error 27
fault
High DC component of L1 phase
27 Master Phase1 DCI Error 28
of host
High DC component of host phase
28 Master Phase2 DCI Error 29
L2
Host L3 phase DC component
29 Master Phase3 DCI Error 30
high
30 Master ISO Error Main engine insulation failure 31
Main engine bus voltage
31 Master Bus Voltage Balance Error 32
unbalance