AdsClientReadSymbolAsync Method

Read symbol as an asynchronous operation.


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

Syntax

C#

public Task<ResultValue<IAdsSymbol>> ReadSymbolAsync(
    string name,
    CancellationToken cancel
)

Parameters

name  String

The name.

cancel  CancellationToken

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

Return Value

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

Implements

IAdsSymbolicAccessReadSymbolAsync(String, CancellationToken)

Exceptions

Exception

Condition

ArgumentOutOfRangeException

name

ObjectDisposedException

ClientNotConnectedException

Reference

AdsClient Class TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026