AdsClientExtensions.RepeatedWrite Method
Repeated AdsWrie.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public static ResultWrite RepeatedWrite(
this IAdsConnection connection,
uint indexGroup,
uint indexOffset,
ReadOnlyMemory<byte> writeBuffer,
int retries,
TimeSpan waitTime,
Func<ResultWrite, bool> canRetry
)Parameters
|
connection IAdsConnection |
The connection. |
|
indexGroup UInt32 |
The index group. |
|
indexOffset UInt32 |
The index offset. |
|
writeBuffer ReadOnlyMemory<Byte> |
The write buffer. |
|
retries Int32 |
The number of retries (0 is one ADS roundtrip without retry). |
|
waitTime TimeSpan |
The wait time. |
|
canRetry Func<ResultWrite, Boolean> |
The should repeat. |
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).
See Also
Reference
AdsClientExtensions Class TwinCAT.Ads Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026