Promotic

EndNetGetData - event of the AtouchX object

Description:
The event is triggered after the reading of the database variable is finished.
The event notifies the end of reading a database variable or matrix. It presents the user with the WID of the read database variable, the result of the communication, the user-specified Param parameter and the read data (in case of successful reading).
 
If the database matrix (either the whole or only a part of it) was read, then the event creates the DATA variable as a two-dimensional matrix. The elements of the matrix are of the type corresponding to the type of the database variable being read or of the Variant type.
Parameters:
WID(Long) WID of the database variable that was read.
Result(Long) Communication result
Param(Long) The value entered in the NetGetData... methods.
DATA(Variant) The read content of the database variable or matrix.
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (Result < 1024)
{
var nVal = DATA;
}
switch (WID)
{
case 1026:
val = DATA;   // action write DATA to PROMOTIC from WID 1026
break;
case 1033:
val = DATA;   // action write DATA to PROMOTIC from WID 1033
break;
}
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

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