Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
517 stars 197 forks source link

TCP/IP Disconnect Notification #10

Closed Satheesh-satz closed 8 years ago

Satheesh-satz commented 9 years ago

Hi Sven,

Is there a way to get a disconnect event notification from the ADS Library in case of any network connection loss or manual network disconnect from the PLC (CX hardware) ?

or

Do we need to have our own keep alive packet transaction with the PLC?

soberschmidt commented 9 years ago

ADS do not provide a heartbeat. Your client should handle it by checking the state of PLC or Systemservice (Port 10000) and the symbolversion of your PLC to detect OnlineChanges.

Indexgroup 0xF008 Offset 0 Length 1