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.
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: ......