TcAdsClient.TryAddDeviceNotification 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: 4.3.0.0
Syntax
C#
public AdsErrorCode TryAddDeviceNotification(
string variableName,
AdsStream dataStream,
int offset,
int length,
NotificationSettings settings,
Object userData,
out uint handle
)
VB
Public Function TryAddDeviceNotification (
variableName As String,
dataStream As AdsStream,
offset As Integer,
length As Integer,
settings As NotificationSettings,
userData As Object,
<OutAttribute> ByRef handle As UInteger
) As AdsErrorCode
Parameters
variableName |
Type: System.String |
dataStream |
Type: TwinCAT.Ads.AdsStream |
offset |
Type: System.Int32 |
length |
Type: System.Int32 |
settings |
Type: TwinCAT.Ads.NotificationSettings |
userData |
Type: System.Object |
handle |
Type: System.UInt32. |