AdsClientWriteAsync(UInt32, ReadOnlyMemoryByte, CancellationToken) Method

Write as an asynchronous operation.


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

Syntax

C#

public 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<ResultWrite> representing the asynchronous operation.

Implements

IAdsHandleWriteAsync(UInt32, ReadOnlyMemoryByte, CancellationToken)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Reference

AdsClient Class WriteAsync Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026