ITcAdsRawAnyReadAnyAsync(UInt32, Type, Int32, CancellationToken) Method

Reads the value of an Anytype (Primitive type) asynchronously.


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

Syntax

C#

Task<ResultAnyValue> ReadAnyAsync(
    uint variableHandle,
    Type type,
    int[] args,
    CancellationToken cancel
)

Parameters

variableHandle  UInt32

The variable handle.

type  Type

The type as AnyType (primitive types).

args  Int32

The type arguments (AnyType)

cancel  CancellationToken

The cancellation token.

Return Value

Task ResultAnyValue
A task that represents the asynchronous 'ReadState' operation. The ResultAnyValue parameter contains the value Value and the ErrorCode of the ADS communication after execution.

Reference

ITcAdsRawAny Interface ReadAnyAsync Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026