NetComposeBegin - method of the AtouchX object

Starts the process of sequential writing of the database variable.
The method starts writing the database variable WID sequentially, which causes the database variable to be "locked". The scheme of the sequential writing is:
The NetComposeBegin method is used to "lock" the database variable.
The LocalPutData method is used to populate the database variable with the values being written.
The NetComposeEnd method is used to write the database variable to the station and "unlock" it.
A locked database variable will cause all reads to succeed, but the value is not actually read from the station (the result of the communication will be atrLock). This protects the database variable against unintentional overwriting of successively written values by the LocalPutData method.
When the writing of own values is finished, the NetComposeEnd method must be called to ensure that the database variable is written to the station and "unlocked". Failure to end the sequential write results in a permanent "lock" of the database variable!
The sequential write is cumulative, i.e. a double lock of a variable must be followed by a double unlock.
Integer NetComposeBegin(Long WID)
WID(Long) WID of the database variable that will be sequentially written.
Return value:
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nWID = 2005;
var nState = oATC.NetComposeBegin(nWID);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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