Modbus RTU Over TCP vs Modbus TCP (2026): Setup & Testing Guide

One of the most common commissioning surprises when bridging legacy RS-485 meters over Ethernet is confusing Modbus TCP/IP with Modbus RTU over TCP (encapsulated RTU). Although both travel across IP networks, their byte framing is completely incompatible—causing silent timeouts when mismatched.

ModbusSimulator lets you inspect raw hex wire packets and run virtual Modbus TCP and Modbus Slave simulations on Windows 10/11 with a 30-day uninterrupted free trial.

1. Packet Framing: MBAP Header vs Encapsulated CRC-16

Frame Field Standard Modbus TCP/IP Modbus RTU Over TCP (Encapsulated)
Header7-byte MBAP Header (Transaction ID, Protocol ID 00 00, Length, Unit ID)1-byte Slave Address only (no MBAP header)
PDU PayloadFunction Code + Data (e.g., 03 00 00 00 02)Function Code + Data (identical ADU core)
Error CheckNone (relies on TCP/IP checksum)2-byte Modbus CRC-16 appended at end
Default PortTCP Port 502Often 4001, 5000, 8899, or 502
Hardware TypeNative Ethernet PLCs & protocol-translating gatewaysTransparent serial-to-Ethernet bridges (TCP Server mode)

2. Byte-Level Hex Example: Reading Holding Registers 40001–40002

Compare the exact bytes transmitted over the wire when polling Slave ID 1 for 2 holding registers starting at address 0x0000 (FC 03):

  • Modbus TCP/IP (12 bytes): 00 01 00 00 00 06 01 03 00 00 00 02
  • Modbus RTU over TCP (8 bytes): 01 03 00 00 00 02 C4 0B (with CRC-16 C4 0B)

If your converter is set to Transparent TCP Server mode, sending the 12-byte MBAP frame causes the downstream RS-485 energy meter to reject the bytes as invalid noise—resulting in a timeout error.

3. Commissioning Checklist for Serial-to-Ethernet Gateways

  1. Verify Gateway Mode: Check whether your Moxa, USR, or Advantech device is running Modbus Gateway (TCP ↔ RTU translation) or Transparent TCP Socket mode.
  2. Match Serial Framing: Confirm baud rate (9600/19200/115200), data bits (8), parity (None/Even/Odd), and stop bits on the RS-485 port match the field device.
  3. Inspect Hex Traffic & Simulate First: Test your register layout and data types against ModbusSimulator on localhost before touching live RS-485 trunks.

Debug Modbus TCP & RTU Framing Without Guesswork

Download ModbusSimulator for Windows 10/11 — 30-day uninterrupted trial with unified Master, Slave, and live hex packet monitor.

Download Free 30-Day Trial

Frequently Asked Questions

When should I choose native Modbus TCP instead of RTU over TCP?

Choose a true Modbus TCP-to-RTU translating gateway whenever possible—it handles multi-master queuing, standard port 502 routing, and clean MBAP transaction IDs.

Why do I get Exception 0x0A or 0x0B on a Modbus gateway?

Gateway exceptions indicate internal routing or RS-485 slave timeout failures. Read our guides on Modbus Gateway Path Unavailable (0x0A) and Gateway Target Device Failed to Respond (0x0B).

What happens if endianness is wrong on 32-bit floats?

Reading 32-bit IEEE 754 values with the wrong word order returns scrambled numbers; learn how to decode ABCD/CDAB/BADC/DCBA in our Modbus Data Types guide.

Can I simulate a Modbus TCP slave on Windows 10/11?

Yes. Spin up multi-unit virtual slaves on port 502 using our Modbus TCP Simulator or Modbus Slave Simulator.