You are on page 1of 37

Message Display and Message Archiving 1/2

SITRAIN
ST-BWINCCS /Alarm Logging Page 1 Siemens AG © 2007

Contents Page
Message Display and Message Archiving 2/2 ................................................................................... 2
Objectives .......................................................................................................................................... 3
Configuration Preparation ……........................................................................................................... 4
Message System 1/3 ......................................................................................................................... 5
Message System 2/3 ......................................................................................................................... 6
Message System 3/3 ......................................................................................................................... 7
Message Blocks, Message List .......................................................................................................... 8
Message System Call-Up ................................................................................................................... 9
Message System Configuration Interface ........................................................................................... 10
Wizard Overview .……......................................................................................................................... 11
Editing Message Blocks and Defining Properties ........................................................................ 12
Structure of Messages with Message Classes and Type …….......................................................... 13
Editing and Configuring Message Classes ........................................................................................ 14
Editing the Message Types ................................................................................................................ 15
Setting Up a Message Archive ........................................................................................................... 16
Backup Configuration ...............................…...................................................................................... 17
Setting Up Messages for Reloading ................................................................................................. 18
Resetting the Archive and Evaluating Backup Files ……................................................................... 19
Editing a Single Message for Bit Message Procedures .................................................................... 20
WinCC Alarm Control in the Graphics Designer ............................................................................... 21
Window Properties for WinCC Alarm Control ...……......................................................................... 22
Message List for WinCC Alarm Control ............................................................................................ 23
Configuration Notes ...................………............................................................................................. 24

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 1 Alarm Logging
Message Display and Message Archiving 2/2

SITRAIN
ST-BWINCCS /Alarm Logging Page 2 Siemens AG © 2007

Contents Page
Exercise 1: Message Blocks ............................................................................................................. 25
Exercise 2: Message Class, Message Types, and Archives ............................................................. 26
Exercise 3: Single Message ............................................................................................................... 27
Exercise 4: WinCC Alarm Control …….............................................................................................. 28
Exercise 5: Message Screen Function Test ..................................................................................... 29
Exercise 6: Expansion of the Message Configuration 1/3 ................................................................ 30
Exercise 6: Expansion of the Message Configuration 2/3 ................................................................ 31
Exercise 6: Expansion of the Message Configuration 3/3 ................................................................ 32
Group Messages ……........................................................................................................................ 33
Creating the Tag for a Group Message ……..................................................................................... 34
Connect Status Tag with the Group Message (Message Class) ....................................................... 35
Representation the Status Tag for a Text Object ………................................................................... 36
Representation the Status Tag for a Text Object ……….................................................................... 37

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 2 Alarm Logging
Objectives

- Edit Message Line

- Edit Messages

- WinCC Alarm Control

- Message Classes

- Message Archives

- Group Messages

SITRAIN
ST-BWINCCS /Alarm Logging Page 3 Siemens AG © 2007

Upon completion of this chapter, the participant should be able to:


• know the advantages of the message system
• start the message system
• adapt the message system to the plant requirements
• configure messages
• create message lines
• define message classes
• define message types
• set up a message archive
• identify group messages
• identify the export and import functions
• identify the loop in alarm
• identify message selections
• display messages in a screen
• archive messages

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 3 Alarm Logging
Configuration Preparation

- Message Archive Structure

- Acknowledgement Concept

- Evaluation

- Links

SITRAIN
ST-BWINCCS /Alarm Logging Page 4 Siemens AG © 2007

Configuration Preparation
ƒ Process connection
• defining tags with the bit address assignment (bit message procedure)
ƒ Message archiving
• grouping all messages with number assignment
• specifying message blocks
• defining contents and display for the message format
• specifying the message picture
• specifying the acknowledgement concept
• specifying the archiving time period
• specifying analysis and evaluation routines
• specifying reports
• specifying process values
• assigning message classes
• specifying messages from logic operations

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 4 Alarm Logging
Message System 1/3
Message sequence
report
Internal tag

Binary tag old/


Message list WinCC Alarm Control
new
Limit values
Ring buffer main memory New page
Prepare message SIEMENS

SICOMP
IPC RI 20

Message
Process
frame Inter-
pre- Selection in archive
FAQ tation Long-term archive
23730649

- Shift reporting
- Daily reporting
- Monthly reporting
Integrated backup function

Message system API


Long-term Archive-
Server LAS
(Backup Server)
Central WinCC Add-On ODK
Options
Archive Server
(CAS) User - Connectivity Pack
applications - DataMonitor (Web-Client
e. g. diagnostics for historian display and
analysis)
SITRAIN
ST-BWINCCS /Alarm Logging Page 5 Siemens AG © 2007

