Siemens SIMATIC ET 200AL System Manual page 1082

Distributed i/o system
Hide thumbs Also See for SIMATIC ET 200AL:
Table of Contents

Advertisement

Alarms
6.5 Example program for program alarms
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
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.
86
Call Program_Alarm
Function Manual, 11/2019, A5E03735838-AF
Diagnostics

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents