Skip to content
Estrin Automation

Modbus RTU and Modbus TCP: the basics

14 October 2026

Modbus is a simple, widely supported request and response protocol. A client asks a device for data or sends it a value, and the device replies. Because it is so simple it appears in meters, drives, sensors and PLCs from many vendors.

RTU and TCP

  • Modbus RTU runs over a serial line, commonly RS-485. Devices share one line, each with its own address. Baud rate, parity and stop bits must match on every device, and the line needs correct termination and biasing.
  • Modbus TCP runs over Ethernet, normally on TCP port 502. The device is identified by its IP address, and a unit identifier is used when a gateway sits in front of serial devices.

What the data looks like

Data lives in four tables: coils and discrete inputs (single bits) and holding and input registers (16-bit words). Function codes select the operation, for example reading holding registers or writing a single coil.

Pitfalls

  • Addressing: documentation may count registers from 0 or from 1, and may use notations such as 40001. An off-by-one offset is the most common error.
  • Data types: a 32-bit value or a floating-point number spans two registers, and devices differ in the order of the words and bytes.
  • Scaling: many devices send integers that represent tenths or hundredths of a unit.
  • Security: the protocol has no authentication or encryption, so it belongs on an isolated, segmented network.

Related: Industrial Communication and Network Solutions

Have a control or automation project?

Tell us about the process and what you need. We will come back to you with the next step.