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

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

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 6.0.328+39e3229

Syntax

C#

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

Parameters

stateInfo

Type: TwinCAT.Ads.StateInfo
New ADS status and device status.

writeBuffer

Type: System.ReadOnlyMemory.Byte.
The write buffer.

timeout

Type: System.Int32
The timeout.

Implements

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

Exceptions

Exception

Condition

ObjectDisposedException

ClientNotConnectedException

Reference

AdsConnection Class

WriteControl Overload

TwinCAT.Ads Namespace