Promotic
WikipediaLinkedInYoutubeTwitterFacebook

RefreshState - method of object ExtAlarmAnalog

Description:
Alarm status evaluation.
Syntax:
RefreshState
Calling:
oExt.RefreshState()
Note:
The alarm status is evaluated each time the value of the variable is changed. When alarm limits change, the new alarm status will only be evaluated when the value changes, although the change in alarm condition may change. The method is used to invoke alarm status evaluation even without changing the variable, especially if the script has changed the alarm limits.
See also:
Example:
Examples of calling this method in a script.
VBScriptSelect and copy to clipboard

Dim oExt

Set oExt = pMe.Pm("/data/#vars/Temperature/#ext/al")
'or
Set oExt = pMe.Pm("/data/#vars/Temperature").Extension("al")
'or
Set oExt = pMe.Pm("/data").Item("Temperature").Extension("al")

oExt.Min1 = 0
oExt.Max1 = 100
oExt.RefreshState
PROMOTIC 8.3.27 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