IAdsStateControl.TryWriteControl Method (StateInfo)

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

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

Syntax

C#

AdsErrorCode TryWriteControl(
    StateInfo stateInfo
)

Parameters

stateInfo

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

Return Value

Type: AdsErrorCode
AdsErrorCode.

Reference

IAdsStateControl Interface

TryWriteControl Overload

TwinCAT.Ads Namespace