Thank you very much Matthias for the reply.
I am using ABB PLC and it comes with Codesys V2.3 and the the function 'SysSockPing' is not supported in the SysLibSocket provided.
Can you pls help me in getting the latest version of 'SysLibSocket.lib' library from net.
Thanks and regards,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can anyone please help me in "How to Ping an IP address in CoDeSys?"
Originally created by: Matthias S.
Hello, hiten.upadhyay
I use CoDeSys V3.5. There is included the library "SysSocket".
Inside this library SysSocket is the function "SysSockPing".
I use this Function sometimes and it works.
Here my example
PROGRAM PLC_PRG
VAR
PingTime: UDINT;
END_VAR
SysSockPing(szIPAddress:='192.168.3.1', ulTimeout:=500, pulReplyTime:= ADR(PingTime));
I checked it with Wireshark - the ping works.
Greetings,
Matthias
Thank you very much Matthias for the reply.
I am using ABB PLC and it comes with Codesys V2.3 and the the function 'SysSockPing' is not supported in the SysLibSocket provided.
Can you pls help me in getting the latest version of 'SysLibSocket.lib' library from net.
Thanks and regards,
Did someone find the way to get a library in Codesys 2.3 to ping an IP node?