Alarms
6.5 Example program for program alarms
Diagnostics
Function Manual, 11/2019, A5E03735838-AF
89
6.5.3
Example 2: Program alarm with associated value
Introduction
In this example, you create a shared program alarm for the maximum and the minimum fill
level. The program alarm is given an associated value. The program alarm uses the
associated value to access a text list entry and outputs a separate alarm text for the
minimum and the maximum fill level.
How the example works
The program alarm is output if either the minimum fill level is undershot or the maximum fill
level is exceeded.
The associated value 1 of the "Program_Alarm" instruction is assigned the tag for the
maximum fill level. The associated value references a text list with the entries "0" and "1".
The following scenarios are possible for output of the alarm text:
●
Associated value is "0": The entry "0" of the text list with the alarm text for the undershot
fill level is output.
●
Associated value is "1": The entry "1" of the text list with the alarm text for the excessive
fill level is output.
Steps
The following steps are necessary for this example:
1.
Define tags for signal acquisition
2.
Create function block
3.
Create program alarm
4.
Call function block
5.
Create a text list
6.
Edit alarm text
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: ......