Page 69 of 126
Proton Products SL mini and SLR mini Series Speed and Length Gauges Instruction Manual - issue 1s
Write data to a block of consecutive input parameters
Use Modbus function “16
(10 Hex)
” (Preset Multiple Registers) to write to a block of consecutive input
parameters.
Modbus query format
Hex
Modbus response format
Hex
Slave Modbus address
(Gauge Modbus address)
01
Slave Modbus address
(Gauge Modbus address)
01
Modbus function code
10
Modbus function code
10
Starting address
(Starting input parameter
address)
High
byte
00
Starting address
(Starting input parameter
address)
High
byte
00
Low
byte
01
Low
byte
01
Number of registers
(Input parameter word count)
High
byte
00
Number of registers
(Input parameter word count)
High
byte
00
Low
byte
03
Low
byte
03
Byte count
N = (2 × Number of registers)
06
Data word 0
(corresponds to input DW1)
High
byte
1F
Low
byte
40
Data word 1
(corresponds to input DW2)
High
byte
1F
Low
byte
40
Data word [(N/2)
–
1] = 2
(corresponds to input DW3)
High
byte
1F
Low
byte
40
The response contains the starting input parameter address and the count of input parameter words
written.