Alarms
6.5 Example program for program alarms
Diagnostics
92
Function Manual, 11/2019, A5E03735838-AF
Create program alarm
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.
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-13 Call Program_Alarm
3.
Enter "level_alarm" 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 XOR logic operation
of the tags for minimum and maximum fill level and the input tag SD_1 with the tag for the
maximum fill level.
#level_alarm(SIG:="min"XOR"max",SD_1:="max");
SIG: If a signal change occurs at the SIG input tag, the "Program_Alarm" instruction
generates a program alarm.
SD_1: The associated value is acquired at the time of the signal change at the input tag
and assigned to the program alarm.
Result: You have created a type alarm.
Содержание 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: ......