0% found this document useful (0 votes)
30 views15 pages

17 Alarmtexts

Uploaded by

jldiadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views15 pages

17 Alarmtexts

Uploaded by

jldiadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Alarm texts

SINUMERIK Operate

HMI Advanced

SITRAIN
NC-84SL-SK / Alarm texts Page 1 Siemens AG © 2011

Content Page
Objectives ........................................................................................................................................ 2
Error and Operational Messages (DB2) ............................................................................................ 3
Error and Operational Messages ...................................................................................................... 4
Alarm Text File for HMI on PCU50 or PG ......................................................................................... 5
MBDDE.INI for Alarm Texts .............................................................................................................. 6
Exercise: Alarm and Message Texts ................................................................................................. 7
Alarm texts with SINUMERIK Operate V2.6 ..................................................................................... 9
Creating Alarm and message texts for SINUMERIK Operate ............................................................ 10
Help text for user alarms in SINUMERIK Operate ............................................................................. 11
Help text file locations ...................................................................................................................... 12
Online help for PLC user alarms in SINUMERIK Operate ................................................................. 13
Table definition ................................................................................................................................. 14
Exercise: Creating an alarm text with SINUMERIK operate .............................................................. 15

SITRAIN NC-84SL-SK
Training for Industry Page 1 Alarm texts
Objectives

The participant should ...


... Know about generation of error messages and
operational messages
for HMI advanced and SINUMERIK operate

SITRAIN
NC-84SL-SK / Alarm texts Page 2 Siemens AG © 2011

Notes

SITRAIN NC-84SL-SK
Training for Industry Page 2 Alarm texts
Error and Operational Messages (DB2)

...

SITRAIN
NC-84SL-SK / Alarm texts Page 3 Siemens AG © 2011

DB2 It is defined in DB 2 which bit triggers which message/alarm number. Further, the
bits in DB2 can be used for automatic error reaction (enable/disable) for specified
channels and axes.
From the PLC user program, the respective bits are set in DB 2 and the actions
required for display are triggered in the NC/MMC.
With rising edge of the error bit, the display of error and operating messages is
activated.

Operational Messages
are automatically deleted with falling edge.

Error Messages always have to be acknowledged. The error acknowledge key is determined with
the call of FC10.

SITRAIN NC-84SL-SK
Training for Industry Page 3 Alarm texts
Error and Operational Messages

SITRAIN
NC-84SL-SK / Alarm texts Page 4 Siemens AG © 2011

The definition whether the set bit is processed as error message (with
acknowledgement) or operational message (without acknowledgement), is preset
(see diagram). The definition always refers to a byte in DB 2.
FC10 Error and operational messages are only displayed if the function block FC10 is
configured and called in the PLC user program.
Via FC10 (error and operational message) the signals entered in DB 2 are
evaluated and displayed on the MMC as incoming and outgoing error and
operational messages.
The incoming signals (positive edge) are displayed immediately in the case of both
error and operational message. With outgoing signals (negative edge), only
operational messages are immediately deleted. Error messages re only deleted
when you the acknowledge key is activated. Error messages are retained on the
MMC until they are acknowledged by the user even if the error even if the error
status no longer exists.
FC10 has 2 formal parameters:
ToUserIF :=TRUE
The signals for an NC reaction (e.g. feed disable, read-in disable, feed/spindle
hold, etc.) are transferred from DB 2 to the interface in each cycle.
:=FALSE
The signals for an NC reaction are not transferred from DB 2 to the interface. The
user has to program the error reaction.
Quit :=DB19.DBX20.2
Determines with which key the error acknowledgement takes place. In the
example, the key "Acknowledge alarm" is indicated (only possible with SW 5 and
later). Bit DB19.DBX20.2 has to be reset by the user.

SITRAIN NC-84SL-SK
Training for Industry Page 4 Alarm texts
Alarm Text File for HMI on PCU50 or PG

SITRAIN
NC-84SL-SK / Alarm texts Page 5 Siemens AG © 2011

Alarm Text File The file with error texts is saved to hard disk under the directory F:\USER.
The alarm text file can be edited in the "Start-up" operating area, softkey "MMC,
softkey "Editor".
The file name consists of Name_Language-ID.com e.g. alarm_gr.com
The name consists of up to 5 characters.
Language IDs of the 5 European standard languages are:
German gr French fr English uk
Italian it Spanish sp

The maximum length of the alarm text is 110 characters for a 2-line display.
Examples of an error text file in English:

510008 0 0 "Feed disable“ // Comment


600108 1 0 "Spindle disable"
Error number Display Help ID "Error text"

• The error number corresponds to one bit in DB 2.


• The display bit determines how the alarm is displayed:
- 0 = Display in alarm line
- 1 = Display as alarm box
• The help ID is for online help systems
• The error has to be in brackets, as shown in the example.
Changes to alarm texts only become effective after PCU restart.

