AdsConnection.WriteControl Method (StateInfo, AdsStream, 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 void WriteControl(
    StateInfo stateInfo,
    AdsStream dataStream,
    int offset,
    int length
)

VB

Public Sub WriteControl ( 
    stateInfo As StateInfo,
    dataStream As AdsStream,
    offset As Integer,
    length As Integer
)

Parameters

stateInfo

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

dataStream

Type: TwinCAT.Ads.AdsStream
Stream that contains the data that should be sent to the ADS device

offset

Type: System.Int32
Offset of the data in the stream.

length

Type: System.Int32
Length of the data in the stream.

Reference

AdsConnection Class

WriteControl Overload

TwinCAT.Ads Namespace