Alarms
6.5 Example program for program alarms
Diagnostics
84
Function Manual, 11/2019, A5E03735838-AF
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.
Steps
The following steps are necessary for this example:
1.
Define tags for signal acquisition
2.
Create function block
3.
Create program alarms
4.
Call function block
5.
Edit alarm text
Define tags for signal acquisition
The following table shows the tags that are used in this example. Define these tags in the
standard tag table. The standard tag table is available in the project tree under "PLC tags".
Table 6- 1
Tags for fill level alarms
Name
Data type
Description
max
BOOL
Tag for maximum fill level
If "max" = 1, the maximum fill level is exceeded.
min
BOOL
Tag for minimum fill level
If "min" = 1, the minimum fill level is undershot.
The figure below shows the standard tag table with the defined tags "max" and "min".
Figure 6-6
Define tags
Summary of Contents for SIMATIC ET 200AL
Page 2: ......
Page 143: ......
Page 218: ......
Page 250: ......
Page 296: ......
Page 337: ......
Page 365: ......
Page 392: ......
Page 419: ......
Page 451: ......
Page 483: ......
Page 597: ......
Page 648: ......
Page 702: ......
Page 739: ......
Page 781: ......
Page 804: ......
Page 828: ......
Page 853: ......
Page 880: ......
Page 906: ......
Page 996: ...Diagnostics ...
Page 1121: ......
Page 1565: ......