AdsClient.WriteSymbolAsync Method

Writes the passed object value to the specified ADS symbol.The parameter type must have the same layout as the ADS symbol.


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

Syntax

C#

public Task<ResultWrite> WriteSymbolAsync(
string name,
Object value,
CancellationToken cancel
)

Parameters

name  String

Name of the ADS symbol.

value  Object

Object holding the value to be written to the ADS symbol

cancel  CancellationToken

The cancel token.

Return Value

Task<ResultWrite>
A task that represents the asynchronous 'WriteSymbol' operation. The ResultWrite parameter contains the ErrorCode after execution.

See Also

Reference

AdsClient Class TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026