Professional Documents
Culture Documents
Table of contents
7.
Alarm system..........................................................................................................7-3
7.1.
7.1.1.
7.1.2.
7.1.3.
7.2.
7.2.1.
7.2.2.
7.2.3.
7.2.4.
7.2.4.1.
7.2.4.2.
7.2.5.
7.2.5.1.
7.2.5.2.
7.3.
7.3.1.
7.3.2.
7.3.3.
7.3.4.
7.3.5.
7.4.
7.5.
7.6.
7.6.1.
7.6.2.
7.6.3.
7.7.
7-1
7-2
7.
Alarm system
In this section participants will learn about and practice using the structure of the alarm system
and the alarm logs as well as the configuration of the alarm view and logging.
Participants will get to know the basic functions and potential uses of the alarm system. They will
gain an overview of the expanded functionality of the alarm system.
Training aims:
Participants will be able to set up alarm classes, configure/display alarms and set up/display
alarm logs.
7-3
7.1.
Overview
7.1.1.
Alarm method
The alarm method identifies the type of information that triggers an alarm
Change in bit
Change in value
HMI device
PLC
7-4
7.1.2.
Alarm functionality
7-5
Sending of e-mails
The system function "Send e-mail" can also be configured for an alarm. This is a functionality of
the runtime option "Sm@rt Server" and is not considered further in this section.
Functionality is only supported by HMI devices that also support an Ethernet interface
7.1.3.
Alarm text
The alarm text contains a description of the alarm. Character formats supported by the relevant
HMI device can be used to format the alarm text on a character-by-character basis.
The alarm text can contain output boxes for the current values of tags or text lists. The tag image
retains the instantaneous value at the time at which the alarm status changes.
Alarm number
The alarm number is used to internally manage an alarm. Each alarm number is unique within the
following types of alarms:
Discrete alarms, analog alarms, HMI system alarms,
Alarm class
The alarm class defines whether or not the alarm has to be acknowledged. It can also be used to
determine how the alarm appears when it is displayed on the HMI device. The alarm class also
determines whether and where the corresponding alarm is logged.
Max. 32 alarm classes can be configured
7-6
Short identifier
An identifier can be configured for each alarm class, and can be output in the alarm view to
identify the alarm class associated with the alarm.
Alarm group
If an alarm belongs to an alarm group, it can be acknowledged along with other alarms from the
same group in a single operation.
Info text
The info text can contain additional information on an alarm. Info texts are displayed in a separate
or the
button.
Automatic reporting
In addition to the option of enabling and disabling automatic reporting of alarms for the entire
project, it is also possible to enable reporting for each individual alarm.
Each alarm also contains
7-7
7.2.
7.2.1.
7.2.2.
Alarm classes
7-8
For discrete and analog alarms that indicate critical or hazardous operating and
process states.
Alarms in this class must always be acknowledged.
Warnings
For discrete and analog alarms that indicate regular operating statuses, process
states and process operations.
Alarms in this class are user information and do not have to be acknowledged.
Display name
Here, an individual name can be set for each alarm class which can then also be displayed in the
alarm view if multiple alarm classes are shown in an alarm view.
Even with the predefined alarm classes, these display names can be individually adapted.
Acknowledging an alarm
Log
If an alarm log has been configured, the alarm events are stored in the configured alarm log file.
The capacity of the log is limited by the storage medium and system limits.
7-9
7.2.3.
Alarm settings
The WinCC alarm system will always work with the default settings. Changing these default
settings only serves to adapt the alarm system behavior to specific plant conditions.
Percentage of the alarm buffer
The S7 alarm events (S7 diagnostics alarms, Alarm_S...) are saved in a buffer within the HMI
device. The size of this alarm buffer and the backup provided in the event of a power failure
(usually none) depend on the type of HMI device.
Text of alarm group
Heading for alarm group column
Reporting
This option activates/deactivates the printing of bit or analog alarms for the entire project. If this
option is activated, it is possible to decide for each configured bit or analog alarm whether this is
to be reported on not.
With alarm reporting active, a line is triggered on the standard printer installed for each state
change of such an alarm.
If a line printer is used here (some dot matrix printers), the printout takes place
immediately for every change to an alarm status of an alarm selected for reporting.
When using page printers (generally all printer drivers for Windows printers), the printout
is not made until an alarm page is full and the printer can print a complete page.
If system alarms are to be printed, this must be activated in the associated alarm buffer
or log. The complete contents of the alarm buffer/log are then printed. A corresponding
operator object (trigger printing) must be configured for this purpose on the HMI device.
7-10
S7 diagnostics alarms
These are alarms sent by CPUs when this is activated in the hardware properties of the CPUs.
For example, "CPU STOP due to programming error", "CPU STOP due to keyswitch"
These alarms are not automatically displayed. You must always configure display of
these alarms yourself.
Controller alarms
In this area, it is possible to make settings for the alarm number strategy or reporting system
errors.
7.2.4.
Discrete alarms
7.2.4.1.
Trigger tags and their bit assignment for discrete alarm texts
In order to generate a discrete alarm, a there must be a bit edge change. These bits are
managed in trigger tags. These trigger tags are also edited using the tag editor, or can be directly
created during configuration of a discrete alarm.
Trigger tags
These must have the following properties:
To keep the recognition jitter as low as possible, the acquisition cycle must be matched to the
process here (generally as low as possible 100ms).
7-11
If more than 16 alarm bits are required, the area can be increased by defining an ARRAY of
WORD on the controller. It is also possible to create different trigger tags.
For performance reasons it is advisable not to address scattered areas of the trigger tags
(use contiguous data areas as far as possible), so that all trigger tags can be read from
the controller by the HMI device with as few read requests as possible.
7.2.4.2.
7-12
7.2.5.
Analog alarms
7.2.5.1.
Monitored tags and configuring limit values for analog alarm texts
An analog alarm is triggered when a value exceeds or falls below a tag value.
Tags from the tag management can be used or created for these limit values, and edited using
the tag editor. They can also be created directly during configuration of an analog alarm.
Monitored tags
These must have the following property:
To keep the recognition jitter as low as possible, the acquisition cycle must be matched to the
process here (generally as low as possible 100ms).
Monitored tags must be permanently read/monitored in the background by the HMI device. When
using a tag as monitored tag of an analog alarm, the acquisition mode (default setting "Cyclic in
operation") is set to "Cyclic continuous".
These tags permanently add load affecting the performance of the HMI device.
7-13
The only difference between analog alarms and discrete alarms is that you configure a limit value
of a tag rather than a bit number.
Corresponding limit value tags are assigned to the alarm texts.
A limit tag can be assigned to trigger several alarms.
An analog alarm is triggered when a value exceeds or falls below a tag value.
Trigger mode "On exceeding" i.e. when tag limit value is exceeded
exceeded incoming alarm
below value again outgoing alarm
Trigger mode "On falling below" i.e. when below tag limit value
below incoming alarm
above value again outgoing alarm
7-14
Delay
>> Inspector window > Properties + Properties tab > Trigger "Settings"
The alarm is only triggered if the condition is still satisfied at the end of the configured time span.
Deadband
>> Inspector window > Properties + Properties tab > Trigger "Deadband"
"Mode" box
For which change in alarm status will the deadband be taken into account?
"Value" box
Constant value for the width of the deadband
7.3.
Displaying alarms
Several alarm views can be configured for different alarm classes and in different screens or
windows.
7-15
Displaying current alarms or alarms from the alarm buffer or alarm log
Alarm window
Displaying current alarms or alarms from the alarm buffer or alarm log
The window can be automatically shown when a new entry is made in the window (e.g. when
a new alarm has arrived)
Alarm indicator
beams
Flashing:
at least one unacknowledged alarm is pending
Static:
all alarms requiring acknowledgment have been acknowledged, but at least one of them is
not yet deactivated.
The number displayed at the bottom in the symbol indicates the number of pending alarms.
A corresponding system function must then be configured in the alarm indicator properties, e.g.
for display of the alarm window.
One alarm indicator can be configured in the "Template" screen per HMI device.
7-16
7.3.1.
The alarm view and the alarm window have the same structure for the contents.
7.3.2.
7-17
7.3.3.
7.3.4.
Selecting columns
All components of an alarm are available as table columns. Only the most important are
displayed as standard. You can select the columns in the properties of the view.
This only affects the "simple" and "complex" display types.
>> Inspector window > Properties + Properties tab > Columns
"Visible columns" section
Change column width
Requirement: The display in the screen editor must not be zoomed
The column width of the display can be adapted individually. The processing mode of the
configured display is activated using the shortcut menu.
7-18
Sort
You can also configure the order in which the alarms are displayed.
>> Inspector window > Properties + Properties tab > Columns
"Sort" section
You have the option of displaying the latest or the oldest alarm first.
Color of the alarm window
>> Inspector window > Properties + Properties tab > Appearance
This is only used if the colors of the alarm classes are not activated in the alarm settings.
Acknowledgment
Note !
If alarms requiring acknowledgment are displayed, and if the operator is to acknowledge
the alarms, it must be possible to acknowledge them on the HMI device.
7-19
7.3.5.
The display of alarms can be filtered based on the alarm text. The filter only applies to the display
on the HMI device. All alarms are retained in the alarm buffer.
Filter criterion
Constant string
Alarm line
7-20
Filtering is case-sensitive;
wildcards and regular expressions are not taken into account
7-21
7-22
7.4.
Task
Maximum speed reached and output of current speed, signaled by a discrete alarm
Procedure
7-23
7-24
Closable
In the settings of the "User_Status_word" tag, check the acquisition mode "Cyclic
continuous"
>> Project tree > HMI device > HMI tags
and reduce the acquisition cycle to 100 ms.
7-25
and link the text of the third alarm to the process tag "User.Speed_act" in the alarm text.
In the settings of the "User_Speed_act" tag, check the acquisition mode "Cyclic
continuous"
>> Project tree > HMI device > HMI tags
and reduce the acquisition cycle to 100 ms.
7-26
If a title is required for this alarm view, a text field can be configured using the table.
7. Display ventilator error alarms
The alarms of the "VentilationErrors" alarm class will be shown automatically when they occur.
Their display will therefore need to be configured as an alarm window ("Global screen").
Open the "Global screen".
>> Project tree > HMI device > Screen management > Global screen
7-27
Insert another alarm window and adapt its properties appropriately (display of the alarm class
"VentilationErrors").
Task card >> Toolbox > Controls > Alarm window
7-28
7-29
Object name of
the alarm
for both
results
9. Test the configuration
The faceplate can be inserted in the "Messages" screen again for the speed setting
(alarm generation).
7-30
7.5.
Task
The alarm line should be visible at all times, irrespective of the current screen.
The alarm view is configured as a status line in the overview screen area (permanent
screen area)
Procedure
7-31
Object name of
the alarm view
Depending on where the alarm view has been added, it can have a different name.
"Alarm_view_1" or "Template_alarm_view"
However, this is always displayed in the title bar of the Inspector window.
3. Test the configuration
7-32
7.6.
Alarm log
In addition to being displayed, alarms can also be saved in a log file file for subsequent analysis.
Circular log
When the configured log size has been reached (log is full), the oldest entries are overwritten.
Segmented circular log
In this case, several logs of the same size are created and are filled in succession. When all logs
are completely full, the oldest log is overwritten.
Display system alarm when (log with system alarm depending on fill level)
When a configurable level (e.g. 90%) has been reached, a system alarm is triggered. When the
configured log size has been reached (log is full), the oldest entries are overwritten.
Trigger event when (log with "Overflow" event depending on fill level)
When the log is completely full, the "Overflow" event is triggered. A function list can be configured
for this event. The oldest entries are then overwritten again.
e.g. to copy logs prior to overwriting them
7-33
7.6.1.
Create log
>> Project tree > HMI device > Historical data > Alarm logs tab
Clicking on an empty row in the table inserts a new log into the configuration.
Most important properties
>> Inspector window > Properties + Properties tab > General
7-34
>> Inspector window > Properties + Properties tab > Start mode
Alarm logging is initiated immediately or only after execution of the system function
"StartLogging"
>> Inspector window > Properties + Properties tab > Logging method
Log type
Assign logs
Following creation of the alarm logs, they must be assigned to the alarm classes.
>> Project tree > HMI device > HMI alarms > Alarm classes
The alarm logs are assigned in the column "Log".
7.6.2.
7-35
7.6.3.
Since the log display is not automatically updated, this functionality must be configured.
The content of the log is displayed statically when the screen is selected, although logging
continues in the background. The current log content can only be seen after selecting the screen
again or executing the "UpdateView" system function.
7-36
7.7.
Task
Create the "History" log in which the alarms of the System, Warnings and VentilationErrors
classes are saved
Procedure
7-37
File in
D:\Courses\
7-38
7-39