8. Modbus protocol
8. 5. Write Single Register (6)
Request and response:
Slave no. |
| 06 |
|
| Word number |
| Value of word |
| CRC16 | |||||||
|
|
|
|
| Hi |
| Lo | Hi |
|
| Lo | Lo |
| Hi | ||
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 byte |
|
| 1 byte | 2 bytes |
| 2 bytes |
| 2 bytes | ||||||||
Example: Write value 16#000D to logic address word 9001 (16#2329) on slave 2 (ACC = 13 s) |
|
|
| |||||||||||||
Request and response: |
|
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
02 |
| 06 |
| 2329 |
|
| 000D |
| 9270 |
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28