Refresh - method of object PmOpcClientData

It enables reading all values of the data group (defined on the Data page) from the OPC server.
Refresh(Attr As Long) As Boolean
oClientData.Refresh Attr
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
The method always reads all data. If it is requested to read only the specific data (into the Data page), 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 page) because the data are then "read" automatically.

VBScriptSelect and copy to clipboard

If oClientData.Refresh(0) Then
End If
PROMOTIC 8.3.30 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