AdsClient.AdsNotificationError Event

Occurs when a exception has occurred during notification management.

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

Syntax

C#

public event EventHandler<AdsNotificationErrorEventArgs> AdsNotificationError

Value

Type: System.EventHandler.AdsNotificationErrorEventArgs.

Implements

IAdsNotifications.AdsNotificationError

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 Handle property.

Reference

AdsClient Class

TwinCAT.Ads Namespace

TwinCAT.Ads.AdsInvalidNotificationException

AdsClient.AdsNotification

AdsClient.AdsNotificationEx