IAdsSymbolicAccess.ReadValue Method (String, Type)

Reads the value of a symbol and returns the value as object. 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#

Object ReadValue(
    string symbolPath,
    Type type
)

Parameters

symbolPath

Type: System.String
Symbol Path of the ADS symbol.

type

Type: System.Type
Managed type of the ADS symbol.

Return Value

Type: Object
Value of the symbol

Reference

IAdsSymbolicAccess Interface

ReadValue Overload

TwinCAT.Ads Namespace

IAdsSymbolicAccess.TryReadValue(String, Type, Object.)

IAdsSymbolicAccess.ReadValueAsync(String, Type, CancellationToken)