AdsConnection.TryWriteControl Method (StateInfo, AdsStream, Int32, Int32, Int32)
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,
AdsStream dataStream,
int offset,
int length,
int timeout
)
VB
Public Function TryWriteControl (
stateInfo As StateInfo,
dataStream As AdsStream,
offset As Integer,
length As Integer,
timeout As Integer
) As AdsErrorCode
Parameters
| stateInfo | Type: TwinCAT.Ads.StateInfo | 
| dataStream | Type: TwinCAT.Ads.AdsStream | 
| offset | Type: System.Int32 | 
| length | Type: System.Int32 | 
| timeout | Type: System.Int32 | 
Exceptions
| Exception | Condition | 
|---|---|