AdsClient.WriteControlAsync(AdsState, UInt16, ReadOnlyMemory<Byte>, CancellationToken) Method
Writes the state asynchronously
Namespace: TwinCAT.Ads
Assembly: TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public Task<ResultAds> WriteControlAsync(
AdsState adsState,
ushort deviceState,
ReadOnlyMemory<byte> writeData,
CancellationToken cancel
)Parameters
|
adsState AdsState |
State of the ads. |
|
deviceState UInt16 |
State of the device. |
|
writeData ReadOnlyMemory<Byte> |
The write buffer. |
|
cancel CancellationToken |
The cancellation token. |
Return Value
Task<ResultAds>
A task that represents the asynchronous 'ReadState' operation. The ResultAds parameter contains the
ErrorCode of the ADS communication after execution.
Implements
IAdsStateControl.WriteControlAsync(AdsState, UInt16, ReadOnlyMemory<Byte>, CancellationToken)
ITcAdsRaw.WriteControlAsync(AdsState, UInt16, ReadOnlyMemory<Byte>, CancellationToken)
See Also
Reference
AdsClient Class WriteControlAsync Overload TwinCAT.Ads Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026