6.5
Example program for program alarms
6.5.1
Task
Introduction
This section describes the basic configuration of program alarms with the "Program_Alarm"
instruction based on two examples. The two examples solve the same problem but use a
different approach. Example 1 does not use associated values. In example 2, an associated
value is assigned to the program alarm to reference a text list.
Example - Minimum/maximum fill level of a tank
A tank is filled with a liquid. The fill level is monitored by two sensors.
If the liquid in the tank drops below a minimum fill level, an alarm is output for low fill level.
If the liquid in the tank exceeds a maximum fill level, an alarm is output for high fill level.
Figure 6-5
6.5.2
Example 1: Program alarm without associated values
Introduction
In this example, you create a program alarm for the maximum and the minimum fill level.
How the example works
When the maximum fill level is exceeded in the tank, a program alarm with the alarm text for
the excessive fill level is output.
When the minimum fill level is undershot in the tank, a program alarm with the alarm text
indicating that the fill level is too low is output.
Diagnostics
Function Manual, 09/2016, A5E03735838-AD
Example for fill level alarms
6.5 Example program for program alarms
Alarms
83