IAdsReadWrite.WriteAsync Method

Writes the data / Value asynchronously into the specified writeBuffer.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

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

Parameters

indexGroup

Type: System.UInt32
The index group.

indexOffset

Type: System.UInt32
The index offset.

writeBuffer

Type: System.ReadOnlyMemory.Byte.
The write buffer.

cancel

Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: Task.ResultWrite.
A task that represents the asynchronous 'Write' operation. The ResultWrite parameter contains the ErrorCode after execution.

Reference

IAdsReadWrite Interface

TwinCAT.Ads Namespace