Category Archives: Modbus Protocol

Modbus Client-Server vs Master-Slave Terminology

You just downloaded a new device manual and it says “Modbus client” and “Modbus server.” Your RS-485 documentation says “master” and “slave.” Your PLC code has variables named slaveId. Which is right? Do you need to change your code? Are these different protocols? Short answer: no. The protocol is identical. The terminology depends mostly on the transport you… Read More: Modbus Client-Server vs Master-Slave Terminology »

Modbus TCP Security Explained: TLS on Port 802

Standard Modbus TCP has zero security. No authentication. No encryption. No integrity checks. Anyone who can reach TCP port 502 can issue Modbus requests. Depending on the device configuration, this may allow reading registers, writing coils or registers, changing operating parameters, or disrupting industrial processes. For decades, the answer was “put it behind a firewall and hope for… Read More: Modbus TCP Security Explained: TLS on Port 802 »

Modbus Register Map Explained: How to Read Any Device’s Register Map

Every Modbus device comes with a register map. It is usually a table in the user manual or a separate PDF that lists all the data points the device makes available — voltages, currents, setpoints, alarms, status bits, and configuration parameters. Reading a register map sounds simple. But it is one of the most common sources of errors… Read More: Modbus Register Map Explained: How to Read Any Device’s Register… »

Modbus Function Codes Explained with Real Examples

Every Modbus message contains a function code. It is a single byte that tells the slave device what operation to perform — read coils, write registers, or diagnose communication. The Modbus specification defines multiple function codes, but in practice you will use about six of them for 95% of your tasks. The rest are either rarely implemented, vendor-specific,… Read More: Modbus Function Codes Explained with Real Examples »