Run on Same PC as Codesys PLC
Data Exchange between CoDeSys Devices and .NET via Network Variables
Brought to you by:
sr555
This .dll is great and easy to use, but can you modify it to allow it to send and receive packets from Network Variables on the same machine that is running Codesys? I am getting a socket exception when trying this:
Only one usage of each socket address (protocol/network address/port) is normally permitted at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
My googling has shown that we can fix this:
http://stackoverflow.com/questions/13307904/can-udp-broadcasts-be-received-by-multiple-apps-on-the-same-computer
Thanks!
Saul