AdsConnectionTryReadSymbol 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 symbolPath,
    out IAdsSymbol?? symbol
)

Parameters

symbolPath  String

The symbol path.

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

ObjectDisposedException

ClientNotConnectedException

Reference

AdsConnection Class TwinCAT.Ads Namespace ReadSymbol(String)

Beckhoff Automation GmbH & Co. KG 2001-2026