AdsConnection.WriteValueAsync<T>(ISymbol, T, CancellationToken) Method

Write value as an asynchronous operation.


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

Syntax

C#

public Task<ResultWrite> WriteValueAsync<T>(
ISymbol symbol,
T val,
CancellationToken cancel
)

Parameters

symbol  ISymbol

The symbol.

val  T

The value.

cancel  CancellationToken

The cancellation token that can be used by other objects or threads to receive notice of cancellation.

Type Parameters

T

Return Value

Task<ResultWrite>
A Task<ResultWrite> representing the asynchronous operation.

Implements

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

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

See Also

Reference

AdsConnection Class WriteValueAsync Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026