AdsConnection.WriteControlAsync(AdsState, UInt16, ReadOnlyMemory<Byte>, CancellationToken) Method
Write control as an asynchronous operation.
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> writeBuffer,
CancellationToken cancel
)Parameters
|
adsState AdsState |
State of the ads. |
|
deviceState UInt16 |
State of the device. |
|
writeBuffer ReadOnlyMemory<Byte> |
The write buffer. |
|
cancel CancellationToken |
The cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Implements
IAdsStateControl.WriteControlAsync(AdsState, UInt16, ReadOnlyMemory<Byte>, CancellationToken)
See Also
Reference
AdsConnection Class WriteControlAsync Overload TwinCAT.Ads Namespace
Beckhoff Automation GmbH & Co. KG 2001-2026