Determine tcpclient connection has been lost

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
AMitchneck
Posts: 137
Joined: Mon Jun 11, 2012 2:10 pm

Determine tcpclient connection has been lost

Post 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.
Adam M.
Controls Engineer
FlexEnergy

User avatar
Russ C.
Posts: 213
Joined: Thu Nov 16, 2017 3:32 pm
Contact:

Re: Determine tcpclient connection has been lost

Post 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.
Attachments
Simple_Ping_POC.zip
(27.75 KiB) Downloaded 390 times
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply