AdsClientExtensions.RepeatedReadAsync Method (IAdsConnection, UInt32, UInt32, Memory.Byte., Int32, TimeSpan, CancellationToken)

Repeated AdsRead as an asynchronous operation.

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

Syntax

C#

public static Task<ResultRead> RepeatedReadAsync(
    this IAdsConnection connection,
    uint indexGroup,
    uint indexOffset,
    Memory<byte> buffer,
    int repeat,
    TimeSpan waitTime,
    CancellationToken cancel
)

Parameters

connection

Type: TwinCAT.Ads.IAdsConnection
The connection.

indexGroup

Type: System.UInt32
The index group.

indexOffset

Type: System.UInt32
The index offset.

buffer

Type: System.Memory.Byte.
The buffer.

repeat

Type: System.Int32
The repeat.

waitTime

Type: System.TimeSpan
The wait time.

cancel

Type: System.Threading.CancellationToken
The cancel.

Return Value

Type: Task.ResultRead.
Task<ResultRead>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAdsConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Reference

AdsClientExtensions Class

RepeatedReadAsync Overload

TwinCAT.Ads Namespace