AdsClient.TryRead Method (UInt32, UInt32, Memory.Byte., Int32.)

Reads value data from the specified IndexGroup/IndexOffset to the specified memory location.

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

Syntax

C#

public AdsErrorCode TryRead(
    uint indexGroup,
    uint indexOffset,
    Memory<byte> memory,
    out int readBytes
)

Parameters

indexGroup

Type: System.UInt32
The index group.

indexOffset

Type: System.UInt32
The index offset.

memory

Type: System.Memory.Byte.
The memory location

readBytes

Type: System.Int32.
The read bytes.

Return Value

Type: AdsErrorCode
TwinCAT.Ads.AdsErrorCode.

Implements

IAdsReadWrite.TryRead(UInt32, UInt32, Memory.Byte., Int32.)

Reference

AdsClient Class

TryRead Overload

TwinCAT.Ads Namespace