Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General

Resources

The Modbus protocol is one of the most widely used fieldbus communication protocols in the industry. The main reason for this is that no licence is needed and it is free to any user. Many producers of automation equipment have it as a standard integration into their in devices.
Modbus is a master-slave protocol that transmits over a bus through serial lines, ethernet or a wireless network. It can mainly be classified in RTU and TCP mode, where RTU directly transmits binary data over serial communication, while TCP allows transmission over a network. The figure shows a combination of the different modes using gateways.

Image Added
A Modbus message being sent from the master includes what action it is to perform in a function code. It could be read registers and would have information of which register to start at. In the message there is an error check field that allows the slave to check the message's integrity.


The function code from the master should be echoed back in a normal response, with the data collected by the slave. This would be as register values or status. Additionally, the code can be changed to respond there is an error, if one has been detected.