AdsClient.WriteAsync(UInt32, UInt32, ReadOnlyMemory<Byte>, 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 indexGroup,
uint indexOffset,
ReadOnlyMemory<byte> writeBuffer,
CancellationToken cancel
)

Parameters

indexGroup  UInt32

The index group.

indexOffset  UInt32

The index offset.

writeBuffer  ReadOnlyMemory<Byte>

The write buffer.

cancel  CancellationToken

The cancellation token.

Return Value

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

Implements

IAdsReadWrite.WriteAsync(UInt32, UInt32, ReadOnlyMemory<Byte>, CancellationToken)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

See Also

Reference

AdsClient Class WriteAsync Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026