AdsConnection.Read Method (UInt32, UInt32, Memory.Byte., Int32)

Reads data synchronously from an ADS device and writes it to the given stream.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public int Read(
    uint indexGroup,
    uint indexOffset,
    Memory<byte> readBuffer,
    int timeout
)

Parameters

indexGroup

Type: System.UInt32
The index group number of the requested ADS service.

indexOffset

Type: System.UInt32
The index offset number of the requested ADS service.

readBuffer

Type: System.Memory.Byte.
The read buffer.

timeout

Type: System.Int32
The timeout.

Return Value

Type: Int32
Number of successfully returned data bytes.

Implements

IAdsReadWriteTimeoutAccess.Read(UInt32, UInt32, Memory.Byte., Int32)

Reference

AdsConnection Class

Read Overload

TwinCAT.Ads Namespace