Disable Alarm if pump is OFF.

I have a problem with the configuration of an alarm on my Indusoft application. I want to activate an alarm if the pressure is low only if the pump is running. I have The following tag
(Pressure, PumpOn)

My script.

IF NOT PumpOn THEN
(Pressure-> AlrDisable) = TRUE
ELSE
(Pressure-> AlrDisable) = FALSE
This script works but the problem is that if the alarm is ON before I disable the alarm, the alarm stay ON

Thanks!
  • Hi,

    It looks like disabling an alarm is not the same as acknowledging an alarm. To acknowledge the alarm when it is disabled, try using the ExecuteAlarmAck() function.

    So the code might look like:

    IF NOT PumpOn THEN
    (Pressure-> AlrDisable) = TRUE
    ExecuteAlarmAck("Pressure", optStrComment, optStrAlarmType )
    ELSE
    (Pressure-> AlrDisable) = FALSE

    You might want to first check if the alarm is on, although I'm not sure this would be a requirement.

    Regards,
    Greg Shearer
  • Hi,

    I asked the support about this recently.

    If you disable an alarm on a tag where the alarm is active, the alarm will not dissappear.
    You can acknowlegde it, but it will stay in the Active alarm list.

    And as far as I understood, that was an intended behaviour.

    /Nik