When a Modbus COM port device is inserted in the tree, only static assignment of the parameters is possible.
If it is necessary for the assignment to be dynamic, then the complete handling must be implemented in the IEC code
Please note that the I/O Manager does not synchronize the different processes in the dynamic configuration.
This can cause the update behavior of the variables to differ from the static configuration, especially if it is accessed from several tasks.
- Create a "Standard project" and select CODESYS Control Win V3 as the device.
- Define the target system by means of the Network scan.
- Open the Library Manager and add the Netzwork library.
- SysTypes2 Interfaces
Adapt the POU PLC_PRG as follows:
- Start the project and test the functionality.