Alarm Functions
Alarm functions allow you to manage alarms on the inSCADA platform with script/expression. With these functions you can start, stop and check the status of alarms.
Get Alarm Status
ins.getAlarmStatus(String alarmName)
Provides information about the status of an alarm.
alarmName: The alarm name.
Return Value: Returns a string message about the status of the alarm.
Syntax
Activate Alarm
ins.activateAlarm(String alarmName)
Activates the alarm.
alarmName: The alarm name.
Return Value: Does not return any value.
Syntax
Deactivate Alarm
ins.deactivateAlarm(String alarmName)
Deactivates the alarm.
alarmName: The alarm name.
Return Value: Does not return any value.
Syntax
Get a Alarm
ins.getLastFiredAlarm(Integer index)
Returns an alarm according to the index number of alarms that have turned ON.
index: Indicates the order in which the ON alarm arrives.
Return Value: Returns a JSON Alarm object.
Syntax
Last updated