AdsConnection.WriteAsync Method (UInt32, UInt32, CancellationToken)

Triggers a write call at the specified IndexGroup/IndexOffset asynchronously.

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

Syntax

C#

public Task<ResultWrite> WriteAsync(
    uint indexGroup,
    uint indexOffset,
    CancellationToken cancel
)

Parameters

indexGroup

Type: System.UInt32
The index group.

indexOffset

Type: System.UInt32
The index offset.

cancel

Type: System.Threading.CancellationToken
The cancellation token.

Return Value

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

Reference

AdsConnection Class

WriteAsync Overload

TwinCAT.Ads Namespace