AdsClientReadValueAsyncTValue(ISymbol, CancellationToken) Method

Read value as an asynchronous operation.


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

Syntax

C#

public Task<ResultValue<TValue>> ReadValueAsync<TValue>(
    ISymbol symbol,
    CancellationToken cancel
)

Parameters

symbol  ISymbol

The symbol.

cancel  CancellationToken

The cancellation token that can be used by other objects or threads to receive notice of cancellation.

Type Parameters

TValue

The type of the t value.

Return Value

Task ResultValueTValue
A Task<ResultValue`1> representing the asynchronous operation.

Reference

AdsClient Class ReadValueAsync Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026