75
Modbus RTU control (RS-485 communication)
11.3.2 Writing to a holding register (06h)
This function code is used to write data to a specied register address. However, since the result combining the upper
and lower may be outside the data range, write the upper and lower at the same time using the "Writing to multiple
holding registers (10h)."
Example of write
Write 1000 (03E8h) to the speed upper limit of the slave address 2.
Description Register address
Value write
Corresponding hexadecimal Corresponding decimal
Speed upper limit (lower) 4171 (104Bh) 03E8h 1000
z
Query
Field name Data Description
Slave address 02h Slave address 2
Function code 06h Writing to a holding register
Data
Register address (upper) 10h
Register address to be written
Register address (lower) 4Bh
Value write (upper) 03h
Value written to the register address
Value write (lower) E8h
Error check (lower) FDh
Calculation result of CRC-16
Error check (upper) 91h
z
Response
Field name Data Description
Slave address 02h Same as query
Function code 06h Same as query
Data
Register address (upper) 10h
Same as query
Register address (lower) 4Bh
Value write (upper) 03h
Same as query
Value write (lower) E8h
Error check (lower) FDh
Calculation result of CRC-16
Error check (upper) 91h