AdvancedHMI Software

General Category => Support Questions => Topic started by: andreaboschetti71 on February 17, 2014, 05:14:58 AM

Title: Connection Lost
Post by: andreaboschetti71 on February 17, 2014, 05:14:58 AM
Is there a way to know when connection between PC and PLC is lost?
Title: Re: Connection Lost
Post by: Archie on February 17, 2014, 08:01:58 AM
The EthernetIPforCLXCom driver has ConnnectionClosed and ConnectionEstablished events.
Title: Re: Connection Lost
Post by: peterleitner on April 18, 2014, 05:01:32 PM
and maybe a little example how to use them? im dealing with the same stuff right now...
Title: Re: Connection Lost
Post by: Archie on April 18, 2014, 06:06:28 PM
- Select the CLX driver instance on your form
- In the properties window, select the lightening bolt icon to get to events
- Double-Click ConnectionClosed to get to the code
- Enter this code:
          MsgBox("Connection closed")