AdsConnection.TryWriteControl Method (StateInfo, 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 AdsErrorCode TryWriteControl(
    StateInfo stateInfo,
    int timeout
)

Parameters

stateInfo

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

timeout

Type: System.Int32
The timeout.

Return Value

Type: AdsErrorCode
AdsErrorCode.

Implements

IAdsStateControlTimeout.TryWriteControl(StateInfo, Int32)

Exceptions

Exception

Condition

ObjectDisposedException

Reference

AdsConnection Class

TryWriteControl Overload

TwinCAT.Ads Namespace