readState
Reads the ADS status and the device status from an ADS server.
readState(
sNetId,
nPort,
pCallback,
userState,
ajaxTimeout,
ajaxTimeoutCallback,
async
);
Parameters
sNetId | Type: String |
nPort | Type: Number |
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.DataReader object of the TcAdsWebService.Response.reader property contains the state values as 2 Byte WORD values in the order AdsState, DeviceState.