AdsClient.ReadDeviceInfoAsync Method

Reads the identification and version number of an ADS server.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

public Task<ResultDeviceInfo> ReadDeviceInfoAsync(
    CancellationToken cancel
)

Parameters

cancel

Type: System.Threading.CancellationToken
The cancellation token.

Return Value

Type: 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.

Implements

IAdsConnection.ReadDeviceInfoAsync(CancellationToken)

Reference

AdsClient Class

TwinCAT.Ads Namespace