SymbolTryReadValue Method

Reads the Value of the IValueSymbol


Namespace: TwinCAT.Ads.TypeSystem
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public int TryReadValue(
    int timeout,
    out Object?? value
)

Parameters

timeout  Int32

The timeout in ms.

value  Object

The read value.

Return Value

Int32
The error Code..

Implements

IValueSymbolTryReadValue(Int32, Object)

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 TwinCAT.Ads.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026