AdsClient.ReadSymbolAsync Method

Call this method to obtain information about the individual symbols (variables) in ADS devices.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

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

Parameters

name

Type: System.String
Name of the symbol.

cancel

Type: System.Threading.CancellationToken
The cancel token.

Return Value

Type: Task.ResultValue.IAdsSymbol..
A task that represents the asynchronous 'ReadSymbolInfo' operation. The ResultValue.TValue. parameter contains the read value (Value) and the ErrorCode after execution.

Implements

IAdsSymbolicAccess.ReadSymbolAsync(String, CancellationToken)

Reference

AdsClient Class

TwinCAT.Ads Namespace