Views: 0 Author: Site Editor Publish Time: 2023-06-01 Origin: Site
Modbus is divided into two protocols: the serial port protocol (modbus RTU) and the network port protocol (modbus TCP). Generally, industrial control computers only support the serial port mode of RS232 or RS485. At this time, the protocol stack of industrial control computers only has the modbusRTU protocol. When it receives data from the serial port, it will directly control based on the data in the message, If you need to use the modbusTCP protocol for transmission, you need to use a PLC with a network port
The specific frame format is as follows
Modbus RTU Address Domain Function Code Data Error Verification
Modbus TCP Destination Address Protocol ID Length Unit Number Function Code Data
Modbus RTU and Modbus TCP are both communication protocols used in industrial automation. What Are the Differences?
Modbus RTU is a serial communication protocol using either RS485 or RS232. The first Modbus communication protocol was introduced and initially implemented to communicate between PLCs. Only later was it used for field-based instrumentation.
Originally, Modbus RTU was just RS232, but due to the limiting factors of RS232, it was only used in the control room to communicate with close-ranged PLC. Today, most Modbus RTU networks are on 38,400 baud rate, so the maximum length of RS232 is around 10 feet.
The real change that allowed the more extensive use of Modbus controllers was the implementation of RS485. With RS485, you can increase the range up to 4,000 feet and the speed to 115,200, obviously with a reduced range. Devices can be daisy-chained with RS485.
Modbus TCP uses Ethernet communication and came into practice 20 years after Modbus RTU. It still uses Modbus RTU protocol but communicates on the Ethernet network.
The main difference is that Modbus RTU uses a daisy chain network, so you can link the whole network on two wires and communicate with each device by providing each node with a unique address. Modbus TCP uses a star network where each node has an individual cable called a Cat5 or Cat6. They can be connected with the use of a router. They also come with a personal address unique to each node on the network. The address can be from 1 to 255, which means theoretically, you can have 254 units on the same network. You can also use Modbus TCP over the internet.
The trend in 2022 is that more field equipment uses Modbus RTU, but Modbus TCP is catching up. Pressure transmitters, flow meters, and gas analyzers use Modbus RTU. PLCs, DCSs, and control room equipment use Modbus TCP. Some equipment communicating over the internet to web servers are using Modbus TCP. Input and output analog and digital modules are available on Modbus RTU and Modbus TCP.