6.2 MODBUS TCP
The following tables show some writing examples in MODBUS TCP.
Values contained in Command, Query and Response messages are in hex format.
WIRING MODE SETUP
Command example: 01000000000B0110203C00020400000003
Example Byte Description
01
-
Transaction ID
00
High
00
Low
Protocol ID
00
High
00
Low
0B
-
11 data bytes
01
-
Unit ID
10
-
Function code
20
High
Starting register
3C
Low
00
High
2 words to be written
02
Low
04
-
4 bytes to be written
00
High
00
Low
Set 1 phase wiring mode
00
High
03
Low
Response example: 0100000000060110203C0001
Example Byte Description
01
-
Transaction ID
00
High
00
Low
Protocol ID
00
High
00
Low
06
-
6 data bytes
01
-
Unit ID
10
-
Function code
20
High
Starting register
3C
Low
00
High
Command successfully sent
01
Low
98
MODBUS RTU/ASCII, TCP