IAdsNotifications.AddDeviceNotificationEx Method (String, AdsTransMode, Int32, Int32, Object, Type)
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: 4.3.0.0
Syntax
C#
int AddDeviceNotificationEx(
string variableName,
AdsTransMode transMode,
int cycleTime,
int maxDelay,
Object userData,
Type type
)
VB
Function AddDeviceNotificationEx (
variableName As String,
transMode As AdsTransMode,
cycleTime As Integer,
maxDelay As Integer,
userData As Object,
type As Type
) As Integer
Parameters
variableName |
Type: System.String |
transMode |
Type: TwinCAT.Ads.AdsTransMode |
cycleTime |
Type: System.Int32 |
maxDelay |
Type: System.Int32 |
userData |
Type: System.Object |
type |
Type: System.Type |
Return Value
Type: Int32
The handle of the notification.