0% found this document useful (0 votes)
58 views29 pages

Cpu31xt Drive Error Message Doku v422 en

drive error

Uploaded by

rakesg
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)
58 views29 pages

Cpu31xt Drive Error Message Doku v422 en

drive error

Uploaded by

rakesg
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/ 29

Application Description 07/2014

“Drive Error Messages”


Technology Template
Technology CPU, SINAMICS S120

http://support.automation.siemens.com/WW/view/en/66604179
Warranty and Liability

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

body or health, guarantee for the quality of a product, fraudulent concealment of a


deficiency or breach of a condition which goes to the root of the contract
(“wesentliche Vertragspflichten”). The damages for a breach of a substantial
contractual obligation are, however, limited to the foreseeable damage, typical for
the type of contract, except in the event of intent or gross negligence or injury to
life, body or health. The above provisions do not imply a change of the burden of
proof to your detriment.

Any form of duplication or distribution of these Application Examples or excerpts


hereof is prohibited without the expressed consent of Siemens Industry Sector.

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.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 2
Table of Contents

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

3 Functional Mechanisms ............................................................................... 13


3.1 Text library ...................................................................................... 13
3.2 Change language ............................................................................ 13
4 Installation .................................................................................................... 14
4.1 Preparations .................................................................................... 14
4.1.1 Retrieving the technology template .................................................. 14
4.2 Integration into your application ....................................................... 14
4.2.1 Procedure........................................................................................ 14
4.2.2 Calling the function blocks ............................................................... 14
4.2.3 Assigning the instance data blocks .................................................. 15
4.3 Integration into the HMI user interface.............................................. 15
5 Startup .......................................................................................................... 17
5.1 Call environment.............................................................................. 17
5.2 Interfaces ........................................................................................ 17
5.2.1 Interface of FB 514 “ShowErrDrive” ................................................. 17
5.2.2 Mode selection at the “Mode” input .................................................. 18
5.2.3 Notes on the “PollingTime” and “ReTriggerTime” inputs ................... 19
5.3 Warning and error messages ........................................................... 20
5.3.1 Signaling error events in the template .............................................. 20
5.3.2 Warning and error codes at the “ErrorID” output ............................... 20
6 Operation ...................................................................................................... 24
6.1 Monitoring with FB 514 “ShowErrDrive” ........................................... 24
6.2 Error text output via “CPU Messages” .............................................. 24
6.3 Error text output via an HMI device .................................................. 24
6.4 Test program for the technology template ........................................ 25
6.4.1 General information ......................................................................... 25
6.4.2 Integration example ......................................................................... 25
7 Related Literature ......................................................................................... 27

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 3
Table of Contents

8 History .......................................................................................................... 29
Siemens AG 2014 All rights reserved

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 4
1 Technology Template
1.1 Introduction

1 Technology Template
1.1 Introduction
1.1.1 The technology template

A technology template is a software object or a code block with a defined interface


that can be easily integrated into other software projects with little overhead and
that performs a precisely defined technological task in these projects.
This technology template helps you easily implement a plain text display for
warning and error messages of a connected SINAMICS S drive system. All
occurring warning and error texts in German and English are already included in
the technology template and can be additionally supplemented by your own
messages.
In terms of function and use, this technology template is based on the “Error
Messages” technology template for the technology CPU that can be downloaded
from Online Support at the following link:

Link: “Error Messages” technology template


http://support.automation.siemens.com/WW/view/en/21402122
Siemens AG 2014 All rights reserved

Before using this technology template, it is recommended to familiarize yourself


with the “Error Messages” 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.2 Main contents of this technology template

This technology template discusses the following key issues:


Monitoring of the drives connected to the SINAMICS S drive system.
Output of plain text warning and error messages via the ALARM_S function.

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\).

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 5
1 Technology Template
1.2 Objective and purpose

1.2 Objective and purpose


1.2.1 Task

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.

Figure 1-1: Detecting and displaying SINAMICS drive error messages


Siemens AG 2014 All rights reserved
Copyright

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:

Fast program generation


With the aid of the “Drive Error Messages” technology template, monitoring drives
on the SINAMICS S drive system with regard to warning (alarm) and error (fault)
messages can be implemented easily and quickly. The warning and error codes
can be easily displayed in plain text in STEP 7 or on an HMI user interface.

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.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 6
1 Technology Template
1.3 Possible applications

Immediate readiness for service


The function block and the text library of the technology template can be applied to
a self-created user program simply by copying and are ready for service
immediately after calling the function block in the user program.

1.3 Possible applications


1.3.1 Tasks that can be solved with the technology template

The technology template allows you to monitor the drives connected to a


SINAMICS S for warning and error messages and quickly display occurring
warnings and errors.

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

Firmware Remarks / notes


version
V 04.04 Supports the following SINAMICS S control units:
CU 320-2
The following firmware revision level is used for the text library supplied
with the technology template: V 04.04.00.23 (\16\)
V 04.05 Supports the following SINAMICS S control units:
CU 310-2
Copyright

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\)

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 7
1 Technology Template
1.4 Components of the technology template

1.3.3 Restrictions

The following properties were not considered in the implementation of the


technology template.
Only one message can be displayed per drive
Only one warning or error message can be displayed for each drive of the
SINAMICS S.
No archiving of error messages
Occurring warning and error messages are not stored in the “Drive Error
Messages” technology template.
ALARM_S message system must be supported
The “Drive Error Messages” template can only be used with HMI systems, for
instance WinCC flexible, that support the ALARM_S message system.

1.4 Components of the technology template


The “Drive Error Messages” technology template consists of one function block and
one text library.
Siemens AG 2014 All rights reserved

Figure 1-2: Components of the “Drive Error Messages” technology template

“Drive Error Messages” technology template

Function blocks Text libraries

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\).

1.5 Approved hardware and software


1.5.1 Hardware components – SIMATIC controller

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:

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 8
1 Technology Template
1.5 Approved hardware and software

Table 1-2: Hardware components – SIMATIC controller


Component No. Article number Note
CPU 31xT 1 6ES7315-7TJ10-0AB0 The following CPUs can
6ES7317-7TK10-0AB0 also be used …
6ES7317-7UL10-0AB0 6ES7315-6TG10-0AB0
6ES7315-6TH13-0AB0
6ES7317-6TJ10-0AB0
6ES7317-6TK13-0AB0
(FW V2.6 / 4.1.1 or
higher)

CPU 317TF 6ES7317-7UL10-0AB0 The following CPU can


Fail-safe technology CPU also be used …
for simultaneous execution 6ES7317-6TF14-0AB0
of technology program and (FW V2.7 / 4.1.5 or
safety program. higher)
Micro Memory Card 1 6ES7953-8LP31-0AA0 The S7 program is stored
8 MB on the MMC.
Siemens AG 2014 All rights reserved

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

1.5.2 Hardware components – SINAMICS S120


Copyright

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.

Table 1-3: Hardware components – “SINAMICS S120”


Component No. Article number Note
Control Unit CU 310-2 DP 1 6SL3040-1LA00-0AA0 The control unit
Firmware: implements the open-
V 04.05 or V 04.06 loop/closed-loop control
of the drives connected to
6SL3040-1MA00-0AA0 the SINAMICS S.
Control Unit CU 320-2 DP
Firmware: The control units can be
V 04.05 or V 04.06 used as alternatives.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 9
1 Technology Template
1.5 Approved hardware and software

1.5.3 Software components

Standard software components


Table 1-4: Standard software components
Component No. Article number Note
STEP 7 1 6ES7810-4CC10-0YA5 STEP 7 is the basic
Floating License package for all optional
(STEP 7 V5.x) Version: V5.5 SP4 software packages and
used for programming the
SIMATIC.
S7 Technology 1 6ES7864-1CC42-0YA5 Tool for parameterizing
(STEP 7 V5.x) and programming the
Version: V4.2 SP3 technology objects of the
technology CPU.

Sample files and projects


The following list contains all files and archives that are used in this technology
template:
Siemens AG 2014 All rights reserved

Table 1-5: Files and STEP 7 archives of the technology template


Component Note
66604179_CPU31xT_drive_error_message_ This STEP 7 archive contains the
CODE_v422.zip blocks associated with the
technology template for
integration into a user program.
66604179_CPU31xT_drive_error_message_ This document.
DOKU_v422_en.pdf
Copyright

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 10
2 Basics
2.1 Functional principle of the technology template

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.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 11
2 Basics
2.2 Monitoring a drive on the SINAMICS S

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.

