Write multiple registers
The response, as long as it is error-free, will be:
READ COMMAND
Question
Byte
Field
0
Address of the slave (1-247) (0: Broadcast)
1
Write multiple register (16)
2
Starting register address
3
Number of registers to be written (N)
4
5
Total number of bytes of write data (2·N)
6
Data to be written in register 1
7
5+2·N
Data to be written in register N
6+2·N
7+2·N
CRC
8+2·N
Byte
Field
0
Address of the slave (1-247) (0: Broadcast)
1
Write multiple registers (16)
2
Starting register address
3
4
Number of registers to be written (N)
5
6
CRC
7
Byte
Field
0
Address of the slave (1-247) (0: Broadcast)
1
Reading records (3/4)
2
Starting register address
3
4
Number of registers to be read (N)
5
6
CRC
7
...
7