IAdsSymbolicAccessTryReadSymbol Method

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


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

Syntax

C#

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

Parameters

instancePath  String

Name 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.

Reference

IAdsSymbolicAccess Interface TwinCAT.Ads Namespace ReadSymbol(String)

Beckhoff Automation GmbH & Co. KG 2001-2026