Appendix B Communication Protocol Shenzhen Hpmont Technology Co., Ltd
―134― HD5L Series Controller User Manual
5) To rewrite numbers of function parameters (saved at power off) or control parameters of
controller
Protocol date unit Length of data (byte) Range
Command frame
Address 1
0-247, 0 is broadcast
address
Function code 1 0x43
Starting register address 2 0x0000-0xFFFF
No. of register 2 0x0001-0x0004
Byte no. of register
content
1
2* no. of operation
registers
Register content
2* no. of operation
registers
CRC /LRC checking 2/1
Response frame
Address 1 1-247
Function code 1 0x43
Starting register address 2 0x0000-0xFFFF
No. of operation registers 2 0x0001-0x0004
CRC /LRC checking 2/1
This command rewrites the contents of continuous data unit from starting register address where
is mapped as controller’s function parameter and control parameter 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 operation will return from the first faulty address if it isn’t completely
success.
6) Parameter management
The controller parameter management includes reading the upper/lower limit of parameters, to
read parameter characteristics, to read the biggest intergroup index of function parameters, to
read the previous and next function parameter group number, to read index of the parameter
being displayed and to display next state parameter. The parameter characteristics include
read-write ability, parameter units and scaling.
The command and response frames of parameter management are as follows:
Protocol date unit Length of data (byte) Range
Command frame
Address 1 0-247, 0 is broadcast address
Function code 1 0x42
Subfunction code 2 0x0000-0x0008
Data 2 Depend on controller model
CRC /LRC checking 2/1
Response frame
Address 1 1-247
Function code 1 0x42
Subfunction code 2 0x0000-0x0008
Data 2 0x0000-0xFFFF
CRC /LRC checking 2/1