Appendix B Modbus Communication Protocol Shenzhen Hpmont Technology Co., Ltd.
120 HD5L-PLUS Series User Manual V1.0
To Rewrite Single Function Parameter or Control Parameter
Function code 0x06 (save at power off) or 0x41 (not save at power off); Command frame and response
frame are in below table (take RTU as an example).
Command
Frame
Address Code Register Address Register Content
CRC/LRC
Checking
Data frame
bytes
1 1 2 2 2/1
Value or range 0 - 247 0x06, 0x41 0x0000 - 0xFFFF 0x0000 - 0xFFFF
Response
Frame
Address Code Register Address Register Content
CRC/LRC
Checking
Data frame
bytes
1 1 2 2 2/1
Value or range 1 - 247 0x06, 0x41 0x0000 - 0xFFFF 0x0000 - 0xFFFF
To Rewrite Numbers of Function Parameters or Control Parameters
Function code 0x43 (save at power off); Command frame and response frame are in below table (take
RTU as an example).
Command
Frame
Address Code
Starting
Register
Address
No. of
Register
Byte No. of
Register
Content
Register
Content
CRC/LRC
Checking
Data frame
bytes
1 1 2 2 1
2 * no. of
operation
registers
2/1
Value or range 0 - 247 0x43
0x0000 -
0xFFFF
0x0000 -
0x0004
2 * no. of
operation
registers
Response
Frame
Address Code
Starting Register
Address
No. of Operation
Registers
CRC Checking
Data frame
bytes
1 1 2 2 2/1
Value or range 1 - 247 0x43 0x0000 - 0xFFFF 0x0000 - 0x0004
This command rewrites the contents of continuous data unit from starting register address where is
mapped as function parameter and control parameter of controller, etc.
The controller will start to save from low address to high address of the register when it continuously
saves many register parameters. The saving will return from the firstly failed address if the saving
process isn’t completely successful.