TcAdsClient.Write Method (Int32, 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 indexGroup,
    int indexOffset,
    AdsStream dataStream
)

VB

Public Sub Write ( 
    indexGroup As Integer,
    indexOffset As Integer,
    dataStream As AdsStream
)

Parameters

indexGroup

Type: System.Int32
Contains the index group number of the requested ADS service.

indexOffset

Type: System.Int32
Contains the index offset number of the requested ADS service.

dataStream

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

Exceptions

Exception

Condition

AdsErrorException

Thrown when the ADS call fails.

Reference

TcAdsClient Class

Write Overload

TwinCAT.Ads Namespace