AdsConnectionWriteValueT(ISymbol, T) Method

Writes a (typed) value to the symbol.


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

Syntax

C#

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

Parameters

symbol  ISymbol

The symbol the value is written to.

val  T

The value.

Type Parameters

T

The value type.

Implements

IAdsSymbolicAccessWriteValueT(ISymbol, T)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Remarks

This method automatically marshals the value from .NET objects into the TwinCAT representation if possible. The overall behaviour is described here in the interface description.

Reference

AdsConnection Class WriteValue Overload TwinCAT.Ads Namespace TryWriteValueT(ISymbol, T) WriteValueAsyncT(ISymbol, T, CancellationToken)

Beckhoff Automation GmbH & Co. KG 2001-2026