General Information By means of the message system, events from the PLC or from the monitoring
function in WinCC (operating states, errors, etc.) are displayed in the form of
messages. The events are archived, if applicable, reported and acknowledged,
and received by the operator. For this purpose, messages must be configured that
are divided into message classes. To also be able to view the history, the
messages are saved on the hard drive in a long-term archive on the local
computer.
The WinCC message system is based on the information in DIN 19235.
Message System Bit message procedure and chronologically correct reporting
• Message acknowledgements, even to programmable logic controllers
• 16 message classes with 16 message types each
• Display using line-oriented messages and graphics
• Acoustical signaling using a soundcard, City Call and SMS
• Views of the message list and archive you can define
• Disabling/Enabling and selection of messages
• Message comments, Message information
• Opening for analysis and evaluation programs
• Trigger actions
• Configurable: 150,000 messages
• Permanent message load without loss (single-user/server) 100/sec
• Long-term archive, in RT no system limits (depends on the hard drive)
CAS You can save the process values and messages of all connected WinCC servers
on a central archive server (WinCC CAS). You can output the stored process
values and messages as usual in Runtime in the WinCC Online Trend Control or
in WinCC Alarm Control in the process screen. Furthermore, you have direct
access to the archived process values and messages via defined interfaces such
as OLE-DB. In this manner, for example, you can make important production data
available company-wide for analyses purposes.
Long-term Archive Server
Long-term archive servers are used for backing up database files and have no
process connection.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 5 Alarm Logging
Message System 2/3
Swap in/Swap out
Depends on the
requirements -> Backup
Archives (*.mdf,*.ldf)

RT Database (cyclic archive)

RT Master database

ALG Master
Database

Analysis / Evaluation
• WinCC Standard Tool (Control)
Data acquistion
• Protocols (Report Designer)
• WinCC Datenmanager Long-term archiving
• OPC Server • High performance archiving Options
• WinCC Server-Server • Swap data in - swap data out • DataMonitor + Excel
Communication
• Connectivity Pack + External Appl.
• IndustrialDataBridge + Ext. Appl.

Note: ES=Single segment

SITRAIN
ST-BWINCCS /Alarm Logging Page 6 Siemens AG © 2007

Archiving For archiving messages, WinCC uses cyclic archives (ring buffer) of a
configurable size. You can configure them with or without backup.
The archive files are always stored on the local computer in the associated
project.
The WinCC message archive consists of multiple single segments. You can
configure both the size/time of the message archive and the size/time of the single
segments in WinCC. Example: The message archive archives all messages that
occur within one week (1), each single segment archives the messages that occur
within one day (2). You can always configure both conditions at the same time. If
either of the two criteria (time or size) is exceeded, the following happens:
Criteria for message archive (DB) is exceeded (1)-> the oldest messages (that is,
the oldest single segment) are deleted.
Criteria for single segment is exceeded (2)-> a new single segment (ES) is
created. A new single segment is also created when you configure message data
online (for load Delta online).
DataMonitor For visualization and evaluation, WinCC/Dat@Monitor provides a series of
Internet-capable tools for viewing (view only) and online analysis e.g. via Excel.
These support all the usual security mechanisms such as login/password,
firewalls, encrypting etc..
Connectivity Pack Access to WinCC using OPC and OLE-DB. Using OLE-DB, you can directly
access the archive data stored by WinCC in the MS SQL Server database. The
OPC HDA (Historical Data Access) and OPC A&E (Alarm & Events) servers
enable you to access historical WinCC archive system data and to pass on /
acknowledge messages.
Connectivity Station Access to archive data from external computers without WinCC installation via
standard interfaces OPC and OLE-DB
IndustrialDataBridge Configurable connection to databases and IT systems.

Note A message without wildcards and comments requires about 172 bytes of memory
(RT database). See FAQ 16619980.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 6 Alarm Logging
Message System 3/3

Runtime-Data Alarm Logging Segment:


COMPUTER_PROJECT_ALG_<period_from>_<period_to>.LDF
COMPUTER_PROJECT_ALG_<period_from>_<period_to>.MDF
Datenerfassung COMPUTER_PROJECT_ALG_YYYYMMDDHHMM.LDF
+WinCC Datenmanager
+OPC Server Example: HMI_Generator_ALG_200904300901.mdf
+WinCC Server-Server
Communication (max.11)

Message list Long-term archive


Short-term archive

SITRAIN
ST-BWINCCS /Alarm Logging Page 7 Siemens AG © 2007

Name RT-DB The runtime data are distributed amongst the master database and several
runtime databases.
The master database manages the runtime databases and refers to the individual
runtime databases. The master database is created in the project directory. The
name of the master database consists of the project name with a trailing "RT".
The runtime databases each contain the archived data for a specific time period
and are stored in the project directory in a subdirectory "ArchiveManager/Alarm
Logging".

The name of the runtime database consists of:


+ computer name
+ project name
+ ID for the type of data (ALG = Alarm Logging, TLG_F = Tag Logging
Fast, TLG_S = Tag Logging Slow)
+ date/time (year, month, day, hours, minutes).

If the time of the segment change is less than the RT Start time, an additional file
is created.

Such as, HMI_Generator_ALG_200904291201_200904300701.mdf. This file


structure also indicates that messages were recorded in this time period.
If the file only contains the time of the segment change, then no messages were
recorded in this time period.

Note The "Short-term archive" and "Long-term archive" buttons display the same
archive data in runtime. In the long-term archive, you can also store the online
comments.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 7 Alarm Logging
Message Blocks and Message Line

System blocks User blocks Process value blocks

Time Cause of fault Process value 2

Date Fault location Prozess value 1

Number
max. 10 max. 10

Message line

SITRAIN
ST-BWINCCS /Alarm Logging Page 8 Siemens AG © 2007

