readAsync

Reads data from an ADS device.

readAsync(
    nIndexGroup, 
    nIndexOffset, 
    cbLen, 
    pCallback, 
    userState 
  );

Parameters

nIndexGroup

Type: Number
The indexGroup

nIndexOffset

Type: Number
The indexOffset

cbLen

Type: Number
The length of read data.

pCallback

Type: Function pointer
The callback function for asynchronous AJAX requests.
Function pointer signature: function( TcAdsWebService.Response, userState)

If successfull, the TcAdsWebService.Response.reader property contains the data in the order in which the data was requested.

userState

Type: Every
User data which will be passed through.

Returns

This function will return nothing. An TcAdsWebService.Response object is returned by calling the callback function which was set by use of the pCallback parameter.
If successfull, the TcAdsWebService.Response.reader property contains the data in the order in which the data was requested.