Promotic

NetComposeEnd - method of the AtouchX object

Description:
Terminates the sequential write process and physically writes the database variable.
The method terminates the sequential writing of the WID database variable, which causes in particular the physical writing of the database variable content to the station and the "unlocking" of the database variable. The writing is asynchronous, after the end of the writing the EndNetGetData event is triggered to report the result of the communication. The event is also passed a Param value, which is used by the user to self-identify.
 
The flowchart for the sequential entry 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.
The EndNetCompose method ending the sequential write must be called whenever the method starting the sequential write has been called.
Sequential write is cumulative, i.e. a double lock of a variable must be followed by a double unlock.
Syntax:
Integer NetComposeEnd(Long WID, Integer Row, Integer Col, Integer Rows, Integer Cols, Variant Param)
Parameters:
WID(Long) WID database variables, which will terminate the sequential write process and perform a physical write.
Row(Integer)
If the written database variable is of simple type then the parameter has no meaning.
If the written database variable is a matrix then the parameter defines the index of the initial row of the matrix (zero-based index) where it is written.
Col(Integer)
If the written database variable is of simple type then the parameter has no meaning.
If the database variable being written is a matrix, then the parameter defines the index of the initial column of the matrix (zero-based index) where it is written.
Rows(Integer)
If the written database variable is of simple type then the parameter has no meaning.
If the written database variable is a matrix then the parameter defines the number of rows of the matrix to be written.
Cols(Integer)
If the written database variable is of simple type then the parameter has no meaning.
If the written database variable is a matrix then the parameter defines the number of columns of the matrix to be written.
Param(Variant) The value that is passed unchanged to the sequential write termination event.
Return values:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nWID = 2005;
var nParam = 80;
var nState = oATC.NetComposeEnd(nWID, 3, 0, 10, 8, nParam);
PROMOTIC 9.0.18 SCADA system documentation - MICROSYS, spol. s r.o.

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