2.2 Monitoring a drive on the SINAMICS S


A drive connected to the SINAMICS S is monitored with the aid of the FB 514
“ShowErrDrive” function block of the technology template.
To monitor a drive, FB 514 “ShowErrDrive” must be called once during an OB1
cycle. Referencing to the drive is performed using the number of the technology
data block of the axis object in the technology CPU and using the base address of
the drive, i.e. the start address of the telegram via which the drive is connected to
the technology CPU.
Siemens AG 2014 All rights reserved

Depending on the mode selected on the FB 514 “ShowErrDrive” function block, a


drive error is monitored via …
... the technology data block of the axis object in the technology CPU. This is
where the function block monitors the display of a drive error via the
“ErrorStatus.FaultDrive” (DBX 36.3) bit.
… polling of the error code of the drive (parameter: r2131) in the SINAMICS S
via the FB 455 “ReadDriveParameter” technology function.
If a drive error is detected, the error code of the drive in the SINAMICS S is always
Copyright

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.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 12
3 Functional Mechanisms
3.1 Text library

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

V04-06 Supports the following SINAMICS S control units:


CU 310-2
(FW V04.06) 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\)

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\).

3.2 Change language


The error and warning messages for plain text output are available in the supplied
text library in the following languages:
German
English (USA)
To output the plain texts, the language can be changed in STEP 7 or – if change
language was configured – on the HMI user interface.

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.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 13
4 Installation
4.1 Preparations

4 Installation
4.1 Preparations
4.1.1 Retrieving the technology template

The “Drive Error Messages” technology template is supplied as a STEP 7 archive.


To be able to use the technology template, this archive first has to be retrieved
using STEP 7.
The project includes an S7 program folder, “DriveErrorMessage”, that contains all
the necessary elements for the use of the technology template. However, the text
library contained in this folder is empty.
Furthermore, the project includes additional “Text Libraries Vxx-yy” program folders
where the text library associated with SINAMICS firmware revision level Vxx.yy is
stored.

Figure 4-1: Contents of the technology template


Siemens AG 2014 All rights reserved

4.2 Integration into your application


Copyright

4.2.1 Procedure

For a detailed description of how to integrate the “Drive Error Messages”


technology template into your STEP 7 project, please refer to the documentation
for the “Error Messages” technology template (\25\).
Basically, integrating the technology template into your application requires the
following steps:
Transferring the complete S7 program folder to your STEP 7 project
Setting the “Assign CPU-oriented unique message numbers“ property in the
project
Copying the text library to your STEP 7 project
Copying the function blocks to your STEP 7 project

4.2.2 Calling the function blocks

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:

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 14
4 Installation
4.3 Integration into the HMI user interface

Table 4-1: Calling the function blocks


STL FBD

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.

Note The CPU-wide unique number automatically assigned by STEP 7 on the


EventID parameter must not be changed by the user!
Siemens AG 2014 All rights reserved

4.2.3 Assigning the instance data blocks

A separate instance data block has to be assigned to each called FB 514


“ShowErrDrive” function block of the “Drive Error Messages” template.
The use of multi-instance data blocks is not possible when using the function block
from the 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
Copyright

not possible.

4.3 Integration into the HMI user interface


Visualization can be implemented in TIA Portal with WinCC flexible or WinCC. In
TIA Portal, you can, for example, also configure the Comfort Panels. The
procedures for integrating the drive error messages into the HMI user interface
differ depending on the configuration software used. However, both cases require
that …
the HMI be configured in the same project that contains the text library with the
drive error texts.
a message output via ALARM_S be set up in the HMI user interface.
the alarm class that assigns the CPU to the drive error messages be selected.
Then the HMI user interface has to be recompiled.

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.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 15
4 Installation
4.3 Integration into the HMI 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.

WinCC (TIA Portal)


Use the IPE (Inter Project Engineering) method to set up an HMI project in which
the operator panel is given access to the data of a CPU included in another
STEP 7 V5.x or TIA project. In your HMI project to be created in TIA Portal, create
a proxy CPU – a so-called proxy device – that is initialized once with the data of
the original CPU and can be updated as often as desired.

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

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 16
5 Startup
5.1 Call environment

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.

