Professional Documents
Culture Documents
“Error Messages”
Technology Template
Technology CPU
http://support.automation.siemens.com/WW/view/en/21402122
Warranty and Liability
Note The Application Examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The Application
Examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for ensuring that
the described products are used correctly. These Application Examples do not
relieve you of the responsibility to use safe practices in application, installation,
operation and maintenance. When using these Application Examples, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
Application Examples at any time without prior notice.
If there are any deviations between the recommendations provided in these
Application Examples and other Siemens publications – e.g. Catalogs – the
contents of the other documents have priority.
We do not accept any liability for the information contained in this document.
Any claims against us – based on whatever legal reason – resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,
Siemens AG 2014 All rights reserved
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, solutions, machines, equipment and/or
tion networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens’ products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.automation.siemens.com.
Table of Contents
Warranty and Liability .............................................................................................. 2
1 Inter Project Engineering ............................................................................... 5
2 Technology Template ..................................................................................... 6
2.1 Introduction ....................................................................................... 6
2.1.1 The technology template.................................................................... 6
2.1.2 Configuration systems ....................................................................... 6
2.1.3 Main contents of this technology template .......................................... 6
2.1.4 Scope ................................................................................................ 6
2.2 Objective and purpose ....................................................................... 7
2.2.1 Task .................................................................................................. 7
2.2.2 Advantages ....................................................................................... 7
2.3 Possible applications ......................................................................... 8
2.3.1 Tasks that can be solved with the technology template ...................... 8
2.3.2 Properties .......................................................................................... 8
2.3.3 Restrictions ....................................................................................... 9
2.4 Components of the technology template ............................................ 9
2.5 Approved hardware and software .................................................... 10
2.5.1 Hardware components..................................................................... 10
2.5.2 Software components ...................................................................... 10
3 Basics ........................................................................................................... 12
Siemens AG 2014 All rights reserved
2 Technology Template
2.1 Introduction
2.1.1 The technology template
The technology template was written for the SIMATIC STEP 7 automation
Siemens AG 2014 All rights reserved
software, version V5.4 or higher. The HMI is configured in WinCC flexible 2008
SP3 integrated in STEP 7 or – in order to use, for example, Comfort Panels – in
TIA Portal. To distinguish between the two configuration systems, the terms
STEP 7 V5.x and TIA Portal will be used in the following sections.
2.1.4 Scope
When operating the technology CPU, states may occur in which warning and error
messages are output by the technology objects of the integrated technology or the
technology functions in the user program. These messages can only be detected
by targeted monitoring of the technology objects or technology functions and
indicated to the operator.
If a warning or error message occurs, a hexadecimal error code on the technology
object or technology function is used to inform the user of the cause of the error.
However, this makes it difficult to easily and quickly interpret the warning or error
message and locate the cause of the error.
This “Error Messages” technology template helps the user monitor the desired
technology objects and technology functions with regard to warning and error
messages and display, in clear text, the occurring events in STEP 7 V5.x or on a
connected HMI user interface configured in TIA Portal.
“Error Messages ”
technology template Error message
Additional
? error information
?
Therefore, the “Error Messages” technology template enables the user to easily
and quickly locate and eliminate the cause of the error.
2.2.2 Advantages
The use of this technology template provides the user with the following
advantages:
Adaptability
The objects of the “Error Messages” technology template are not protected and can
be modified and expanded by the user if necessary.
It is also possible to supplement user-defined error numbers and error texts in the
supplied text lists and output them using the alarm procedure of the technology
template.
The technology template allows you monitor the supported technology objects and
technology functions for error messages and quickly display occurring warning and
error messages.
Siemens AG 2014 All rights reserved
2.3.2 Properties
The “Error Messages” technology template can be used for clear text display of
error codes of the following technology objects and technology functions:
Note The warning and error messages included in the error texts of the technology
template are valid for the technology objects and technology functions of “S7
Technology” up to and including version 4.2.
2.3.3 Restrictions
FB 510 textlist
„ShowErrFB“ „31xT_ErrorText “
FB 511 textlist
„ShowErrDB“ „31xT_ErrorDescription“
textlist
„Axis_names_userdefined“
The function blocks of the technology template can be used independently of one
another. They are used to monitor warning and error messages on the technology
objects and technology function calls of the integrated technology of the technology
CPU.
All text lists are available in German and English and can be edited as desired. The
“31xT_...” text lists contain the warning and error messages for the hexadecimal
ErrorIDs of the integrated technology and additional info texts in clear text. The
“Axis_names_userdefined” text list contains your user-specific axis names. In
STEP 7 V5.x, the error texts can be displayed using the “CPU Messages” STEP 7
function or integrated into self-created HMI user interfaces.
1
While TIA Portal uses the term “text list”, “text library” is used in STEP 7 V5.x. Both terms
mean the same thing.
Note To be able to use the “Error Messages” technology template, the following
system function blocks must exist in the controller:
SFC 18 “ALARM_S”: To output ALARM_S messages
Siemens AG 2014 All rights reserved
3 Basics
3.1 Functional principle of the technology template
The figure below shows the functional principle of the “Error Messages” technology
template:
Figure 3-1: Functional principle of the “Error Messages” technology template
STEP 7 V5.x
S7-Anwenderprogramm
S7 user program Textliste
textlist
ErrorID
ErrorID == Fehlertext
error text
…
Text
ID
Technology
Technologie
FB
ErrorID + Status
„Error
Technology
Messages“ Text
Technology
Technologie
S7-Anwenderprogramm
S7-Anwenderprogramm
technology
Template
DB
ErrorID „Fehleranzeige“
template
…
WinCC
(TIA)
Siemens AG 2014 All rights reserved
The function blocks of the “Error Messages” technology template monitor the
technology function calls (technology FB) or technology objects (technology DB)
of the integrated technology. If an error or warning occurs, the hexadecimal
ErrorID is transferred to the ALARM_S message system via the function block.
The ALARM_S message system combines the ErrorID with the error text stored
in the text list. This error text can then be displayed together with the ErrorID.
To display the warning and error messages during runtime, the following media are
available:
“CPU Messages” function in STEP 7 (STEP 7 V5.x)
“Alarm View” and “Alarm Window” objects in the HMI configuration in WinCC
2
flexible (STEP 7 V5.x)
“Alarm View” and “Alarm Window” objects in the HMI configuration in
3
WinCC (TIA Portal)
2
In the supplied application example, the warning and error messages are displayed in the
alarm view of WinCC flexible Runtime on the PG/PC.
3
In the supplied application example, the warning and error messages are displayed in the
alarm view of a TP900 Comfort Panel simulated on the PG/PC.
S7 user program
Technology TDB_Nr
DB
FB 511
ErrorID Error code „ShowErrDB“
ErrorID
S7 user program
Technology
FB
Error Status Error
4 Functional Mechanisms
4.1 The ALARM_S message function
The generation of messages in this technology template is implemented using the
SFC 18 “ALARM_S” system function.
In the user program, this system function has to be called from a function block that
features an input for transferring the EventID. Special attributes must be assigned
to this input.
In the STEP 7 program, the EventID designates the message location for the
ALARM_S message function. When integrating the function block into the user
program in which the SFC 18 “ALARM_S” system function is called, STEP 7 –
due to the system attributes – automatically enters the EventID at the block input.
FB 510
“ShowErrFB”
Siemens AG 2014 All rights reserved
FB 511
“ShowErrDB”
To assign the necessary system attributes to the EventID input variable of a newly
created function block so that it can be used in conjunction with the SFC 18
“ALARM_S” system function, proceed as follows (these attributes have already
been set at the FB510 and FB511 blocks of the technology template):
S7_a_type = alarm_s
S7_server = alarm_archiv
Note:
The attributes and values to be set can
be taken from the drop-down lists of
Siemens AG 2014 All rights reserved
Note The use of multi-instance data blocks for the function blocks in which SFC 18
“ALARM_S” is called is not possible since in this case the EventID cannot be
automatically assigned by STEP 7 and therefore no reference to this block is
possible in the ALARM_S message system.
Figure 4-1: Transfer of multiple process values in the associated value of SFC 18
“ALARM_S”
Siemens AG 2014 All rights reserved
The process values transferred in this way can then be displayed separately within
the alarm message of the ALARM_S message system. The process values are
split via the formatting of the ALARM_S message texts.
When configuring your HMI in TIA Portal with WinCC, you can create messages in
an optimized way.
The output format of the text messages is defined via special object properties of
the function block in which the call of the SFC 18 “ALARM_S” system function is
made.
Table 4-4: Setting the output format of the text messages
No. Action Remark
1. In the SIMATIC Manager, use the context menu of the function block to call the
Message... function in Special Object Properties.
Siemens AG 2014 All rights reserved
2. Enter the desired formatting for the message text (Message text) and the
additional information on the error message (Info text) to provide a more detailed
description of the cause of the error.
Use More>> to show an advanced display where you can also create multi-line
texts by inserting line breaks (return).
For the input syntax for formatting the message texts, please refer to the next
section.
The text messages to be output can be taken from a text list or entered directly in
the text line of the Message Configuration window. In the technology template, for
example, the word “code” was put in front of the output of the error number.
Process values can also be output in the text message directly from the user
program. In the example, this was done with the ErrorID.
Text message format
The output of a text block from a text list or a process value from the user program
must have the following format:
@<Number of the process value><element type>%<format>@
Process value number
Via the number of the process value, the respective process value is selected for
display from the associated value of the SFC 18 “ALARM_S” function.
Process value 1
Process value 2
Process value 3
Associated value of
SFC 18
Element type
The element type defines the length of the respective process value within the
associated value. The element type must be suitable for the transferred process
value so that it can be processed consistently in the message system.
Figure 4-3: Element types of the process values within the associated value
In the above figure, the three transferred process values of the WORD type occupy
6 bytes of the possible 12 bytes of the associated value of SFC 18 “ALARM_S”.
Format
Siemens AG 2014 All rights reserved
The format defines the output of the process value within the message text.
Likewise, the process value can be interpreted as an index of a text block in a text
list. In this case, the text block is output in the message text instead of the process
value.
Table 4-6: Possible formats for value output in the message text
Format Description Example
iX Hexadecimal number with i digits 4X
iu Unsigned decimal number with i digits 4u
id Signed decimal number with i digits 4d
ib Binary number with i digits 4b
i.yf Signed fixed-point number with y decimal 4.1f
positions and i total number of digits
is String with i characters 4s
t#[text list] Text block from a text list t#31xT_ErrorText
Figure 4-4: Formats of the process values for the text output
Message text:
@1I%t#Axis_names_userdefined@ - Code @2W%4X@ : @2W%t#317T_ErrorText@
Output of the axis number Output of the ErrorID Output of the ErrorID
as text from the as a 4-digit as text from the
“Axis_names_userdefined” hexadecimal number “31xT_ErrorText”
text list text list
Siemens AG 2014 All rights reserved
The error and warning messages for clear text output are available in the supplied
text lists in the following languages:
German
English (USA)
To output the clear texts, the language can be changed in STEP 7 or – if change
language was configured – on the HMI user interface.
In order to implement a change language feature for the error display, the message
configuration must be made for every single language as described in Chapter
4.5.2. To change the language – for both the multilingual message configuration
and the display of CPU messages using the CPU Messages function (see Chapter
7.3) – proceed as follows:
Siemens AG 2014 All rights reserved
2. Select the desired language and confirm the selection with OK.
In WinCC flexible (STEP 7 V5.x) or WinCC V13 (TIA Portal), the change language
feature needs to be configured separately. At this point, only the most important
steps will be briefly described as an example. For detailed information, please refer
to the appropriate documentation on the development systems.
Note In the supplied sample projects, change language using buttons is implemented
in both WinCC flexible and WinCC (TIA Portal).
5 Installation
5.1 Preparations
5.1.1 Retrieving the technology template
template.
2
1
Siemens AG 2014 All rights reserved
Once you have transferred all the blocks and text libraries supplied with the
technology template to your STEP 7 project, you can use the functions provided by
the technology template in your user program.
The calls of the function blocks of the “Error Messages” template in the STL and
FBD programming languages are shown below as examples:
FB 510
“ShowErrFB”
FB 511
“ShowErrDB”
When calling the function blocks and after assigning the instance data blocks,
STEP 7 automatically assigns a CPU-wide unique number to each block on the
EventID parameter.
A separate instance data block has to be assigned to each called function block of
the “Error Messages” template.
The use of multi-instance data blocks is not possible when using the function
blocks from the “Error Messages” template. In this case, the EventID is not
automatically assigned by STEP 7 and therefore a reference to the block in the
ALARM_S message system is not possible.
No. Action
2. Configure an Alarm View or Alarm
Window.
No. Action
4. Activate the ALARM_S alarm procedure in
Alarm Management > Settings > Alarm Settings > Alarm procedures. Select All
display classes.
Siemens AG 2014 All rights reserved
No. Action
5. Once your message configuration for the CPU is complete and all blocks have been
checked for consistency and compiled on the CPU, delete all temporary files in
WinCC flexible and regenerate the HMI project.
Siemens AG 2014 All rights reserved
1
Siemens AG 2014 All rights reserved
No. Action
4. Initialize the device proxy.
Siemens AG 2014 All rights reserved
You are prompted to open the device proxy data source, i.e., the STEP 7 V5.x
project that contains your T-CPU. Enter the name of the appropriate s7p file. Make
sure that the project is executable (consistent) and not open.
No. Action
6. Insert the desired operator panel by dragging the mouse.
7. Select the HMI connection and establish the communication connection between
the proxy CPU and the operator panel by connecting the Ethernet ports with the
mouse.
Siemens AG 2014 All rights reserved
No. Action
9. In its properties in General, check the appropriate check box to (additionally) select
the alarm class that was transferred from the T-CPU to the device proxy and stored
in the project navigation in Shared data > Alarm classes. In the supplied example,
this is the Alarm - high4 alarm class.
10. The ALARM_S alarm procedure must be on. This is the case by default. The setting
Siemens AG 2014 All rights reserved
is made in Runtime settings > Alarms. No user action is required at this point.
4
In STEP 7 V5.x, the Alarm – high alarm class is selected from a drop-down list in HW Config
under the CPU in the alarm attributes section: Options > Report System Error… >
Messages. The default value is Alarm – high. For more information, please refer to the
appropriate manuals.
No. Action
11. Compile the complete HMI project.
2
Siemens AG 2014 All rights reserved
12. If the HMI configuration has been compiled without errors, save it and start the
simulation or download the configuration to the operator panel.
2 3 3
If you subsequently make changes to your STEP 7 V5.x project, you have to
update the proxy CPU data in your TIA project and then once again compile the
complete HMI configuration:
2
Siemens AG 2014 All rights reserved
You are prompted to open the device proxy data source, i.e., the STEP 7 V5.x
project that contains your T-CPU. Enter the name of the appropriate s7p file.
Make sure that the project is executable (consistent) and not open.
2. Apply all transferred data.
3. If the changes in the STEP 7 V5.x project also require changes in the operator
panel configuration, for example a new tag you want to visualize, make these
modifications now.
4. Compile the complete HMI project; if it has been compiled without errors, save
the HMI configuration and start the simulation or download the configuration to
your operator panel (identical to steps 0 and 0 from Table 5-6).
This method is particularly suitable if you have an existing STEP 7 V5.x project with
an integrated HMI configuration and want to replace the operator panel, for
example, with a Comfort Panel that can only be configured in TIA Portal.
Figure 5-2: Migrating the operator panel from STEP 7 V5.x
Siemens AG 2014 All rights reserved
No. Action
9. You may have to post-edit the screens (in particular, if the resolution and/or
screen size change due to the device replacement).
10. Insert a proxy CPU into the project as described in steps 3, 4 and 5 in Table 5-6
and initialize it with the data from the STEP 7 V5.x project.
11. As described in step 7 Fehler! Verweisquelle konnte nicht gefunden
werden.Fehler! Verweisquelle konnte nicht gefunden werden.in Table 5-6,
establish an HMI connection between the operator panel and the proxy CPU.
12. For the new operator panel, change all tags connected to the CPU to the newly
created connection in the tag table, HMI tags > Show all tags.
13. In Connections, delete the old connection from the migration for the new
operator panel.
14. In the Alarm View/Alarm Window properties, General, follow step 9 in Table 5-6
to (additionally) select the alarm class transferred from the CPU in the STEP 7
V5.x project to the device proxy.
15. Compile the complete HMI project as described in step 3411 in Table 5-6.
In TIA Portal, the message texts configured in STEP 7 V5.x, including the formats
for the library texts, can be found in TIA Portal in the set editing language under the
Siemens AG 2014 All rights reserved
operator panel in
HMI alarms > Controller alarms.
The individual text lists are under the proxy CPU and cannot be accessed by the
user.
NOTICE In TIA Portal, do not change any controller alarm texts or formats of a
proxy CPU to avoid inconsistencies with the STEP 7 V5.x project.
If necessary, change the message texts in the STEP 7 V5.x project and then
update the proxy CPU in TIA Portal.
2
Siemens AG 2014 All rights reserved
6 Startup
6.1 Call environment
The blocks of the “Error Messages” technology template have to be called
cyclically in the user program. The call of the blocks can be made directly in an OB
or within a cyclically processed FB.
PLCopen
FB
Technology
objects
Cyclic OB
(e.g. OB1,
OB35 ...) FB 510
„ShowErrFB“
Siemens AG 2014 All rights reserved
Axes
6.2 Interfaces
6.2.1 Interface of FB 510 “ShowErrFB”
To monitor the technology function calls by the FB 510 “ShowErrFB” function block,
the following interfaces are available at the block:
EventID FB_ErrorID
Error
ErrorID FB 510
Axis „ShowErrFB“
AdditionalData
To monitor the technology objects by the FB 511 “ShowErrDB” function block, the
following interfaces are available at the block:
EventID FB_ErrorID
TDB_Nr
IgnoreWarnings FB 511
„ShowErrDB“
If an error occurs when processing the error codes in the “Error Messages”
template, this error is displayed at the FB_ErrorID output of the relevant function
block via an error code.
The Ref. column indicates the block-internal error source of the function block of
the “Error Messages” technology template.
by SFCs.
8083 Signal overflow SFC 18 Loss of messages since the same
signal change already exists but
could not yet be sent (signal
overflow).
8084 No signal change detected SFC 18 The signal triggering the message
has the same value for the current
and previous SFC 18 call.
8085 EventID invalid SFC 18 No logon for specified EventID.
8086 Double SFC call SFC 18 An SFC call for the specified EventID
is already being processed in a
“lower priority” priority class.
8087 Signal with value 0 SFC 18 When SFC 18 was first called, the
transferred signal triggering the message had
the value 0.
8088 Double EventID SFC 18 The specified EventID is already
being used by another system
resource.
80A1 Error in DB number SFC 24 The specified DB number has the
value 0 or exceeds the maximum DB
number possible for the CPU.
80B1 DB does not exist SFC 24 The DB with the specified number
does not exist on the CPU.
80B2 Unlinked DB SFC 24 The DB was generated using the
keyword UNLINKED.
817F Internal error FB 511 Incorrect data block type detected or
data block type is not supported by
the template.
7 Operation
7.1 Monitoring with FB 510 “ShowErrFB”
To monitor technology function calls by the FB 510 “ShowErrFB” block, the FB 510
block has to be programmed after each technology function call to be monitored.
When using this block, it has to be carefully checked which technology function
calls are to be monitored since a separate instance data block must be assigned to
each block call of FB 510 “ShowErrFB”.
Note In the FBD/LAD programming language, the technology function call and the call
of the FB 510 block must be made in different networks.
For the call of the FB 510 block, the best network to be selected is the one after
the technology function call.
The STL programming language does not require this separation into different
networks.
STL FBD
Via the IgnoreWarnings input, the “True” or “False” status can be used to
additionally inform the function block of whether (“False”) or not (“True”) warning
messages of the technology object are to be output.
When the CPU is selected, this function can be called in the SIMATIC Manager in
online mode by selecting PLC > CPU Messages...
2
Siemens AG 2014 All rights reserved
To display the error texts from the “Error Messages” technology template, the
“A” column of the CPU on which the “Error Messages” template is executed must
be checked in the header of the window of the “CPU Messages” function. The error
messages received from the “Error Messages” template will then be displayed in
the window of the “CPU Messages” function.
only if checked
Display of error and
warning messages
In the window of the “CPU Messages” function, the following settings can be made
via the menu in the View section:
Place on Top: When new error messages arrive or error messages are
deleted from the display, the “CPU Messages” window is automatically placed
on top or a blinking signal in the taskbar indicates this status.
Leave in the Background: The “CPU Messages” function receives the
incoming error messages and archives them, but does not indicate incoming
and outgoing messages.
Ignore Messages: The “CPU Messages” function does not receive messages
from the “Error Messages” technology template, it does not display and archive
them.
In the Edit section, the archive of the “CPU Messages” function can be emptied
using the Empty Archive function. In File, the archive entries can be saved using
the Export Archive... function.
The Display Info Text function in the View section allows you to activate the
window where the related error information is displayed. Clicking the desired error
message displays the related error information in this window.
To change the language for this function, switch to offline mode. Proceed as
described in Chapter 4.6.2.
NOTICE The test projects are used to familiarize with the principle of operation and
Siemens AG 2014 All rights reserved
The test projects are available as separate STEP 7 archives with all required
technology objects and STEP 7 blocks.
The design of the user interfaces of WinCC flexible RT and TP900 differs slightly
due to the different screen formats. The following explanations use the screenshots
of WinCC flexible RT.
The button for displaying the extended error information was configured in the
alarm view of the TP900. WinCC flexible RT cannot access the text list on which
the extended error information is based so that the display is unnecessary in this
case.
With the aid of the HMI user interface, two virtual axes can be controlled using jog
buttons. It is also possible to transmit a positioning job via which the appropriate
axis is automatically moved to the selected position.
The two axes in the test project are displayed on the HMI user interface. The axes
can be enabled and reset below the respective drive motor with the buttons
available in this section. The axis enable is signaled by the green display next to
the respective motor. The position and velocity of the axis are displayed above the
motor.
The enabled software limit switches in the plus and minus direction are displayed
at the lower end of the axis. They can be approached using the jog buttons of the
axis in the Jog section or by selecting the Move Absolute positioning command.
To synchronize the two axes via gearing, the Axis 1 -> GearIN -> Axis 2 button is
available. Synchronous operation coupling of the axes can be requested using this
button.
The error and warning messages are output in the top section of the HMI user
interface. This is where the messages are output in the alarm view. The
ShowErrFB active and ShowErrDB active buttons allow you to activate the
message output for technology function calls and technology objects. When the
buttons are green, the respective message function is activated. The Ignore
Warnings button additionally allows you to suppress the output of warning
messages so that only error messages are displayed in the message table.
In WinCC flexible the language of the error and warning messages can be
changed online using the two flags. The currently active language is displayed with
a green frame.
At the TP900 the language toggles between German and English with pressing the
button Language. The currently active language is represented by the displayed
flag.
The HMI user interface offers the following operating options for the test program:
Position
Velocity
Minus
jog button
Axis
enable
Axis
reset Minus Axis Plus
software limit switch slide software limit switch
The following functions are available to control the display of the error messages:
Note If, with the aid of the test program, error and warning situations are successively
generated in too short a period of time, the CPU may go to STOP!
To continue to execute the test program, the CPU must then be restarted, i.e., it
has to be reset to RUN.
Siemens AG 2014 All rights reserved
Note:
The message is only removed from the alarm view
when the monitoring is activated using the
ShowErrDB active button.
5. You can suppress the output of the warning message
when ShowErrDB active is active by selecting the
Ignore Warnings button.
The software limit switch is approached when the yellow sensor at the lower end of
the slide reaches the yellow limit switch marking.
3. Move the axis with the jog function using the Minus or
Plus jog buttons
or
activate a positioning job by selecting a position
behind a software limit switch and using the Go!
button.
Note:
The message is only removed from the alarm view
when the monitoring is activated using the
ShowErrDB active button.
5. Move the axis away from the software limit switch in
the opposite direction with the jog function using the
Minus or Plus jog buttons
or
using a positioning job by selecting a position in the
opposite direction and selecting the Go! button.
7.6.3 Error message 8040: The axis / external encoder is not enabled, or the
wrong mode is set
In the S7T Config configuration tool, the axes of the test program are created in
such a way that a coupling option of the axes exists via MC_GearIn, whereas the
leading axis coupling of the following axis to the leading axis was not activated.
Siemens AG 2014 All rights reserved
Figure 7-8: Missing coupling between leading axis and following axis in S7T Config
!
Table 7-7: Generating error message 804A
No. Action Remark
1. Enable both axes of the application example by
selecting the Enable button.
2. Activate the monitoring of the technology objects or
technology data blocks using the ShowErrDB active
button.
3. Activate the monitoring of the technology function calls
using the ShowErrFB button.
1
Siemens AG 2014 All rights reserved
NOTICE The indices in the text list are always interpreted as integer values. For example,
ErrorID 8014hex (Software limit switch actuated) output by the technology object
in hexadecimal format as WORD is entered in the “31xT_ErrorText” text list in
integer format as index 32788dec.
If you want to enter the text in multiple languages, first fill the text library in the
currently activated language. Then enter all other languages by changing the
display language or, as explained in the following chapters, by exporting and
importing the text library.
Siemens AG 2014 All rights reserved
Before using or editing different language versions of the text libraries, all desired
languages first have to be defined in the SIMATIC Manager:
3
Siemens AG 2014 All rights reserved
To be able to translate the existing texts into the desired and just defined
languages, the entire text library must be exported to a csv file.
2
Siemens AG 2014 All rights reserved
For editing, the exported text file in csv format of the text library can now be
opened with Microsoft EXCEL. To do so, use Microsoft EXCEL’S Open dialog box.
After opening, each language of the text library is available in a separate column.
By default, newly added languages are assigned the source language text. This
text can now be replaced with the translated wording.
Note When editing the csv file, change only the texts in the target language column
and save the file in csv format.
The original settings for all other entries and notes must not be changed.
Otherwise, problems may occur when importing the csv file into STEP 7.
2
Siemens AG 2014 All rights reserved
Note An exported text library should only be reimported into the project from which it
originates.
EventID FB_ErrorID
Error
ErrorID FB 510
Axis „ShowErrFB“
AdditionalData
This requires that the index of the desired message be entered at the ErrorID
input. When the Error input is set to True, the message – if the message text has
already been entered in the text library – is output via the “Error Messages”
technology template.
Siemens AG 2014 All rights reserved
The message disappears from the display when the Error input of FB 510
“ShowErrFB” is set to False.
EventID FB_ErrorID
TDB_Nr
IgnoreWarnings FB 511
„ShowErrDB“
The number of the data block to be monitored must be entered at the TDB_Nr
input. Then the function block reads out the DBW 20 data word in the specified
data block and determines the data block type from this information. For
technology data blocks, the data block type also indicates the technology object
type.
The data block type also defines the address of the location in the data block from
which the error code can be read out.
By default, the “Error Messages” technology template supports the following
technology objects:
Table 9-1: Supported TO types (for Technology version 1.0, 2.0, 3.0, 4.1 and 4.2)
TO type (UDT number)
Technology object ErrorID address
V 1.0 V 2.0 V 3.0 V 4.1 V 4.2
DriveAxis 1 13 17 34 47 DBW 26
PosAxis 2 12 22 31 46 DBW 26
FollowingAxis 3 11 23 32 45 DBW 26
ExternalEncoder 4 14 18 36 --- DBW 26
Cam 5 5 24 33 49 DBW 22
MeasuringInput 6 6 21 30 ---- DBW 26
OutputCam 7 15 19 35 48 DBW 22
CamTrack --- --- --- 37 --- DBW 26
TraceDB 8 8 8 8 --- Not supported
DeviceDB 10 16 25 25 --- DBW 26
PathObject --- --- --- --- 40 DBW 26
PolynomData --- --- --- --- 41 Not supported
XYZVektor --- --- --- --- 42 Not supported
ZoneDefinition --- --- --- --- 43 Not supported
ZoneDefinition --- --- --- --- 44 Not supported
Siemens AG 2014 All rights reserved
If you want to monitor self-created data blocks, a type that refers to the correct
location of the message index (ErrorID) must be entered in the DBW 20 data word
of the data block. It may be necessary to supplement this type accordingly in
FB 511 “ShowErrDB”.
10 References
Table 10-1
Subject Title
\1\ Siemens Industry http://support.automation.siemens.com
Online Support
\2\ Download page of http://support.automation.siemens.com/WW/view/en/21402122
the entry
\3\ STEP 7 V5.x SIMATIC Working with STEP 7 V5.5
http://support.automation.siemens.com/WW/view/en/45531551
\4\ SIMATIC Configuring Hardware and Communication
Connections STEP 7 V5.5
http://support.automation.siemens.com/WW/view/en/45531110
\5\ SIMATIC Programming with STEP 7 V5.5
http://support.automation.siemens.com/WW/view/en/45531107
\6\ SIMATIC STEP7 V5.5 Function Block Diagram (FBD) for
S7-300 and S7-400 Programming
http://support.automation.siemens.com/WW/view/en/45522487
\7\ SIMATIC STEP 7 V5.5 Ladder Logic (LAD) for S7-300 and
S7-400 Programming
Siemens AG 2014 All rights reserved
http://support.automation.siemens.com/WW/view/en/45523822
\8\ SIMATIC STEP 7 V5.5 Statement List (STL) for S7-300 and
S7-400 Programming
http://support.automation.siemens.com/WW/view/en/45523446
\9\ System Software for S7-300/400 System and Standard
Functions Volume 1 and Volume 2
http://support.automation.siemens.com/WW/view/en/44240604
\10\ Automating with STEP 7 in STL and SCL
Author: Hans Berger
Publisher: Publicis Publishing
ISBN: 978-3-89578-412-5
\11\ Technology CPU SIMATIC S7-300 CPU 31xT – Manual
http://support.automation.siemens.com/WW/view/en/21362915
\12\ SIMATIC S7-300 CPU 31xT-3 PN/DP – Manual
http://support.automation.siemens.com/WW/view/en/78539375
\13\ SIMATIC Engineering Tools S7 Technology - Function
Manual
http://support.automation.siemens.com/WW/view/en/30119663
\14\ SIMATIC S7 300 Automation Systems CPU 317T-2 DP:
Controlling a virtual axis
http://support.automation.siemens.com/WW/view/en/48358145
\15\ WinCC flexible SIMATIC HMI WinCC flexible 2008 Getting Started – First-
Time Users
http://support.automation.siemens.com/WW/view/en/18660846
\16\ WinCC flexible Getting Started Power User
http://support.automation.siemens.com/WW/view/en/18656980
\17\ SIMATIC HMI WinCC flexible 2008 WinCC flexible 2008
Compact/ Standard/ Advanced
http://support.automation.siemens.com/WW/view/en/18796010
Subject Title
\18\ TIA Portal STEP 7 Professional V13.0 – System Manual
http://support.automation.siemens.com/WW/view/en/89515142
\19\ WinCC Comfort/Advanced V13.0 – System Manual
http://support.automation.siemens.com/WW/view/en/91479053
\20\ Updates for STEP 7 V13 and WinCC V13
http://support.automation.siemens.com/WW/view/en/90466591
\21\ Application Palletizer with Simply Interpolating Axes Based on Cam
examples for the Discs:
technology CPU http://support.automation.siemens.com/WW/view/en/21062269
(a selection) Feeder for a press based on static cam disks:
http://support.automation.siemens.com/WW/view/en/21363677
Flying shears with print-mark synchronization based on gear
synchronism:
http://support.automation.siemens.com/WW/view/en/21063352
Cross Slide / Single Belt Application:
http://support.automation.siemens.com/WW/view/en/24094737
Parameterization of the "Gear Synchronization" Technology
Function (SyncOp Guide):
http://support.automation.siemens.com/WW/view/en/23577545
\22\ Technology Technology Template "Simple 3D-Interpolation with cam
templates for the disks":
technology CPU
Siemens AG 2014 All rights reserved
http://support.automation.siemens.com/WW/view/en/21364022
(a selection) Technology Template “Hydraulics Characteristic”:
http://support.automation.siemens.com/WW/view/en/27731588
Technology Template “Flying shears”:
http://support.automation.siemens.com/WW/view/en/26659810
Technology Template “Flying shears”:
http://support.automation.siemens.com/WW/view/en/21062270
Technology Template “Move_Jog”:
http://support.automation.siemens.com/WW/view/en/21365191
\23\ FAQs for the Which encoders can you use with the Technology CPUs?
technology CPU http://support.automation.siemens.com/WW/view/en/19968954
(a selection) Which versions of the S7 Technology option package are
available and which SINAMICS S120 drive firmware can you
use with which of these versions?
http://support.automation.siemens.com/WW/view/en/23411204
How can I display a cam disk of the technology CPU on the
HMI using WinCC flexible?
http://support.automation.siemens.com/WW/view/en/26680228
11 History
Table 11-1
Version Date Modifications
V1.0 First version
V2.0 01/2005 Revision of the “Error Messages” technology template:
Integration of the messages for the “S7 Technology”
option package up to version 2.0 into the text libraries.
Introduction of the compact documentation.
V3.0 09/2006 Revision and extension of the “Error Messages” technology
template:
Integration of the messages for the “S7 Technology”
option package up to version 3.0 into the text libraries.
Implementation of the test program for the technology
template in WinCC flexible.
Modification of the documentation to comply with the
changes.
V4.1 02/2009 Revision and extension of the “Error Messages” technology
template:
Integration of the messages for the “S7 Technology”
option package up to version 4.1 into the text libraries.
Siemens AG 2014 All rights reserved