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
I'm trying to use the Ethernet.lib library with a 750-842 controller. I want to make an UDP server listenning to UDP packet wich are broadcasted on the network.
Hello all.
I'm trying to use the Ethernet.lib library with a 750-842 controller. I want to make an UDP server listenning to UDP packet wich are broadcasted on the network.
I'm doing this:
The socket is successfully created with no error, but when a packet comes nothing is read from the ETHERNET_READ function block...
Why? Does anybody know if I've done something wrong?
Thank
Raoul
Hi
Did you try it like this:
Read(EN:=1, SOCKET:=socket.SOCKET, DATA:=buffer);
IF (Read.LEN_OUT > 0) THEN
END_IF
Yes I tried that, but It's exactly the same...
Raoul
Hi
I have a (fully working and tested) Sample for you.
Maybe it helps you to understand the mechanism.
Greets
Erik
WagoEthernetServer.zip [12.42 KiB]
Thank you, I'll try this example...
Raoul