16
…5 MODBUS FUNCTIONS
5.7 Write Multiple Registers – Function Code 16
5.7.1 Write Multiple Registers Query
This message is used to change the contents of up to eight holding registers at a time. When used
with slave address zero (broadcast mode) all slave controllers load the selected registers with the
contents specified.
Note. To write to a register, its offset address (one less than the register number) must be
used, e.g. to write to register 104, the offset address 103 (67H) is transmitted.
Example. Write the value 500 to the register address 104 (proportional band 1 – heat) and the value
100 to the register address 105 (integral action time) in slave 01.
5.7.2 Write Multiple Registers Response
The Write Multiple Registers Response confirms slave identification, function code, starting register
address and quantity only.
Example
sserddAnoitcnuF
tesffOtratSretsigeRsretsigeRfo.oN
dleiFkcehCrorrE
)61CRC(
hgiHwoLhgiHwoL
100100760020AF71
rddAtcnuF
retsigeR
tesffOtratS
forebmuN
sretsigeR
etyB
tnuoC
gnidloH
401retsigeR
gnidloH
501retsigeR
kcehCrorrE
dleiF
)61CRC(
hgiHwoLhgiHwoLhgiHwoLhgiHwoL
10010076002040104F00465F48