IAccessorRawValueWriteRawAsync(ISymbol, ReadOnlyMemoryByte, IDictionaryISymbol, ReadOnlyMemoryByte, CancellationToken) Method
Writes the symbol value asynchronously from source memory location to the ADS Device.
Namespace: TwinCAT.ValueAccess
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version:
7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
Task<ResultWriteAccess> WriteRawAsync(
ISymbol symbolInstance,
ReadOnlyMemory<byte> value,
IDictionary<ISymbol, ReadOnlyMemory<byte>>? staticValue,
CancellationToken cancel
)Parameters
|
symbolInstance ISymbol |
The symbol instance. |
|
value ReadOnlyMemoryByte |
The write buffer containing the data to write. |
|
staticValue IDictionaryISymbol, ReadOnlyMemoryByte |
The static (raw) value. |
|
cancel CancellationToken |
The cancellation token. |
Return Value
Task
ResultWriteAccess
A task that represents the asynchronous 'WriteRaw'
operation. The ResultWriteAccess
result contains the the ErrorCode after
execution.
Remarks
This method supports static parts of the symbol instance.
Reference
IAccessorRawValue Interface WriteRawAsync Overload TwinCAT.ValueAccess Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026