IAdsStateProvider.ReadStateAsync Method
Reads the ADS status and the device status from an ADS server.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads.Abstractions (in
TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229
Syntax
C#
Task<ResultReadDeviceState> ReadStateAsync(
CancellationToken cancel
)
Parameters
cancel |
Type: System.Threading.CancellationToken |
Return Value
Type: Task.ResultReadDeviceState.
A task that represents the asynchronous 'ReadState'
operation. The ResultReadDeviceState
parameter contains the state (State) as long as
the ErrorCode of the ADS
communication after execution.
Remarks
Not all ADS Servers support the State ADS Request