SITRAIN NC-84SL-SK
Training for Industry Page 5 Alarm texts
MBDDE.INI for Alarm Texts

SITRAIN
NC-84SL-SK / Alarm texts Page 6 Siemens AG © 2011

MBDDE.INI For the PCU operating system to be able to find the alarm text file on hard disk, a
link has to be entered in MBDDE.INI.
The MBDDE.INI file must be stored in the directory F:\USER\MBDDE.INI.
Links are entered in section [TextFiles], e.g.:
UserPLC=F:\USER\MYPLC_
If the file name is entered without language ID, the ID is automatically added to the
file name, depending on the selected language, and the language-dependent
alarm text is activated. For this process to work, it is necessary to enter an alarm
text file for every desired language.
UserPLC=F:\USER\MYPLC_GR.COM
If the file name is entered in full, the English alarm text file is used for all
languages, for example.
RotationCycle If the current alarms are to be switched in certain intervals in the alarm row, the
section [Alarms] offers the entry RotationCycle.
RotationCycle=3000 The alarm is switched after 3 seconds
Order Order=FIRST The most recent alarm is the first one in the list
Order=LAST The most recent alarm is the last one in the list
MaxNr MaxNr=200 Maximum number of alarms in alarm list

Note With HMI Advanced on PG/PC you have to use the HMI installation path. By
default this path is:
C:\Siemens\Sinumerik\HMI-Advanced

SITRAIN NC-84SL-SK
Training for Industry Page 6 Alarm texts
Exercise: Alarm and Message Texts

Editing Alarm Texts Enter an alarm text file. The file should contain at least one error message and one
operational message (e.g. 700000 and 700063). One display should be in the alarm
line and one in the message box.
For editing, use the menu "Start-up", softkey "MMC" and
softkey "Editor". Position the cursor on the "USER" directory and press the INPUT
key.
Press softkey "New..." to create the alarm text file. Then enter a file name, e.g.

Then enter your texts, save the file, and close the editor.

Editing MBDDE.INI Again, select the directory "USER" in the editor and create a file MBDDE.INI. If there
is already a MBDDE.INI, open it via the INPUT key and correct the link so that it
corresponds to your alarm text file.

UserPLC=F:\USER\MYPLC_
UserPLC=F:\USER\MYPLC_

Caution! After a change is made to an INI file, the PCU50 has to be restarted. INI files
are only read during boot.

SITRAIN NC-84SL-SK
Training for Industry Page 7 Alarm texts
Calling FC 10 Open the project with the saved PLC program via STEP 7.
At the end of OB1, add a network and call FC10.
Use the error acknowledgement key for acknowledging the error.

Calling Alarms Use the free simulator inputs (e.g. IB76, 77, 80, 81) in order to display error and
operational messages. Insert a new network in OB1.
In the example, the bits for error numbers 700000 and 700063 are used.

Load blocks Load the changed OB to the SINUMERIK via the icon

Status Force Use the two networks in order to familiarize yourself with the status functions of
STEP 7.
Test the block status by creating an online connection via "Accessible nodes".
Use the functions "Control variable" and "Set trigger points" in order to activate the
error text independently of simulator inputs.

SITRAIN NC-84SL-SK
Training for Industry Page 8 Alarm texts
Alarm texts with SINUMERIK Operate V2.6

SITRAIN
NC-84SL-SK / Alarm texts Page 9 Siemens AG © 2011

Alarm and Message display


Alarms and messages are shown in the operating area Diagnostics.
In addition, the Alarm log and NC/PLC variables can be shown.
The alarm texts can be created via HMI or the tool Alarm text converter.

SITRAIN NC-84SL-SK
Training for Industry Page 9 Alarm texts
Creating Alarm and message texts for SINUMERIK
Operate

SITRAIN
NC-84SL-SK / Alarm texts Page 10 Siemens AG © 2011

Creating alarm texts The necessary operations are:


-> Operating area ‚Setup‘ -> SK: HMI -> SK: Alarmtexts
-> Select the type of texts from the list
-> Enter the list of alarm numbers and texts;
the colors red or black can be selected via toggle field
The alarm texts are stored for the actual language.

Storage on CF card The alarm texts are stored on the CF card as XML files under
/card/oem/sinumerik/hmi/lng / oem_alarms_plc_eng.ts (eng = english)
From this file of the type ‚ts‘ (translation source) the control creates
another file of the type ‚qm‘ (Qt message file) automatically.

SITRAIN NC-84SL-SK
Training for Industry Page 10 Alarm texts
Help text for user alarms in SINUMERIK Operate

SITRAIN
NC-84SL-SK / Alarm texts Page 11 Siemens AG © 2011

Overview For PLC user alarms, online help may be provided.


The help file is opened in a context sensitive way by pressing the Info button „i“.

