IValueSymbol.ReadValueAsync Method
Reads the Value of the IValueSymbol asynchronously.
Namespace: TwinCAT.TypeSystem
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
Task<ResultReadValueAccess> ReadValueAsync(
CancellationToken cancel
)Parameters
|
cancel CancellationToken |
The cancellation token. |
Return Value
Task<ResultReadValueAccess>
A tasks that represents the asynchronous 'ReadValue' operation. The read result is stored in the ResultReadValueAccess return value and contains
the Value and the ErrorCode.
Remarks
Calling on primitive types, a call of this method will return the primitive value. On complex types (structures and arrays) it depends on the ISymbolLoader settings what will happen. In non dynamic modes: the raw byte Array will be returned, in dynamic mode: A Value will be created on the fly.
See Also
Reference
IValueSymbol Interface TwinCAT.TypeSystem Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026