ITcAdsRawAnyReadAnyAsync(UInt32, 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 indexGroup,
    uint indexOffset,
    Type type,
    int[] args,
    CancellationToken cancel
)

Parameters

indexGroup  UInt32

The index group.

indexOffset  UInt32

The index offset.

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.

Remarks

The rules for marshalling the value are documented here in the interace description.

Reference

ITcAdsRawAny Interface ReadAnyAsync Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026