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

Reads the value from the symbol that is represented by the handle.

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

Syntax

C#

public int Read(
    uint variableHandle,
    Memory<byte> buffer
)

Parameters

variableHandle

Type: System.UInt32
The variable handle.

buffer

Type: System.Memory.Byte.
The buffer.

Return Value

Type: Int32
System.Int32.

Implements

IAdsHandle.Read(UInt32, Memory.Byte.)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Reference

AdsConnection Class

Read Overload

TwinCAT.Ads Namespace