AdsConnection.WriteControl(StateInfo, ReadOnlyMemory<Byte>, Int32) Method

Changes the ADS status and the device status of an ADS server.


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

Syntax

C#

public void WriteControl(
StateInfo stateInfo,
ReadOnlyMemory<byte> writeBuffer,
int timeout
)

Parameters

stateInfo  StateInfo

New ADS status and device status.

writeBuffer  ReadOnlyMemory<Byte>

The write buffer.

timeout  Int32

The timeout.

Implements

IAdsStateControlTimeout.WriteControl(StateInfo, ReadOnlyMemory<Byte>, Int32)

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

See Also

Reference

AdsConnection Class WriteControl Overload TwinCAT.Ads Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026