General Information
Messages are displayed as tables within an ActiveX (message window). From the
system blocks, process value blocks, and user text blocks, you specify which
columns these tables can have using the "Message List" tab.

System Blocks
The system blocks provide system information, such as the current time of day
(clock time).

User Text Blocks


User text blocks (max. 10) output the message text the user edited.

Process Value Blocks


Process value blocks (max. 10) display the value of a tag.

Note You can design the message line format resulting from the message blocks as you
want and this is created in the WinCC Alarm Control window.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 8 Alarm Logging
Message System Call-Up

1. Double-click on the Alarm Logging icon or via


shortcut menu, click on the mouse to select “Open”.
Result: Alarm Logging starts.
2. Maximize the window and set up the interface
as you want it.

SITRAIN
ST-BWINCCS /Alarm Logging Page 9 Siemens AG © 2007

Task Definition
Configuring the message system with message blocks, messages, message
classes, message archive and the WinCC Alarm Control.
The configuration must then undergo a function test.
The explanation of the configuration shows the settings necessary for the exercise.

Prerequisite
If no message events have been configured up until now, then they should be
configured now before additional message configurations are carried out (see
Chapter 3 for configuration instructions).

Message System Call


Refer to the slide above.

Exiting the Message System


M > File, O > Exit.
If a message system was open and you carried out changes and you have not
saved yet, a dialog box appears after the "Exit" command. The dialog box provides
you with the opportunity to save your changes.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 9 Alarm Logging
Message System Configuration Interface

Select Wizard

Limit value monitoring


M > Tools, O >Expansions ...
Editing window

Navigation window

Table window

SITRAIN
ST-BWINCCS /Alarm Logging Page 10 Siemens AG © 2007

General Information
After the message system is called, the division displayed in the slide above is
displayed on the monitor.
- The left window displays the editors in a tree structure.
- The right window displays the result of configuring the respectively selected
editor.
- The table window in the lower part of the screen represents the editing
possibilities for texts, tags, and attributes for the message number.

System Wizard
M > File, O > Select Wizard, System Wizard
To make it easier for you to begin configuring, the message system has a
configuration assistant (System Wizard). This configuration assistant takes all
significant settings into consideration in order to set up an executable message
system quickly.
The System Wizard orients itself on the tree structure displayed in the top left
portion of the slide above.
You can use the respective editor to change the defaults at any time.

Analog Alarm
M > Options, O > Add Ins....
You can enter the number of a message, that will be created in Runtime as soon
as an analog alarm appears.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 10 Alarm Logging
Wizard Overview
Export/Import Interface (*.CSV)
M>File, O>Select Wizard Create WinCC System Messages

Wizards

Engineering
dialogs

SITRAIN
ST-BWINCCS /Alarm Logging Page 11 Siemens AG © 2007

System Wizard
The System Wizard supports you in creating the default settings for the entire
Alarm Logging System.

Linking Wizard
The Linking Wizard simplifies the linking of (process) tags to messages.

Configuration Dialogs
Several Configuration Dialogs can be used to edit several messages at the same
time.

Note The ConfigurationTool offers you a simple and effective option for configuring
mass data in WinCC. Microsoft Excel is used as user interface. Thus you can
create a WinCC project in Microsoft Excel and benefit from the advantages offered
by Microsoft Excel regarding operator control.
The ConfigurationTool can be used to configure data from the data manager,
Alarm Logging, Tag Logging, and Text Library.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 11 Alarm Logging
Editing Message Blocks and Defining Properties

Context menu

Context menu

SITRAIN
ST-BWINCCS /Alarm Logging Page 12 Siemens AG © 2007

System Blocks From the system blocks available in the system, you can use a mouse to choose a
selection dialog (see slide above) to select the system blocks, for example, the
date.
It is possible to remove system blocks at a later time.

Editing System Blocks


- Use the mouse to click on the + character for message blocks in order to open
the object structure for the message blocks.
- Use the System Blocks "Add/Remove" shortcut menu to call up the selection
screen.

System Block Shortcut Menu


- Use the shortcut menu for the "Number" system block to call up the
"Properties“ instruction. You can now change the length of the number (number
of positions), flashing, and the name of the column title in the called up window.

This procedure is the same for all system blocks.

Editing User Text Blocks


Editing user text blocks and changing the properties takes place according to the
same rules as for system blocks. You have ten user text blocks available under
WinCC. You can change the user text block labels and lengths (for example,
block 3: -> error location).

Editing Process Value Blocks


Editing process value blocks and changing the properties takes place according to
the same rules as for system blocks. You have ten process value blocks available
under WinCC. You can change the process value block labels and lengths (for
example, process value 1: -> pressure).

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 12 Alarm Logging
Structure of Messages with Message Classes and
Message Types

1) Technological classification
1... 1... 16 Message Classes

Types 1... 16

2) Priority classification
1... 16 Message Classes

Types 1... 16

SITRAIN
ST-BWINCCS /Alarm Logging Page 13 Siemens AG © 2007

General Information
A message system is used to signal events that occur sporadically in the process.
These events are transmitted chronologically in the form of messages to a central
location where they can also be archived. The cause of a message can be either
an event or a message (telegram).

