TcAdsClient.WriteControl 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 void WriteControl(
    StateInfo stateInfo
)

VB

Public Sub WriteControl ( 
    stateInfo As StateInfo
)

Parameters

stateInfo

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

Exceptions

Exception

Condition

AdsErrorException

Thrown when the ADS call fails.

Reference

TcAdsClient Class

WriteControl Overload

TwinCAT.Ads Namespace