IAdsSymbolicAccessReadValueAsync(ISymbol, CancellationToken) Method
Reads the value of a symbol as an asynchronous operation and returns the value as an (boxed) object.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version:
7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
Task<ResultAnyValue> ReadValueAsync(
ISymbol symbol,
CancellationToken cancel
)Parameters
|
symbol ISymbol |
The symbol that should be read. |
|
cancel CancellationToken |
The cancel token. |
Return Value
Task
ResultAnyValue
A task that represents the asynchronous read operation. The
ResultAnyValue
parameter contains the read value (Value) and the
ErrorCode
after execution.
Remarks
This method automatically marshals the read values to appropriate .NET objects if possible. The overall behaviour is described here in the interface description.
Reference
IAdsSymbolicAccess Interface ReadValueAsync Overload TwinCAT.Ads Namespace ReadValue(ISymbol) ReadValue(ISymbol) TryReadValue(ISymbol, Object)
Beckhoff Automation GmbH & Co. KG 2001-2026