AdsClientTryReadSymbol Method

Tries to read the symbol information object specified by the instance path.


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

Syntax

C#

public AdsErrorCode TryReadSymbol(
    string instancePath,
    out IAdsSymbol?? symbol
)

Parameters

instancePath  String

The instance path of the symbol

symbol  IAdsSymbol

The symbol.

Return Value

AdsErrorCode
An IAdsSymbol containing the requested symbol information or null if symbol could not be found.

Implements

IAdsSymbolicAccessTryReadSymbol(String, IAdsSymbol)

Exceptions

Exception

Condition

ArgumentOutOfRangeException

name

ObjectDisposedException

ClientNotConnectedException

Reference

AdsClient Class TwinCAT.Ads Namespace ReadSymbol(String)

Beckhoff Automation GmbH & Co. KG 2001-2026