Promotic

LocalGetData - method of the AtouchX object

Description:
Reads the value of the whole database variable from the local database (without communication).
The method reads the content of the whole db. variable and returns its value in the DATA variable. The reading is done without communication from the local database on the computer.
 
All reading and writing of db. variables is done through the local database, so the read value corresponds to the value of the last reading or writing of the database variable.
Syntax:
Integer LocalGetData(Long WID, Variant DATA)
Parameters:
WID(Long) WID of the database variable for reading.
DATA(Variant) Variable where the read data is stored.
Return value:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nWID = 2005;
var mData = Pm.CreatePmMap();
mData.ParValue = 0;
var nState = Pm.CallAxMethod("", oATC, "LocalGetData", nWID, mData);
var val = mData.ParValue;
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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