
MFG · Manufacturing
Learn OT · Lesson 3.3
Modbus explained: the language almost every device speaks
A protocol written in 1979 is still the most common way machines talk to each other.
In short
Modbus is a simple request-and-response protocol published by Modicon in 1979. One device (the client or master) asks another (the server or slave) to read or write numbered registers. It runs over serial cable (Modbus RTU) or Ethernet (Modbus TCP, port 502). It has no built-in authentication: any device that can reach it can send commands.
Registers, function codes and a poll
A Modbus device keeps its data in numbered tables:
- Coils: on/off outputs you can write (start a pump).
- Discrete inputs: on/off inputs you can read (is the door closed?).
- Input registers: numbers you can read (a temperature).
- Holding registers: numbers you can read and write (a setpoint).
The client sends a request with a function code saying what to do: read coils, read holding registers, write a single register and so on, plus the address and how many values. The server replies with the data or a confirmation.
Same messages, different wires
- Modbus RTU runs over serial cable (usually RS-485), with several devices on one line, each with an address from 1 to 247.
- Modbus TCP wraps the same messages in TCP/IP so they travel over Ethernet, normally on port 502.
The messages mean the same thing. The difference is how far they can travel.
Simple, open and free
Because it is open, free to implement and simple. Energy meters, variable speed drives, chillers, PLCs, gas detectors, solar inverters: almost every vendor supports it, so it is the safe common language when equipment from different makers has to work together.
It trusts whoever asks
Modbus has no idea who is asking. There is no login and no check that a command came from the right place. If a device can be reached on port 502, anyone on that network can read its values and, if the registers are writable, change them. A newer secure variant (Modbus/TCP Security, using TLS) exists, but most installed devices don't support it.
That is why Modbus devices must sit behind boundaries that decide who can reach them (Lesson 4.3).
On a real site
A building's energy meters all speak Modbus TCP. A contractor sets up a dashboard by connecting a small PC to the same switch. It works first time, which also means anything else plugged into that switch could write to the meters' configuration registers.
Easy to mix up
"Modbus is a type of cable." It is a protocol, the language. It can run over serial cable or Ethernet.
Check yourself
Which Modbus table would hold a writable setpoint?
Holding registers.
What port does Modbus TCP normally use?
TCP port 502.
What is Modbus's main weakness?
No authentication: any device that can reach it can send commands.
Questions people ask
What is Modbus used for?
Reading and writing values between controllers, meters, drives and other industrial devices.
What is the difference between Modbus RTU and Modbus TCP?
RTU runs over serial cable; TCP carries the same messages over Ethernet networks.
Is Modbus secure?
Standard Modbus has no authentication or encryption. Protection has to come from the network around it.
Terms in this lesson
Sources
Go deeper · from our learning shelf
ICS Virtual Learning Portal CISA · free
Short self-paced courses from the US agency, around an hour each.
Introduction to the World of OT/ICS TryHackMe · free room
How OT works, hands-on, in your browser.
Industrial Network Security On our bookshelf · Eric D. Knapp
A thorough guide to industrial networks, protocols and how to protect them.
See the whole learning shelf: free courses first, then the certificates worth paying for →
Useful? Send it to someone who works near a plant room. Learn OT is free to read, share and teach from.
Keep going


