TcAdsClient.ReadSymbol Method (String, Type, Boolean)

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: 4.3.0.0

Syntax

C#

public Object ReadSymbol(
    string name,
    Type type,
    bool reloadSymbolInfo
)

VB

Public Function ReadSymbol ( 
    name As String,
    type As Type,
    reloadSymbolInfo As Boolean
) As Object

Parameters

name

Type: System.String
Name of the ADS symbol.

type

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

reloadSymbolInfo

Type: System.Boolean
If reload is true previously stored symbol information is cleared. As a consequence the symbol information must be obtained from the ADS server again.

Return Value

Type: Object
Value of the symbol

Reference

TcAdsClient Class

ReadSymbol Overload

TwinCAT.Ads Namespace