IAdsSymbolicAccess.TryReadValue.T. Method (String, T.)

Reads the value of a symbol and returns the value as object.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

AdsErrorCode TryReadValue<T>(
    string symbolPath,
    out T value
)

Parameters

symbolPath

Type: System.String
Name of the ADS symbol.

value

Type: T.
The read value of the Symbol.

Type Parameters

T

The value type.

Return Value

Type: AdsErrorCode
The AdsErrorCode.

Remarks

The parameter type must have the same binary layout as the ADS symbol.

Reference

IAdsSymbolicAccess Interface

TryReadValue Overload

TwinCAT.Ads Namespace

IAdsSymbolicAccess.ReadValue.T.(String)

IAdsSymbolicAccess.ReadValueAsync.T.(String, CancellationToken)