IAdsNotifications.AddDeviceNotification Method (UInt32, UInt32, AdsStream, Int32, Int32, AdsTransMode, Int32, Int32, Object)
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 AddDeviceNotification(
uint indexGroup,
uint indexOffset,
AdsStream dataStream,
int offset,
int length,
AdsTransMode transMode,
int cycleTime,
int maxDelay,
Object userData
)
VB
Function AddDeviceNotification (
indexGroup As UInteger,
indexOffset As UInteger,
dataStream As AdsStream,
offset As Integer,
length As Integer,
transMode As AdsTransMode,
cycleTime As Integer,
maxDelay As Integer,
userData As Object
) As Integer
Parameters
indexGroup |
Type: System.UInt32 |
indexOffset |
Type: System.UInt32 |
dataStream |
Type: TwinCAT.Ads.AdsStream |
offset |
Type: System.Int32 |
length |
Type: System.Int32 |
transMode |
Type: TwinCAT.Ads.AdsTransMode |
cycleTime |
Type: System.Int32 |
maxDelay |
Type: System.Int32 |
userData |
Type: System.Object |
Return Value
Type: Int32
The handle of the notification.