AdsClientReadAsResult(UInt32, Int32) Method

Reads the value synchronously />.


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 ADS error code.

Implements

IAdsHandleReadAsResult(UInt32, Int32)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Reference

AdsClient Class ReadAsResult Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026