Message Class
Message classes differ with regard to the acknowledgement philosophy.
Messages with the same acknowledgement philosophy can be grouped together in
one message class. In Alarm Logging, the message classes "Malfunction",
"System, requires acknowledgement" and "System, without acknowledgement
requirement" are preconfigured. You can define up to 16 message classes in
WinCC.

Message Type
Message types are subgroups of message classes and can differ with regard to
the type of color of the message states. You can create up to 16 message types
for every message class in WinCC.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 13 Alarm Logging
Editing and Configuring Message Classes
Integration of WinCC system
messages
- Acknowledgement theory
- Status Texts
- Acknowledgement of central
signaling devices for messages

Max. 16 types

SITRAIN
ST-BWINCCS /Alarm Logging Page 14 Siemens AG © 2007

Each message of a project is located in an assigned storage consisting of


16 message classes with 16 message types each.
You can define these message classes and message types.

Editing Message Classes


- Through the "Message Classes" object, call the shortcut menu.
- Select the "Add/Remove..." command.
- Move the message classes from the left part of the window to the right part of
the window.
- Use the "OK" button to save the setting.

Changing Message Class Properties


- Call the shortcut menu from the message class object you just created.
- Select the "Properties" command in the shortcut menu.
- You can change the name (for example, message class 2 -> blast furnace)
and insert the message types in the called up window (refer to the screen
in the slide above).
- Use the "OK" button to save the settings.

System Messages
The "System, requires acknowledgement" and "System, without acknowledgement
requirement" message classes always exist and you can only change them using
the Properties function.
The system messages are generated by the different modules in WinCC.
In the menu bar, click on "Tools", in the drop-down menu, "WinCC - System
Messages" to integrate these messages in your message system.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 14 Alarm Logging
Editing the Message Types

SITRAIN
ST-BWINCCS /Alarm Logging Page 15 Siemens AG © 2007

Each message of a project is located in an assigned storage consisting of


16 message classes with 16 message types each.
The user can define these message classes and message types.

Editing the Message Types


- Call the shortcut menu from the message class object you just created.
- Select the "Add/Remove..." command in the shortcut menu.
- Move the message types from the left part of the window to the right part of
the window.
- Use the "OK" button to save the setting.

Changing the Message Type Properties


- Call the shortcut menu from the message type object you just created.
- Select the "Properties" command in the shortcut menu.
- You can change the name (for example, TYPE 1 -> warning) and the attributes
for the status texts in the called up window (see the screen in the slide above).
- Use the "OK" button to save the settings.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 15 Alarm Logging
Setting Up a Message Archive

Context menu

or

or

Revolving archive

SITRAIN
ST-BWINCCS /Alarm Logging Page 16 Siemens AG © 2007

WinCC >= V6 no longer differentiates between short-term archives and long-term


archives. In Alarm Logging, you define for which time period the data are to be
archived and as of when the data are to be overwritten.

Note By default, the backup begins one-quarter hour after the first time-dependent
segment change. With every configuration change, a new segment begins in RT.

Archive Configuration
The "Time period of all segments" or "Max. size of all segments" refers to the
entire archive. If the one or the other limit is exceeded, old segments are deleted.

The "Time period for single segments" or "Max. size of a single segment" refers to
archive slices. That way, the archive can be divided into several database files.

The "Time of the segment change": Here you can enter a defined start time, for
example for a daily segmentation, every segment is to begin at 0:00 o’clock. If the
project is started for the first time at 16:00 o’clock, the first segment goes from
16:00 to 24:00 o’clock. After that, every segment covers the period from 0:00 to
24:00 o’clock.

- smallest unit for the time period of all segments: 1 day


- smallest unit for the size of all segments: 32 megabyte

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 16 Alarm Logging
Backup Configuration

Context menu

RT Data

SITRAIN
ST-BWINCCS /Alarm Logging Page 17 Siemens AG © 2007

Swap Triggering The swap triggering begins 15 minutes after the archive segment (time period) is
completed or the maximum archive segment size is reached.

Example: RT Data COMPUTER_PROJECT_ALG_<Time_from>_<Time_to>.LDF


COMPUTER_PROJECT_ALG_<Time_from>_<Time_to>.MDF
DOZENT_Generatorhaus_ALG_200304300901.ldf
DOZENT_Generatorhaus_ALG_200304300901.mdf

Signing Off Activated


When signing off is activated and when backup is activated, each archive backup
file is signed off when it is swapped. That way, you can determine whether the file
was modified after it was swapped when the file is connected with WinCC once
more.

Activate Backup Activates the swapping of the archive data in the directories under "Destination
path" and / or "Alternative destination path".

Backup to Both Paths


Activates the swapping of the archive data in both directories "Destination path"
and "Alternative destination path".

Alternative Destination Path


The "Alternative destination path" is used if, for example, the network path for
the backup is not available, for example, because of a network failure.
Evaluation Access to the swapped data:
+ such as, with optional WinCC tools
+ copying the archive segments back into the associated subdirectory.
Such as: DOZENT_Generatorhaus_ALG_200304300901.mdf and with WinCC
"Connect" evaluate old archive.
Delete Backup To delete an archive backup, delete the associated LDF file and MDF file in the
Windows Explorer.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 17 Alarm Logging
Setting Up Messages for Reloading

Context menu

SITRAIN
ST-BWINCCS /Alarm Logging Page 18 Siemens AG © 2007

