- 29 -
6.1.5
Differences between Modbus TCP and Modbus RTU Protocols
This section describes the differences between Modbus TCP (Ethernet) and Modbus RTU (RS-485)
communication protocols.
①
Transaction identifier = TRXN ID (data size: 2 bytes)
In Modbus TCP communication, the exact value set in the request message (arbitrary) will be
included in a response message.
②
Protocol identifier = Protocol ID (data size: 2 bytes)
Fixed at “0”.
③
Field length (data size: 2 bytes)
Quantity of transferred data from
④
to
⑦
④
Address/Unit identifier (data size: 1 byte)
This is unit ID for Modbus RTU and the 4th value of IP address for Modbus TCP.
⑤
Function code (data size: 1 byte)
Function code supported by this detector.
⑥
Data (data size: variable length)
Message (data) corresponding to the function code.
⑦
Error check code (CRC) (data size: 2 bytes)
CRC value calculated by the CRC-16 method.
Message configurations from
④
to
⑥
are common between Modbus TCP and
Modbus RTU.
NOTE