CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Dec 19, 2018 5:26 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Mar 31, 2012 4:04 am 
Offline

Joined: Wed Oct 06, 2010 10:50 am
Posts: 9
Can anyone please help me in "How to Ping an IP address in CoDeSys?"


Top
   
PostPosted: Fri Apr 13, 2012 6:19 am 
Offline

Joined: Wed Apr 11, 2012 9:54 am
Posts: 13
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


Top
   
PostPosted: Wed Apr 25, 2012 12:10 pm 
Offline

Joined: Wed Oct 06, 2010 10:50 am
Posts: 9
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,


Top
   
PostPosted: Thu Nov 22, 2018 4:12 pm 
Offline
User avatar

Joined: Wed Mar 09, 2016 1:20 pm
Posts: 20
Did someone find the way to get a library in Codesys 2.3 to ping an IP node?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited