![Azbil C7G Скачать руководство пользователя страница 315](http://html1.mh-extra.com/html/azbil/c7g/c7g_installation-and-configuration-manual_3042606315.webp)
8-3
Chapter 8. Modbus TCP Communication Functions
z
Message structure
The TCP/IP frame is utilized. A Modbus TCP message is shown in the TCP data
section.
z
z
Modbus TCP
(1)
(2)
(3) (4) (5)
(6)
(1) Transaction Identifier (2 bytes) Not defined particularly.
(2) Protocol Identifier (2 bytes)
0000H for the Modbus protocol
(3) Length (2 bytes)
Shows the number of bytes in (4) to (6).
(4) Unit Identifier (1 byte)
Specify FFH or 00H.
(5) Function (1 byte)
Specify the function code.
(6) Data (n bytes)
Data column depending on the function code
z
z
Detailed data
z
z
Transaction Identifier
A request and its response have the same value.
The host station can use the transaction identifier to confirm that the data is the
response to the request.
z
z
Protocol Identifier
Specify 0000H for the Modbus protocol.
z
z
Length
Shows the data length in bytes based on the unit identifier.
z
z
Unit Identifier
Specify FFH or 00H.
z
z
Function
Specifies the function code.
z
z
Data
Communications data
z
z
Frame detection method
A TCP frame is equivalent to one Modbus TCP frame.
z
z
Port
The Modbus TCP port number is 502 (changeable).
z
z
Function code
Function Codes 3 (03H), 16 (10H), and 6 (06H) are supported.
8 - 2
Message structure