I have searched for a solution to this seemingly simple problem, but have not found anything yet. There is a NetBaseServices library that contains NBS.UDP_Peer and NBS.UDP_Send function blocks. I added this library and the 3S Ethernet device to my project. My controller is a CrossControl XM. It has two Ethernet connections. I use the first to connect my PC during development. I would like to send data periodically on the second to a specific IP Address. I have the IP Addresses configured on the controller. It's just a matter of wiring up the function blocks and (I assume) configuring the Ethernet device in Codesys. The target device is set up to listen for UDP datagrams. Any help would be much appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have searched for a solution to this seemingly simple problem, but have not found anything yet. There is a NetBaseServices library that contains NBS.UDP_Peer and NBS.UDP_Send function blocks. I added this library and the 3S Ethernet device to my project. My controller is a CrossControl XM. It has two Ethernet connections. I use the first to connect my PC during development. I would like to send data periodically on the second to a specific IP Address. I have the IP Addresses configured on the controller. It's just a matter of wiring up the function blocks and (I assume) configuring the Ethernet device in Codesys. The target device is set up to listen for UDP datagrams. Any help would be much appreciated.
There's a UDP example here:
https://help.codesys.com/webapp/090eefO ... n=3.5.15.0
"PLC Chat" is available on the store and uses the same library but with TCP.
Thanks, I-Campbell! This looks promising.