Professional Documents
Culture Documents
05 - Alarm Logging PDF
05 - Alarm Logging PDF
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
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
- Edit Messages
- Message Classes
- Message Archives
- Group Messages
SITRAIN
ST-BWINCCS /Alarm Logging Page 3 Siemens AG © 2007
- 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
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
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.
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.
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
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".
If the time of the segment change is less than the RT Start time, an additional file
is created.
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.
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).
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
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).
Select Wizard
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.
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.
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.
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.
Max. 16 types
SITRAIN
ST-BWINCCS /Alarm Logging Page 14 Siemens AG © 2007
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
ST-BWINCCS /Alarm Logging Page 15 Siemens AG © 2007
Context menu
or
or
Revolving archive
SITRAIN
ST-BWINCCS /Alarm Logging Page 16 Siemens AG © 2007
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.
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.
Activate Backup Activates the swapping of the archive data in the directories under "Destination
path" and / or "Alternative destination path".
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.
RT
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
"Disconnect backup" Click on the button to open a dialog box in which you can
disconnect selected backup files from WinCC Runtime.
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".
- 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.
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
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).
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.
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.
- 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)
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.
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
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"
3. In the opened "Alarm Logging" editor, click on the "Message blocks" icon
5. Set the properties of the message blocks specified in the slide above.
6. Save the configured message blocks (click button with disks symbol)
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.
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.
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.
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
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").
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.
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.
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
ST-BWINCCS /Alarm Logging Page 31 Siemens AG © 2007
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).
Message type 1 .... Message type 16 ...... ... ..... Message type 1 ... Message type 16
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
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".
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:
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.
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
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
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”.