...
- Create a "standard project" and select "CODESYS Control Win V3" as the device.
- Define the target system via Network search (see Modbus master).
- Insert an Ethernet adapter and a Modbus_TCP_Slave_Device in the device tree.
Setting on the Ethernet adapter (master and slave)
...
Note |
---|
If no target system is determined, an error message appears, "Gateway not configured" |
Setting on the Modbus_TCP_Slave (master)
...
- Enter the IP address of the slave device (in this case the CODESYS Control Win V3)
- Issue a unique ID for the Modbus configuration
...
Tab 'Channel'
- Create an input register (counter that is sent by the Modbus slave device) – cyclic update every 100 ms.
- Create an output register for writing your own counter.
=> >
I/O mapping
- Assign input and output variables.
...