AdsConnection.WriteControlAsync(AdsState, UInt16, CancellationToken) Method
Changes the ADS status and device status of the ADS server asynchronously.
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public Task<ResultAds> WriteControlAsync(
AdsState state,
ushort deviceState,
CancellationToken cancel
)Parameters
|
state AdsState |
The ADS state. |
|
deviceState UInt16 |
The device state. |
|
cancel CancellationToken |
The cancellation token. |
Return Value
Task<ResultAds>
A task that represents the asynchronous 'WriteControl' operation. The ResultAds parameter contains the state
the ErrorCode of the ADS communication after execution.
See Also
Reference
AdsConnection Class WriteControlAsync Overload TwinCAT.Ads Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026