Appendix B Communication Protocol Shenzhen Hpmont Technology Co., Ltd
―132― HD5L Series Controller User Manual
2. The command and response frame of MODBUS protocol parameter (in RTU mode)
1) To read controller parameters
Protocol date unit Length of data (byte) Range
Command frame
Address 1
0-247, 0 is broadcast
address
Function code 1 0x03
Starting register address 2 0x0000-0xFFFF
No. of register 2 0x0001-0x0004
CRC/LRC checking 2/1
Response frame
Address 1 1-247
Function code 1 0x03
Read byte no. 1 2* no. of registers
Read content 2* no. of registers
CRC/LRC checking 2/1
2) To rewrite single function parameter (saved at power off) or control parameter of controller
Protocol date unit Length of data (byte) Range
Command frame
Address 1
0-247, 0 is broadcast
address
Function code 1 0x06
Register address 2 0x0000-0xFFFF
Register content 2 0x0000-0xFFFF
CRC /LRC checking 2/1
Response frame
Address 1 1-247
Function code 1 0x06
Register address 2 0x0000-0xFFFF
Register content 2 0x0000-0xFFFF
CRC /LRC checking 2/1
3) Circuit diagnosis
Protocol date unit Length of data (byte) Range
Command frame
Address 1
0-247, 0 is broadcast
address
Function code 1 0x08
Subfunction code 2 0x0000-0x0030
Data 2 0x0000-0xFFFF
CRC /LRC checking 2/1
Response frame
Address 1 1-247
Function code 1 0x08
Subfunction code 2 0x0000-0x0030
Data 2 0x0000-0xFFFF
CRC /LRC checking 2/1