AdsConnectionTryAddDeviceNotificationEx(String, NotificationSettings, Object, Type, Int32, UInt32) Method

Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event.


Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public AdsErrorCode TryAddDeviceNotificationEx(
    string symbolPath,
    NotificationSettings settings,
    Object? userData,
    Type type,
    int[]? args,
    out uint handle
)

Parameters

symbolPath  String

The symbol path..

settings  NotificationSettings

The settings.

userData  Object

This object can be used to store user specific data.

type  Type

Type of the object stored in the event argument.

args  Int32

Additional arguments.

handle  UInt32

The handle.

Return Value

AdsErrorCode
The handle of the notification.

Implements

IAdsNotificationsTryAddDeviceNotificationEx(String, NotificationSettings, Object, Type, Int32, UInt32)

Exceptions

Exception

Condition

ObjectDisposedException

Reference

AdsConnection Class TryAddDeviceNotificationEx Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026