IAdsHandleAccess.Write Method (Int32, AdsStream)

Writes data synchronously to an ADS device.

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

Syntax

C#

void Write(
    int variableHandle,
    AdsStream dataStream
)

VB

Sub Write ( 
    variableHandle As Integer,
    dataStream As AdsStream
)

Parameters

variableHandle

Type: System.Int32
Handle of the ADS variable

dataStream

Type: TwinCAT.Ads.AdsStream
Stream that receives the data.

Exceptions

Exception

Condition

AdsErrorException

Thrown when the ADS call fails.

Reference

IAdsHandleAccess Interface

Write Overload

TwinCAT.Ads Namespace