Cpu31xt Drive Error Message Doku v422 en
Cpu31xt Drive Error Message Doku v422 en
http://support.automation.siemens.com/WW/view/en/66604179
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 Technology Template ..................................................................................... 5
1.1 Introduction ....................................................................................... 5
1.1.1 The technology template.................................................................... 5
1.1.2 Main contents of this technology template .......................................... 5
1.1.3 Scope ................................................................................................ 5
1.2 Objective and purpose ....................................................................... 6
1.2.1 Task .................................................................................................. 6
1.2.2 Advantages ....................................................................................... 6
1.3 Possible applications ......................................................................... 7
1.3.1 Tasks that can be solved with the technology template ...................... 7
1.3.2 Properties .......................................................................................... 7
1.3.3 Restrictions ....................................................................................... 8
1.4 Components of the technology template ............................................ 8
1.5 Approved hardware and software ...................................................... 8
1.5.1 Hardware components – SIMATIC controller...................................... 8
1.5.2 Hardware components – SINAMICS S120 ......................................... 9
1.5.3 Software components ...................................................................... 10
2 Basics ........................................................................................................... 11
2.1 Functional principle of the technology template ................................ 11
2.2 Monitoring a drive on the SINAMICS S ............................................ 12
Siemens AG 2014 All rights reserved
8 History .......................................................................................................... 29
Siemens AG 2014 All rights reserved
1 Technology Template
1.1 Introduction
1.1.1 The technology template
Note Due to the technology function used in the template’s function block, the “Drive
Error Messages” technology template can be used to read the warning and error
codes out of the SINAMICS S drive system only in conjunction with the
Copyright
technology CPU.
1.1.3 Scope
The German and English error texts supplied with this technology template always
refer to a defined revision level of the firmware of the SINAMICS S drive system.
When using other firmware revision levels of the SINAMICS S drive system, it may
be necessary to modify or rebuild the supplied text library. The error IDs and error
texts for the respective firmware revision level of the SINAMICS S are available as
XML files and can be downloaded from Industry Online Support together with the
firmware (\16\). For information on how to create a STEP 7 text library from this
data, please refer to the SINAMICS XML Parser user documentation (\23\).
When running the technology CPU, states may occur in which warning and error
messages are output by the drives connected to the SINAMICS S drive system.
These messages can only be detected by targeted monitoring of the individual
drives in the SINAMICS S and indicated to the operator.
This “Drive Error Messages” technology template helps the user monitor the
desired drives on the SINAMICS S with regard to warning (alarm) and error (fault)
messages and display the occurring events online in the STEP 7 SIMATIC
Manager or on a connected HMI user interface in plain text.
Therefore, the “Drive Error Messages” technology template enables the user to
easily and quickly locate and eliminate the cause of the error.
1.2.2 Advantages
The use of this technology template provides the user with the following
advantages:
Adaptability
The function block and the text library of the 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 library and output them using the alarm procedure of the technology
template.
1.3.2 Properties
The “Drive Error Messages” technology template can be used for plain text display
of the warning and error codes of the SINAMICS S for the following firmware
revision levels:
Table 1-1: Firmware revision levels supported by the SINAMICS S drive system
Siemens AG 2014 All rights reserved
CU 320-2
The following firmware revision level is used for the text library supplied
with the technology template: V 04.05.00.21 (\16\)
V 04.06 Supports the following SINAMICS S control units:
CU 310-2
CU 320-2
The following firmware revision level is used for the text library supplied
with the technology template: V 04.06.00.13 (\16\)
1.3.3 Restrictions
FB 514 “S120_ErrorText ”
“ShowDriveErr” text library
Copyright
The function block of the technology template is used to monitor a drive of the
SINAMICS S and display any warning and error messages on this drive.
The text library contains the German and English plain text warning and error
messages for the warning (alarm) and error (fault) codes of the SINAMICS S for
the appropriate firmware version. They can be displayed using the “CPU
Messages” STEP 7 function or integrated into a self-created HMI user interface.
Text libraries for firmware revision levels that are not included in this technology
template can be created using the XML Parser and applied to the template (\23\).
The CPU executes the user program and the technological functions. The “Drive
Error Messages” technology template for monitoring the desired drives of the
SINAMICS S drive system is run on the SIMATIC controller. Alternatively, the
following CPUs can be used:
Note To be able to use the “Drive Error Messages” technology template, the following
system function blocks must exist in the project:
SFC 18 “ALARM_S”: To output ALARM_S messages
SFC 24 “TEST_DB”: To check data blocks
The SINAMICS S120 drive system whose axes are to be monitored using the
“Drive Error Messages” technology template is connected to the technology CPU
via the DP(Drive) interface.
2 Basics
2.1 Functional principle of the technology template
To monitor a drive of the SINAMICS S, the following functional principles are
implemented in the “Drive Error Messages” technology template:
Error detection via the status display in the technology data block
In the technology data block of an axis object of the technology CPU, the
“ErrorStatus.FaultDrive” (DBX 36.3) bit is used to indicate an error that has
occurred on the drive. When this bit is set, the technology template, with the
aid of the FB 455 “ReadDriveParameter” technology function, enters a state
where the error code of the SINAMICS is queried on a time-controlled basis
(parameter: r2131). The error code output there is then displayed in plain text
using the ALARM_S message function.
Error detection via time-controlled querying of the error code
With the aid of the FB 455 “ReadDriveParameter” technology function, the
technology template runs a time-controlled query of the error code (parameter:
r2131) of the SINAMICS. If a code not equal to zero is entered in the error
code parameter of the SINAMICS, it will be displayed as plain text via the
ALARM_S (SFC 18) message function.
Siemens AG 2014 All rights reserved
Figure 2-1: Functional principle of the “Drive Error Messages” technology template
Copyright
Note Warning messages of a drive on the SINAMICS S can only be detected by time-
controlled querying of the warning code (parameter: r2132) as the technology
data block of the axis object of the technology CPU does not contain a status bit
for warning messages of the drive.
Note For each control unit of the SINAMICS S, only one active query of a drive
parameter can be made at a time via the FB 455 “ReadDriveParameter”
technology function. Therefore, a simultaneous query of all drives of a control
unit is not possible using this technology function.
For this reason, a retriggering mechanism is implemented in the “Drive Error
Messages” technology template if a parameter query is rejected. In this case,
there may be a time difference between the occurrence of the error on the
SINAMICS S and the display of the error message in STEP 7 or on the HMI user
interface.
monitored on a time-controlled basis until the error has been cleared and zero has
been entered in the error code of the axis.
Drive warnings, on the other hand, are always made via a time-controlled query of
the warning code of the drive (parameter: r2132) in the SINAMICS S via the
FB 455 “ReadDriveParameter” technology function. However, monitoring drive
warnings can be disabled on the FB 514 “ShowErrDrive” function block to reduce
the bus load of the DP(Drive) via the mode selection.
3 Functional Mechanisms
3.1 Text library
The “Drive Error Messages” technology template includes firmware-specific
“S120_ErrorText” text libraries for the SINAMICS S drive system to display the
warning and error codes in plain text:
Table 3-1: Firmware-specific text libraries for the SINAMICS S drive system
Text Remarks / notes
library
V04-04 Supports the following SINAMICS S control units:
CU 320-2
(FW V04.04) The following firmware revision level is used for the text library supplied
with the technology template: V 04.04.00.23 (\16\)
V04-05 Supports the following SINAMICS S control units:
CU 310-2
(FW V04.05) CU 320-2
The following firmware revision level is used for the text library supplied
with the technology template: V 04.05.00.21 (\16\)
Siemens AG 2014 All rights reserved
To display the correct warning and error texts, select the text library suitable for the
SINAMICS S drive system you are using and integrate it into your user project.
Copyright
Note For more information on integrating the text library, please refer to the
documentation for the “Error Messages” technology template (\25\).
Note For more information on the change language feature, please refer to the
documentation for the “Error Messages” technology template (\25\). An example
of changing the language on the HMI user interface can also be found in the test
program of the “Error Messages” technology template.
4 Installation
4.1 Preparations
4.1.1 Retrieving the technology template
4.2.1 Procedure
Once you have transferred all the blocks and the text library 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 call of the function block of the “Drive Error Messages” template in the STL
and FBD programming languages is shown below as an example:
FB 514
“ShowErrDrive”
When calling the function blocks and after assigning the instance data block,
STEP 7 automatically assigns a CPU-wide unique number on the EventID
parameter.
not possible.
Note If subsequent changes are made to the text libraries, also the HMI user interface
has to be recompiled to apply the changes to the alarm view of the user
interface.
WinCC flexible
WinCC flexible must be integrated into the STEP 7 V5.x project that contains the
text library with the drive error texts.
Note The “Error Messages” technology template (\25\) provides a detailed description
of the procedure for the two above HMI configuration methods.
Siemens AG 2014 All rights reserved
Copyright
5 Startup
5.1 Call environment
The block of the “Drive Error Messages” technology template has to be called
cyclically in the user program. The call of the block can be made directly in an OB
or within a cyclically processed FB.
PLC
Integrated
Cyclic OB technology
(e.g., OB1,
OB35 ...) Technology
DB
FB 514 Technology
“ShowErrDrive” objects
PLCopen
FB 455
“ReadDriveParameter”
Axes
Siemens AG 2014 All rights reserved
5.2 Interfaces
5.2.1 Interface of FB 514 “ShowErrDrive”
EventID FB_ErrorID
TDB_Nr
DriveAddress FB 514
Mode “ShowErrDrive”
PollingTime
ReTriggerTime
The mode selection at the “Mode” input defines the principle of operation of the
FB 514 “ShowErrDrive” block and therefore also the drive bus load at the
DP(Drive) input of the technology CPU:
The time specified at the “PollingTime” input is used for the cyclic reading of the
warning and error codes of the SINAMICS S drive system. Between two read
actions, FB 514 “ShowErrDrive” waits for the time specified here to keep the bus
load at the DP(Drive) of the technology CPU as low as possible.
If an error occurs when processing the error codes in the 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 technology template.
Table 5-3: Error codes of the “Drive Error Messages” technology template
FB_ Error Ref. Remark
ErrorID
0000 No error ---
0001 Associated value too long / SFC 18 The message is sent
no access to user memory
0002 Last free message SFC 18
acknowledgement memory
has been used
8001 Internal error FB 455 Faulty or inconsistent project /
software
8005 Command canceled FB 455 The command cannot be executed
because command memory due to insufficient command
is in use by another process capacity.
permitted range.
8082 Resources exhausted SFC 18 Loss of messages since the CPU
has no more resources for
generating block-related messages
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).
Copyright
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.
Invalid DB (ANY pointer) FB 455 The ANY pointer refers to an invalid
data area.
80A2 DP protocol error in layer 2 FB 455 Error during data record transfer,
retry possible in next program cycle.
80B0 Data record not supported FB 455 Error during data record transfer,
command canceled.
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.
80B5 System function cannot be FB 455 Error during data record transfer,
Copyright
6 Operation
6.1 Monitoring with FB 514 “ShowErrDrive”
To monitor drives of the SINAMICS S by the FB 514 “ShowErrDrive” block, a block
call of FB 514 “ShowErrDrive” has to be programmed for each drive to be
monitored.
The block calls of FB 514 “ShowErrDrive” are not multi-instance-capable.
Note To keep the bus load of the DP(Drive) as low as possible, the drive warnings
should not be monitored to the extent possible.
overhead.
Figure 6-1: Error text output of the drive via “CPU Messages”
Copyright
For detailed information on how to use the “CPU Messages” STEP 7 function,
please refer to the STEP 7 help or the documentation for the “Error Messages”
technology template (\25\).
Figure 6-2: Error text output of the drive via an HMI device
To test the “drive error messages”, this technology template can be integrated into
the test program for the “Error Messages” technology template (\25\). Please follow
the installation instructions for the “drive error messages” from this documentation.
For more information on the installation, operation and function of the test program,
please refer to the documentation for the “Error Messages” technology template
(\25\).
Copyright
Integration into the test program for the “Error Messages” technology template
(\25\) was implemented as follows:
The test program for the “Error Messages” technology template, version
V4.2.2, forms the basis.
Connecting the SINAMICS training case to the technology CPU and
commissioning the training case via S7 Technology.
Changing the virtual axes of the text program to the real axes of the training
case using the axis wizard in S7 Technology:
– Axis 1: Red disc of the training case
– Axis 2: Blue disc of the training case
BICO wiring of the ready indication for the infeed (p864) to the following
switches:
Siemens AG 2014 All rights reserved
Figure 6-4: Generating warnings and errors using the SINAMICS operator box
Note When switches 0 and 1 of the operator box are not ON and switches 8 and 10
are OFF, the axes of the SINAMICS training case cannot be commissioned.
7 Related Literature
Table 7-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/66604179
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
http://support.automation.siemens.com/WW/view/en/45523822
Siemens AG 2014 All rights reserved
\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 S7Technology - Function Manual
http://support.automation.siemens.com/WW/view/en/30119663
\14\ SINAMICS S Engineering Manual SINAMICS G130, G150, S120 Chassis,
S120 Cabinet Modules, S150 Power unit with Control
Interface Module CIM and Control Unit CU320-2 with firmware
4.3)
http://support.automation.siemens.com/WW/view/en/83180185
\15\ SINAMICS S120/S150 List Manual
http://support.automation.siemens.com/WW/view/en/68041075
\16\ Firmware Downloads SINAMICS S 120:
Firmware Version 4.4 HF23
http://support.automation.siemens.com/WW/view/en/48736528
Firmware Version 4.5 HF21
http://support.automation.siemens.com/WW/view/en/59427410
Firmware Version 4.6 HF13
http://support.automation.siemens.com/WW/view/en/68831755
Subject Title
\17\ WinCC flexible SIMATIC HMI WinCC flexible 2008 Getting Started - First-
Time Users
http://support.automation.siemens.com/WW/view/en/18660846
\18\ WinCC flexible Getting Started Power User
http://support.automation.siemens.com/WW/view/en/18656980
\19\ SIMATIC HMI WinCC flexible 2008 WinCC flexible 2008
Compact/Standard/Advanced
http://support.automation.siemens.com/WW/view/en/18796010
\20\ TIA Portal STEP 7 Professional V13.0 – System Manual
http://support.automation.siemens.com/WW/view/en/89515142
\21\ WinCC Comfort/Advanced V13.0 – System Manual
http://support.automation.siemens.com/WW/view/en/91479053
\22\ Updates for STEP 7 V13 and WinCC V13
http://support.automation.siemens.com/WW/view/en/90466591
\23\ XML Parser Transforming message from a SINAMICS drive from XML
format and displaying it in clear text with the help of the
SINAMICS XML Parser
http://support.automation.siemens.com/WW/view/en/77467239
\24\ Application Flying shears with print-mark synchronization based on gear
examples for the synchronism:
technology CPU http://support.automation.siemens.com/WW/view/en/21063352
(a selection) Parameterization of the "Gear Synchronization" Technology
Siemens AG 2014 All rights reserved
Subject Title
How can you create a cam during runtime that is based on
line segments (interpolation point table) and that connects
these segments by continuous transitions?
http://support.automation.siemens.com/WW/view/en/35690077
What options are there for reading hardware limit switch
signals into a Technology CPU?
http://support.automation.siemens.com/WW/view/en/25545745
Technology CPUs - How can you control a SINAMICS "Active
Line Module" (ALM) via the PROFIBUS DP drive?
http://support.automation.siemens.com/WW/view/en/25543996
8 History
Table 8-1
Version Date Modifications
V4.2.2 07/2014 First version
Siemens AG 2014 All rights reserved