AdsConnection.WriteAsync Method (UInt32, UInt32, ReadOnlyMemory.Byte., CancellationToken)
Writes the data / Value asynchronously into the specified writeBuffer.
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,
ReadOnlyMemory<byte> writeBuffer,
CancellationToken cancel
)
Parameters
indexGroup |
Type: System.UInt32 |
indexOffset |
Type: System.UInt32 |
writeBuffer |
Type: System.ReadOnlyMemory.Byte. |
cancel |
Type: System.Threading.CancellationToken |
Return Value
Type: Task.ResultWrite.
A task that represents the asynchronous 'Write' operation.
The ResultWrite
parameter contains the ErrorCode after
execution.