Example 1: Program Alarm Without Associated Values - Siemens SIMATIC S7-1500 Function Manual

Diagnostics
Hide thumbs Also See for SIMATIC S7-1500:
Table of Contents

Advertisement

Alarms
6.5 Example program for program alarms
6.5.2

Example 1: Program alarm without associated values

Introduction
In this example, you create a program alarm for the maximum and the minimum fill level.
How the example works
When the maximum fill level is exceeded in the tank, a program alarm with the alarm text for
the excessive fill level is output.
When the minimum fill level is undershot in the tank, a program alarm with the alarm text
indicating that the fill level is too low is output.
Steps
The following steps are necessary for this example:
1. Define tags for signal acquisition
2. Create function block
3. Create program alarms
4. Call function block
5. Edit alarm text
Define tags for signal acquisition
The following table shows the tags that are used in this example. Define these tags in the
standard tag table. The standard tag table is available in the project tree under "PLC tags".
Table 6- 1
Name
max
min
The figure below shows the standard tag table with the defined tags "max" and "min".
Figure 6-6
84
Tags for fill level alarms
Data type
BOOL
BOOL
Define tags
Description
Tag for maximum fill level
If "max" = 1, the maximum fill level is exceeded.
Tag for minimum fill level
If "min" = 1, the minimum fill level is undershot.
Function Manual, 11/2019, A5E03735838-AF
Diagnostics

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents