Alarms
6.5 Example program for program alarms
Diagnostics
86
Function Manual, 11/2019, A5E03735838-AF
Create program alarms
To create the program alarm for the example program, follow these steps:
1.
Select the created function block (FB) in the "Program blocks" folder in the project tree
and double-click the function block to open it.
2.
Insert the call of the "Program_Alarm" instruction in the instruction part of the function
block. The "Program_Alarm" instruction is available in the "Instructions" task card under
"Extended instructions" > "Alarms".
The "Call options" window opens.
Figure 6-8
Call Program_Alarm
3.
Enter "level_max" as the name and confirm the call options by clicking "OK".
Result: The input tags of the "Program_Alarm" instruction are displayed in the instruction
part.
4.
Supply the SIG input tag of the "Program_Alarm" instruction with the tags for the
maximum fill level.
#level_max(SIG:="max");
SIG: If a signal change occurs at the SIG input tag, the "Program_Alarm" instruction
generates a program alarm.
5.
Insert another call of the "Program_Alarm" instruction.
The "Call options" window opens.
6.
Enter "level_min" as the name and confirm the call options by clicking "OK".
Result: The input tags of the "Program_Alarm" instruction are displayed in the instruction
part.
7.
Supply the SIG input tag of the "Program_Alarm" instruction with the tags for the
minimum fill level.
#level_min(SIG:="min");
Result: You have created two type alarms.
Содержание SIMATIC ET 200AL
Страница 2: ......
Страница 143: ......
Страница 218: ......
Страница 250: ......
Страница 296: ......
Страница 337: ......
Страница 365: ......
Страница 392: ......
Страница 419: ......
Страница 451: ......
Страница 483: ......
Страница 597: ......
Страница 648: ......
Страница 702: ......
Страница 739: ......
Страница 781: ......
Страница 804: ......
Страница 828: ......
Страница 853: ......
Страница 880: ......
Страница 906: ......
Страница 996: ...Diagnostics ...
Страница 1121: ......
Страница 1565: ......