AdsConnectionReadAsResult(UInt32, Int32) Method

Reads the value synchronously data of the symbol, that is represented by the variable handle./>.


Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public ResultReadBytes ReadAsResult(
    uint variableHandle,
    int readLength
)

Parameters

variableHandle  UInt32

The variable handle.

readLength  Int32

Length of the read.

Return Value

ResultReadBytes
The read result.

Implements

IAdsHandleReadAsResult(UInt32, Int32)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Reference

AdsConnection Class ReadAsResult Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026