Activate the checkbox "Reload Message List After Power Failure" so that after a
power failure the messages that still exist at this time are loaded with the correct
time stamp from the archive into the message system.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 18 Alarm Logging
Resetting the Archive and Evaluating Backup Files

RT

Connect backup Disconnect backup


Context menu

WinCC in CS mode WinCC in RT mode

Reset: Link:
All Database files in the Necessary when old archive files
long-term archive are deleted are to be evaluated
after check back.
In the first RT mode, DB files Disconnect:
are automatically recreated. "Opposite" of Link
SITRAIN
ST-BWINCCS /Alarm Logging Page 19 Siemens AG © 2007

Sequence for Connecting


1. Copy backup files to a local drive or insert a memory medium (such as, CD).
2. Link databases.
3. Values are immediately available in RT: For Trends, you only have to scroll
through the archive.
For messages, you only have to read in the messages once more (such as,
changing from short-term archive into the long-term archive).
4. When you don’t need the data any longer, disconnect the database.
5. Data can then be removed from the local drive.

Connecting and Disconnecting in RT Alarm Control


"Connect backup" Click on the button to open a dialog box in which you can
connect selected backup files to WinCC Runtime.

"Disconnect backup" Click on the button to open a dialog box in which you can
disconnect selected backup files from WinCC Runtime.

Permit Automatic Connection of the Archive:


1. Insert the archive backup files into the directory
"Project_name\CommonArchiving".
2. In Runtime, the message archive is automatically connected to the project.

or via VBScript

If signing is activated, then changed, signed archive backup files are not
automatically connected. A WinCC system alarm is generated and an entry added
in the Windows events display under "Application".

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 19 Alarm Logging
Editing a Single Message for Bit Message Procedure

- Tags for
process value
- Info text
blocks
- Text for
- Loop in Alarm
user blocks
Message tag, open selection dialog picture

Reset entry

Context menu
“Properties“

SITRAIN
ST-BWINCCS /Alarm Logging Page 20 Siemens AG © 2007

You assign a message tag (in the figure above to the tag “Event1”) and a message
bit to single messages. Single messages can be combined into group messages.

Editing a Single Message


- Select a single message in the table window.
- Call the shortcut menu and select the "Properties" instruction.
- You can set the parameters for the single message in the window that is called
up (see screen in the slide above).
- Use the "OK" button to save.

Central signaling device


You can assign a tag for a central signaling device to each message class in the
"Acknowledgment" properties. You can assign any name to it (e.g. horn tag). This
tag is a binary tag. If the option "Activates horn" is checked in the properties dialog,
the horn tag will be set when the message is triggered. You can acknowledge this
horn tag by clicking the button "Horn acknowledgement". This button must be
added in Alarm Control.

triggers an action
The message triggers the standard function GMsgFunction.fct, which can be
changed in the "Global Script" editor. You will find this function under "Standard
functions/alarm" in the functions browser of the Global Script.
contains expanded associated values
The option "contains expanded associated values" refers to the evaluation of
alarm events from message blocks via raw data tags.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 20 Alarm Logging
WinCC Alarm Control in Graphics Designer

SITRAIN
ST-BWINCCS /Alarm Logging Page 21 Siemens AG © 2007

The WinCC Alarm Control is the runtime window in which messages are displayed
during runtime.

After the WinCC Alarm Control has been generated, the design, display and input
possibilities of a message window template are assigned parameters.

After the Alarm Control has been edited, the Properties window automatically
appears. You can assign additional parameters through the Properties window of
the Control (see next page).

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 21 Alarm Logging
Window Properties for WinCC Alarm Control
- Column header - Select trigger event - Toolbar on/off - Edit message -Edit message
- Sort for operator - Key function blocks line
- Line titles input message - Authorization ...
- Table contents - Hotkeys, Tooltip
- Status line on/off - CSV file
- Color attributes - Enable elements of
- Statistical of Alarm Control - Range
information Status line

Toolbar Can be reopened


Preview by double click

Message line

Status line
SITRAIN
ST-BWINCCS /Alarm Logging Page 22 Siemens AG © 2007

With the help of the window properties for the WinCC Alarm Control, you can
configure the message list structure, operator control, selections, statistics,
persistency, operator input messages, export parameters, and the display of a
message window. These properties become effective when a picture is selected
and can be changed via the configuration dialog icon in Runtime.

Call You can call the Properties window with a double-click on the left mouse
button.

Window Preview To obtain a window preview, you must first save the picture and then call it up
again.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 22 Alarm Logging
Message List for WinCC Alarm Control

1. Select 1. Select
2. Accept 2.Message block
Move up or down

Preview

Double click

SITRAIN
ST-BWINCCS /Alarm Logging Page 23 Siemens AG © 2007

Through the Message List tab, you can establish the sequence of the message
blocks in a message line (format).
You choose the message blocks that are to be displayed in the message line from
the configured message blocks. You can see the sequence in a preview. This
sequence can be changed by shifting the blocks.
Message blocks that do not already exist can be edited in through the Message
Blocks tab.

Data Preparation The data preparation takes into account the sorting of messages, the selection of
messages, the triggering of operating messages and the display options of
messages. For various views of the message list and message archive contents,
you have to repeat the configuration displayed in the screen using the WinCC
Alarm Control window.

