Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

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.