Modbus is a serial communication protocol developed in 1979 by Modicon for use with PLCs. Modbus TCP/IP uses TCP/IP and Ethernet to carry the data of the Modbus message structure between compatible devices. In other words, Modbus TCP/IP is a standard method of representing data over a physical network (Ethernet) using a network standard (TCP/IP). A Modbus TCP/IP message is simply a Modbus communication encapsulated in an Ethernet TCP/IP packet.
The basic automation components frequently encountered in data collection processes with the Modbus protocol are as follows:
Example Application: Modbus enables devices in a system to transmit the results of temperature and humidity meters connected to the same network to a controller computer or PLC.
The Modbus protocol uses a Master / Slave technique to establish communication between devices. That is, any application using the Modbus protocol will have one Modbus Master and at least one Modbus Slave. A Modbus Master is usually a host controller computer communicating with one or more Modbus Slave devices.
Modbus communication is divided into different types based on the physical infrastructure used, namely Serial and Ethernet-based:
Modbus TCP/IP Protocol: A simple-to-use protocol designed for supervision and control of automation devices. Offering communication based on classic internet network topology, this protocol transfers data at 100 Mbps using standard internet cards. Multiple connections can be made. Server/client connections are established, and data transfer occurs. Transmission speed depends on the processor and internet card type used in the devices.
In Modbus TCP/IP, messages consist of two main parts: the MBAP (Modbus Application Protocol Header) and the PDU (Protocol Data Unit), which together form the complete message structure.
| MBAP HEADER - 7 Bytes | PDU (Protocol Data Unit) | ||||
|---|---|---|---|---|---|
| Transaction ID (2 Bytes) | Protocol ID (2 Bytes) | Length (2 Bytes) | Unit ID (1 Byte) | Function Code (1 Byte) | DataBytes (N Bytes) |
| Transaction Matching ID | 00 00 (Modbus) | Remaining Packet Length | Slave Device Address | Read/Write Command | Register Data |
To integrate Modbus communication into cloud systems (AWS, Azure, private SCADA) without writing code, HUBBOX devices offer an end-to-end solution:
Don't waste time with complex coding and configuration screens. Securely transfer all your field Modbus data to the center in minutes using HUBBOX Connect X1 and X2 solutions.