Selection You can set Filters (according to message number, state, date...) using the
Selection button depending on conditions (>,<…). These filters take effect when
the picture is selected. The wildcards "*" and "?" are supported when setting a
criteria.

Sort Via the Selection button, filters for sorting (according to message number, state,
date...) in ascending or descending order can be set.

Preset selection A preset selection cannot be changed in Runtime.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 23 Alarm Logging
Configuration Notes

Bit Message Procedure “Reporting in the Correct Chronological Order“

- WinCC polls the message bits every + message telegrams are only sent when events occur
500ms
+ exact time-stamp for messages (length of the CPU
+ easy to configure cycle; e.g. 50ms)

- “central acknowledgement“ through - additional user program necessary


acknowledgement tags
- occupation of additional memory on the CPU
- must be configured new for every HMI
system (time-consuming changes) + central configuration useful for several HMI systems
(central changeability)

+ S7 blocks integrated in the operating system


+ no CPU program necessary

SITRAIN
ST-BWINCCS /Alarm Logging Page 24 Siemens AG © 2007

Data Type
You should use the largest possible data type for the bit message procedure. That
way, you can reduce the amount of data for the transmission.

Limit Messages
If limit messages (analog alarms) are configured in WinCC, then these values are
also requested cyclically.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 24 Alarm Logging
Exercise 1: Message blocks
System blocks

Properties
-Sequence -Time format -Length -6 digits -Length -Length
-Two digit year 8 characters -with leading 8 characters 15 characters
zeros
User blocks

Properties
-Length -Length -Length
32 characters 10 characters 22 characters

Process value blocks

Properties
-Length
15 characters
SITRAIN
ST-BWINCCS /Alarm Logging Page 25 Siemens AG © 2007

Objective Messages are to be added to the "Control Room" project. In the first step,
individual message blocks are created/edited.

Exercise 1. Open the WinCC "Control Room" project integrated in the S7 project
"Ventilation"

2. Open the "Alarm Logging" editor in WinCC Explorer

3. In the opened "Alarm Logging" editor, click on the "Message blocks" icon

4. Create/edit the message blocks specified in the slide above


(see also slide "Editing Message Blocks and Defining Properties").

5. Set the properties of the message blocks specified in the slide above.

6. Save the configured message blocks (click button with disks symbol)

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 25 Alarm Logging
Exercise 2: Message Class, Message Types, and Archives

Configuring message classes Message types Properties

Background color Background color


General -Name: Blast furnace
Light grey Dark grey
-Message types: Alarm,
Failure Foreground color
-Arrived: red
-Departed: green
Acknowledgement -Acknowledgement -Acknowledged: yellow
came in
Properties
Status texts -ARR
-DEP
-ACK
-A/D Reload after
power failure
-100 messages - See graphic text page
for reloading
SITRAIN
ST-BWINCCS /Alarm Logging Page 26 Siemens AG © 2007

Objective Messages are to be added to the "Control Room" project. In the next steps, a
message class and message types are created/edited, and the message archive is
parameterized.

Exercise 1. Open the "Alarm Logging" editor in WinCC Explorer


2. In the opened "Alarm Logging" editor, click on the icon "Message classes"
3. Create the message classes specified in the slide above. Adjust the
specified values.
4. Create the message types specified in the slide above. Transfer the
specified values.
5. Transfer the long-term parameters specified in the screenshot below. Click on
the icon "Archive configuration" to access the message archive
parameters
6. Save the changes you have made .

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 26 Alarm Logging
Exercise 3: Single Message

Table window

or Powertag IB0

SITRAIN
ST-BWINCCS /Alarm Logging Page 27 Siemens AG © 2007

Objective Messages are to be added to the "Control Room" project. In the next steps,
messages are created/edited. The messages 1 - 4 are to be triggered via the bits 0
- 3 of the message tag "Event1" in runtime mode.

Exercise 1. Open the "Alarm Logging" editor in WinCC Explorer

2. In the table window, right-click on an individual message


(see figure above) to open the context menu.

3. Select the command "Properties" in the opened context menu.

4. In the opened window (“Single Message”), the parameters for the single
message are assigned. The parameters are accepted by clicking the “OK”
button.

5. Create four single messages with the numbers 1 to 4. Take the parameters
specified in the table window in the slide above into consideration (see also
slide “Editing a Single Message for Bit Message Procedure”).
Note: The table shown above (in the table window) contains only one message
when it is opened for the first time. Parameterize this message with the
window "Single message" according to the specifications in the table
window in the figure above for message No. 1.
Then you can copy the message in the table window multiple times (via
"Copy line" and "Insert copied line"). Then you can adapt the
inserted message lines according to the specifications in the figure above.

6. Save the messages.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 27 Alarm Logging
Exercise 4: WinCC Alarm Control

General -Date
-Window Title “Blast furnace W.“ -Time
-Active list when picture opened: “Message list“ -Number
-Auto Scrolling deactivated -Status
-Class
-Type
Message lists -Message text
-Point of error
Parameters -Cause of fault

Status bar -Display -Column header “Display”


