AdsClientExtensionsReadWriteWithFallbackAsync(IAdsConnection, UInt32, UInt32, UInt32, Int32, ReadOnlyMemoryByte, FuncResultReadWriteBytes, Boolean, CancellationToken) Method
Ads Read with fallback as an asynchronous operation.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version:
7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public static Task<ResultReadWriteBytes> ReadWriteWithFallbackAsync(
this IAdsConnection connection,
uint indexGroup,
uint indexOffset,
uint fallbackOffset,
int readLength,
ReadOnlyMemory<byte> writeBuffer,
Func<ResultReadWriteBytes, bool> shouldProcessFallback,
CancellationToken cancel
)Parameters
|
connection IAdsConnection |
The connection. |
|
indexGroup UInt32 |
The index group. |
|
indexOffset UInt32 |
The index offset. |
|
fallbackOffset UInt32 |
The fallback offset. |
|
readLength Int32 |
Length of bytes to be read. |
|
writeBuffer ReadOnlyMemoryByte |
The write buffer. |
|
shouldProcessFallback FuncResultReadWriteBytes, Boolean |
The should process fallback. |
|
cancel CancellationToken |
The cancellation token. |
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 ReadWriteWithFallbackAsync Overload TwinCAT.Ads Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026