Figure 5-1: Call environment of the technology template

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”

To monitor a drive of the SINAMICS S by the FB 514 “ShowErrDrive” function


block, the following interfaces are available at the block:
Copyright

EventID FB_ErrorID
TDB_Nr
DriveAddress FB 514
Mode “ShowErrDrive”
PollingTime
ReTriggerTime

Table 5-1: Interfaces of FB 514 “ShowErrDrive”


Parameter Data type Initial value Description
Input parameter
EventID DWORD DW#16#0 The EventID is used to assign the
error message by the ALARM_S
message system. It is
automatically assigned by STEP 7
when integrating the block and
must not be changed by the user.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 17
5 Startup
5.2 Interfaces

Parameter Data type Initial value Description


TDB_Nr INT 0 This is where the data block
number of the technology object to
be monitored or the technology
data block assigned to it must be
specified as a reference.
The number entered here is also
output as an axis number in the
message text to assign the
warning or error message.
DriveAddress INT 0 The base address of the drive
must be specified here.
The value of the base address
corresponds to the start address of
the telegram via which the drive is
connected to the technology CPU.
Mode INT 0 The mode selection defines the
principle of operation of the block.
The “Mode” parameter can be
specified in the range from 0 to 3.
The following chapter explains the
individual modes in greater detail.
PollingTime TIME T#500MS Cycle time for time-controlled
Siemens AG 2014 All rights reserved

reading of warning or error codes


of the SINAMICS S.
The following chapters provide
more detailed information on the
function of the parameter.
ReTriggerTime TIME T#50MS Delay time for rereading the
warning or error codes of the
SINAMICS S if the job was
rejected when querying the
Copyright

warning or error code.


The following chapters provide
more detailed information on the
function of the parameter.
Output parameter
FB_ErrorID INT 0 If an error occurs in the block while
processing the “drive error
messages”, an error code is
output.

5.2.2 Mode selection at the “Mode” input

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:

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 18
5 Startup
5.2 Interfaces

Table 5-2: Mode selection at the “Mode” input


Mode Function
0 Drive errors:
Drive errors are monitored via the technology data block of the axis object
of the technology CPU via the “ErrorStatus.FaultDrive” (DBX 36.3) error
status bit.
As long as the bit is set in the technology data block, the r2131 parameter
of the SINAMICS S drive system is read cyclically with the aid of the
FB 455 “ReadDriveParameter” technology function. If a value not equal to
zero is detected there, it is displayed via the technology template.
Drive warnings:
No monitoring of drive warnings.
1 Drive errors:
Drive errors are monitored via the technology data block of the axis object
of the technology CPU via the “ErrorStatus.FaultDrive” (DBX 36.3) error
status bit.
As long as the bit is set in the technology data block, the r2131 parameter
of the SINAMICS S drive system is read cyclically with the aid of the
FB 455 “ReadDriveParameter” technology function. If a value not equal to
zero is detected there, it is displayed via the technology template.
Drive warnings:
Drive warnings are monitored by cyclically reading the r2132 parameter of
the SINAMICS S drive system with the aid of the FB 455
Siemens AG 2014 All rights reserved

“ReadDriveParameter” technology function. If a parameter not equal to


zero is detected, it is displayed via the technology template.
2 Drive errors:
Drive errors are monitored by cyclically reading the r2131 parameter of
the SINAMICS S drive system with the aid of the FB 455
“ReadDriveParameter” technology function. If a value not equal to zero is
detected in the parameter, it is displayed via the technology template.
Drive warnings:
No monitoring of drive warnings.
3 Drive errors:
Copyright

Drive errors are monitored by cyclically reading the r2131 parameter of


the SINAMICS S drive system with the aid of the FB 455
“ReadDriveParameter” technology function. If a value not equal to zero is
detected in the parameter, it is displayed via the technology template.
Drive warnings:
Drive warnings are monitored by cyclically reading the r2132 parameter of
the SINAMICS S drive system with the aid of the FB 455
“ReadDriveParameter” technology function. If a value not equal to zero is
detected in the parameter, it is displayed via the technology template.

