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

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

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

Syntax

C#

public AdsErrorCode TryReadValue<T>(
    string name,
    out T value
)

Parameters

name

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.

Implements

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

Remarks

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

Reference

AdsConnection Class

TryReadValue Overload

TwinCAT.Ads Namespace