Update cookies preferences
Promotic

Refresh - method of the PmaOpcDaClientGroup object

Description:
Reading all values of the data group (defined on the "Data" tab) from the OPC server.
Syntax:
Boolean Refresh(Long Attr)
Parameters:
Attr(Long) the way of the transfer: (see OPC DA Basic terms)
0 - Data from the CACHE
1 - Data from the DEVICE
Return value:
true - on success
false - on error
Note:
The method always reads all data. If it is requested to read only the specific data (into the "Data" tab), then the Read method can be used. The Refresh method is the asynchronous operation (see OPC DA Basic terms).

The Refresh method needn't be called if the "Refresh from server at server change" configurator is checked (on the "Parameters" tab) because the data are then "read" automatically.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oOpcGroup = pMe.Pm("/OpcClient/Group1");
if (oOpcGroup.Refresh(0))
{
// ...
}
PROMOTIC 9.0.29 SCADA system documentation MICROSYS, spol. s r.o.

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