Page 1 of 1

How to ping a server in Win CC OA?

Posted: Wed Jul 05, 2023 2:16 am
by Sector97
Hey everyone,

Fairly basic question, but what's the most straightforward way to ping a server in WinCC OA?
Essentially I want to create a function where you can ping a given ip address and get a True/False based on whether the server responds to a ping.

Re: How to ping a server in Win CC OA?

Posted: Tue Jul 11, 2023 3:13 pm
by leoknipp
WinCC OA does not provide any form of ping command to an IP address.
You can possibly use the system() open a command shell where the customer can then type the ping command. Another option is to call the ping command directly in the system() call and check the output.

Best Regards
Leopold Knipp
Senior Support Specialist

Re: How to ping a server in Win CC OA?

Posted: Thu Jul 20, 2023 6:20 am
by Sector97
Cheers, thanks for the input will give that a shot.