AdsClient.TryReadSymbol 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 AdsErrorCode TryReadSymbol(
    string name,
    out IAdsSymbol?? symbol
)

Parameters

name

Type: System.String
Name of the symbol.

symbol

Type: TwinCAT.Ads.TypeSystem.IAdsSymbol.
The symbol.

Return Value

Type: AdsErrorCode
A IAdsSymbol containing the requested symbol information or null if symbol could not be found.

Implements

IAdsSymbolicAccess.TryReadSymbol(String, IAdsSymbol.)

Reference

AdsClient Class

TwinCAT.Ads Namespace