Siemens SIMATIC ET 200AL System Manual page 1088

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 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
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.
92
Call Program_Alarm
Function Manual, 11/2019, A5E03735838-AF
Diagnostics

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents