Alarms
6.5 Example program for program alarms
Diagnostics
92 Function Manual, 09/2016, A5E03735838-AD
To call the function block in the user program, follow these steps:
1. In the "Program blocks" folder, select the cycle OB (e.g., OB1) in which you want to call
the function block and open the cycle OB with a double-click.
2. Select the function block you want to call in the "Program blocks" folder.
3. Drag the function block into the instruction part of the cycle OB.
The "Call options" window opens.
Figure 6-14 Call function block
4. Confirm the call options by clicking "OK".
Result: You have called the alarm block in the user program and created an instance alarm.
To create the text list for the example program, follow these steps:
1. Double-click on the "Text lists" command in the program tree.
The text list editor opens.
2. Double-click "<Add>" in the Text lists area.
A new text list is added.
3. Name the text list "level_textlist".
4. Double-click "<Add>" in the Text list entries area of level_textlist.
A new text list entry is added in the level_textlist text list.
5. Enter the alarm text for the maximum fill level in the "Entry" column.