AdsServerConnectServerAndWaitAsync Method

Registers the AdsServer at the router asynchronously.


Namespace: TwinCAT.Ads.Server
Assembly: TwinCAT.Ads.Server (in TwinCAT.Ads.Server.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public Task<AdsErrorCode> ConnectServerAndWaitAsync(
    CancellationToken cancel
)

Parameters

cancel  CancellationToken

 

Return Value

Task AdsErrorCode
Returns a task object that represents the ConnectServerAndWaitAsync(CancellationToken) operation which returns an AdsErrorCode" as result..

Remarks

The connection is hold until a cancel is requested, that means this method will wait until disconnect.

Reference

AdsServer Class TwinCAT.Ads.Server Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026