...
Note |
---|
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'
Activate monitoring of the communication.
Warning The unit ID must not be used for Modbus TCP!
This is only used for TCP/RTU gateways.Info The unit ID is only used for forwarding (gateway) to a Modbus Serial Bus.
For TCP/IP, the MODBUS-Server is addressed by means of the IP address.
...
In this case, the MODBUS unit ID is not used (the value 0xFF has to be used).
For a serial connection, the Modbus devices are addressed with unit IDs from 1 to 247 (0 is used for broadcast addresses).
Tab 'I/O mapping'
- Assign input and output variables.
...
Downloading and starting the projects
...
- Load the application to the controller.
Slave
- Load the application to the controller
Note |
---|
The value changes only after transmission has been triggered manually in the master. |