✔ Communication Protocol

What is Modbus TCP? The version of Modbus that runs over Ethernet and networks

Modbus TCP carries Modbus messages over an Ethernet network using TCP/IP. The data structure is the same as Modbus RTU; only the transport changes. The default port is 502.

Because it uses network infrastructure, it is faster and has no distance limit: the device can be in the same panel or in another city.

Highlights

  • Ethernet
  • TCP 502
  • Client / Server
  • Unit ID
  • No distance limit

How does it work?

SCADA or a PLC connects as a client to the device's IP address and reads/writes registers; the device answers as a server. Each device has an IP address. There is no need to wait in turn as on a serial line; several devices can be queried at the same time.

The Unit ID field addresses serial devices behind a gateway. Devices with built-in Ethernet usually use 1 or 255.

Hardware architecture

SCADA ServerclientIndustrial SwitchnetworkModbus TCP DevicesPLC, analyserModbus GatewayTCP → RTUSerial DevicesRS-485
  • Switch: In the field, use DIN-rail industrial switches with a wide temperature range. Large plants prefer managed switches and ring redundancy.
  • Gateway: Connects RS-485 devices to the Modbus TCP network, so older devices can also be read over the network.
  • Remote sites: Sites are connected to the centre with an industrial 4G router and VPN.
  • IP plan: Give each device a fixed IP and keep a list; two devices with the same IP is the most common cause of faults.

Cable and material selection

  • Cable: Cat6 Ethernet. In noisy areas with motors, drives or welders, use shielded (STP/FTP) cable and metal-bodied connectors.
  • Distance: A copper Ethernet run is limited to 100 metres. For longer distances, add a switch or use fibre.
  • Fibre: Preferred between buildings and over long distances. Multimode fibre covers hundreds of metres to a few kilometres; singlemode covers tens of kilometres. Fibre is immune to lightning and ground potential differences.
  • Connectors: In vibrating environments, industrial M12 cables are more reliable than RJ45.
  • Wireless: Where cables cannot be run, a point-to-point wireless bridge or 4G can be used.

Distance: the difference from Modbus RTU

With Modbus RTU, an RS-485 line is limited to about 1200 metres. With Modbus TCP, distance depends on the network, not the protocol:

  • Up to 100 metres: a single Cat6 cable
  • A few hundred metres: add switches
  • Kilometres: fibre optic
  • Between cities: VPN over 4G, MPLS or the internet

So Modbus TCP has no practical distance limit. What needs attention on long and wireless links is latency and timeout settings.

Advantages and disadvantages

Advantages

  • Uses existing Ethernet infrastructure
  • Much faster than Modbus RTU
  • No practical distance limit
  • Several clients can connect to the same device
  • Older serial devices can be added through gateways

Disadvantages

  • No security; network segmentation and a firewall are required
  • Must not be exposed directly to the internet; use a VPN
  • No time stamps or event-based reporting
  • Register maps still depend on the vendor
  • Needs IP planning and network knowledge

Modbus TCP compared with similar protocols

Modbus TCPModbus RTUOPC UA
MediumEthernetRS-485Ethernet
DistancePractically unlimited~1200 mPractically unlimited
SpeedHighLowHigh
SecurityNoNoYes
Ease of setupEasyVery easyMedium
Cabling costCable/switch per deviceOne daisy-chained cableCable/switch per device

How to test it

  1. Make sure your computer's IP address is on the same network as the device.
  2. Reach the device with ping device-ip from the command line.
  3. Check that port 502 is open (a firewall may be in the way).
  4. Enter the correct Unit ID; for devices behind a gateway this is the serial device's address.
  5. Read a known value from the register map; if it looks wrong, check the data type and word order.

Testing with ATLAS SCADA

You can test by defining a Modbus TCP connection in ATLAS SCADA and reading the registers. This lets you verify values directly on screens, trends and alarms.

Let's review your project together

Let's work out together which architecture, hardware and cabling fit your facility.

Let's talk about your project