Symbol.WriteValue Method (Object, Int32)

Writes the Value of the IValueSymbol

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

Syntax

C#

public void WriteValue(
    Object value,
    int timeout
)

VB

Public Sub WriteValue ( 
    value As Object,
    timeout As Integer
)

Parameters

value

Type: System.Object
The value.

timeout

Type: System.Int32
The timeout in ms.

Implements

IValueSymbol.WriteValue(Object, Int32)

Remarks

Calling on primitive types, a call of this method will directly write this Value. On complex types (structs and arrays) it depends on the ISymbolLoader settings what will happen. In non dynamic modes: Only byte Arrays (of correct size) can be written) in dynamic mode: A Value that represents the value will be accepted also. A negative timeout indicates that the Default Timeout for the communication will be used. 0 means timeout is switched off.

Reference

Symbol Class

WriteValue Overload

TwinCAT.Ads.TypeSystem Namespace