I am trying to set up a simulator on CODESYS Control Win to simulate multiple devices simultaneously.
Please refer to the attached image. As shown, I have successfully set up multiple Modbus Serial Devices within the Devices tree and configured individual applications for each.
However, despite being able to configure multiple devices in the setup, it appears that I can only run one device at a time in CODESYS Control Win.
Are there any suggestions or solutions to enable simultaneous execution of multiple devices?
Additionally, would switching to CODESYS Control Win RTE (Real-Time Environment) allow for running multiple devices concurrently?
Hello, I think the main problem is you only have one Codesys Control win on your PC. because of this you can only run 1 program at a time.
In that case, you could try to use docker for windows and see if you can run multiple instance of the codesys runtime for docker.
Use different port for each access and you should be fine.
I started to implement it, but I do not think it is worth to do.
Windows has a big delay to run just one task.
I tried to run a maste and a slave in the same Windows computer.
The slave has a minimum answer time (in my case) of 1ms when you use the Modbus driver I/O. Thus the comunnication could not work as I intended. I just gave up using this solution for Windows. It does not pay off.
Actually this guy did a new one about the same subjet. But talkning about CODESYS Virtual PLC Control SL On.