A Modbus network consists of a Modbus master and one or more Modbus slaves. A maximum of 64 slaves can be attached to a master. The Modbus devices can be linked via serial port or Ethernet.
Modbus devices, linked via the serial port using the Modbus COM Port device.
(1): The CODESYS runtime acts as a Modbus Master.
(2): The CODESYS runtime acts as a Modbus Slave. This Modbus Slave is named "Modbus Device" in the following text.
For Modbus serial, the operating type "Modbus RTU" is supported.
Modbus devices, linked in an Ethernet network using the Ethernet Adapter device.
(3): The CODESYS runtime acts as a Modus Master (Client).
A Modbus TCP slave can also act as a gateway for serial Modbus slaves.
(4): The CODESYS runtime acts as a Modbus Slave (Server).
You can configure communication parameters in the Modbus configuration pages and then create Modbus channels. A Modbus channel includes a single Modbus command (read/write data) as well as the respective I/O channels.