Promotic

RefreshState - method of the ExtAlarmAnalog object

Description:
Alarm state evaluation.
Syntax:
Empty RefreshState()
Note:
The alarm state is evaluated each time the value of the variable is changed. When alarm limits change, the new alarm state will only be evaluated when the value changes, although the change in alarm condition may change. The method serves to invoke alarm state evaluation even without changing the variable, especially if the script has changed the alarm limits.
See also:
- ExtAlarmAnalog.Min1 (property)
- ExtAlarmAnalog.Min2 (property)
- ExtAlarmAnalog.Max1 (property)
- ExtAlarmAnalog.Max2 (property)
Example:
Examples of calling this method in the 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.27 SCADA system documentation MICROSYS, spol. s r.o.

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