Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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)
Calling:
oOpcGroup.Refresh 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 values:
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 "Update 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.12 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice