Custom alarm calculations must be associated with a parameter that has a value of either 0 or 1. A one (1) indicates an alarm condition, and a 0 indicates a non-alarm condition.
If you create your own alarm calculations you must use one of the function blocks that support expressions (for example, the Condition function block or the Calc/Logic function block).
The following example shows how to add a custom alarm to a module using a Condition block. In this example, an alarm is triggered when the PV of the AI block is 70 or higher.
The custom calculation creates a Boolean parameter that still must be associated with the alarm. This step only sets up the calculation that is associated with an alarm.
To create a custom calculation, perform the following steps:
This sets up an expression to see if the PV parameter is greater than or equal to 70. For this module, the value of the expression is the value of the OUT_D parameter.