Promotic
Login logon

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 of the alarm state may change. The method serves to invoke alarm state evaluation even without changing of the variable value, 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.34 SCADA system documentation MICROSYS, spol. s r.o.

Send page remark Contact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences