AdsConnection.TryWriteControl Method (StateInfo)

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

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public AdsErrorCode TryWriteControl(
    StateInfo stateInfo
)

VB

Public Function TryWriteControl ( 
    stateInfo As StateInfo
) As AdsErrorCode

Parameters

stateInfo

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

Return Value

Type: AdsErrorCode
AdsErrorCode.

Exceptions

Exception

Condition

ObjectDisposedException

Reference

AdsConnection Class

TryWriteControl Overload

TwinCAT.Ads Namespace