6. WRITING COMMAND EXAMPLES
In this chapter, some writing command examples are described according to the used communication protocol
(RTU/ASCII or TCP).
6.1 MODBUS RTU/ASCII
The following tables show some writing examples in MODBUS RTU.
Values contained in Command, Query and Response messages are in hex format.
WIRING MODE SETUP
Command example: 0110203C000204000000032E29
Example Byte Description
01
-
Slave address
10
-
Function code
20
High
Starting register
3C
Low
00
High
2 words to be written
02
Low
04
-
4 data bytes
00
High
00
Low
Set 1 phase wiring mode
00
High
03
Low
2E
High
CRC
29
Low
Response example: 0110203C0002048A
Example Byte Description
01
-
Slave address
10
-
Function code
20
High
Starting register
3C
Low
00
High
2 written words
02
Low
04
High
CRC
8A
Low
92
MODBUS RTU/ASCII, TCP