up: embedded systems - modbus  
embedded systems - modbus - message format - TCPWhat links here?
The TCP port used is: 502.

Request Format:
NameLengthFunction
Transaction IdentifierMBAP2For synchronization between messages of server and client
Protocol identifier20 for Modbus/TCP
Length field2Number of remaining bytes in this frame
Unit identifier1Unit address (255 if not used)
Function codePDU1Function codes as in other variants
Address of first register2Address of the first register
Number of registers2Number of registers


Response:
NameLengthFunction
Transaction IdentifierMBAP2For synchronization between messages of server and client
Protocol identifier20 for Modbus/TCP
Length field2Number of remaining bytes in this frame
Unit identifier1Unit address (255 if not used)
Number of Bytes followingPDU1Number of Bytes following
DataNData


MBAP Header = Modbus Application Header
PDU = Protocol Data Unit


Simply Modbus: Modbus TCP Protocol
embedded systems - modbus - message format - TCP
programming:c:time
filename:embedded systems - modbus - message format - TCP
filename:embedded%20systems%20%2D%20modbus%20%2D%20message%20format%20%2D%20TCP
last edit:May 16 2026 00:02:47 (316 minutes ago)
ct = 1778923147.000000 = May 16 2026 05:19:07
ft = 1778904167.000000 = May 16 2026 00:02:47
dt = 18980.000000