IAccessorRawValue.ReadRawAsync Method

Read a Symbol value asynchronously as bytes .

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

Syntax

C#

Task<ResultReadRawAccess> ReadRawAsync(
    ISymbol symbolInstance,
    Memory<byte> readBuffer,
    CancellationToken cancel
)

Parameters

symbolInstance

Type: TwinCAT.TypeSystem.ISymbol
The symbol instance.

readBuffer

Type: System.Memory.Byte.
Read buffer where to read the value.

cancel

Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: Task.ResultReadRawAccess.
A task that represents the asynchronous 'ReadRaw' operation. The ResultReadRawAccess result contains the (Value) and the ErrorCode after execution.

Reference

IAccessorRawValue Interface

TwinCAT.ValueAccess Namespace