AdsClient.TryWriteControl Method (StateInfo, ReadOnlyMemory.Byte.)

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 AdsErrorCode TryWriteControl(
    StateInfo stateInfo,
    ReadOnlyMemory<byte> writeBuffer
)

Parameters

stateInfo

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

writeBuffer

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

Return Value

Type: AdsErrorCode
AdsErrorCode.

Implements

IAdsStateControl.TryWriteControl(StateInfo, ReadOnlyMemory.Byte.)

Reference

AdsClient Class

TryWriteControl Overload

TwinCAT.Ads Namespace