-Select all elements of -Column header “Changeable width”
the status bar -”Activate” line title
-Tooltips -Sorting by double-clicking on column header
-Sorting sequence by clicking on: up/down/none
Toolbar -Display toolbar
-Select all key functions
-Tooltips
Selection -Selectable lines “single selection”
-Selection frame “line”

Copy the picture Alarms.pdl into your project “ControlRoom“ from the catalog ab_exercise.
SITRAIN
ST-BWINCCS /Alarm Logging Page 28 Siemens AG © 2007

Objective Create a message picture that is called from the Start picture.

Exercise 1. From the catalog ab_uebung, copy the picture Alarms.pdl into your project
with the subdirectory GraCS from your project “ControlRoom” integrated in
the S7 project (D:\Training\WINCCS\Ventilation_Step7\wincproj\.....\GraCS).

2. Also import the figure in SIMATIC Manager via "Import WinCC objects" so
that the copied figure also becomes visible in the SIMATIC Manager display.
You can access this import function in SIMATIC Manager by right-clicking on
the OS icon with the WinCC project name "ControlRoom" to its right (below
the "WinCC Appl." icon").

3. In the “Alarms.pdl“ graphic screen generate a WinCC Alarm Control window.

4. Use the parameters given the the slide above for the WinCC Alarm Control
window (see also the slide “Window Properties for WinCC Alarm Control”).

5. Create the message line given in the slide above and set up the message
blocks given.

6. Add a button for selecting the message screen to the start screen "Start.pdl".
Make a backup copy of the changed start screen.

Note The properties of the WinCC Alarm Control window can be optionally changed.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 28 Alarm Logging
Exercise 5: Message Screen Function Test

WinCC Alarm Control

Connected to the Both I/O fields are


internal tag connected to the internal
“Event1” tag “Event1”

In the start up list, “Alarm Logging Runtime” must be selected.


SITRAIN
ST-BWINCCS /Alarm Logging Page 29 Siemens AG © 2007

Objective The created message screen is to be tested.


Exercise 1. Complement the computer start-up list. For this purpose, open the "Computer
properties" dialog box in WinCC Explorer. In this dialog box, activate the
following software component in the tab "Start up" in the list "WinCC Runtime
start-up sequence":
- Alarm Logging Runtime

2. Start WinCC Runtime in WinCC Explorer

3. In Runtime mode, open the picture "Alarms" and run a function test of your
configuration and check the attributes assigned by you. Stop Runtime after the
test.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 29 Alarm Logging
Exercise 6: Expansion of the Message Configuration 1/3

WinCC Alarm Control


Loop in Alarm

Connected to the Both I/O fields are


internal tag connected to the internal
“Event1” tag “Event1”

In the start up list, “Alarm Logging Runtime” must be selected.


SITRAIN
ST-BWINCCS /Alarm Logging Page 30 Siemens AG © 2007

Objective The created message system is to be expanded and tested. Furthermore, the
motor speed is to be displayed in a message and the function "Loop in Alarm" is to
be added. With "Loop in Alarm", a predefined picture can be opened direct from
the message line.

Exercise 1. Stop WinCC Runtime in WinCC Explorer or via the start screen.

2. Display message No. 2 with the process value from the tag "S7-
Program/User.Speed_ACT".
For this purpose, expand the "message lists" in Alarm Control with the process
value block "Process value: 1" and save the message screen.
In the Alarm Logging Editor, open the window ("single message") for message
No. 2 and select the tag name for the tag to be displayed in the tab
"Tag/Action". Use the browser button to select
"S7-Program/User.Speed_ACT" as tag name for "Process value: 1".
The parameters are accepted by clicking the "OK" button.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 30 Alarm Logging
Exercise 6: Expansion of the Message Configuration 2/3

Generate Header Compile

SITRAIN
ST-BWINCCS /Alarm Logging Page 31 Siemens AG © 2007

Continuation of the Exercise

3. From the catalog ab_exercise, copy the C action Loop_In_Alarm.fct into


the subdirectory library of your ControlRoom project integrated in the S7 project
"Ventilation"
(D:\Training\WINCCS\Ventilation_Step7\wincproj\.....\ library).
This C action is a global function.
Open the "C-Editor" of the "Global Scripts" to start use of this global function.
In the header of "Global Script C", click on the icon for "Generate Header" (to
the right of the question mark icon, see figure above).
Open the global C function Loop_In_Alarm.fct (under project functions). Check
the picture name and picture window name in this function and change it, if
necessary.
Compile the function using the "Compile" button (button with arrows pointing
downward, see figure above). Save the function and close the "Global Script"
area. Global functions and actions are described in detail in the chapter "Global
Script".

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 31 Alarm Logging
Exercise 6: Expansion of the Message Configuration 3/3

WinCC Alarm Control


Loop in Alarm

Connected to the Both I/O fields are


internal tag connected to the internal
“Event1” tag “Event1”

In the start up list, “Alarm Logging Runtime” must be selected.


SITRAIN
ST-BWINCCS /Alarm Logging Page 32 Siemens AG © 2007

Continuation of the Exercise

4. Connect message No. 2 to a "Loop in Alarm" picture.


In the Alarm Logging Editor, open the window ("single message") for message
No. 2 and in the tab "Tag/Action", add the picture name for the picture to be
opened via the "Loop in Alarm" function. Select as picture name/call parameter:
"Motor.pdl" via the browser button.
In addition, the function name: "Loop_in_Alarm.fct" must be selected via the
associated browser button. The parameters are accepted by clicking the "OK"
button. Save the changes in the message system.

5. Start WinCC Runtime and test the new functions. The button for triggering the
"Loop in Alarm" function (see figure above) is only activated when messages
with configured "Loop in Alarm" function are selected (inactive: gray, active:
colored).

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 32 Alarm Logging
Group Messages

1) From message classes:


