TcAdsClient.AddDeviceNotificationEx Method (UInt32, UInt32, AdsTransMode, TimeSpan, TimeSpan, Object, Type, .Int32.)
Connects a variable to the ADS client. The ADS client will be notified by the AdsNotification event. If type is a string type, the first element of the parameter args specifies the number of characters of the string. If type is an array type, the number of elements for each dimension has to be specified in the parameter args. At the moment only 1 dimensional Arrays are supported.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 4.3.0.0
Syntax
C#
public int AddDeviceNotificationEx(
uint indexGroup,
uint indexOffset,
AdsTransMode transMode,
TimeSpan cycleTime,
TimeSpan maxDelay,
Object userData,
Type type,
int[] args
)
VB
Public Function AddDeviceNotificationEx (
indexGroup As UInteger,
indexOffset As UInteger,
transMode As AdsTransMode,
cycleTime As TimeSpan,
maxDelay As TimeSpan,
userData As Object,
type As Type,
args As Integer()
) As Integer
Parameters
indexGroup | Type: System.UInt32 |
indexOffset | Type: System.UInt32 |
transMode | Type: TwinCAT.Ads.AdsTransMode |
cycleTime | Type: System.TimeSpan |
maxDelay | Type: System.TimeSpan |
userData | Type: System.Object |
type | Type: System.Type |
args | Type: .System.Int32. |
Return Value
Type: Int32
The handle of the notification.