IAdsSymbolicAccess.WriteValue.T. Method (ISymbol, T)

Writes a value to the symbol. Strings and all primitive data types(UInt32, Int32, Bool etc.) are supported. If a string is passed as parameter, the method attempts to parse the string according to the ADS data type of the symbol.

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

Syntax

C#

void WriteValue<T>(
    ISymbol symbol,
    T val
)

Parameters

symbol

Type: TwinCAT.TypeSystem.ISymbol
The symbol the value is written to.

val

Type: T
The value to write.

Type Parameters

T

The value type.

Reference

IAdsSymbolicAccess Interface

WriteValue Overload

TwinCAT.Ads Namespace

IAdsSymbolicAccess.TryWriteValue.T.(ISymbol, T)

IAdsSymbolicAccess.WriteValueAsync.T.(ISymbol, T, CancellationToken)