5.2.3 Notes on the “PollingTime” and “ReTriggerTime” inputs

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.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 19
5 Startup
5.3 Warning and error messages

The FB 455 “ReadDriveParameter” technology function is used to read out the


warning and error codes of the SINAMICS S drive system. However, for each
control unit of the SINAMICS S drive system, only one job can be executed at the
same time as the FB 455 “ReadDriveParameter” technology function. If the same
control unit is assigned more jobs, they will be rejected with an error message. In
this case, the cyclic reading of the warning and error codes for the appropriate
drive is interrupted for the time specified at the “ReTriggerTime” block input before
the job to read out the respective parameter is retransmitted. Therefore, the time
intervals for polling the individual drives shift in relation to each other, which in turn
should automatically result in the warning and error codes of all monitored axes of
a control unit being read out without any rejections.
To achieve the best possible shift of the polling time cycle, choose a
“ReTriggerTime” value that is significantly less than – and possibly not as an
integral multiple of – the set “PollingTime”.

Note When the FB 455 “ReadDriveParameter” technology function is also used


outside the technology template and jobs are assigned to the same control unit
of the SINAMICS S drive systems, the additional job may be rejected.
Siemens AG 2014 All rights reserved

5.3 Warning and error messages


5.3.1 Signaling error events in the template

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.

5.3.2 Warning and error codes at the “ErrorID” output


Copyright

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.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 20
5 Startup
5.3 Warning and error messages

FB_ Error Ref. Remark


ErrorID
800B Transfer buffer cannot be FB 455 The transfer buffer required for the
reserved command is insufficient.
8043 Illegal parameter value FB 455 Concerns the ParameterNumber,
SubIndex, NumberOfElements or
DoneFlag input parameters.
804C Command output rate too FB 455 The rate at which commands with the
high same instance DB were output
exceeded the capacity of the
command interface. The second
command is rejected in order not to
violate the first command.
8050 Technology not ready FB 455
8052 Blocks called at different FB 455
run levels
8053 Invalid instance DB FB 455 Faulty instance DB of the technology
function (for example, wrong length).
807F Internal error FB 511 Address of the DB data is outside the
permitted range
8081 EventID non-permissible SFC 18 The specified EventID is outside the
Siemens AG 2014 All rights reserved

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.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 21
5 Startup
5.3 Warning and error messages

FB_ Error Ref. Remark


ErrorID
8089 Invalid data record length FB 455 The data length specified in the ANY
(ANY pointer) pointer is shorter than the data
record length.
808C Pointer format is invalid or FB 455 The ANY pointer contains invalid
not supported definitions.
808D Data record length out of FB 455 An attempt was made to transfer a
range data record with a length exceeding
240 bytes.
8090 Invalid logical base address FB 455 Error during data record transfer,
command canceled.
8091 Logical base address is not FB 455 Error during data record transfer,
available command canceled.
8092 Faulty response ID FB 455 Error during data record transfer,
command canceled.
80A0 Error when reading module FB 455 Error during data record transfer,
data command canceled.
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.
Siemens AG 2014 All rights reserved

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

executed retry possible in next program cycle.


80B7 Faulty command FB 455 Error during data record transfer,
PROFIBUS DP error, command
canceled.
80C3 Module at capacity limits FB 455 Error during data record transfer,
retry possible in next program cycle.
80C5 Access to distributed I/O FB 455 Error during data record transfer,
failed retry possible in next program cycle.
80C7 A command has already FB 455 Error during data record transfer,
been output to the drive retry possible in next program cycle.
8100 Parameter not found FB 455 Parameter error, command canceled.
8103 Subindex not found FB 455 Parameter error, command canceled.
8104 Parameter not indexed FB 455 Parameter error, command canceled.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 22
5 Startup
5.3 Warning and error messages

FB_ Error Ref. Remark


ErrorID
8111 Access denied in current FB 455 Parameter error, command canceled.
state
8115 Max. transferable length FB 455 Parameter error, command canceled.
exceeded
8116 Value is invalid or not FB 455 Parameter error, command canceled.
supported
8119 Axis does not exist FB 455 Parameter error, command canceled.
8120 Reserve FB 455 Reserved error codes according to
… PROFIdrive specification.
8164
8165 Manufacturer-specific error FB 455 Manufacturer-specific error codes
… according to PROFIdrive
817E specification. Errors are generated
by the drive.
817F Internal error FB 511 Incorrect data block type detected or
data block type is not supported by
the template.
Manufacturer-specific error FB 455 Manufacturer-specific error codes
according to PROFIdrive
Siemens AG 2014 All rights reserved

