Contents
Page
Training Training aims ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ........... ........... ........... ........... ........... ........... ......
3
Preparing Preparing for configurat configuration ion
............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ........... ......... ....
4
Overview Overview of the message message system system ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ........ ..
5
Project Project planning planning notes
............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ........... ........... ......... ...
6
Message Message system system (2/3) ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ........... ........... ........... ......... ....
7
Message Message blocks, blocks, message message line ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ........... ....... ..
8
Message Message blocks ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ........... ........... ........... ........... ........... ....... ..
9
Structuring Structuring messages messages with message message classes classes and types ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........
10
Alarm Logging editor Configuring message classes and types ..................................... ........................................................... ......................
11
Alarm Logging editor Configuring Configuring message types .................................. ............................................................... ............................................. ................
12
Alarm Logging editor Archive configuration configuration ............................................................. ........................................................................................ ...........................
13
Alarm Logging editor Creating individual individual messages ............................................................. ............................................................................ ...............
14
Alarm Logging editor Properties of of individual messages messages .................................. ............................................................... .................................. .....
15
Alarm Logging Runtime Alarm Control Control
............................................................. ............................................................................................. ................................
16
Alarm Logging Runtime Data storage ..................................... ........................................................................ .......................................................... .......................
17
Exercise Exercise 1: Messag Message e blocks ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ........... ........... ......
18
Exercise Exercise 2: Messa Message ge class, class, message message types types ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ .......... ....
19
Exercise Exercise 3: Archi Archive ve configura configuration tion ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ......... ...
20
Exercise Exercise 4: Single Single messages messages ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ........... ........ ...
21
Exercise Exercise 5: System System messag messages es ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ............ ........... ....... ..
22
Exercise Exercise 6: Creating Creating a message message picture picture ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... .......... .....
23
Exercise Exercise 7: Function Function test message message picture ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... .....
24
Exercise Exercise 8 (optional): (optional): Process Process value value block ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... .......
25
Exercise Exercise 9 (optional): (optional): Loop in Alarm Alarm ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... .......... ....
26
Status Status tags with message message groups groups
SITRAIN Train Trainin ing g for for Automation Automation and Industrial Industrial Solutions Solutions
............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ............ ........... ........... ........... .....
Page 1
ST-BWINCCS Alarm Logging
27
Contents
Page
Status Status tags with message message types and message message classes classes ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........ ..
28
Configurati Configuration on of status status tags e.g. message message types ............ ................. ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........... ........
29
SITRAIN Train Training ing for for Automation Automation and Industrial Industrial Solutions Solutions
Page 2
ST-BWINCCS Alarm Logging
The participant will : •
Get to know the advantages of the message system
•
Be able to adapt the message system to the plant requirements
•
Be able to configure messages
•
Be able to create message lines (formats)
•
Be able to define message classes
•
Be able to define message types
•
Be able to set up message archives
•
Know group messages
•
Know export/import functions
•
Get to know Loop in Alarm
•
Know message selections
•
Be able to show messages in a picture
•
Be able to archive messages
SITRAIN Training for Automation and Industrial Solutions
Page 3
ST-BWINCCS Alarm Logging
Preparing for configuration
SITRAIN Training for Automation and Industrial Solutions
Process coupling • Defining tags with message bits (bit message procedure) Message archiving • Grouping all messages • Specifying message blocks • Defining the content and appearance of the message format • Specifying an acknowledgement concept • Specifying the time period for archiving • Specifying process values (optional) • Assigning alarm classes • Specifying a message picture
Page 4
ST-BWINCCS Alarm Logging
SITRAIN Training for Automation and Industrial Solutions
Page 5
ST-BWINCCS Alarm Logging
Data typ e With the bit message procedure, the largest data type that can be used i s an unsigned 32-bit tag from which up to 32 messages can be deriv ed. This allows the number of powertags to be kept low. Limit value messages If limit value messages (analog alarms) are configured in W inCC, these values are also requested cyclically.
SITRAIN Training for Automation and Industrial Solutions
Page 6
ST-BWINCCS Alarm Logging
Arc hi vi ng
To archive messages, WinCC uses a circular archive with a configurable size that you can configure with or without backup. Storage of the archive files is always on the local computer in t he corresponding project. The WinCC message archive consists of multiple individual segments. You can configure both the size/tim e of the message archive and the size/time of the individual segments in Wi nCC: Example: The message archive records all messages that occur within one week (1) , each individual segment records the messages that occur within one day (2). You can always configure both conditions at the same time. If either of the two criteria (tim eor size) is exceeded, the following happens: Criterion for message archive (DB) is exceeded (-1)> the oldest messages (in other words the oldest single segment) are deleted. Criterion for single segment exceeded (2)-> a new single segment (SS) is created. A new single segment is also created if message data is configured online (when downloading changes online).
DataMonitor
For visualization and evaluation, WinCC/DataMonitor provides a range of tools for viewing (view only) and online analysis, for example using Excel, that can be used via the Internet and that support all the common security mechanisms such as login/password, firewalls, encryption, etc.
Connectivity Pack
Access to WinCC via OPC and OLE-DB With OLE-DB, it is possible to directly access archiv e data saved in the MS SQL Server database by W inCC. The OPC HDA (Historical Data Access) and OPC A&E (Alarms & Events) servers allow access to historical data of the WinCC archive system or for forwarding / acknowledging messages.
Connectivity station Access from external computers to archive data without WinCC installation via standard interfaces OPC and OLE-DB IndustrialDataBridgeConfigurable connection to databases and I T systems Note
Without associated values and comments, a message requires approximately 172 bytes of memory (RT database), see FAQ 16619980.
SITRAIN Training for Automation and Industrial Solutions
Page 7
ST-BWINCCS Alarm Logging
General Messages are represented as tables within an ActiveX (message window). W hich columns these tables can hav e, you specify from the system, process v alue and user text blocks. System blocks The system blocks output system inform ation, e.g. the time of day or the status of the message User text bloc ks User text blocks (max. 10) output message texts edited by the user. Process value bloc ks The process value blocks (max. 10) display the value of a tag. Note
The message list resulting from the m essage blocks can be freely designed and is created in the W inCC Alarm Control window.
SITRAIN Training for Automation and Industrial Solutions
Page 8
ST-BWINCCS Alarm Logging
System blocks
With the system blocks, the configuration engineer can select the blocks from a predefined list that will be saved in the database for each m essage. Adaptations for example of the number of characters or the ali gnment (left, centered, right) are also possible. W ith some blocks for example the time and date, the f ormat can be specified. Example Date:
User block s
Up to 10 user blocks can be selected. Here, it is prim arily the number of characters and the name of the block that is specified. As with other blocks, this can be translated into the select ed runtime languages. Which runtime languages are available in a WinCC project is specified in the Text Library editor.
Process value bloc ks Up to 10 process value blocks can be activ ated. When configuring a single message, a WinCC tag can be defined later for every process value block. When the message then arrives in runtime, the current value of the W inCC tag is saved in the database along with the message. W hen the message goes, the current v alue is saved again, not however when the message is acknowledged.
SITRAIN Training for Automation and Industrial Solutions
Page 9
ST-BWINCCS Alarm Logging
General The message system is used to chronologi cally signal and archive event s that occur sporadically during the process via messages at a central locati on. A message can be caused by an event or a message frame. Division
All messages can be divided into message classes according to self-defined criteria. These in turn can be further div ided into message types.
Message cl ass
The following message classes are preconf igured in Alarm Logging: "Error", "System, Requires Acknowledgment", and "System, W ithout Acknowledgment". In addition to the two system message classes, you can define up to 16 further message classes.
Message typ e Message types are subgroups of m essage classes. You can create up to 16 message types in W inCC for each message class.
SITRAIN Training for Automation and Industrial Solutions
Page 10
ST-BWINCCS Alarm Logging
Alarm Lo gg in g edito r The message classes can be f ound in the navigation panel under "Messages". Under the message classes, there are t he message types. Properti es of a message class As of WinCC V7.3, the message class has almost no properties any longer. Only the name and tags (will be explained later). Prior to V7.3, for example, the acknowledgment philosophy was also defined in the message class.
Note
The "Messages" tab is visible if you select one of the message classes or one of the message types in Messages in the nav igation panel. If "Messages" is selected, all messages are di splayed. In the shortcut menu of "Messages", you hav e the option of selecting that all system messages and/or all "AS messages" and/or all messages from the area "Analog alarm s" should also be visible. If a message class is selected, all messages of this message class are di splayed in the "Messages" tab. If a message type is select ed, all messages of this message type are di splayed in the "Messages" tab.
SITRAIN Training for Automation and Industrial Solutions
Page 11
ST-BWINCCS Alarm Logging
Properties of th e message type Practically all properties such as t he acknowledgment philosophy, colors etc. are set in the message type parameters since WinCC V7.3. Below, you will find most important properties of a message type: Ackn ow led gement
Here, no acknowledgement for a m essage class, acknowledgement when a message came in or acknowledgement when it cam e in and went out can be set.
Flash On
With this, the flashing of individual message blocks can be activated. These message blocks are shown fl ashing in the message list (not for ex ample in the short-term archiv e list) as long as the message has not been acknowledged. This requires flashing to also be selected in the properties of the r elevant message block.
Without status " went out" This is typically selected with system messages combined with no acknowledgment. This means that no entry is m ade in the message list, but only an entry in the archive lists (short or long-term archive). Status texts
Here, self-defined texts for the statuses can also be stored, e.g. c f or "came in", w for "went out", etc. Note: If these texts should also be displayed in runtim e, in the settings of the "WinCC AlarmControl", in the Message Blocks tab, f or the message block "Status", "Content as text" shuold be selected.
Tags
Will be explained later
Colors
Here, the font color and the background color can be set for different message statuses.
SITRAIN Training for Automation and Industrial Solutions
Page 12
ST-BWINCCS Alarm Logging
Arc hi ve con fi gu ratio n Here, you have exactly the same options in the shortcut menu as in the "Archive Configuration" and "Backup Configuration" tabs as shown in the section Tag Logging. The only diff erence is that the "Archive Contents" tab is missing. The reason for this is that in Tag Logging the runtime data is either sav ed in "TagLogging Fast" or in "TagLogging Slow". Wi th the messages, on the other hand, there is only one database "AlarmLogging". Note
Later in WinCC Runtime, the "Short-term archive list" and the "Long-term archive list" can be displayed in WinCC AlarmControl. In earlier WinCC versions there were actually 2 dif ferent archives. Since WinCC V6.0, these archives were put together and therefore the "Short-term archiv e list" and the "Long-term archive list" are today simply two v iews of the same database.
SITRAIN Training for Automation and Industrial Solutions
Page 13
ST-BWINCCS Alarm Logging
" Messages" tab The "Messages" tab is visible if you select one of the message classes or one of the message types in Messages in the nav igation panel. If "Messages" is selected, all messages are di splayed. If a message class is selected, all messages of this message class are di splayed in the "Messages" tab. If a message type is select ed, all messages of this message type are di splayed in the "Messages" tab. In these tabs, for example with auto filling further messages can be created sim ply. The properties of a message can be adapted in the table view or in the properties. Number
Every message receives a unique message number. System messages start with message number 1,000,000.
Message group, status tag, acknowledgment tag Details to follow later Message tag
Here, WinCC tags of the type "binary tag", "unsigned 8-bit v alue", "signed 16-bit value" or "unsigned 32-bit v alue" can be selected. If a "binary tag" is involved, the message bit must also be specified.
Priority
Specifies the priority of the m essage. Messages can be selected and sorted based on their priority. The range of values is "0" to "16". WinCC does not specify which value corresponds to the highest priority.
SITRAIN Training for Automation and Industrial Solutions
Page 14
ST-BWINCCS Alarm Logging
Central si gnaling device For every message type, you can set a "tag for a central signaling device". To do this, you can select any tag of the type "binary tag". If the check mark "Central signaling device" is set in t he Properties dialog of the message, the horn t ag is set when the message is tri ggered. You can reset this horn tag with the " Horn acknowledgement" button in the Alarm Control or by acknowledging the message. Arc hi ved
The default for "Archived" is active. If this parameter is disabled, an incoming message is not written to t he database; in other words, thi s message is only in the message window in runtime but is not visible in the short-term archive list or longterm archive list.
Fallin g edge
If this is enabled, the m essage will be displayed as havi ng come on a falling edge (1 -> 0).
Triggers action The message triggers the standard f unction GMsgFunction.fct that can be changed with the "Global Script" editor. In the f unction itself, the message number is then queried and a there is a suitable reaction. The function is avail able under "Standard Functions/Alarm" in the function browser of Global Script. Loop in Al arm, Function n ame, Function parameters If "Loop in Alarm" is enabled, in runtime after selecting this message the operator can click the "Loop in Al arm" button. This calls the C f unction stored in Function name possibly with the v alue stored for the function parameter. The typical example is calling the relev ant process picture.
SITRAIN Training for Automation and Industrial Solutions
Page 15
ST-BWINCCS Alarm Logging
Display in Runtime A table display of messages is possible with the "WinCC AlarmControl". In the properties of this control, the following settings can be made: - Font - Which message blocks should be displayed in which order? - Which buttons should be displayed in the toolbar? - Which information should be displayed in the status bar? - Settings for online configuration
SITRAIN Training for Automation and Industrial Solutions
Page 16
ST-BWINCCS Alarm Logging
Name RT-DB
The runtime data is distributed over the master database and several runtime databases. The master database manages the runtime databases and references the individual runtime databases. The master database is created in the pr oject directory. The name of the m aster database is as follows: ProjectnameRT.ldf and ProjectnameRT.mdf The runtime databases (also known as single segments) each contain the archived data related to a specific period of time. The segments of the database are located in the subfolder ArchiveManager\AlarmLogging A database segment always consists of two files (*.ldf and *.mdf). ldf = Database Transaction Log File (organizational file) mdf = Database Primary Data File (File with the user data) The file name is made up as follows: WINCC30_Control#Room_ALG_201407290727_201407290927.ldf PCname_Projectname_ALG_YYYYMMDDHHMM_YYYYMMDDHHMM.ldf ALG = AlarmLogging The time stamps show the starting t ime and if two time stamps are present, also the end time.
Note 1
The time stamps indicate UTC time.
Note 2
The "Short-term archive list" and "Long-term archive list" buttons of the AlarmControl show the same archive data in runtime. There are only functional differences, the short-term archiv e list is, for example updated when a new message arrives, the long-term archive list on the other hand is not.
SITRAIN Training for Automation and Industrial Solutions
Page 17
ST-BWINCCS Alarm Logging
Objective
The Control_Room project needs to be ex panded with messages. In the first step, the individual message blocks are created/edited.
Exercise
1. In the WinCC Explorer open the "Alarm Lo gg in g" editor
-
2. In the open " Alarm L og gi ng " editor, click on the "Message blocks" icon and then on System blocks. In the colum n "Used", select Date, Time, Status, Number, Class and Type. Adapt the num ber of characters and format according to the figure above.
-
4. In the navigation panel change to "User text blocks" and adapt these according to the figure above. 5. In the navigation panel change to "Process value blocks" and adapt these according to the figure above.
SITRAIN Training for Automation and Industrial Solutions
Page 18
ST-BWINCCS Alarm Logging
Objective
In the next steps, a message class and two message types will be created and edited.
Exercise
1. In the shortcut menu of the "Messages" nav igation item, you can create the message class "Blast furnace". 2. In the shortcut menu of "blast furnace", you create the message types "Alarm" and "Failure". 3. For both message types, enable the acknowledgement philosophy "Acknowledgement came in". 4. Set the colors according to the figures above.
SITRAIN Training for Automation and Industrial Solutions
Page 19
ST-BWINCCS Alarm Logging
Exercise
1. In the shortcut menu of the "Messages" nav igation item, you can open Archive Configuration/Properties. 2. The entire message archive should be 2 weeks in size. Every day a new segment should be created.
SITRAIN Training for Automation and Industrial Solutions
Page 20
ST-BWINCCS Alarm Logging
Objective
In the next steps, messages will be created/edited. Messages 1 to 4 will be triggered in Runtime mode by bits 0-3 of the message tag "Messages_1_16".
Exercise
1. Navigate to the message type "Alarm" of the message class "Blast furnace". 2. Initially create only the first message (see the figure above). 3. Using auto filling, create messages 2 to 3. Then adapt the texts and message type (see the lower figure).
SITRAIN Training for Automation and Industrial Solutions
Page 21
ST-BWINCCS Alarm Logging
Objective
In the next steps, all system m essages will be enabled.
Exercise
1. Go to "System messages". 2. Select all system messages. You can do this by mouse clicking in the left top corner of the table or with the key combination Ctrl + a. 3. In the shortcut menu of the selected messages you can then select all".
SITRAIN Training for Automation and Industrial Solutions
Page 22
"Select
ST-BWINCCS Alarm Logging
Exercise
1. Open the Graphics Designer and create a new picture with the name "Messages.pdl" and with the same size as your previous pictures. 2. Add a button to the start picture for selecting the picture "Messages.pdl". 3. In the messages picture, add a check box (Object palette/Windows Objects). Connect the check box to t he tag "Messagebits_1_16" (Properties: Output/input -> Selected Boxes). Change "Number of Boxes" (Properties/Geometry) to 4. As an option, you can also adapt the texts for message 1 to message 4. 4. In the Messages picture, select the control "WinCC AlarmControl“ in the Controls palette and then drag it to the required size in the new picture. 5. In the configuration dialog of the control, make the following settings: Message lists tab: Also select the message blocks, Class, Type, Message text, Point of error, Reason of error and Process v alue 1. Toolbar tab: For test purposes, select all key functions. 6. Save the all open pictures (File/Save All).
Note
With controls a correct preview is only shown when the zoom level for the graphics picture is set to 100%.
SITRAIN Training for Automation and Industrial Solutions
Page 23
ST-BWINCCS Alarm Logging
Exercise
1. Before you start WinCC Runtime, please enable "Alarm Login Runtime" in the computer properties. 2. Start WinCC Runtime. Perform the following operations and tests: •
Change to the message list. Have Message 1 come in, acknowledge this message and then have it go out.
•
Have 3 messages come in, Acknowledge these 3 messages with a mouse click (Group acknowledgement button, first enable AutoScrol l button).
•
Change to the short-term archive list. Have a message come in, go out and come in again. Note the system acknowledgement.
•
Lock message 4. Then by setting and resetting the corresponding message bit, test whether this message is stil l generated. Note the status bar as well. Unlock Message 4
•
Call up the statistics "Hit list".
•
Change to the short-term archive list. Open the Selection dialog. Create a new selection with the name "Onl y system messages" with the condition: Message number >= 1000000 Enable this selection. Onl y system messages should now be shown. Deactivate this selection.
•
SITRAIN Training for Automation and Industrial Solutions
Find a functional difference between the short-term archive list and the long-term archive list.
Page 24
ST-BWINCCS Alarm Logging
Exercise
1. Stop WinCC Runtime. 2. Start the Alarm Logging editor. 3. For message 4, select the internal tag "Temperature_R1" in the properties in the section "Process values" for "Process value: 1". 4. For test purposes, add an IO field in the messages picture and also link the internal tag "Temperature_R1". 5. Start runtime. 6. Have Message 4 come in. Change the value for the tag "Temperature_R1" and have message 4 go out again. Note the entries in the column "Process value: 1".
SITRAIN Training for Automation and Industrial Solutions
Page 25
ST-BWINCCS Alarm Logging
Exercise
1. Stop WinCC Runtime. 2. Start the "Global Script C" editor. 3. Create a new project function " Change picture" as shown in the figure above. You will find the function SetPictureName in Internal Functions /graphics /set/miscs". "Start.pdl“ = name of the background pict ure "Work_pic“ = name of the picture window in the background picture PictureName = name of the parameter transferred with the function 4. Save the project function with the name ChangePictureWorkPic.fct. 5. Change to the Alarm Logging editor. 6. Go to the properties of message 4. There, enable the property Loop in Alarm, under Function name select the functi on "Change picture" you just created and as the function parameter transfer the picture name "Motor.pdl" (see lower figure). 7. Start runtime. 8. Have message 4 come in and click on the button "Loop in Alarm".
Note
with “Loop in Alarm" only C functions are possible.
SITRAIN Training for Automation and Industrial Solutions
Page 26
ST-BWINCCS Alarm Logging
General
Message groups serve to collect events (OR logic operation). They are not displayed in WinCC Alarm Control as a further message.
In the example above, some messages (10, 11, 12 and 13) are grouped together in message group A. If at least one of the messages is active, the bit for active is also set in the status tag of message group A. If at least one of the messages is unacknowledged, this information is also stored in the status tag in binary format. A second status tag shows the status (Active? Unacknowledged?) of message group B which are derived from the messages 19, 21, 22 and 24. It is also possible to configure message groups at different levels (tree structure). The higher-level message group (in t he figure message group A_B) selects the lower-level message groups.
SITRAIN Training for Automation and Industrial Solutions
Page 27
ST-BWINCCS Alarm Logging
General
Status tags can also be conf igured for message types and message classes. In the example above, messages 10 to 13 belong to the message type Alarm and the message class Messages 19, 21, 22 and 24 belong to the message type Warning and also to the message type If at least one of the messages of a message type is active, the bit for active is also set in the status tag of the message type. If at l east one of the messages is unacknowledged, this information is also stored in the status tag in binary format. The status information of the message types is automatically collected in the status tag of the higher-l evel message class.
SITRAIN Training for Automation and Industrial Solutions
Page 28
ST-BWINCCS Alarm Logging
Status tag
As status tags, only unsigned 8-, 16- or 32-bit tags can be configured. In the example above, the message class "Alarm" contains the messages 1 and 2 and as the status tag has "Status_tag_furnace_alarm" with status bit 0. The message class "W arning" contains the messages 3 and 4 and as the status tag has the tag "Status_tag_f urnace_warning". Here, however, status bit 2 has been selected.
Runtime
The status tags are automatically supplied with the collected status information. Each tag is divided logically in the middle. In the left part there is the acknowledgement information (1 = unacknowledged) and in the right part the status (1 = at least one message is pending). The status tag "Status_tag_furnace_alarm" for example has the following value in runtime: 0000 0001 0000 0001 -> Status bit 0 shows the status, bit (0+8) shows the acknowledgement status.
The status tag "Status_tag_furnace_warning" for example has the foll owing value in runtime: 0000 0100 0000 0100 -> Status bit 2 shows the status, bit (2+8) shows the acknowledgement status.
SITRAIN Training for Automation and Industrial Solutions
Page 29
ST-BWINCCS Alarm Logging