Author Topic: Connection Lost  (Read 1563 times)

andreaboschetti71

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Connection Lost
« on: February 17, 2014, 05:14:58 AM »
Is there a way to know when connection between PC and PLC is lost?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5271
    • View Profile
    • AdvancedHMI
Re: Connection Lost
« Reply #1 on: February 17, 2014, 08:01:58 AM »
The EthernetIPforCLXCom driver has ConnnectionClosed and ConnectionEstablished events.

peterleitner

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Connection Lost
« Reply #2 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...

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5271
    • View Profile
    • AdvancedHMI
Re: Connection Lost
« Reply #3 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")