Hi @gridstore . You will likely hit the socket limits set by Arduino for the mbed based boards.
I don't know if these limits also apply to the zephyr rtos OPTA variant (or the current state of OPTA with zephyr in general).
For mbed based boards, the limits can be safely increased but you will need to rebuild the libmbed.a. Arduino have been repeatedly asked to increase these however it has not happened and, with the EOL of mbed, is unlikely to.
As to the concurrency question you asked, I don't have experience with OPTA and/or modbus
Not an answer to your question but I remember reading about a limited number of simultaneous TCP connections on the Opta (was it 3?), which could matter here because each Modbus TCP device the Opta polls as client takes its own connection, and the SICK scanner socket takes one more.
Have you verified you can already have all the stable sockets you need ?
The Modbus TCP can be configured/used through the UI/tiles interface.
Then, in parallel, you can use the TCP/IP sockets on the Arduino sketch of the PLC IDE project.
As @J-M-L said, you will be limited on the sockets, when using only Modbus TCP as Master, the limit is connecting to a maximum of 3 servers.