Page 1 of 1

Determine tcpclient connection has been lost

Posted: Thu Nov 01, 2012 3:56 pm
by AMitchneck
Is it possible to determine when a tcpclient object's connection has been lost?

When I try to use the "Connected" property I get a compile error that it does not exist.

Thanks.

Re: Determine tcpclient connection has been lost

Posted: Tue Jan 21, 2020 12:48 pm
by Russ C.
We recommend using the built in system tags for communication errors on the controllers.

You could also use a heart-beat solution where at an interval the panel sets a bit on the PLC to low, and the PLC sets its to high.

Lastly you could use a PING command on an interval. Attached is an example project that uses the PING command.