ITcAdsRaw.ReadAsync Method
Reads the value of the specified symbol asynchronously.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
Task<ResultRead> ReadAsync(
uint variableHandle,
Memory<byte> readBuffer,
CancellationToken cancel
)Parameters
|
variableHandle UInt32 |
The variable/symbol handle. |
|
The read buffer. | |
|
cancel CancellationToken |
The cancellation token. |
Return Value
Task<ResultRead>
A task that represents the asynchronous 'ReadState' operation. The ResultRead parameter contains the value
ReadBytes and the ErrorCode of the ADS communication after execution.