readwrite

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

 readwrite(
    nIndexGroup, 
    nIndexOffset, 
    cbRdLen, 
    pwrData, 
    userState, 
  );

Parameters

nIndexGroup

Type: Number
The indexGroup

nIndexOffset

Type: Number
The indexOffset

cbRdLen

Type: Number
Length of data to read.

pwrData

Type: Base64 encoded binary string
The binary data to write.

userState

Type: Every
User data which will be passed through.

Returns

This function will return a TcAdsWebService.Response object.
If successfull, the TcAdsWebService.Response.reader property contains the data in the order in which the data was requested.