An Overview of Modbus Protocol

Overview of Modbus Protocol 

Modbus Protocol is a widely used communication protocol in the field of industrial automation. Developed in the late 1970s by Modicon (now Schneider Electric), it was designed to enable communication between programmable logic controllers (PLCs) and other industrial devices such as sensors, actuators, and human-machine interfaces (HMIs). Despite being over four decades old, Modbus Protocol continues to be relevant and widely adopted due to its simplicity, robustness, and openness.

At its core, Modbus Protocol is a request-response protocol that operates using a master-slave relationship. The master device initiates communication by sending requests to slave devices, which then respond with the requested data. This makes it suitable for scenarios where centralized control is required.

Different Modbus Protocol

There are several variants of Modbus Protocol that have been developed over time to cater to different network configurations and transmission mediums. The most commonly used variants are Modbus RTU (Remote Terminal Unit) and Modbus TCP/IP (Transmission Control Protocol/Internet Protocol).

Modbus RTU is designed for use over serial connections such as RS-232 or RS-485. It uses binary encoding for data transmission and supports both half-duplex and full-duplex modes. In this mode, data packets are encapsulated within frames consisting of start bits, data bits, parity bits for error detection, and stop bits.

On the other hand, Modbus TCP/IP utilizes Ethernet as the physical layer for communication. It enables devices on an Ethernet network to communicate using standard IP addressing schemes. This variant offers greater flexibility compared to Modbus RTU since it can operate over local area networks (LANs), wide area networks (WANs), or even the internet.

Apart from these two popular variants, there are also other implementations of Modbus such as Modbus ASCII – which uses ASCII characters instead of binary encoding – and Modbus UDP – which operates on top of User Datagram Protocol (UDP) for faster transmission.

Working Principle

Modbus Protocol follows a client-server architecture, where the master device acts as the client and the slave devices act as servers. The client initiates communication by sending specific requests to one or more slaves, which then respond accordingly. Each slave device is assigned a unique address to differentiate it from other devices on the network.

The request messages in Modbus Protocol consist of function codes that define the type of operation to be performed by the slave. These function codes specify whether the master wants to read data from a particular register, write data to a register, or perform other operations such as diagnostic checks or control commands.

In terms of data representation, Modbus Protocol supports different types of data formats such as 16-bit integers (integers), 32-bit floating-point numbers (floats), and binary values (coils). This allows for versatile communication between various types of industrial devices.

To ensure reliable communication, Modbus Protocol incorporates error checking mechanisms such as parity checks and cyclic redundancy checks (CRC). Parity checks verify that data has been transmitted correctly by comparing the number of ones in each byte with an expected value. CRC adds an additional layer of error detection by calculating a checksum based on the transmitted data and verifying it at the receiving end.

When implementing Modbus Protocol in real-world applications, it is essential to consider factors such as network topology, baud rate settings, addressing scheme, and timing constraints. These parameters can greatly affect the performance and reliability of communication between devices.


In conclusion, Modbus Protocol remains one of the most widely used protocols in industrial automation due to its simplicity, robustness, and flexibility. Its versatility allows for seamless integration between different types of industrial devices while ensuring reliable communication through built-in error checking mechanisms. Understanding how Modbus works is crucial for engineering students entering fields related to industrial automation.


Leave a Reply