IAdsReadWriteTimeoutAccess.Read Method

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

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

Syntax

C#

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.

Reference

IAdsReadWriteTimeoutAccess Interface

TwinCAT.Ads Namespace