ITcAdsServiceSimplex.WriteControl2

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

 void WriteControl2 ( 
    string netId, 
    int port, 
    StateInfo stateInfo, 
    byte [ ] buffer, 
    int offset, 
    int length
);

Parameters

netId

NetID of the target AMS Router.

port

Port of the target AMS Router.

stateInfo

New ADS status and device status.

buffer

Byte array that contains the data that should be sent to the ADS device.

offset

Offset of the data in buffer.

length

Length of the data in buffer.

Requirements

SOAP Error Faults

Type

Description

AdsErrorFault

The AdsErrorFault is returned if an AdsException is thrown by a TcAdsClient object in a method of the TwinCAT ADS WCF service.

AdsErrorErrorFault

The AdsErrorErrorFault is returned if an AdsErrorException is thrown by a TcAdsClient object in a method of the TwinCAT ADS WCF service.

UnexpectedErrorFault

The UnexpectedErrorFault is returned if an unexpected Error occurs.

See Also

ITcAdsServiceSimplex Interface