TcAdsClient.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#

public void Write(
    int variableHandle,
    AdsStream dataStream
)

VB

Public 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.

Implements

IAdsHandleAccess.Write(Int32, AdsStream)

Exceptions

Exception

Condition

AdsErrorException

Thrown when the ADS call fails.

Reference

TcAdsClient Class

Write Overload

TwinCAT.Ads Namespace