Symbol.ReadValue Method (Int32)

Reads the Value of the IValueSymbol

Namespace:  TwinCAT.Ads.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public Object ReadValue(
    int timeout
)

VB

Public Function ReadValue ( 
    timeout As Integer
) As Object

Parameters

timeout

Type: System.Int32
The timeout in ms.

Field Value

Type: Object
The value.

Return Value

Type: Object
System.Object.

Implements

IValueSymbol.ReadValue(Int32)

Remarks

Calling on primitive types, a call of this method will return the primitive value. On complex types (structures and arrays) it depends on the ISymbolLoader settings what will happen. In non dynamic modes: the raw byte Array will be returned, in dynamic mode: A Value will be created on the fly. A negative timeout indicates that the Default Timeout for the communication will be used. 0 means timeout is switched off.

Reference

Symbol Class

ReadValue Overload

TwinCAT.Ads.TypeSystem Namespace