Message class A Message class B ..... ... Message class P

Message type 1 .... Message type 16 ...... ... ..... Message type 1 ... Message type 16

2) From user-defined messages:


Message number x to (x+2n) ........... Message number y to (y+2m)

Messages .... .... Messages Messages .... .... Messages


x to x+n .... .... x to x+2n y to y+m .... .... y to y+2m

SITRAIN
ST-BWINCCS /Alarm Logging Page 33 Siemens AG © 2007

General Group messages are used to collect events (OR-ing) and their displays.
There are two different ways of creating group messages.
1) From message classes
2) From user-defined messages

A tag that specifies the status of the group message must be defined for each
group message.

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 33 Alarm Logging
Creating the Tag for a Group Message

SITRAIN
ST-BWINCCS /Alarm Logging Page 34 Siemens AG © 2007

Note The internal tag “GroupState”, as shown in the example above, is to be created
of the data type “Unsigned 16-Bit value".

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 34 Alarm Logging
Connect Status Tag with the Group Message (Message Class)

in Alarm - Logging

SITRAIN
ST-BWINCCS /Alarm Logging Page 35 Siemens AG © 2007

Note In this example, an internal tag "GroupState" of the data type "Unsigned 16-bit
tag" is used.
The two states ("Coming/Going" and the "Acknowledged state" of the group
message are stored in a status tag. Depending on the data type of the tag, up to
16 group messages can be recorded in a status tag. Each group message
occupies 2 bits in the status tag.
The position of the bit with the status "Coming/Going" in the status tag is identified
by the status bit. The position of the "Acknowledged bit" depends on the data type
of the status tag:

- 4 bits for the tag "8 bits unsigned"


- 8 bits for the tag "16 bits unsigned"
- 16 bits for the tag "32 bits unsigned"

Example "GroupState" status tag of the data type "16 bits unsigned"
If the status tag is of the data type "16 bits unsigned" and if the status bit = bit No.
6 was used for this group message, then
- bit No. 6 of the status tag characterizes the state "Coming/Going" of this group
message.
- bit No. 14 of the status tag characterizes if for this group message subject to
acknowledgment that has not been acknowledged.

Accordingly, the bits "0-7" correspond to "8-15" in a "16-bit" status tag .

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 35 Alarm Logging
Representation of the Status Tag for a Text Object
Bit 0: 0-there is no malfunction
1)
1-there is a malfunction

Bit 8: 0-message is acknowledged


1-message is not acknowledged

15... ..8 7... 0


00000001 00000001 Incoming not ackn.

00000000 00000001 Incoming ackn.

Outgoing not ackn.


00000001 00000000
2)
00000000 00000000 Outgoing ackn.
(finished)
3)

SITRAIN
ST-BWINCCS /Alarm Logging Page 36 Siemens AG © 2007

Evaluation The representation of the "Status tag of a group message" via a WinCC graphic
object "Static text" is implemented via three different dynamic dialogs in the figure
above. The status tag "GroupState" is evaluated in the dynamic dialogs. In this
example, only the following message states of a group message are considered:
- "Coming, not acknowledged" and
- "Going, not acknowledged".

The three dynamic dialogs in the figure above implement the following tasks:
- Dynamic dialog No. 1): Evaluation of bit "8" (acknowledged status)
Display (Yes/No) of the static text

- Dynamic dialog No. 2): Evaluation of bit "0" (message status)


Text output of the message status

- Dynamic dialog No. 3): Evaluation of bit "8" (acknowledged status)


Flashing (Yes/No) of the static text

The three dynamic dialogs are connected to the following properties of the WinCC
graphic object "Static text":
- Other/Display (1),
- Font/Text (2) and
- Flashing/Flashing background active (3)

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 36 Alarm Logging
Representation of the Status Tag for a Text Object

Bit 0: 0-there is no malfunction


1-there is a malfunction

Bit 8: 0-message is acknowledged


1-message is not acknowledged

15... ...8 7... 0


00000001 00000001 Incoming not ackn.

00000000 00000001 Incoming ackn.


Outgoing not ackn.
00000001 00000000
00000000 00000000 Outgoing ackn.
(finished)

SITRAIN
ST-BWINCCS /Alarm Logging Page 37 Siemens AG © 2007

Evaluation You use the dynamic dialog at the WinCC graphic object “Static text” for the
predefined static text field "incoming acknowledged" to evaluate the status tag
“GroupState” of a group message. Several bit statuses of a tag are thus linked to
contents in an expression.
The result of the expression is linked to the attribute “Other/Display” of the WinCC
graphic object “Static text”.

Expression ('GroupState'& 0x0001)&& !('GroupState'& 0x0100)

& Binary AND


&& Logical AND

SITRAIN Training for ST-BWINCCS


Automation and Industrial Solutions Page 37 Alarm Logging