AdsConnection.AddDeviceNotification Method (String, AdsStream, Int32, Int32, AdsTransMode, Int32, Int32, Object)

Adds the device notification.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public int AddDeviceNotification(
    string variableName,
    AdsStream dataStream,
    int offset,
    int length,
    AdsTransMode transMode,
    int cycleTime,
    int maxDelay,
    Object userData
)

VB

Public Function AddDeviceNotification ( 
    variableName As String,
    dataStream As AdsStream,
    offset As Integer,
    length As Integer,
    transMode As AdsTransMode,
    cycleTime As Integer,
    maxDelay As Integer,
    userData As Object
) As Integer

Parameters

variableName

Type: System.String
Name of the variable.

dataStream

Type: TwinCAT.Ads.AdsStream
The data stream.

offset

Type: System.Int32
The offset.

length

Type: System.Int32
The length.

transMode

Type: TwinCAT.Ads.AdsTransMode
The trans mode.

cycleTime

Type: System.Int32
The cycle time.

maxDelay

Type: System.Int32
The maximum delay.

userData

Type: System.Object
The user data.

Return Value

Type: Int32
System.Int32.

Implements

IAdsNotifications.AddDeviceNotification(String, AdsStream, Int32, Int32, AdsTransMode, Int32, Int32, Object)

Reference

AdsConnection Class

AddDeviceNotification Overload

TwinCAT.Ads Namespace