AdsClient.ReadSymbol 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 IAdsSymbol ReadSymbol(
    string name
)

Parameters

name

Type: System.String
Name of the symbol.

Return Value

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

Implements

IAdsSymbolicAccess.ReadSymbol(String)

Exceptions

Exception

Condition

AdsErrorException

Thrown when the ADS call fails.

Reference

AdsClient Class

TwinCAT.Ads Namespace