ITcAdsServiceSimplex.ReadWrite3

Writes data to an ADS device and then reads data from this device.

byte[ ] ReadWrite3 (
    string netId,
    int port,
    int indexGroup,
    int indexOffset,
    int rdLength,
    byte [ ] wrbuffer,
    int wrOffset,
    int wrLength
);

Parameters

netId

NetID of the target AMS Router.

port

Port of the target AMS Router.

indexGroup

Contains the index group number of the requested ADS service.

indexOffset

Contains the index offset number of the requested ADS service.

rdLength

The length of the returned byte array.

wrbuffer

Byte array that contains the data that should be written.

wrOffset

Offset of the data in wrbuffer.

wrLength

Length of the data in wrbuffer.

Return Value

Byte array that contains the data.

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.

ArgumentErrorFault

The ArgumentErrorFault is returned if there is a failure in an argument of a method.

UnexpectedErrorFault

The UnexpectedErrorFault is returned if an unexpected Error occurs.

See Also

ITcAdsServiceSimplex Interface