Procedure The following steps are required to provide the online help:
1. Provide the following HTML help file:
"sinumerik_alarm_oem_plc_pmc.html„
This file contains the help texts for the PLC user alarms.
There, the alarm number is used as HTML anchor.
The name of this file is fixed and may not be changed!
2. The location of this file is the language dependent path:
"/oem/sinumerik/hmi/hlp/<lng>/sinumerik_alarm_plc_pmc/
sinumerik_alarm_oem_plc_pmc.html "
where <lng>=deu, eng … corresponds to the supported language.

Delete! 3. Especially, if you changed an already existing HTML help file,


you have to delete all files of the message cache:
"slhlp_sinumerik_alarm_plc_pmc_*.hmi"
in the directory
/siemens/sinumerik/sys_cache/hmi/hlp
These files are compiled from the HTML files files at each power on.

SITRAIN NC-84SL-SK
Training for Industry Page 11 Alarm texts
Help text file locations

Language Language code Standard Code page


Chinese (simplified) chs x 1252
Chinese (traditional) cht 1252
Danish dan 1252
German deu x 1252
English eng x 1252
Finnish fin 1252
French fra x 1252
Italian ita x 1252
Japanese jpn 1252
Korean kor 1252
Dutch nld 1252
Polish plk 1250
Portuguese ptb 1252
Romanian rom 1252
Russian rus 1251
Swedish sve 1252
Slovakian sky 1252
Spanish esp x 1250
Czech csy 1252
Turkish trk 1254
Hungarian hun 1250

SITRAIN
NC-84SL-SK / Alarm texts Page 12 Siemens AG © 2011

The folders
"/oem/sinumerik/hmi/hlp/<lng>/sinumerik_alarm_plc_pmc/
for the location of the HTML help files are shown here
(language shortcut <lng> = deu, eng for german and english language).

SITRAIN NC-84SL-SK
Training for Industry Page 12 Alarm texts
Online help for PLC user alarms in SINUMERIK
Operate

SITRAIN
NC-84SL-SK / Alarm texts Page 13 Siemens AG © 2011

HTML elements The HTML file is built up the following way:


First, there is a version tag:
<?xml version="1.0" encoding="UTF-8"?>
and a specification of the language used:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
The section containing HTML encoded information is specified by the start
and end tags
<html>

</html>
Next comes the file header, i.e. the title bar of the HTML page:
<head><title> </title> </head>

This is followed by the actual content of the page in the "Body" tag:
<body>
:
</body>

Help for the alarm text is stored under a table definition

SITRAIN NC-84SL-SK
Training for Industry Page 13 Alarm texts
Table definition

<table> <!-- Alarm 510008 -->


<tr>
<td width="15%">
<b><a name=„510008">510008</a></b>
</td>

<td width="85%">
<b>Feed Stop MCP - Press Feed Start!</b>
</td>
</tr>

<tr>
<td valign="top" width="15%">
<b>Definition:</b>
</td>
<td width="85%">This is the explanation for alarm 510008.</td>
</tr>

<tr>
<td valign="top" width="15%"><b>Remedy:</b></td>
<td width="85%">This is the remedy for alarm 510008.</td>
</tr>

</table> <!– End of info for alarm 510008 -->

SITRAIN
NC-84SL-SK / Alarm texts Page 14 Siemens AG © 2011

<table> Introduces a table.


If the table is to contain visible grid lines, you must enter a border attribute in the
introductory <table> tag and allocate it a value higher than 0. The value specified
will determine the width of the border in pixels. In order to create an "invisible"
table without any visible borders or grid lines, do not specify a border or (this is
the neater approach) state border="0".
<tr> Introduces a new table row (tr = table row). The cells (columns) are then defined
for the respective row. A closing </tr> tag is given at the end of a table row.
A table can contain header cells and conventional data cells. Text in header cells
is accentuated (mostly in bold characters and centered).
<th> Introduces a header cell.
<td> Introduces a normal data cell (th = table header, td = table data). In each case,
the contents of a cell are given after the tag. Although the associated </th> and
</td> end tags are, strictly speaking, only optional, we strongly recommend that
they are used in every single case without exception.

<a> This is known as the anchor tag and contains either a reference or just text.
<b> This is a tag for text formatting, b stands for bold.

SITRAIN NC-84SL-SK
Training for Industry Page 14 Alarm texts
Exercise : Creating an alarm text with SINUMERIK operate

Goal : Alarm texts for the alarm numbers 700000 und 700032
should be created using the HMI of SINUMERIK Operate.

Sequence : Select Operating area Setup:

Select the menu HMI .

Then press Softkey Alarm texts:

In the List box, select the PLC user alarms

Now, You can enter Your texts in the alarm text editor:

Finally, restart SINUMERIK Operate pressing:


MENU SELECT -> ETC -> Reboot HMI

SITRAIN NC-84SL-SK
Training for Industry Page 15 Alarm texts

You might also like