Lernen Sie den Unterschied zwischen den Protokollen Modbus RTU und Modbus TCP in einem Artikel kennen

Modbus protocols include Modbus ASCII, Modbus RTU, Modbus TCP, etc., and do not specify the physical layer. This protocol defines the message structure that controllers can understand and use regardless of the network over which they communicate.

Modbus Communication Protocol Overview

The standard Modicon controller uses RS232C to implement serial Modbus. The ASCII and RTU protocols of Modbus stipulate the structure of messages, data, commands, and response methods. Data communication adopts the Master/Slave method. The Master sends a data request message, and the Slave can send data to the Master after receiving the correct message. To respond to the request, the Master can also directly send messages to modify the data on the Slave to achieve bidirectional reading and writing.

DTU/Edge Gateway/IoT Platform/Gateway Module/ Modbus RTU and Modbus TCP

Modbus has the following characteristics

1. Standard und offen. Die Benutzer können das Modbus-Protokoll kostenlos und vertrauensvoll nutzen. Es müssen keine Lizenzgebühren gezahlt werden und es werden keine geistigen Eigentumsrechte verletzt. Derzeit gibt es mehr als 400 Hersteller, die Modbus unterstützen, und mehr als 600 Produkte, die Modbus unterstützen.

2. Modbus kann eine Vielzahl von elektrischen Schnittstellen unterstützen, wie RS-232, RS-485 usw., und kann auch über verschiedene Medien übertragen werden, wie Twisted Pair, Glasfaser, Funk usw.

3. Das Rahmenformat von Modbus ist einfach, kompakt und leicht zu verstehen. Es ist für Benutzer einfach zu verwenden und für Hersteller einfach zu entwickeln.

In fact, Modbus protocols include Modbus ASCII, Modbus RTU, and Modbus TCP

The standard Modicon controller uses RS232 to implement serial Modbus. The ASCII and RTU protocols of Modbus stipulate the structure of messages and data, the command and response methods, and the data communication adopts the Maser/Slave method.

Modbus protocol requires data verification. In addition to parity check, the serial protocol uses LRC verification in ASCII mode and 16-bit CRC verification in RTU mode. Modbus TCP mode does not specify additional verification because the TCP protocol is a reliable connection-oriented protocol.

Difference between Modbus RTU and Modbus TCP protocols

The RTU and TCP protocols are very similar. Just remove the two-byte check code of the RTU protocol, then add 5 0s and a 6 at the beginning of the RTU protocol and send it out through the TCP/IP network protocol.

Modbus RTU and Modbus TCP are both MODBUS protocols in essence, and both rely on MODBUS register addresses to exchange data; but the hardware interfaces used are different. Modbus RTU generally uses the serial port RS232 or RS485, while Modbus TCP generally uses the Ethernet port. There are many protocol converters on the market today that can easily convert these different protocols to each other.

Neueste Artikel

Kontakt