Promotic
Login logon

Refresh - method of the PmaCommGroup object

Description:
Reading (restoring) all values of the data group defined on the "Data" tab together with the data registered into this object by data extension ExtComm.
Syntax:
Boolean Refresh()
Return value:
true - on success
false - on error
Note:
The Refresh method is an asynchronous operation, it means that after the method is terminated the data are not necessarily updated. The method only causes the data transfer and after completed, the onDataReceive event is triggered.

The Refresh method need not to be called if the "Data refresh enabled" configurator is checked, because the data are read automatically in this case.
The method can be called even if this configurator is checked - in this case this method alters the period of automatic transmission and one transmission is executed immediately.

This method can be called even in the INFO system by clicking the "Actions" button. See "PmaRoot > Permissions > InfoEdit" permission.

Note for the PmOpcUaClient communication driver:
The Refresh method works for this driver only if the "Data refresh enabled" configurator is checked - in this case one transfer is made immediately.
If is not checked, then no change communication is registered and Refresh method is not working.
It is then better to use the communication message "1 = ReadData" instead of this method.
Example:
JavaScriptVBScriptSelect and copy to clipboard

pMe.Pm("/Comm/Group1").Refresh();

History:
Pm8.00.00: Created
PROMOTIC 9.0.34 SCADA system documentation MICROSYS, spol. s r.o.

Send page remark Contact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences