Take a look at OSCAT Network. They have a codesys download for V2.3 http://www.oscat.de/
Their lib is open source, so you can either use their premade blocks, or look internally at their implementation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you, I took a look. But not exactly matching, since they propose to use two blocks of NET_VAR on both sides, of PLC. However I will use gateway with UDP packet forwarder connected to PLC. I believe I needed to specify from beginning what is needed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I try to work with UDP packets in Codesys V2. Which is the best library to use for reading and writing UDP packets ?
Take a look at OSCAT Network. They have a codesys download for V2.3
http://www.oscat.de/
Their lib is open source, so you can either use their premade blocks, or look internally at their implementation.
Thank you, I took a look. But not exactly matching, since they propose to use two blocks of NET_VAR on both sides, of PLC. However I will use gateway with UDP packet forwarder connected to PLC. I believe I needed to specify from beginning what is needed.