Hardware

Requirements for the Modbus master


Requirements for the Modbus slave

Setting on the Ethernet adapter (master and slave)

If no target system is determined, an error message appears, "Gateway not configured"


Setting on the Modbus_TCP_Slave (master)

Tab 'General'

Tab 'Channel'

  => 

I/O mapping

The setting of the option "Enabled 1" is necessary, since the variable "xExec" is not used in any task and writing would therefore not work.



Settings on the Modbus_TCP_Slave_Device (slave)

Tab 'General'

Tab 'I/O mapping'


Downloading and starting the projects

Master

Slave

The value changes only after transmission has been triggered manually in the master.