IAdsSymbolicAccess.ReadValue.T. Method (String)

Reads the value of a symbol and returns the value. The parameter type must have the same binary layout as the ADS symbol.

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

Syntax

C#

T ReadValue<T>(
    string symbolPath
)

Parameters

symbolPath

Type: System.String
Name of the ADS symbol.

Type Parameters

T

The value type

Return Value

Type: T
Value of the symbol

Reference

IAdsSymbolicAccess Interface

ReadValue Overload

TwinCAT.Ads Namespace

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

IAdsSymbolicAccess.ReadValueAsync.T.(String, CancellationToken)