readwrite
Writes data to an ADS device and then reads data from this device.
readwrite(
sNetId,
nPort,
nIndexGroup,
nIndexOffset,
cbRdLen,
pwrData,
pCallback,
userState,
ajaxTimeout,
ajaxTimeoutCallback,
async
);
Parameters
sNetId | Type: String |
nPort | Type: Number |
nIndexGroup | Type: Number |
nIndexOffset | Type: Number |
cbRdLen | Type: Number |
pwrData | Type: Base64 encoded binary string |
pCallback | Type: Function pointer |
userState | Type: Every |
ajaxTimeout | Type: Number |
ajaxTimeoutCallback | Type: Function pointer |
async | Type: Bool |
Returns
If the async parameter is set to false, this function will return a TcAdsWebService.Response object.
Otherwise it returns nothing.
If successfull, the TcAdsWebService.Response.reader property contains the data in the order in which the data was requested.