IAdsHandleWriteAsync Method

Writes the value data asynchronously that is represented by the writeBuffer to the symbol specified by the variableHandle.


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

Syntax

C#

Task<ResultWrite> WriteAsync(
    uint variableHandle,
    ReadOnlyMemory<byte> writeBuffer,
    CancellationToken cancel
)

Parameters

variableHandle  UInt32

The variable handle.

writeBuffer  ReadOnlyMemoryByte

The write buffer/value.

cancel  CancellationToken

The cancellation token.

Return Value

Task ResultWrite
A task that represents the asynchronous write operation. The ResultWrite parameter contains the ErrorCode after execution.

Reference

IAdsHandle Interface TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026