Skip to content

Digital Alarms

A digital alarm watches the state of a boolean variable. There are no thresholds — the condition is the value itself.

Evaluated resultAlarm state
trueON — fires
falseOFF — clears

One variable is often enough, but two can be combined with AND/OR logic, and either of them can be inverted.

The fields every alarm carries (name, groupId, delay, part, isActive, …) are listed on Alarm Management.

The digital alarm form — Variable A / B, with bit offset, inversion and And Calc under Properties

FieldDescription
variableAIdFirst variable — required
variableBIdSecond variable — optional
variableAInvertedEvaluate NOT(A) instead of A
variableBInvertedEvaluate NOT(B) instead of B
andCalcWith two variables: true → A AND B, false → A OR B
variableABitOffsetWhich bit of A to watch, if A is an integer (0-63)
variableBBitOffsetWhich bit of B to watch, if B is an integer (0-63)

Some signals report the healthy state as true — a ready signal, or a running feedback. Used directly, such a signal leaves the alarm permanently active while the system is normal.

This needs no script and no second variable holding the inverse: tick variableAInverted and the condition is evaluated as NOT(A).

When a second variable is given, andCalc decides how the two combine.

GoalSetup
Either of two fault signalsA = fault 1, B = fault 2, andCalc = false (OR)
Pump running but no pressureA = running signal, B = pressure low, andCalc = true (AND)
Command given but no feedbackA = command, B = feedback with variableBInverted, andCalc = true

That last row is one of the most common uses of a digital alarm: the equipment was told to run and did not report back, which means something is wrong. Combined with inversion, the condition fits into a single digital alarm — no custom alarm required.

Status information from the field often arrives packed into a status word rather than as separate booleans. variableABitOffset watches one bit of that word, so there is no need to define a separate variable per bit.

Bit numbering starts at 0 and goes up to 63.

Mechanical contacts can open and close several times as they switch. To keep each bounce from producing its own alarm record, use the delay field: the alarm does not fire unless the condition holds for the given time.

Contact and status signals from the field belong to this type: motor fault signal, emergency stop, door / hatch open contact, pump running feedback, phase sequence fault.

If the condition needs more than two variables, or rests on a calculation, use a Custom Alarm.