Promotic

NetReset - method of the AtouchX object

Description:
Rejects the ongoing communication request.
After calling one of the Net... communication methods, asynchronous reading or writing occurs and after its termination the corresponding EndNet... event is triggered. By means of the NetReset method, it is possible to perform the so-called request discard, it means that the event triggering for the discarded request is cancelled. Thus, the application is not passed the value of the communication result or possibly read values, although physically the communication takes place.
 
The NetReset method discards such requests that were specified by methods Net... with the same Param parameter. It means that communication requests having the same Param parameter are always discarded at once. If independent discarding is required, then the requests must have different Param parameters.
 
The value 0 (zero) of the Param parameter causes all communication requests to be dropped.
Syntax:
Integer NetReset(Long Param)
Parameters:
Param(Long) The value of the parameter (previously specified by the Net... communication methods) according to which the request is rejected.
Return value:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nStation = 2;
var nParam = 0;
var nState = oATC.NetReset(nParam);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.