AdsClient.ReadValue Method (String, Type)

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

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

Syntax

C#

public Object ReadValue(
    string name,
    Type type
)

Parameters

name

Type: System.String
Name of the ADS symbol.

type

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

Return Value

Type: Object
Value of the symbol

Implements

IAdsSymbolicAccess.ReadValue(String, Type)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Reference

AdsClient Class

ReadValue Overload

TwinCAT.Ads Namespace