Promotic
WikipediaLinkedInYoutubeTwitterFacebook

RefreshState - method of object ExtAlarmAnalog

Description:
Alarm status evaluation.
Syntax:
Empty 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 serves 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.
JavaScriptVBScriptSelect and copy to clipboard

var oExt;

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

oExt.Min1 = 0;
oExt.Max1 = 100;
oExt.RefreshState();

History:
Pm8.03.24: Created
PROMOTIC 9.0.4 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