2. Date: 04/22/14
File: System_Melden_4e.2
SIMATIC HMI
Siemens AG 2002. All rights reserved.
SITRAIN Training for
Automation and Drives
Topics in this Chapter
• Message lines
• Message window
• Message classes
• Message archive
3. Date: 04/22/14
File: System_Melden_4e.3
SIMATIC HMI
Siemens AG 2002. All rights reserved.
SITRAIN Training for
Automation and Drives
Message System
Files
MPI (RS485) or Profibus
S7- 400S7- 300
4. Date: 04/22/14
File: System_Melden_4e.4
SIMATIC HMI
Siemens AG 2002. All rights reserved.
SITRAIN Training for
Automation and Drives
Configuration Example
PLC program Bit arrayContact switch:
Water inlet valve
Open
Closed
AN I 0.0
= M 41.0
I 0.0
• PLC program
• Bit array for messages
• Area pointer
• Text input
Area pointer Text input
MW 40
10. Date: 04/22/14
File: System_Melden_4e.10
SIMATIC HMI
Siemens AG 2002. All rights reserved.
SITRAIN Training for
Automation and Drives
Archives
Archive_1
Archive_2
Archive_3
Tags
Var_1
Var_2
Var_3
Message events
Message class_1
Message class_2
11. Date: 04/22/14
File: System_Melden_4e.11
SIMATIC HMI
Siemens AG 2002. All rights reserved.
SITRAIN Training for
Automation and Drives
Types of Archives
Possible types of archive:
Short-term archives
Sequence archives
18. Date: 04/22/14
File: System_Melden_4e.18
SIMATIC HMI
Siemens AG 2002. All rights reserved.
SITRAIN Training for
Automation and Drives
System Messages
Message number
System messages on the operating unit are divided into different
categories.
The message number contains information about the category of a
system message:
Message number
Message text
01 ...... Categories
The message category gives a rough indication of the cause of a system
message.
In the following is a selection of important system messages, when they
occur and how the cause of the error can be eliminated, if possible.
Note: System messages are displayed in the language selected when
configuring.
19. Date: 04/22/14
File: System_Melden_4e.19
SIMATIC HMI
Siemens AG 2002. All rights reserved.
SITRAIN Training for
Automation and Drives
Printout of the Message Archive with the Listing of the
Message Texts
Editor's Notes
ContentsPage
Topics in this Chapter .......................................................................................................................2
Message System ..............................................................................................................................3
Configuration Example .....................................................................................................................4
Area Pointers ....................................................................................................................................5
Event Messages / System …............................................................................................................6
Message Texts .................................................................................................................................7
Event Messages / Screen Object .....................................................................................................8
Event Messages .............................................................................................................................. 9
Archives ............................................................................................................................................ 10
Types of Archives ........................................................................................................................... 11
Event Messages / Archives ........................................................................................................... 12
Event Messages / System …............................................................................................................ 13
Archive Messages / Screen Object .................................................................................................14
Alarm Messages .............................................................................................................................. 15
Alarm Messages ............................................................................................................................... 16
Reading the S7 Diagnostic Buffer ………………………………………………………………………..17
System Messages ............................................................................................................................. 18
Printout of the Message Archive with the Listing of the Message Texts ......................................... 19
Participants should:• Know the advantages of the message system• Be able to adapt the message system to the requirements of their plant• Be able to configure messages• Be able to create message archives• Be able to archive messages
GeneralThe message system enables events from the PLC or from the monitoring function in ProTool/Pro ( operating states, faults, etc.) to be displayed in the form of messages, allows them to be archived if required and printed out, and also enables them to be acknowledged by the operator.For this purpose you have to configure messages, which are divided into three different classes.
1) Event messages:
These are used for indicating plant states.
2) Alarm messages:
These are used for critical occurrences in the plant.They have a higher priority than the event messages and have to be acknowledged by the operator.
3) System messages:
These are used by ProTool/Pro to display information about the system.
The messages are also stored in a FIFO buffer or sequence archive on the hard disk to enable the user to refer to the history.
Example:
IntroductionThe display of an event message on the screen is triggered by the setting of a bit in the user program in the PLC. A message can be triggered by either a memory bit or a data bit. The message continues to be displayed as long as the bit remains set.
DescriptionThe machine operator is about to start a filling operation, but has forgotten to open the water inlet valve on the mixer. The message "Open Water Inlet Valve" would immediately alert the operator to the error and enable it to be corrected as quickly as possible.
Contact switchThe information as to whether the water inlet valve is open or not is provided by a contact switch at an input on the PLC, such as I 0.0. This information must then be evaluated in the user program. This can be done, for example, by performing a logic operation with this input (AN I 0.0) and a message bit (in this case M 41.0).
Bit arrayA bit array consisting, for example, of memory or data words, indicates the current status of each message. Each bit that is set in the array (in this caseM 41.0) indicates that the relevant message is active.
Area pointerThe system (OP or PC) independently reads in the bit array from the PLC. A so-called area pointer cyclically "scans" the bit array and recognizes whether a bit is set. If memory bit 41.0 is set in the array in our example, the associated message (in this case event message No. 1) is displayed on the screen.
Message textYou enter the necessary message text and the "area pointer list" with ProTool/Pro. You use the area pointer list to assign the messages in the operating unit to the bits in the array on the PLC. In the example, memory word MW 40 is used for event messages 1 to 16.
Exercise 1aConfiguring an area pointer
Area pointer list- Add - Event Messages - DB127, DBW10 - Length 1.
Screen / Keys- Activate the message indicator (This appears when and for as long as alarm messages are active) and select the window display mode for the event and alarm messages.
Note:Arrange the positions of the message window and message indicator so that they do not obscure any important information on your screen.
Exercise 1bMaking message settings for the destination system
System-Messages / Settings
Properties box:
Message Settings-Printout ( without printer: "off" | with printer: "ON")
-Alarm Messages
-Buffer Overflow
-Character / Titles
Exercise 1cConfiguring message texts
Message Editor- Select Event Messages. Configure event messages Nos. 1 to 16 with info texts. (You can also underline the messages or make them flash!).
Exercise 1dCreate the message view shown on page 9
Buttons- Configure the buttons: - Functions/Messages/Show_event_message_buffer.
- Functions/Messages/Show_event_message_window.
- Functions/Messages/Show_event_message_page.
Function keys- Configure the function keys:
- Function key F1 / Keyboard / Other Functions / Display_Help_text.
- Function key F3 / Keyboard / Go_to_Home
- Function key F4 / Keyboard / Page_Up.
- Function key F5 / Keyboard / Page_Down.
- Function key F6 / Keyboard / Go_to_end.
- Function key F10 / Messages / Clear_message_buffer.
Screen Object- Set the Message View properties
Properties box:
General- Messages
- Message Events
- (S7) Diagnosis Buffer From PLC
- Message Archive
- Message Classes
Columns- Visible Columns;-Sort;-Column Properties
Display- Display;-Multi-Line Display; -Size To Fit
Test- Open your message view.
- Trigger event messages by making entries in the DB127 DBW10 input field.- You can enter a value for the variable in DB127, DBW0 and this value must appear in the display after the event message is triggered.- Click the buttons to view the event message window, event message buffer and event message page.
Exercise 1eEvent messages
General- This time the event messages are to be managed in the RAM of the PC and displayed on the monitor direct.- 1024 event and alarm messages can be handled in the RAM when it is used as a FIFO buffer.
- 500 event messages and 250 alarm messages can be queued at the same time ( See also the ProTool/Pro Runtime User's Guide)
- The next step is to configure an archive in which the messages are stored on the hard disk.
Exercise 1fCreate the message screen (see above)
- Configure a Simple Message View in the fixed window.- Message view in the main screen with buttons
NoteAs of Version 6.0 you can also display messages that give the error location and a time stamp in milliseconds.
Technical Specifications
Archive typesShort-term archives, sequence archives
Data that can be archivedProcess values, messages
Max. archives/project40
Max. meas. points/project40
Max archive sizeDepends on amount of space free on hard disk
Data storage formatCSV (Comma Separated Variable)
Archiving message events• You can create a separate archive for each message class (event messages / alarm messages / system messages).• When message events are entered in the message buffer they are also entered in the archive.
History trendsTrends that use an archive as data source.
Archive evaluationYou can use external applications, such as MS Excel, to evaluate the archives of a ProTool/Pro system.
Short-term archiveA short-term archive is a FIFO buffer that can contain up to n values. When the buffer is full, the old values are overwitten one after the other.
Sequence archiveA sequence archive consists of a number of files.Data is written to the first file until it reaches a specified length. After that the next file is used. The switch is made either automatically or by user action.When the pre-arranged number of files have been filled, the first file is overwritten.
Data storage formatCSV files- The contents are stored in a file as ANSI characters- Entries are separated by delimiters- CSV files can be read in and edited with standard tools such as Excel
Storage media• Hard disk• Floppy disk• PCMCIA card• Flash/ SRAM
Archive functions- Start archive- Stop archive- Delete archive- Unscheduled archiving of a value- Copy archive- Open archive- Close archive- Begin sequence archive- Archive tag
Archiving process tags
Trigger conditions- Cyclically, after every change, or when a tolerance range is exceeded
Tolerance range- Definition of the upper and lower limits
Exercise 2aCreating a message archive
Archives- Insert Object.
Properties box:
General- Enter the Archive Name
- Change the Data Source to Messages
- Select the settings for Behavior on Restart
Settings- Enter the Path Name (folder C:HMI)
- Select the Size
- Select the settings for Behavior When Archive Full
NoteWhen you select this attribute (see above) the message text is archived in the current online language.
Exercise 2bMessages settings for the destination system
System-Messages / Settings
Properties box:
Message Settings-Printout ( without printer: "off" | with printer: "ON")
-Alarm Messages
-Buffer Overflow
-Character / Titles
Archives...-Archive Event Messages In:
-Archive Alarm Messages In:
-Archive System Messages In:
Exercise 2cCreate another message view like the one on page 9
Destination System- Messages / System Messages / SIMATIC S7 (Standard) / Display length: four seconds
Buttons- Configure the buttons: - Functions / Messages / Show_event_message_buffer.
- Functions/ Messages/Show_event_message_window.
- Functions / Messages / Show_event_message_page.
Function keys- Configure the function keys:
- Function key F1 / Keyboard / Display_Help_text.- Function key F3 / Keyboard / Go_to_Home.
- Function key F4 / Keyboard / Page_Up.
- Function key F5 / Keyboard / Page_Down.
- Function key F6 / Keyboard / Go_to_end.- Function key F10 / Messages / Clear_message_buffer.
Screen Object- Set the Message View properties
Properties box:
General- Messages
- Message Events
- (S7) Diagnosis Buffer From PLC
- Message Archive
- Message Classes
Columns- Visible Columns;- Sort;- Column Properties
Display- Display;- Multi-Line Display; Size To Fit
Test- Open your message view.
- Trigger event messages by making entries in the DB127 DW10 input field.- You can enter a value for the variable in DB127, DW0 and this value must appear in the display when the event message is triggered.- Click the buttons to view the event message window, event message buffer and event message page.
Note:The message view is only updated when you change screens!
Exercise 3aConfiguring an alarm message
Area pointer list- Add - Alarm Messages - DB127 DW12 - Length 1.- Add - Alarm Ack. PLC - DB127 DW14 - Length 1.
Message Editor- Select alarm messages, configure messages Nos. 1 to 16 with info texts (You can also underline the messages or make them flash!) and assign a tag (variable) (such as DB127DW0) to the message.
Note:You can also assign different colors to individual events of event messages and alarm messages for display on the operating device. This is done in System / Messages / Colors: by activating the check box.
Exercise 3bMake additions to the message view from page 9.
Buttons- Configure buttons: - Functions / Messages / Show_alarm_message_buffer.
- Functions / Messages / Show_alarm_message_page.
Function keys- Configure function keys: - Function key F2 / Messages / Acknowledge_message.
Archives- See Event Messages / Archives and Event Messages / System
Test- Activate the message handling function.
- Trigger alarm messages by making entries in the DB127 DW12 input field.
- Use the Explorer to check whether the archive
C:HMI_PROARCHIV_MELD0.CSV is created.
- Click the function keys (buttons) (see above) to view the alarm buffer or current alarm messages.
- Press function key F10 to delete the message buffer.
NoteSymbols preceding message entries:! =Alarm message =Event message$ =System messageS7 =SIMATIC S7 message
Exercise 3cCreate the screen shown above
Test-Activate your S7 diagnosis screen.-Trigger a system message through the S7-CPU‘s Run/Stop selector switch.-Your message view is updated through the S7-activate (read S7 diagnosis buffer) button!
Note:The message view is only updated when you change screens!
Categories01Printer02Scripts03Scale06Win32 - Functions07Win32 - Functions08Archives11Function12Trends13System information14Channels and connections: S715 Channels and connections: AS5116 Networking17S7 diagnostics18 Miscellaneous19Tags and area pointers20PLC coordination21PLC jobs22PLC channels 23Views24Authorization25Monitor/Modify26 Passwords27 Messages28 PLC connection29 Recipes31 Protocols( Also see the ProTool/Pro Runtime User‘s Guide )
Note:Meanings of the entries in the columns:
Message classes(MsgClass)0 =No message class1=Alarm message 2=Event message3=System message4=S7diagnostic event
Message status(StateAfter)0 =Come and gone 1=Come2=Come / acknowledged / gone 3=Come / acknowledged4=Come / gone / acknowledged
Message procedure(MsgProc)0 =Unknown message procedure1=System message2=Message bit procedure (Event messages)3= ALARM_S message number procedure 4=S7 diagnostic event100 = Message bit procedure (Alarm messages)
Message number(MsgNumber)
Time stamp(TimeString/Time_ms) Time stamp of message entry Time_ms is the time in ms starting from 02.01.1900
Var1 ... Var8Value of message variables as STRING
Note!To display the TimeString in seconds you must change the properties of the column in Excel.
See “Trend Archive Printout“ in the Trends chapter (Page 14).