specification. Errors are generated


by the drive.
8180 Manufacturer-specific error FB 455 Manufacturer-specific error codes
… according to PROFIdrive
81FF specification. Errors are generated
by the drive.
Copyright

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 23
6 Operation
6.1 Monitoring with FB 514 “ShowErrDrive”

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.

6.2 Error text output via “CPU Messages”


Using the “CPU Messages” STEP 7 function, the warning and error messages of
the monitored drives of the SINAMICS S can be displayed on the programming unit
in the SIMATIC Manager without any additional configuration and programming
Siemens AG 2014 All rights reserved

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\).

6.3 Error text output via an HMI device


Error text output via an HMI device is implemented using the “Alarm View” and
“Alarm Window” objects, which have to be inserted into the appropriate HMI
screen. The configuration can be made in WinCC flexible or in WinCC in TIA Portal
(see Chapter 4.3). The “Error Messages” technology template includes a detailed
explanation of the HMI configuration steps for both engineering systems (\25\).

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 24
6 Operation
6.4 Test program for the technology template

Figure 6-2: Error text output of the drive via an HMI device

6.4 Test program for the technology template


6.4.1 General information
Siemens AG 2014 All rights reserved

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

6.4.2 Integration example

As an example, the “Drive Error Messages” technology template was integrated


into the test program for the “Error Messages” technology template (\25\) using the
sample program offered for download.
A technology CPU with the SINAMICS training case (including a control unit and
two servo axes) is used as the hardware configuration.

Figure 6-3: Hardware configuration of the integration example

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 25
6 Operation
6.4 Test program for the technology template

Table 6-1: Data for the integration example


Technology CPU SINAMICS drive
Type CPU 315T-3 PN/DP CU 320-2
Firmware 3.2 / 4.1.5 4.6
DP address 2 (DP(Drive)) 4 (via DIP switches)

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

– Switch 0 (-X122.1): Infeed ready axis 1 (red disc)


– Switch 1 (-X122.2): Infeed ready axis 2 (blue disc)
Additional BiCo wiring of the operator box of the SINAMICS training case for
generating external warnings (p2112[0]) and errors (p2106[0]) using the toggle
switches of the operator box:
– Switch 8 (-X122.9): External error on axis 1 (red disc)
– Switch 9 (-X122.10): External warning on axis 1 (red disc)

Copyright

Switch 10 (-X122.12): External error on axis 2 (blue disc)


– Switch 11 (-X122.13): External warning on axis 2 (blue disc)

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.

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 26
7 Related Literature

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

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 27
7 Related Literature

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

Function (SyncOp Guide):


http://support.automation.siemens.com/WW/view/en/23577545
Technology CPU 317TF-2 DP: Example for evaluation of the
safety functions used in an application
http://support.automation.siemens.com/WW/view/en/47393794
"Kinematics Simulation Center" - Connecting the Simulation
Software to a Technology CPU Interface
http://support.automation.siemens.com/WW/view/en/58260820
\25\ Technology Technology Template "Error Messages"
templates for the http://support.automation.siemens.com/WW/view/en/21402122
technology CPU Technology Template "Hydraulics Characteristic":
(a selection) http://support.automation.siemens.com/WW/view/en/27731588
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
Technology Template "CrossCutter"
http://support.automation.siemens.com/WW/view/en/31073433
Technology Template „MotionList Basic“
http://support.automation.siemens.com/WW/view/en/59259273
\26\ 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
How can a simple palletizer be realized with a technology
CPU and the FB 488 "MC_MovePath"?
http://support.automation.siemens.com/WW/view/en/48206063
Which safety functions can you use with the interpolation on
the fail-safe Technology CPU?
http://support.automation.siemens.com/WW/view/en/48205978

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 28
8 History

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

"Drive Error Messages" Technology Template


Entry-ID: 66604179, V4.2.2, 07/2014 29

You might also like