AdsConnectionReadDeviceInfoAsync Method
Reads the identification and version number of an ADS server.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll)
Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public Task<ResultDeviceInfo> ReadDeviceInfoAsync(
CancellationToken cancel
)Parameters
|
cancel CancellationToken |
The cancellation token. |
Return Value
Task
ResultDeviceInfo
A task that represents the asynchronous 'ReadDeviceState'
operation. The ResultDeviceInfo
parameter contains the value DeviceInfo and the
ErrorCode of
the ADS communication after execution.