IAdsNotifications.AdsNotificationError Event

Occurs when a exception has occurred during notification management.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

event EventHandler<AdsNotificationErrorEventArgs> AdsNotificationError

Value

Type: System.EventHandler.AdsNotificationErrorEventArgs.

Remarks

The occurrence of this event can have two different reasons:

  1. Indicates an internal error occurred during Notification management.
  2. The registered notification becomes invalid on the server, eg. after a PLC Download / Online Change. If the ADS Server detects that the (still registered) Notification Sender is getting invalid, it sends an error notification so that the client will be informed about detached notifications. The event arguments contains the 'AdsInvalidNotificationException' which describes the invalid notification handle by its 'AdsInvalidNotificationException.Handle' property.

Reference

IAdsNotifications Interface

TwinCAT.Ads Namespace

IAdsNotifications.AdsNotification

IAdsNotifications.AdsNotificationEx