Sending UDP data to another device over Ethernet

andyfox
2020-01-27
2020-01-28
  • andyfox - 2020-01-27

    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.

     
  • andyfox - 2020-01-28

    Thanks, I-Campbell! This looks promising.

     

Log in to post a comment.