Sunteți pe pagina 1din 81

Description of the library 10/2016

LDrvSafe
Fail-safe SIMATIC library to control the Safety Integrated functions of
the SINAMICS drive family

Totally Integrated Automation Portal STEP 7 Safety

https://support.industry.siemens.com/cs/ww/de/view/109485794
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,
body or health, guarantee for the quality of a product, fraudulent concealment of a
Siemens AG 2016 All rights reserved

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 the Siemens AG.
Security Siemens provides products and solutions with industrial security functions that
informa- support the secure operation of plants, systems, machines and networks.
tion In order to protect plants, systems, machines and networks against cyber
threats, it is necessary to implement and continuously maintain a holistic,
state-of-the-art industrial security concept. Siemens products and solutions only
form one element of such a concept.
Customer is responsible to prevent unauthorized access to its plants, systems,
machines and networks. Systems, machines and components should only be
connected to the enterprise network or the internet if and to the extent necessary
and with appropriate security measures (e.g. use of firewalls and network
segmentation) in place.
Additionally, Siemens guidance on appropriate security measures should be
taken into account. For more information about industrial security, please visit
http://www.siemens.com/industrialsecurity.
Siemens products and solutions undergo continuous development to make them
more secure. Siemens strongly recommends to apply product updates as soon
as available and to always use the latest product versions. Use of product
versions that are no longer supported, and failure to apply latest updates may
increase customers exposure to cyber threats.
To stay informed about product updates, subscribe to the Siemens Industrial
Security RSS Feed under http://www.siemens.com/industrialsecurity.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 2
Warranty and liability

List of contents
LDrvSafe ....................................................................................................................... 1
Warranty and liability ................................................................................................... 2
1 Overview of the library ...................................................................................... 4
1.1 Various application scenarios .............................................................. 5
1.2 Hardware and software requirements .................................................. 7
1.3 Library resources .................................................................................. 8
2 Certificate ........................................................................................................... 9
3 Library blocks .................................................................................................. 10
3.1 List of blocks ....................................................................................... 10
3.1.1 Availability of the blocks ..................................................................... 10
3.1.2 Signatures of the individual blocks ..................................................... 11
3.2 Description of the blocks .................................................................... 11
3.2.1 Principle of the blocks to control and evaluate PROFIsafe
telegrams ............................................................................................ 11
3.2.2 LDrvSafe_CtrlT30SinaG..................................................................... 16
3.2.3 LDrvSafe_CtrlT30SinaS ..................................................................... 18
3.2.4 LDrvSafe_CtrlT31SinaS ..................................................................... 20
3.2.5 LDrvSafe_CtrlT900SinaG................................................................... 23
3.2.6 LDrvSafe_CtrlT901SinaS ................................................................... 25
3.2.7 LDrvSafe_CtrlT902SinaS ................................................................... 28
Siemens AG 2016 All rights reserved

3.2.8 LDrvSafe_StatusT30SinaG ................................................................ 31


3.2.9 LDrvSafe_StatusT30SinaS ................................................................ 33
3.2.10 LDrvSafe_StatusT31SinaS ................................................................ 36
3.2.11 LDrvSafe_StatusT900SinaG .............................................................. 39
3.2.12 LDrvSafe_StatusT901SinaS .............................................................. 41
3.2.13 LDrvSafe_StatusT902SinaS .............................................................. 45
3.2.14 LDrvSafe_Smooth .............................................................................. 48
3.2.15 LDrvSafe_WinderRadius .................................................................... 50
4 Acceptance and function test ........................................................................ 67
4.1 Information for checking the Safety functionality of the machine ....... 67
4.2 Examples for checking the Safety functionality of the F blocks ......... 67
4.2.1 PROFIsafe control words ................................................................... 68
4.2.2 PROFIsafe status words .................................................................... 70
4.2.3 Winder ................................................................................................ 72
5 Working with the library .................................................................................. 73
5.1 Integrating the library blocks into TIA Portal ...................................... 73
5.2 Loading the blocks into the S7 CPU .................................................. 76
5.3 Online help ......................................................................................... 77
5.3.1 Open out of library directory ............................................................... 77
5.3.2 Open out of project directory .............................................................. 78
6 Notes and support ........................................................................................... 79
6.1 Version of library LDrvSafe ................................................................ 79
7 References ....................................................................................................... 81
8 Contact person ................................................................................................ 81
9 History............................................................................................................... 81

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 3
1Overview of the library
1.1 Various application scenarios

1 Overview of the library


This document describes the LDrvSafe block library. This block library provides you
with tested blocks (tested code) with clearly defined interfaces. You can use these
blocks as basis to implement your particular application.
The core objectives of this document include the description of
all of the blocks belonging to the block library
the functionality implemented using these blocks

Further, this documentation shows you potential applications - and helps you to
integrate the library into your TIA project using step-by-step instructions.

Area of validity of the library


The following hardware and software is required to use the LDrvSafe library:
Software
TIA Portal from V13 SP1
Safety Advanced from V13 SP1
Siemens AG 2016 All rights reserved

Hardware
Only certified, Safety-related CPUs of the SIMATIC S7 family that can be
programmed using Safety Advanced may be used. The program scope and cycle
time are the criteria when selecting the CPUs.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 4
1Overview of the library
1.1 Various application scenarios

1.1 Various application scenarios


Potential applications for the LDrvSafe library
Fig. 1-1 Interaction between S7 and SINAMICS via PROFIsafe
Siemens AG 2016 All rights reserved

The library includes fail-safe S7 blocks to implement various applications in


conjunction with an S7-300F/1200F/1500F and SINAMICS drives coupled via
PROFIsafe.

Note The integrated Safety Functions of SINAMICS are certified according to SIL2 in
accordance with IEC 61508 or IEC 61800-5-2, as well as PLd and Category 3
according to ISO 13849-1.
PROFIsafe communication, as well as the fail-safe PLC are certified according to
SIL3 in accordance with IEC 61508 or EN 62061, as well as PLe and Category 4
according to ISO 13849-1.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 5
1Overview of the library
1.1 Various application scenarios

Several scenarios for potentially using the LDrvSafe library are subsequently
shown:

Scenario 1
Fig. 1-2 Scenario example, controlling Safety Functions via PROFIsafe

The Safety Functions of the SINAMICS should be controlled via PROFIsafe. For
Siemens AG 2016 All rights reserved

this purpose, the library provides fail-safe blocks, depending on the PROFIsafe
telegram used (30, 31, 900, 901, 902) to simply control these Safety Functions.

Scenario 2
Fig. 1-3 Example of safe diameter detection

The web velocity of the material being wound is to be monitored in a Safety-related


fashion. To achieve this, the Safety-related speed limit of the winder is tracked as a
function of the roll radius.
To do this, the distance to the roll is read in via 2 standard distance sensors using
2 standard S7 analog input modules.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 6
1Overview of the library
1.2 Hardware and software requirements

The "LDrvSafe_WinderRadius" block, provided in this library, calculates the actual


radius and the SLS limit speed from the data that the user has entered. The SLS
limit is then transferred to the SINAMICS S120 via PROFIsafe telegram 902.

Note This function is only available for SINAMICS S120 - and integrated drives
belonging to a SIMOTION D4xx.
SINAMICS firmware version 4.5 or higher is required.

1.2 Hardware and software requirements


Preconditions when using this library
To be able to use the functionality of the library described here, the following
hardware and software preconditions must be fulfilled:

Hardware
Table 1-1 Used hardware
No. Component Article number Number Alternative
1. CPU 1516F-3 PN/DP 6ES7516-3FN00-0AB0 1
2. SIMATIC Micro 6ES7954-8LE02-0AA0 1 Memory card with a different
Memory Card 12MB memory size
Siemens AG 2016 All rights reserved

Note Alternatively, similar components can also be used for the components listed in
Table 1-1.

Software
Table 1-2 Used software
No. Component Article number Number
3. TIA Portal V13 SP1 6ES7822-0AA03-0YA5 1
4. STEP 7 Safety Advanced V13 SP1 6ES7833-1FA13-0YA5 1

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 7
1Overview of the library
1.3 Library resources

1.3 Library resources


An overview of the assignment of the working memory used by the LDrvSafe
library blocks is subsequently given.

Overall assignment
All of the blocks belonging to the LDrvSafe library occupy a total of 4881 bytes with
S7-1200F/1500F and 3038 bytes with S7-300F/400F in the working memory.

Individual block data assignment


Table 1-3 Working memory assignment
Baustein Symbol Working memory (RAM) assignment
S7-300F / S7-400F S7-1200F / S7-1500F
FB800 LDrvSafe_CtrlT30SinaG 146 Bytes
FB801 LDrvSafe_CtrlT30SinaS 170 Bytes
FB802 LDrvSafe_CtrlT31SinaS 218 Bytes
FB803 LDrvSafe_CtrlT900SinaG 146 Bytes
FB804 LDrvSafe_CtrlT901SinaS 231 Bytes
FB805 LDrvSafe_CtrlT902SinaS 231 Bytes
FB810 LDrvSafe_Smooth 528 Bytes 435 Bytes
Siemens AG 2016 All rights reserved

FB811 LDrvSafe_WinderRadius 2510 Bytes 1954 Bytes


FB820 LDrvSafe_StatusT30SinaG 154 Bytes
FB821 LDrvSafe_StatusT30SinaS 186 Bytes
FB822 LDrvSafe_StatusT31SinaS 258 Bytes
FB823 LDrvSafe_StatusT900SinaG 178 Bytes
FB824 LDrvSafe_StatusT901SinaS 287 Bytes
FB825 LDrvSafe_StatusT902SinaS 287 Bytes

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 8
2Certificate
1.3 Library resources

2 Certificate
Fig 2-1 Certificate
Siemens AG 2016 All rights reserved

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 9
3Library blocks
3.1 List of blocks

3 Library blocks
3.1 List of blocks
All of the blocks belonging to the LDrvSafe library are listed in the following table.
Table 3-1 List of blocks
Block Symbol Classification
FB800 LDrvSafe_CtrlT30SinaG In-house development
FB801 LDrvSafe_CtrlT30SinaS In-house development
FB802 LDrvSafe_CtrlT31SinaS In-house development
FB803 LDrvSafe_CtrlT900SinaG In-house development
FB804 LDrvSafe_CtrlT901SinaS In-house development
FB805 LDrvSafe_CtrlT902SinaS In-house development
FB810 LDrvSafe_Smooth In-house development
FB811 LDrvSafe_WinderRadius In-house development
FB820 LDrvSafe_StatusT30SinaG In-house development
FB821 LDrvSafe_StatusT30SinaS In-house development
FB822 LDrvSafe_StatusT31SinaS In-house development
FB823 LDrvSafe_StatusT900SinaG In-house development
Siemens AG 2016 All rights reserved

FB824 LDrvSafe_StatusT901SinaS In-house development


FB825 LDrvSafe_StatusT902SinaS In-house development

3.1.1 Availability of the blocks

These library blocks are available for the fail-safe controllers S7-300F, S7-400F,
S7-1200F and S7-1500F, which can be programmed using the STEP 7 Safety
Advanced software.
Table 3-2 Availability of blocks
Block Symbol S7-300F / S7-400F S7-1200F / S7-1500F
FB800 LDrvSafe_CtrlT30SinaG
FB801 LDrvSafe_CtrlT30SinaS
FB802 LDrvSafe_CtrlT31SinaS
FB803 LDrvSafe_CtrlT900SinaG
FB804 LDrvSafe_CtrlT901SinaS
FB805 LDrvSafe_CtrlT902SinaS
FB810 LDrvSafe_Smooth
FB811 LDrvSafe_WinderRadius
FB820 LDrvSafe_StatusT30SinaG
FB821 LDrvSafe_StatusT30SinaS
FB822 LDrvSafe_StatusT31SinaS
FB823 LDrvSafe_StatusT900SinaG
FB824 LDrvSafe_StatusT901SinaS
FB825 LDrvSafe_StatusT902SinaS
Available
Not available

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 10
3Library blocks
3.2 Description of the blocks

3.1.2 Signatures of the individual blocks

The checksums of the individual blocks of this library are listed in the following
table.
Table 3-3 Signatures
Block Symbol S7-300F / S7-400F S7-1200F / S7-1500F
Signature Start value Signature
signature
FB800 LDrvSafe_CtrlT30SinaG E4056166
FB801 LDrvSafe_CtrlT30SinaS 9726F711
FB802 LDrvSafe_CtrlT31SinaS B1065F27
FB803 LDrvSafe_CtrlT900SinaG EDF131E6
FB804 LDrvSafe_CtrlT901SinaS C598BF9F
FB805 LDrvSafe_CtrlT902SinaS DEF7E2F7
FB810 LDrvSafe_Smooth D1CD 3002 85F655E2
FB811 LDrvSafe_WinderRadius 5F52 38C0 C8D09709
FB820 LDrvSafe_StatusT30SinaG 3510072D
FB821 LDrvSafe_StatusT30SinaS 858E5317
FB822 LDrvSafe_StatusT31SinaS 680E615B
Siemens AG 2016 All rights reserved

FB823 LDrvSafe_StatusT900SinaG A0E5FFD0


FB824 LDrvSafe_StatusT901SinaS 1A66BE75
FB825 LDrvSafe_StatusT902SinaS 1DFDC432

3.2 Description of the blocks


All of the blocks belonging to the LDrvSafe library are subsequently described.

3.2.1 Principle of the blocks to control and evaluate PROFIsafe telegrams

This chapter is applicable for the following function blocks:


LDrvSafe_CtrlT30SinaG
LDrvSafe_CtrlT30SinaS
LDrvSafe_CtrlT31SinaS
LDrvSafe_CtrlT900SinaG
LDrvSafe_CtrlT901SinaS
LDrvSafe_CtrlT902SinaS
LDrvSafe_StatusT30SinaG
LDrvSafe_StatusT30SinaS
LDrvSafe_StatusT31SinaS
LDrvSafe_StatusT900SinaG
LDrvSafe_StatusT901SinaS
LDrvSafe_StatusT902SinaS

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 11
3Library blocks
3.2 Description of the blocks

Note These blocks are available from TIA V14 (with Safety Advanced V14).

These function blocks are used to simply control and evaluate the Safety
Integrated Functions of the SINAMICS via PROFIsafe.

3.2.1.1 Preconditions

On the SIMATIC side:


The precondition for using these blocks is the integration of the user-defined data
type provided into the existing TIA project. The data types are provided in this
library, and form the control and status words of the individual PROFIsafe
telegrams of the SINAMICS.
On the SINAMICS side:
The Safety Integrated Functions of the SINAMICS have been commissioned, and a
PROFIsafe communication link has been established.

3.2.1.2 PROFIsafe control words

The Safety Integrated Functions of SINAMICS are represented at the input of the
blocks. At the block input, the user interconnects his Safety-related signals or
sensors (e.g. Emergency Stop, protective door, ...) with the Safety Integrated
Functions.
Siemens AG 2016 All rights reserved

Input "InternalEventAck" is available to acknowledge Safety messages of the


SINAMICS in a Safety-relevant way. These messages are acknowledged using a
positive signal edge.
Example:
Fig. 3-1: Interconnecting Emergency Stop command device and acknowledgment signal

The user must interconnect the block output (in this case, "ProfisafeCtrlT30SinaG")
with a variable with the data type of the selected PROFIsafe telegram.
This variable must initially be created in the variable table. The start address 1
must be the same as the start address 2 of the PROFIsafe telegram in the
HWCN (hardware configuration).

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 12
3Library blocks
3.2 Description of the blocks

Fig. 3-2: Creating a variable with the data type of the selected PROFIsafe telegram (in this
case, "LDrvSafe_typeCtrlT30SinaG")

Fig. 3-3: Excerpt of the PROFIsafe configuration from HWCN

The data type depends on the function block used.


Table 3-4 Assignment of function block and data type
Function block (symbolic name) Associated data type
LDrvSafe_CtrlT30SinaG LDrvSafe_typeCtrlT30SinaG
LDrvSafe_CtrlT30SinaS LDrvSafe_typeCtrlT30SinaS
LDrvSafe_CtrlT31SinaS LDrvSafe_typeCtrlT31SinaS
LDrvSafe_CtrlT900SinaG LDrvSafe_typeCtrlT900SinaG
LDrvSafe_CtrlT901SinaS LDrvSafe_typeCtrlT901SinaS
Siemens AG 2016 All rights reserved

LDrvSafe_CtrlT902SinaS LDrvSafe_typeCtrlT902SinaS

At the end, interconnect the variable created to the block output.


Fig. 3-4: Interconnecting the block output

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 13
3Library blocks
3.2 Description of the blocks

3.2.1.3 PROFIsafe status words

The statuses of the Safety Integrated Functions of SINAMICS are represented at


the output of the block. At the block output, the user interconnects the statuses of
the Safety Integrated Functions with his Safety-related signals or actuators
(e.g. protective door release, contactor, ...).
Example:
Fig. 3-5: Interconnecting signals to display STO and Safety faults
Siemens AG 2016 All rights reserved

The user must interconnect the block input (in this case,
"ProfisafeStatusT30SinaG") with a variable with the data type of the selected
PROFIsafe telegram.
This variable must initially be created in the variable table. The start address 1
must be the same as the start address 2 of the PROFIsafe telegram in the HWCN
(hardware configuration).

Fig. 3-6: Creating a variable with the data type of the selected PROFIsafe telegram (in this
case, "LDrvSafe_typeStatusT30SinaG")
1

Fig. 3-7: Excerpt of the PROFIsafe configuration from HWCN

The data type depends on the function block used.


Table 3-5 Assignment of function block and data type
Function block (symbolic name) Associated data type
LDrvSafe_StatusT30SinaG LDrvSafe_typeStatusT30SinaG
LDrvSafe_StatusT30SinaS LDrvSafe_typeStatusT30SinaS
LDrvSafe_StatusT31SinaS LDrvSafe_typeStatusT31SinaS
LDrvSafe_StatusT900SinaG LDrvSafe_typeStatusT900SinaG

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 14
3Library blocks
3.2 Description of the blocks

Function block (symbolic name) Associated data type


LDrvSafe_StatusT901SinaS LDrvSafe_typeStatusT901SinaS
LDrvSafe_StatusT902SinaS LDrvSafe_typeStatusT902SinaS

At the end, interconnect the variable created to the block input.


Fig. 3-8: Interconnecting the block input
Siemens AG 2016 All rights reserved

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 15
3Library blocks
3.2 Description of the blocks

3.2.2 LDrvSafe_CtrlT30SinaG

Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS G120 via PROFIsafe telegram 30.

Principle of operation
Fig. 3-9: Structure of the LDrvSafe_CtrlT30SinaG block
Siemens AG 2016 All rights reserved

At the block input, the user interconnects Safety-related signals or sensors


(e.g. Emergency Stop, protective door, ...) with the Safety Integrated Functions.
The user must interconnect output "ProfisafeCtrlT30SinaG" with a variable, data
type LDrvSafe_typeCtrlT30SinaG".
Details on how to commission the block are provided in Chapter PROFIsafe control
words.

Input parameters
Table 3-6 Input parameters of block LDrvSafe_CtrlT30SinaG
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed (SLS)
1: Deselect SLS
0: Select SLS
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a positive
signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 16
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SelectSLSbit1 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit0")
1: Select "Select SLS bit 1"
0: Deselect "Select SLS bit 1"
SDIpositive BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in the
positive direction of rotation
1: Deselect SDI positive
0: Select SDI positive
SDInegative BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in the
negative direction of rotation
1: Deselect SDI negative
0: Select SDI negative

Output parameters
Table 3-7 Output parameters of block LDrvSafe_CtrlT30SinaG
Parameter Data type Description
ProfisafeCtrlT30SinaG LDrvSafe_typeCtrlT30SinaG Assignment of the Safety Integrated Functions
at the block input to the structure of the
Siemens AG 2016 All rights reserved

PROFIsafe telegram

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 17
3Library blocks
3.2 Description of the blocks

3.2.3 LDrvSafe_CtrlT30SinaS

Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 30.

Principle of operation
Fig. 3-10 Structure of block LDrvSafe_CtrlT30SinaS
Siemens AG 2016 All rights reserved

At the block input, the user interconnects Safety-related signals or sensors


(e.g. Emergency Stop, protective door, ...) with the Safety Integrated Functions.
The user must interconnect output "ProfisafeCtrlT30SinaS" with a variable, data
type "LDrvSafe_typeCtrlT30SinaS".

Note Safety Function SLP is not supported when using a SINAMICS S110.

Details on how to commission the block are provided in Chapter PROFIsafe control
words.

Input parameters
Table 3-8 Input parameters of block LDrvSafe_CtrlT30SinaS
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SS2 BOOL Controlling the Safety Integrated Function Safe Stop 2 (SS2)
1: Deselect SS2
0: Select SS2

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 18
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SOS BOOL Controlling the Safety Integrated Function Safe Operating Stop (SOS)
1: Deselect SOS
0: Select SOS
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed (SLS)
1: Deselect SLS
0: Select SLS
SLP BOOL Controlling the Safety Integrated Function Safely Limited Position
(SLP)
1: Deselect SLP
0: Select SLP
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a positive
signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"
SelectSLSbit1 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit0")
1: Select "Select SLS bit 1"
0: Deselect "Select SLS bit 1"
Siemens AG 2016 All rights reserved

SDIpositive BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in the
positive direction of rotation
1: Deselect SDI positive
0: Select SDI positive
SDInegative BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in the
negative direction of rotation
1: Deselect SDI negative
0: Select SDI negative

Output parameters
Table 3-9 Output parameters of block LDrvSafe_CtrlT30SinaS
Parameter Data type Description
ProfisafeCtrlT30SinaS LDrvSafe_typeCtrlT30SinaS Assignment of the Safety Integrated Functions
at the block input to the structure of the
PROFIsafe telegram

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 19
3Library blocks
3.2 Description of the blocks

3.2.4 LDrvSafe_CtrlT31SinaS

Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS S120 via PROFIsafe telegram 31.

Principle of operation
Fig. 3-11 Structure of block LDrvSafe_CtrlT31SinaS
Siemens AG 2016 All rights reserved

At the block input, the user interconnects Safety-related signals or sensors


(e.g. Emergency Stop, protective door, ...) with the Safety Integrated Functions.
The user must interconnect output "ProfisafeCtrlT31SinaS" with a variable, data
type "LDrvSafe_typeCtrlT31SinaS".
Details on how to commission the block are provided in Chapter PROFIsafe control
words.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 20
3Library blocks
3.2 Description of the blocks

Input parameters
Table 3-10 Input parameters of block LDrvSafe_CtrlT31SinaS
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SS2 BOOL Controlling the Safety Integrated Function Safe Stop 2 (SS2)
1: Deselect SS2
0: Select SS2
SOS BOOL Controlling the Safety Integrated Function Safe Operating Stop
(SOS)
1: Deselect SOS
0: Select SOS
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed
(SLS)
1: Deselect SLS
0: Select SLS
Siemens AG 2016 All rights reserved

SLP BOOL Controlling the Safety Integrated Function Safely Limited Position
(SLP)
1: Deselect SLP
0: Select SLP
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a
positive signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"
SelectSLSbit1 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit0")
1: Select "Select SLS bit 1"
0: Deselect "Select SLS bit 1"
SDIpositive BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the positive direction of rotation
1: Deselect SDI positive
0: Select SDI positive
SDInegative BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the negative direction of rotation
1: Deselect SDI negative
0: Select SDI negative
SelectSLPposition BOOL Switchover between the two SLP traversing ranges
Range 1: SLP traversing range 2
0: SLP traversing range 1
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit0 conjunction with signals "SelectGearboxStage
Bit1" and "SelectGearboxStageBit2")
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit1 conjunction with signals "SelectGearboxStage
Bit0" and "SelectGearboxStageBit2")

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 21
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit2 conjunction with signals "SelectGearboxStageBit0" and
"SelectGearboxStageBit1")
GearboxStage BOOL Higher position tolerance when switching over the gearbox stage
Switchover 1: Increased position tolerance when switching over the gearbox
stage:
p9542 * p9543 (without actual value synchronization p9501.3 = 0);
p9549 * p9543 (with actual value synchronization p9501.3 = 1)
0: Position tolerance when switching over the gearbox stage: p9542
SS2E BOOL Controlling the Safety Integrated Function Safe Stop 2 with external
Stop (SS2E)
1: Deselect SS2E
0: Select SS2E

Output parameters
Table 3-11 Output parameters of block LDrvSafe_CtrlT31SinaS
Parameter Data type Description
ProfisafeCtrlT31SinaS LDrvSafe_typeCtrlT31SinaS Assignment of the Safety Integrated Functions
Siemens AG 2016 All rights reserved

at the block input to the structure of the


PROFIsafe telegram

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 22
3Library blocks
3.2 Description of the blocks

3.2.5 LDrvSafe_CtrlT900SinaG

Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS G via PROFIsafe telegram 900.

Principle of operation
Fig. 3-12 Structure of block LDrvSafe_CtrlT900SinaG
Siemens AG 2016 All rights reserved

At the block input, the user interconnects Safety-related signals or sensors


(e.g. Emergency Stop, protective door, ...) with the Safety Integrated Functions.
The user must interconnect output "ProfisafeCtrlT900SinaG" with a variable, data
type "LDrvSafe_typeCtrlT900SinaG".
Details on how to commission the block are provided in Chapter PROFIsafe control
words.

Input parameters
Table 3-12 Input parameters of block LDrvSafe_CtrlT900SinaG
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed (SLS)
1: Deselect SLS
0: Select SLS
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a positive
signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 23
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SelectSLSbit1 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit0")
1: Select "Select SLS bit 1"
0: Deselect "Select SLS bit 1"
SDIpositive BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in the
positive direction of rotation
1: Deselect SDI positive
0: Select SDI positive
SDInegative BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in the
negative direction of rotation
1: Deselect SDI negative
0: Select SDI negative

Output parameters
Table 3-13 Output parameters of block LDrvSafe_CtrlT900SinaG
Parameter Data type Description
ProfisafeCtrlT900SinaG LDrvSafe_typeCtrlT900SinaG Assignment of the Safety Integrated
Functions at the block input to the structure of
Siemens AG 2016 All rights reserved

the PROFIsafe telegram

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 24
3Library blocks
3.2 Description of the blocks

3.2.6 LDrvSafe_CtrlT901SinaS

Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 901.

Principle of operation
Fig. 3-13 Structure of block LDrvSafe_CtrlT901SinaS
Siemens AG 2016 All rights reserved

At the block input, the user interconnects Safety-related signals or sensors


(e.g. Emergency Stop, protective door, ...) with the Safety Integrated Functions.
The user must interconnect output "ProfisafeCtrlT901SinaS" with a variable, data
type "LDrvSafe_typeCtrlT901SinaS".
Details on how to commission the block are provided in Chapter PROFIsafe control
words.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 25
3Library blocks
3.2 Description of the blocks

Note The value for input VariableSLS must be located between 1 and 32,767. If the
value lies outside the value range, then SINAMICS signals Safety fault C01730
and the parameterized stop response for SLS level 1 is initiated.
The block itself does not check that this value range is complied with!

Input parameters
Table 3-14 Input parameters of block LDrvSafe_CtrlT901SinaS
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SS2 BOOL Controlling the Safety Integrated Function Safe Stop 2 (SS2)
1: Deselect SS2
0: Select SS2
Siemens AG 2016 All rights reserved

SOS BOOL Controlling the Safety Integrated Function Safe Operating Stop
(SOS)
1: Deselect SOS
0: Select SOS
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed
(SLS)
1: Deselect SLS
0: Select SLS
SLP BOOL Controlling the Safety Integrated Function Safely Limited Position
(SLP)
1: Deselect SLP
0: Select SLP
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a
positive signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction
with signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"
SelectSLSbit1 BOOL Switchover between the four SLS levels (is active in conjunction
with signal "SelectSLSbit0")
1: Select "Select SLS bit 1"
0: Deselect "Select SLS bit 1"
SDIpositive BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the positive direction of rotation
1: Deselect SDI positive
0: Select SDI positive
SDInegative BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the negative direction of rotation
1: Deselect SDI negative
0: Select SDI negative

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 26
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SelectSLPposition BOOL Switchover between the two SLP traversing ranges
Range 1: SLP traversing range 2
0: SLP traversing range 1
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit0 conjunction with signals "SelectGearboxStage
Bit1" and "SelectGearboxStageBit2")
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit1 conjunction with signals "SelectGearboxStage
Bit0" and "SelectGearboxStageBit2")
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit2 conjunction with signals "SelectGearboxStageBit0" and
"SelectGearboxStageBit1")
GearboxStage BOOL Higher position tolerance when switching over the gearbox stage
Switchover 1: Increased position tolerance when switching over the gearbox
stage:
p9542 * p9543 (without actual value synchronization p9501.3 = 0);
p9549 * p9543 (with actual value synchronization p9501.3 = 1)
0: Position tolerance when switching over the gearbox stage: p9542
SS2E BOOL Controlling the Safety Integrated Function Safe Stop 2 with
external Stop (SS2E)
1: Deselect SS2E
Siemens AG 2016 All rights reserved

0: Select SS2E
VariableSLS INT Variable input of SLS level 1
SLS level 1 of SINAMICS is dynamically varied between 0.01 and
100%

Output parameters
Table 3-15 Output parameters of block LDrvSafe_CtrlT901SinaS
Parameter Data type Description
ProfisafeCtrlT901SinaS LDrvSafe_typeCtrlT901SinaS Assignment of the Safety Integrated
Functions at the block input to the structure of
the PROFIsafe telegram

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 27
3Library blocks
3.2 Description of the blocks

3.2.7 LDrvSafe_CtrlT902SinaS

Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 902.

Principle of operation
Fig. 3-14 Structure of block LDrvSafe_CtrlT902SinaS
Siemens AG 2016 All rights reserved

At the block input, the user interconnects Safety-related signals or sensors


(e.g. Emergency Stop, protective door, ...) with the Safety Integrated Functions.
The user must interconnect output ProfisafeCtrlT902SinaS" with a variable, data
type LDrvSafe_typeCtrlT902SinaS".
Details on how to commission the block are provided in Chapter PROFIsafe control
words.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 28
3Library blocks
3.2 Description of the blocks

Note The value for input VariableSLS must be located between 1 and 32,767. If the
value lies outside the value range, then SINAMICS signals Safety fault C01730
and the parameterized stop response for SLS level 1 is initiated.
The block itself does not check that this value range is complied with!

Input parameters
Table 3-16 Input parameters of block LDrvSafe_CtrlT902SinaS
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SS2 BOOL Controlling the Safety Integrated Function Safe Stop 2 (SS2)
1: Deselect SS2
0: Select SS2
Siemens AG 2016 All rights reserved

SOS BOOL Controlling the Safety Integrated Function Safe Operating Stop
(SOS)
1: Deselect SOS
0: Select SOS
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed
(SLS)
1: Deselect SLS
0: Select SLS
SLP BOOL Controlling the Safety Integrated Function Safely Limited Position
(SLP)
1: Deselect SLP
0: Select SLP
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a
positive signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction
with signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"
SelectSLSbit1 BOOL Switchover between the four SLS levels (is active in conjunction
with signal "SelectSLSbit0")
1: Select "Select SLS bit 1"
0: Deselect "Select SLS bit 1"
SDIpositive BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the positive direction of rotation
1: Deselect SDI positive
0: Select SDI positive
SDInegative BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the negative direction of rotation
1: Deselect SDI negative
0: Select SDI negative

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 29
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SelectSLPposition BOOL Switchover between the two SLP traversing ranges
Range 1: SLP traversing range 2
0: SLP traversing range 1
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit0 conjunction with signals "SelectGearboxStage
Bit1" and "SelectGearboxStageBit2")
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit1 conjunction with signals "SelectGearboxStage
Bit0" and "SelectGearboxStageBit2")
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit2 conjunction with signals "SelectGearboxStageBit0" and
"SelectGearboxStageBit1")
GearboxStage BOOL Higher position tolerance when switching over the gearbox stage
Switchover 1: Increased position tolerance when switching over the gearbox
stage:
p9542 * p9543 (without actual value synchronization p9501.3 = 0);
p9549 * p9543 (with actual value synchronization p9501.3 = 1)
0: Position tolerance when switching over the gearbox stage: p9542
SS2E BOOL Controlling the Safety Integrated Function Safe Stop 2 with
external Stop (SS2E)
1: Deselect SS2E
Siemens AG 2016 All rights reserved

0: Select SS2E
VariableSLS INT Variable input of SLS level 1
SLS level 1 of SINAMICS is dynamically varied between 0.01 and
100%

Output parameters
Table 3-17 Output parameters of block LDrvSafe_CtrlT902SinaS
Parameter Data type Description
ProfisafeCtrlT902SinaS LDrvSafe_typeCtrlT902SinaS Assignment of the Safety Integrated
Functions at the block input to the structure
of the PROFIsafe telegram

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 30
3Library blocks
3.2 Description of the blocks

3.2.8 LDrvSafe_StatusT30SinaG

Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS G via PROFIsafe telegram 30.

Principle of operation
Fig. 3-15 Structure of block LDrvSafe_StatusT30SinaG
Siemens AG 2016 All rights reserved

The statuses of the Safety Integrated Functions of SINAMICS G are represented at


the output of the block.
The user must interconnect input "ProfisafeStatusT30SinaG" with a variable, data
type "LDrvSafe_typeStatusT30SinaG".
Details on how to commission the block are provided in Chapter PROFIsafe status
words.

Input parameters
Table 3-18 Input parameters of block LDrvSafe_StatusT30SinaG
Parameter Data type Description
ProfisafeStatusT30SinaG LDrvSafe_typeStatusT30SinaG Assignment of the structure of the
PROFIsafe telegram at the block input to
the statuses of the Safety Integrated
Functions

Output parameters
Table 3-19 Output parameters of block LDrvSafe_StatusT30SinaG
Parameter Data Description
type
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 31
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SLSactive BOOL Status of Safety Integrated Function Safely Limited Speed (SLS)
1: SLS active
0: SLS inactive
InternalEvent BOOL Display of Safety faults in the drive:
1: Safety fault in the drive
0: Fault-free operation
SelectSLSbit0active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit1active")
1: Select SLS bit 0 active
0: Select SLS bit 0 inactive
SelectSLSbit1active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit0active")
1: Select SLS bit 1 active
0: Select SLS bit 1 inactive
SDIpositiveActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
positive direction of rotation
1: SDI positive active
0: SDI positive inactive
SDInegativeActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
negative direction of rotation
Siemens AG 2016 All rights reserved

1: SDI negative active


0: SDI negative inactive
SSM BOOL Status of Safety Integrated Function Safe Speed Monitor (SSM)
1: SSM active
0: SSM inactive

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 32
3Library blocks
3.2 Description of the blocks

3.2.9 LDrvSafe_StatusT30SinaS

Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 30.

Principle of operation
Fig. 3-16 Structure of block LDrvSafe_StatusT30SinaS
Siemens AG 2016 All rights reserved

The statuses of the Safety Integrated Functions of SINAMICS S are represented at


the output of the block.
The user must interconnect input "ProfisafeStatusT30SinaS" with a variable, data
type "LDrvSafe_typeStatusT30SinaS".
Details on how to commission the block are provided in Chapter PROFIsafe status
words.

Note Safety Function SLP is not supported when using a SINAMICS S110.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 33
3Library blocks
3.2 Description of the blocks

Input parameters
Table 3-20 Input parameters of block LDrvSafe_StatusT30SinaS
Parameter Data type Description
ProfisafeStatusT30SinaS LDrvSafe_typeStatusT30SinaS Assignment of the structure of the
PROFIsafe telegram at the block input to
the statuses of the Safety Integrated
Functions

Output parameters
Table 3-21 Output parameters of block LDrvSafe_StatusT30SinaS
Parameter Data Description
type
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
SS2active BOOL Status of Safety Integrated Function Safe Stop 2 (SS2)
Siemens AG 2016 All rights reserved

1: SS2 active
0: SS2 inactive
SOSactive BOOL Status of Safety Integrated Function Safe Operating Stop (SOS)
1: SOS active
0: SOS inactive
SLSactive BOOL Status of Safety Integrated Function Safely Limited Speed (SLS)
1: SLS active
0: SLS inactive
SLPactive BOOL Status of Safety Integrated Function Safely Limited Position (SLP)
1: SLP active
0: SLP inactive
InternalEvent BOOL Display of Safety faults in the drive:
1: Safety fault in the drive
0: Fault-free operation
SelectSLSbit0active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit1active")
1: Select SLS bit 0 active
0: Select SLS bit 0 inactive
SelectSLSbit1active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit0active")
1: Select SLS bit 1 active
0: Select SLS bit 1 inactive
SOSselected BOOL Status of Safety Integrated Function Safe Operating Stop (SOS)
1: SOS selected (still not active)
0: SOS deselected
SDIpositiveActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
positive direction of rotation
1: SDI positive active
0: SDI positive inactive

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 34
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SDInegativeActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
negative direction of rotation
1: SDI negative active
0: SDI negative inactive
SSM BOOL Status of Safety Integrated Function Safe Speed Monitor (SSM)
1: SSM active
0: SSM inactive
Siemens AG 2016 All rights reserved

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 35
3Library blocks
3.2 Description of the blocks

3.2.10 LDrvSafe_StatusT31SinaS

Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 31.

Principle of operation
Fig. 3-17 Structure of block LDrvSafe_StatusT31SinaS
Siemens AG 2016 All rights reserved

The statuses of the Safety Integrated Functions of SINAMICS S120 are


represented at the output of the block.
The user must interconnect input "ProfisafeStatusT31SinaS" with a variable, data
type "LDrvSafe_typeStatusT31SinaS".
Details on how to commission the block are provided in Chapter PROFIsafe status
words.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 36
3Library blocks
3.2 Description of the blocks

Input parameters
Table 3-22 Input parameters of block LDrvSafe_StatusT31SinaS
Parameter Data type Description
ProfisafeStatusT31SinaS LDrvSafe_typeStatusT31SinaS Assignment of the structure of the
PROFIsafe telegram at the block input to
the statuses of the Safety Integrated
Functions

Output parameters
Table 3-23 Output parameters of block LDrvSafe_StatusT31SinaS
Parameter Data Description
type
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
SS2active BOOL Status of Safety Integrated Function Safe Stop 2 (SS2)
Siemens AG 2016 All rights reserved

1: SS2 active
0: SS2 inactive
SOSactive BOOL Status of Safety Integrated Function Safe Operating Stop
(SOS)
1: SOS active
0: SOS inactive
SLSactive BOOL Status of Safety Integrated Function Safely Limited Speed
(SLS)
1: SLS active
0: SLS inactive
SLPactive BOOL Status of Safety Integrated Function Safely Limited Position
(SLP)
1: SLP active
0: SLP inactive
InternalEvent BOOL Display of Safety faults in the drive:
1: Safety fault in the drive
0: Fault-free operation
SelectSLSbit0active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit1active")
1: Select SLS bit 0 active
0: Select SLS bit 0 inactive
SelectSLSbit1active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit0active")
1: Select SLS bit 1 active
0: Select SLS bit 1 inactive
SDIpositiveActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in
the positive direction of rotation
1: SDI positive active
0: SDI positive inactive

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 37
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SDInegativeActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in
the negative direction of rotation
1: SDI negative active
0: SDI negative inactive
SSM BOOL Status of Safety Integrated Function Safe Speed Monitor
(SSM)
1: SSM active
0: SSM inactive
SLPpositionRangeActive BOOL Display of the active SLP traversing range
1: SLP traversing range 2 active
0: SLP traversing range 1 active
SafePositionValid BOOL Status of Safety Integrated Functions Safe Position (SP) and
Safely Limited Position (SLP)
1: SP valid
0: SP invalid
SafelyReferenced BOOL Status of Safety Integrated Functions Safe Position (SP) and
Safely Limited Position (SLP) to evaluate safe absolute
positions
1: Safely referenced/homed
0: Not safely referenced/homed
Siemens AG 2016 All rights reserved

FDI0 BOOL Status of fail-safe digital input F-DI0 (only for CU310-2):
1: F-DI0 inactive
0: F-DI0 active
FDI1 BOOL Status of fail-safe digital input F-DI1 (only for CU310-2):
1: F-DI1 inactive
0: F-DI1 active
FDI2 BOOL Status of fail-safe digital input F-DI2 (only for CU310-2):
1: F-DI2 inactive
0: F-DI2 active
SS2Eactive BOOL Status of Safety Integrated Function Safe Stop 2 with
external stop (SS2E)
1: SS2E active
0: SS2E inactive
SOSselected BOOL Status of Safety Integrated Function Safe Operating Stop
(SOS)
1: SOS selected (still not active)
0: SOS deselected
SLPupperLimitMaintained BOOL Display of the upper SLP limit:
1: Lower limit maintained
0: Lower limit not maintained
SLPlowerLimitMaintained BOOL Display of the lower SLP limit:
1: Upper limit maintained
0: Upper limit not maintained

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 38
3Library blocks
3.2 Description of the blocks

3.2.11 LDrvSafe_StatusT900SinaG

Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS G via PROFIsafe telegram 900.

Principle of operation
Fig. 3-18 Structure of block LDrvSafe_StatusT900SinaG
Siemens AG 2016 All rights reserved

The statuses of the Safety Integrated Functions of SINAMICS G are represented at


the output of the block.
The user must interconnect input "ProfisafeStatusT900SinaG" with a variable, data
type "LDrvSafe_typeStatusT900SinaG".
Details on how to commission the block are provided in Chapter PROFIsafe status
words.

Input parameters
Table 3-24 Input parameters of block LDrvSafe_StatusT900SinaG
Parameter Data type Description
ProfisafeStatusT900SinaG LDrvSafe_typeStatusT900SinaG Assignment of the structure of the
PROFIsafe telegram at the block input
to the statuses of the Safety Integrated
Functions

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 39
3Library blocks
3.2 Description of the blocks

Output parameters
Table 3-25 Output parameters of block LDrvSafe_StatusT900SinaG
Parameter Data type Description
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
SLSactive BOOL Status of Safety Integrated Function Safely Limited Speed (SLS)
1: SLS active
0: SLS inactive
InternalEvent BOOL Display of Safety faults in the drive:
1: Safety fault in the drive
0: Fault-free operation
SelectSLSbit0active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit1active")
1: Select SLS bit 0 active
0: Select SLS bit 0 inactive
SelectSLSbit1active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit0active")
Siemens AG 2016 All rights reserved

1: Select SLS bit 1 active


0: Select SLS bit 1 inactive
SDIpositiveActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
positive direction of rotation
1: SDI positive active
0: SDI positive inactive
SDInegativeActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
negative direction of rotation
1: SDI negative active
0: SDI negative inactive
SSM BOOL Status of Safety Integrated Function Safe Speed Monitor (SSM)
1: SSM active
0: SSM inactive
FDI0 BOOL Status of fail-safe digital input F-DI0:
1: F-DI0 inactive
0: F-DI0 active
FDI1 BOOL Status of fail-safe digital input F-DI1:
1: F-DI1 inactive
0: F-DI1 active
FDI2 BOOL Status of fail-safe digital input F-DI2:
1: F-DI2 inactive
0: F-DI2 active

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 40
3Library blocks
3.2 Description of the blocks

3.2.12 LDrvSafe_StatusT901SinaS

Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 901.

Principle of operation
Fig. 3-19 Structure of block LDrvSafe_StatusT901SinaS
Siemens AG 2016 All rights reserved

The statuses of the Safety Integrated Functions of SINAMICS S120 are


represented at the output of the block.
The user must interconnect input "ProfisafeStatusT901SinaS" with a variable, data
type "LDrvSafe_typeStatusT901SinaS".
Details on how to commission the block are provided in Chapter PROFIsafe status
words.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 41
3Library blocks
3.2 Description of the blocks

Input parameters
Table 3-26 Input parameters of block LDrvSafe_StatusT901SinaS
Parameter Data type Description
ProfisafeStatusT901SinaS LDrvSafe_typeStatusT901SinaS Assignment of the structure of the
PROFIsafe telegram at the block input to
the statuses of the Safety Integrated
Functions

Output parameters
Table 3-27 Output parameters of block LDrvSafe_StatusT901SinaS
Parameter Data Description
type
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
Siemens AG 2016 All rights reserved

SS2active BOOL Status of Safety Integrated Function Safe Stop 2 (SS2)


1: SS2 active
0: SS2 inactive
SOSactive BOOL Status of Safety Integrated Function Safe Operating Stop
(SOS)
1: SOS active
0: SOS inactive
SLSactive BOOL Status of Safety Integrated Function Safely Limited Speed
(SLS)
1: SLS active
0: SLS inactive
SLPactive BOOL Status of Safety Integrated Function Safely Limited Position
(SLP)
1: SLP active
0: SLP inactive
InternalEvent BOOL Display of Safety faults in the drive:
1: Safety fault in the drive
0: Fault-free operation
SelectSLSbit0active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit1active")
1: Select SLS bit 0 active
0: Select SLS bit 0 inactive
SelectSLSbit1active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit0active")
1: Select SLS bit 1 active
0: Select SLS bit 1 inactive

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 42
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SDIpositiveActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
positive direction of rotation
1: SDI positive active
0: SDI positive inactive
SDInegativeActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
negative direction of rotation
1: SDI negative active
0: SDI negative inactive
SSM BOOL Status of Safety Integrated Function Safe Speed Monitor
(SSM)
1: SSM active
0: SSM inactive
SLPpositionRangeActive BOOL Display of the active SLP traversing range
1: SLP traversing range 2 active
0: SLP traversing range 1 active
SafePositionValid BOOL Status of Safety Integrated Functions Safe Position (SP) and
Safely Limited Position (SLP)
1: SP valid
0: SP invalid
SafelyReferenced BOOL Status of Safety Integrated Functions Safe Position (SP) and
Siemens AG 2016 All rights reserved

Safely Limited Position (SLP) to evaluate safe absolute


positions
1: Safely referenced/homed
0: Not safely referenced/homed
FDI0 BOOL Status of fail-safe digital input F-DI0 (only for CU310-2):
1: F-DI0 inactive
0: F-DI0 active
FDI1 BOOL Status of fail-safe digital input F-DI1 (only for CU310-2):
1: F-DI1 inactive
0: F-DI1 active
FDI2 BOOL Status of fail-safe digital input F-DI2 (only for CU310-2):
1: F-DI2 inactive
0: F-DI2 active
SS2Eactive BOOL Status of Safety Integrated Function Safe Stop 2 with external
stop (SS2E)
1: SS2E active
0: SS2E inactive
SOSselected BOOL Status of Safety Integrated Function Safe Operating Stop
(SOS)
1: SOS selected (still not active)
0: SOS deselected
SLPupperLimitMaintained BOOL Display of the upper SLP limit:
1: Lower limit maintained
0: Lower limit not maintained
SLPlowerLimitMaintained BOOL Display of the lower SLP limit:
1: Upper limit maintained
0: Upper limit not maintained
VariableSLSvalue INT Display of the active SLS limit value of the 1st SLS level:
Value range: 1 32767 (100%)
CycleCounter INT Numerator of the Safety clock cycle
Value range: -32768 32767

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 43
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SafePosition INT Display of the actual position value as 16-bit value
Value range: 32767
Siemens AG 2016 All rights reserved

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 44
3Library blocks
3.2 Description of the blocks

3.2.13 LDrvSafe_StatusT902SinaS

Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 902.

Principle of operation
Fig. 3-20 Structure of block LDrvSafe_StatusT902SinaS
Siemens AG 2016 All rights reserved

The statuses of the Safety Integrated Functions of SINAMICS S120 are


represented at the output of the block.
The user must interconnect input "ProfisafeStatusT902SinaS" with a variable, data
type "LDrvSafe_typeStatusT902SinaS".

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 45
3Library blocks
3.2 Description of the blocks

Details on how to commission the block are provided in Chapter PROFIsafe status
words.

Input parameters
Table 3-28 Input parameters of block LDrvSafe_StatusT902SinaS
Parameter Data type Description
ProfisafeStatusT902SinaS LDrvSafe_typeStatusT902SinaS Assignment of the structure of the
PROFIsafe telegram at the block input to
the statuses of the Safety Integrated
Functions

Output parameters
Table 3-29Output parameters of block LDrvSafe_StatusT902SinaS
Parameter Data Description
type
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
Siemens AG 2016 All rights reserved

SS2active BOOL Status of Safety Integrated Function Safe Stop 2 (SS2)


1: SS2 active
0: SS2 inactive
SOSactive BOOL Status of Safety Integrated Function Safe Operating Stop
(SOS)
1: SOS active
0: SOS inactive
SLSactive BOOL Status of Safety Integrated Function Safely Limited Speed
(SLS)
1: SLS active
0: SLS inactive
SLPactive BOOL Status of Safety Integrated Function Safely Limited Position
(SLP)
1: SLP active
0: SLP inactive
InternalEvent BOOL Display of Safety faults in the drive:
1: Safety fault in the drive
0: Fault-free operation
SelectSLSbit0active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit1active")
1: Select SLS bit 0 active
0: Select SLS bit 0 inactive
SelectSLSbit1active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit0active")
1: Select SLS bit 1 active
0: Select SLS bit 1 inactive
SDIpositiveActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
positive direction of rotation
1: SDI positive active
0: SDI positive inactive

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 46
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
SDInegativeActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
negative direction of rotation
1: SDI negative active
0: SDI negative inactive
SSM BOOL Status of Safety Integrated Function Safe Speed Monitor
(SSM)
1: SSM active
0: SSM inactive
SLPpositionRangeActive BOOL Display of the active SLP traversing range
1: SLP traversing range 2 active
0: SLP traversing range 1 active
SafePositionValid BOOL Status of Safety Integrated Functions Safe Position (SP) and
Safely Limited Position (SLP)
1: SP valid
0: SP invalid
SafelyReferenced BOOL Status of Safety Integrated Functions Safe Position (SP) and
Safely Limited Position (SLP) to evaluate safe absolute
positions
1: Safely referenced/homed
0: Not safely referenced/homed
Siemens AG 2016 All rights reserved

FDI0 BOOL Status of fail-safe digital input F-DI0 (only for CU310-2):
1: F-DI0 inactive
0: F-DI0 active
FDI1 BOOL Status of fail-safe digital input F-DI1 (only for CU310-2):
1: F-DI1 inactive
0: F-DI1 active
FDI2 BOOL Status of fail-safe digital input F-DI2 (only for CU310-2):
1: F-DI2 inactive
0: F-DI2 active
SS2Eactive BOOL Status of Safety Integrated Function Safe Stop 2 with external
stop (SS2E)
1: SS2E active
0: SS2E inactive
SOSselected BOOL Status of Safety Integrated Function Safe Operating Stop
(SOS)
1: SOS selected (still not active)
0: SOS deselected
SLPupperLimitMaintained BOOL Display of the upper SLP limit:
1: Lower limit maintained
0: Lower limit not maintained
SLPlowerLimitMaintained BOOL Display of the lower SLP limit:
1: Upper limit maintained
0: Upper limit not maintained
VariableSLSvalue INT Display of the active SLS limit value of the 1st SLS level:
Value range: 1 32767 (100%)
CycleCounter INT Numerator of the Safety clock cycle
Value range: -32768 32767
SafePosition DINT Display of the actual position value as 32-bit value
Value range: 737280000

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 47
3Library blocks
3.2 Description of the blocks

3.2.14 LDrvSafe_Smooth

Description
This function block is used to smooth/calculate the average value of an analog
signal over a user-defined duration.

Principle of operation
Fig. 3-21 Structure of block LDrvSafe_Smooth

The user interconnects the signal to be smoothed with input "ActValueSensor". At


input "NumberOfCycles", the number of cycles is specified over which the analog
value should be smoothed.
Siemens AG 2016 All rights reserved

Note The Safety program must be called in a cyclic interrupt organization block (OB)!
The duration of the smoothing is as follows (as long as the cyclic interrupt OB is
not interrupted by a higher priority OB):
"NumberOfCycles" * call time of the cyclic interrupt OB

The smoothed analog value is provided at the "AvgValueSensor" output. As soon


as a new, smoothed value is displayed, bit "ValueUpdated" is set for one cycle.
As soon as an error occurs in the block, the error bit is set - and an error number is
saved at the "Status" output. Users must define the error response in the user
program.

An error is acknowledged using a positive edge at input "AckError".

Note The block uses the data type integer for internal calculations. This means that
especially for large values at input "NumberOfCycles", the calculation of the
average at output "AvgValueSensor" becomes inaccurate.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 48
3Library blocks
3.2 Description of the blocks

Input parameters
Table 3-30 Input parameters of block LDrvSafe_Smooth
Parameter Data type Description
ActValueSensor INT Analog value
Analog value that is to be smoothed
Pre-assignment: 0
NumberOfCycles INT Number of cycles
The average value of input "ActValueSensor" is calculated over this
number of cycles
Pre-assignment: 3
AckError BOOL Acknowledgment
Block errors can be acknowledged using a rising edge

Output parameters
Table 3-31 Output parameters of block LDrvSafe_Smooth
Parameter Data type Description
AvgValueSensor INT Average value of the analog signal
The smoothed analog value is provided at this output
ValueUpdated BOOL Updating the average value
Siemens AG 2016 All rights reserved

This bit is set for one cycle as soon as a new average value is
displayed.
Error BOOL Error
The error bit is set as soon as an error occurs in the block.
Bit "ValueUpdated" is reset
Users must define the error response in the user program.
Status WORD Error number
As soon as an error is active, the reason for this error is output as error
number. More detailed information is provided in the following table.

Status and error displays


Table 3-32 Status and error displays of block LDrvSafe_Smooth
Status Meaning Countermeasure /notes
7002 The block is called
Incorrect operation Adapt the value range for "NumberOfCycles":
8001 "NumberOfCycles" outside the 2 to 32,767
permissible value range
Error when executing the block Adapt the value range for "ActValueSensor":
8400 "ActValueSensor" outside the 0 to 32,767
permissible value range

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 49
3Library blocks
3.2 Description of the blocks

3.2.15 LDrvSafe_WinderRadius

Description
Winder applications involve feeding material (e.g. foil, rubber, paper) to a specific
process (e.g. printing, labeling, coating) with a constant web velocity.

Fig. 3-22 Winding application

If the material is being unwound, then as the radius of the roll decreases, the
speed setpoint of the unwinder must be increased so that the web velocity is kept
constant. The situation is the inverse when winding.
Siemens AG 2016 All rights reserved

Safety requirements of this application:


The maximum web velocity must be monitored
Setting up operation where the web velocity is safely monitored
In both of these use cases, the web velocity is monitored and compared with a
parameterizable maximum value. A parameterizable stop response is initiated if the
axis exceeds the currently valid SLS limit value.

The fail-safe function block calculates a dynamic SLS limit value as a function of
the roll radius.
This is transferred to the drive via PROFIsafe, and there, it is dynamically adapted
(as a function of the radius) as SLS level 1.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 50
3Library blocks
3.2 Description of the blocks

Design
The Safety concept involves measuring the roll radius using two redundant
distance sensors (e.g. laser, ...); the measured values are then read into the F-PLC
via two different diverse data paths.
Function block "LDrvSafe_WinderRadius" calculates the actual radius of the roll,
and as a function of this radius, adapts the SLS limit of the SINAMICS S120 via
PROFIsafe.
Fig. 3-23 Hardware design LDrvSafe_WinderRadius
Siemens AG 2016 All rights reserved

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 51
3Library blocks
3.2 Description of the blocks

Sensing the roll radius


Sensors that can be possibly used in the application to measure the distance are
subsequently listed; the various checks and tests were carried out using these
sensors.

Table 3-33 Used sensors


No. Component MTTFd value [a]
1. ifm O1D100 MTTFd = 372a
Laser distance sensor MTTFd (worst case)= 37a
http://www.ifm.com/files/mttf/O1D100.pdf MTTFd = high
2. Baumer UNAM 70 MTTFd = 117a
Ultrasonic distance sensor MTTFd = high
There are additional sensors in the market that can be used here. When selecting
sensors, you should carefully ensure that the sensors supply a value range that is
suitable for your particular application.
You should use sensors that provide a Safety characteristic value so that you can
calculate the Safety chain. You can obtain the required information from the sensor
data sheet or by contacting the manufacturer.

NOTICE Selecting sensors


Siemens AG 2016 All rights reserved

To sense the roll radius in a Safety-related fashion, you can use two identical
sensors (e.g. ifm O1D100)!
The condition is that the sensors must be mounted with different distances to the
roll. This distance must be greater than the tolerance set at block input
"ToleranceS1S2".

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 52
3Library blocks
3.2 Description of the blocks

Transferring the sensed roll radius to the F-PLC


The measured sensor values must be sent to the F-PLC via two independent,
diverse channels. A fault must not lead to the loss of the Safety Function!
Several examples for transferring the measured sensor value in a Safety-related
fashion are subsequently described:

NOTICE Distance of the sensors


When using two identical sensors, they must be mounted with different distances
to the roll. The difference of the distances must be greater than the tolerance set
at block input "ToleranceS1S2".
When using different sensors with different value ranges/resolutions, then these
can be mounted with the same distance to the roll.

Using a central analog module and an analog module from the ET200 distributed
I/O
Fig. 3-24 Safe distance sensing, scenario 1
Siemens AG 2016 All rights reserved

Fig. 3-25 Safe distance sensing, scenario 2

The analog values of the two sensors are transferred to the F-PLC via two
independent, diverse channels.
Channel 1: Sensor 1 is connected to a central analog input module of the F-PLC.
The sensor value is made available via the backplane bus of the F-PLC.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 53
3Library blocks
3.2 Description of the blocks

Channel 2: Sensor 2 is connected to a distributed analog input module of an


ET200SP. The sensor value is made available to the F-PLC via PROFINET.

Using a central analog module and an analog input of the SINAMICS S120 CU310-
2
Fig. 3-26 Safe distance sensing, scenario 3

The analog values of the two sensors are transferred to the F-PLC via two
independent, diverse channels.
Channel 1: Sensor 1 is connected to a central analog input module of the F-PLC.
Siemens AG 2016 All rights reserved

The sensor value is made available via the backplane bus of the F-PLC.
Channel 2: Sensor 2 is connected to an analog input of the SINAMICS S120
CU310-2. The sensor value is made available to the F-PLC via PROFINET.

Using a central analog module and an analog input of the TM31


Fig. 3-27 Safe distance sensing, scenario 4

The analog values of the two sensors are transferred to the F-PLC via two
independent, diverse channels.
Channel 1: Sensor 1 is connected to a central analog input module of the F-PLC.
The sensor value is made available via the backplane bus of the F-PLC.
Channel 2: Sensor 2 is connected to an analog input of the TM31 Terminal Module
. The TM31 is connected to the Control Unit of the SINAMICS via DRIVE-CliQ. The
sensor value is made available to the F-PLC via PROFINET.
Alternatively, a Terminal Board can be used - e.g. a TB30 - instead of a Terminal
Module.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 54
3Library blocks
3.2 Description of the blocks

Using a fail-safe analog input module


Fig. 3-28 Safe distance sensing, scenario 5

The analog values from the two sensors are transferred to a fail-safe analog input
module.
This means that the sensor values are available in a Safety-related fashion in the
Siemens AG 2016 All rights reserved

F-PLC.
Alternatively, the fail-safe analog input module can be installed decentrally. Then
PROFIsafe communication must be established between the F-PLC and the station
in which the fail-safe analog module is installed.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 55
3Library blocks
3.2 Description of the blocks

Using three sensors, e.g. for winding cables


Fig. 3-29 Safe distance sensing, scenario 6
Siemens AG 2016 All rights reserved

When winding cable, the traversing arm uniformly winds the material in tracks.
The traversing arm moves at the outer edge; as a consequence, depending on the
sensor, its mounting position and the state of the flange, it is possible that the
sensor senses the flange instead of the material.
This means that for this application it makes sense to use a third sensor. Sensor
S1 must be fixed, and the other two sensors S2 and S3 should be mounted on the
traversing arm. Depending on the position of the traversing arm, one of the two
sensors must be selected in the standard S7 program.

Fig. 3-30 Safe distance sensing, scenario 7

In this particular case, sensors S2 and S3 may be mounted at the same distance
away from the roll, even if identical sensors are used. The difference of the

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 56
3Library blocks
3.2 Description of the blocks

distances to the roll between S1 and S2, as well as between S1 and S3 must, if
identical sensors are being used, be greater than the tolerance set at block input
"ToleranceS1S2.

Using different sensors with different resolutions.


When using two different sensors with different resolutions, one sensor must be
scaled to the other sensor in the standard part of the F-PLC.
The other sensor must be directly read into the Safety program.
The objective is that both sensors supply the same analog value for the same
distance.

Example
The value ranges of the two sensors are listed in the following table:
Table 3-34 Value ranges of different sensors
Sensor S1 Sensor S2
Value range, lower (MIN) 0.06 m 0.10 m
Value range, upper (MAX) 0.30 m 0.35 m

Using the following formula in the standard PLC user program, the value range of
sensor S2 can be scaled to the value range of sensor S1:
Siemens AG 2016 All rights reserved

MAXS2 MINS2 27648.0


2 = AIS2 ( + MINS2 1 )
27648.0 1 1
This calculated value must be interconnected with block input "ActValueS2" - and
the measured analog value from sensor S1 must be interconnected with block
input "ActValueS1".

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 57
3Library blocks
3.2 Description of the blocks

Principle of operation
Fig. 3-31 Structure of block LDrvSafe_WinderRadius

The function block calculates the thickness of the wound material based on the
distance of the two sensors from the empty roll ("S1EmptyRoll" and "S2EmptyRoll")
Siemens AG 2016 All rights reserved

and the actual distance ("ActValueS1" and "ActValueS2").

Fig. 3-32 Principle of operation LDrvSafe_WinderRadius

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 58
3Library blocks
3.2 Description of the blocks

Fig. 3-33 Principle of operation LDrvSafe_WinderRadius

In order to be able to calculate the radius of the complete (full) roll, the minimum
radius is added (radius of an empty roll). This calculation is performed in parallel for
sensor S1 and sensor S2 - and the average value is then calculated ("ActRadius").
The diagnostics to identify dangerous errors when reading in analog values is
Siemens AG 2016 All rights reserved

handled in the F program of the F-CPU. (Shifting out the diagnostics functionality
into another subsystem, in this case reading in the evaluation, is permissible
according to EN 62061). Safety-critical errors, which must be identified based on
these block diagnostics or plausibility check, are:

Measured value (of a sensor) > limit value 32,767


Measured value (of a sensor) < limit value 0
Absolute value of the difference between the two measured values exceeds a
parameterized discrepancy value ("ToleranceS1S2") for the duration of a
specific time ("TimeToleranceS1S2")
This function block identifies these errors. The analog values that are read in are
monitored to ensure that they maintain fixed limit values (0 to 32,767) - and are
subject to a plausibility check (deviation of the measured values with respect to one
another).
The SLS limit speed is then continually calculated as a function of the roll radius,
and is displayed at block output ("VariableSLS").
This calculation is made as long as the calculated, average radius ("ActRadius")
assumes a lower value than the maximum specified radius ("MaxRadius").
Otherwise, a substitute value ("SubstituteValue") is displayed. For the substitute
value, the calculated SLS limit speed ("VariableSLS) refers to the speed at the
maximum radius ("MaxRadius") - and is available at output "VariableSLS".

Note A higher resolution can be achieved using inputs "Accuracy" and


"ScaleSensors".
The default setting is suitable for most applications.

As soon as an error occurs in the block, the "Error" bit is set - and an error number
is saved at the "Status" output. In order that the SLS limit value is not exceeded,
this is set to the maximum value of 32,767 - and the output radius ("ActRadius")
freezes the value. Users must define the error response in the user program.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 59
3Library blocks
3.2 Description of the blocks

An error is acknowledged using a positive edge at input "AckError".

Note Excel file "LDrvSafe_WinderRadius_Commissioning.xlsm" is available to support


you when commissioning the system.

Preconditions
On the SINAMICS side:
The Safety Integrated Functions of the SINAMICS S120 are enabled and
PROFIsafe communication established with telegram 901 or 902.
Further, variable SLS level 1 must be enabled (p9501.24), 1 and SLS limit value
entered in level 1 (p9531[0]): 2
()
( 1) =
2 ()
n (SLS limit 1) SLS level 1 of SINAMICS S120 [rpm]
v(path) Material web velocity to be monitored [m/min]
r(min) Minimum roll radius [m], corresponds to block input "MinRadius"
in units [m]
ToleranceFactor Tolerance for monitoring the speed (also to compensate for
Siemens AG 2016 All rights reserved

inaccuracies in calculating the SLS level by the function block),


e.g. 1, 3

Note Function block LDrvSafe_WinderRadius internally uses integer values to perform


the calculation; this results in inaccuracies, especially for division operations.
Therefore, it is mandatory to take into account a "ToleranceFactor" factor.

Fig. 3-34 Parameterization SINAMICS

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 60
3Library blocks
3.2 Description of the blocks

Activating the new SLS limit value via PROFIsafe


As soon as a lower SLS limit value is transferred via PROFIsafe, this only
WARNING becomes active after a delay time has expired (p9551). 3
This delay time is restarted as soon as a lower SLS limit value is transferred.
This means that when the SLS limit value is continually decreased by the S7
user program, the time delay (p9551) 3 is continually restarted.
As a consequence, the time delay must be set as low as possible so that the
new SLS limit value becomes active in time. It can make sense to set this time
delay to 0ms.
Siemens AG 2016 All rights reserved

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 61
3Library blocks
3.2 Description of the blocks

Input parameters

Only fixed values may be used at all block inputs.


The exceptions are inputs "ActValueS1" and "ActValueS2" - as well as
WARNING "AckError".

Note All input parameters, data type INT must be specified as raw values.

Table 3-35 Input parameters of block LDrvSafe_WinderRadius


Parameter Data Description
type
S1EmptyRoll INT Distance of sensor S1 to the empty roll
The analog value of sensor S1, which, for an empty roll (lowest
possible radius), is sensed using standard analog input module 1
Pre-assignment: 13,824
S2EmptyRoll INT Distance of sensor S2 to the empty roll
The analog value of sensor S2, which, for an empty roll (lowest
possible radius), is sensed using standard analog input module 2
Pre-assignment: 13,824
Siemens AG 2016 All rights reserved

ActValueS1 INT Actual distance of sensor S1 to the roll


Actually measured analog value of sensor S1 at the standard
analog input module 1
This analog value must monitor/measure the same process as
ActValueS2
Pre-assignment: 0
ActValueS2 INT Actual distance of sensor S2 to the roll
Actually measured analog value of sensor S2 at the standard
analog input module 2
This analog value must monitor/measure the same process as
ActValueS1
Pre-assignment: 0
ToleranceS1S2 INT Discrepancy
Permissible tolerance between the scaled measured values
ActValueS1 and ActValueS2
Pre-assignment: 100
TimeToleranceS1S2 TIME Discrepancy time
Time for which ToleranceS1S2 must be exceeded before an error
is signaled
Pre-assignment: 200ms
MaxRadius INT Maximum radius
Maximum roll radius
Pre-assignment: 13,000
MinRadius INT Minimum radius
Radius of the empty roll (smallest possible radius)
Pre-assignment: 150

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 62
3Library blocks
3.2 Description of the blocks

Parameter Data Description


type
HysMinRadius INT Hysteresis at the minimum radius
An error is output as soon as the actual radius falls below
MinRadius.
A hysteresis can be configured in order to allow the radius to
briefly fall below this value.
Pre-assignment: 0
Accuracy INT Selecting the accuracy
The value ensures a higher accuracy when the SLS limit is output
The block internally calculates 32767 /"ActRadius". As a result of
the integer division, for higher values of "ActRadius" a result of
"1" is obtained. In order to avoid this, the following arithmetic
operation is carried out before this division operation:
"ActRadius"/"Accuracy". As a consequence, a significantly higher
accuracy can be achieved.
Pre-assignment: 100
ScaleSensors INT Scaling the input values
This input is used if sensors with a significantly higher range are
used than the application actually requires.
All input values, data type INT, are scaled between 0 and the
specified value
The specified value must be greater than or equal to all other
Siemens AG 2016 All rights reserved

input values, data type INT sein


Pre-assignment: 27,648
AckError BOOL Acknowledgment
Block errors can be acknowledged using a rising edge

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 63
3Library blocks
3.2 Description of the blocks

Output parameters
Table 3-36 Output parameters of block LDrvSafe_WinderRadius
Parameter Data type Description
VariableSLS INT Variable SLS limit value
This value indicates the calculated SLS limit value as a function of
the radius, and the user must transfer this to the SINAMICS S120
via the PROFIsafe telegram.
In the SINAMICS, SLS level 1 must be assigned the following
value:
()
( 1) =
2 ()
n(SLS limit 1): SLS level 1 of SINAMICS S120 [rpm]
v(path): Material web velocity to be monitored [m/min]
r(min): minimum roll radius [m], corresponds to block input
"MinRadius" in units [m]
ToleranceFactor: Tolerance for monitoring the speed (also to
compensate for inaccuracies in calculating the SLS level by the
function block), e.g. 1, 3
ActRadius INT Actual roll radius
This value indicates the average radius calculated from the two analog
values "ActValueS1" and "ActValueS2"
SubstituteValue BOOL Substitute value
This bit has a high signal level as long as the calculated radius
Siemens AG 2016 All rights reserved

("ActRadius") exceeds the maximum specified radius.


In this case, the calculated SLS limit speed ("VariableSLS) refers
to the speed at the maximum radius ("MaxRadius") - and is
available at output "VariableSLS".

Error BOOL Error


The error bit is set as soon as an error occurs in the block.
The SLS limit is set to the maximum value of 32,767
The output radius ("ActRadius") freezes the value.
Users must define the error response in the user program.
Status WORD Error number
As soon as an error is active, the reason for this error is output as error
number. More detailed information is provided in the following table.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 64
3Library blocks
3.2 Description of the blocks

Status and error displays


Table 3-37 Status and error displays of block LDrvSafe_WinderRadius
Status Meaning Remedy /notes
7002 The block is called
Incorrect operation Adapt the value range for "S1EmptyRoll":
8001 "S1EmptyRoll" outside the 1 to 32,767
permissible value range
Incorrect operation Adapt the value range for "S2EmptyRoll":
8002 "S2EmptyRoll" outside the 1 to 32,767
permissible value range
Incorrect operation Adapt the value range for "ToleranceS1S2":
8003 "ToleranceS1S2" outside the 0 to 32,767
permissible value range
Incorrect operation Adapt the value range for "MaxRadius":
8004 "MaxRadius" outside the 2 to 32,767
permissible value range
Incorrect operation Adapt the value range for "MinRadius":
8005 "MinRadius" outside the 1 to 32,767
permissible value range
Incorrect operation Adapt the value range for "HysMinRadius":
8006 "HysMinRadius" outside the 0 to 32,767
Siemens AG 2016 All rights reserved

permissible value range


Incorrect operation Adapt the value range:
8007 Value for "ScaleSensors" not "ScaleSensors": 1 to 32,767
permissible "ScaleSensors">= all block inputs, data type INT
Incorrect operation Increase value for "S1EmptyRoll" or
For an empty roll, scaled distance "S2EmptyRoll"
8008 of the sensors is less than the Reduce value for "ActValueS1" or "ActValueS2"
scaled actual distance Increase value for "HysMinRadius"
Increase the value for "ScaleSensors"
Incorrect operation Reduce the value for "MinRadius"
Scaled minimum radius is greater Increase the value for "MaxRadius"
8009 than the scaled maximum radius - Increase the value for "ScaleSensors"
or scaled minimum radius is less
than 1
Incorrect operation Reduce the value for "HysMinRadius"
The scaled hysteresis for the Increase the value for "ScaleSensors"
8010 minimum radius is greater than
the scaled actual value for S1 or
S2
Incorrect operation Increase the value for "MinRadius"
The scaled actual radius is less Check the values for "S1EmptyRoll" and
8011 than the scaled minimum radius. "S2EmptyRoll"
Set the value for "ScaleSensors" <= 27,648
Use sensors with a higher value range
Incorrect operation Adapt the value range for "Accuracy":
8012 "Accuracy" outside the permissible 1 to 27,648
value range
Error when executing the block Adapt the value range for "ActValueS1":
"ActValueS1" outside the 0 to 32,767
8400 permissible value range

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 65
3Library blocks
3.2 Description of the blocks

Status Meaning Remedy /notes


Error when executing the block Adapt the value range for "ActValueS2":
8401 "ActValueS2" outside the 0 to 32,767
permissible value range
Error when executing the block Increase the value for "ScaleSensors"
8600 The calculated, scaled radius of Increase the distance of the mounted sensors
both sensors lies outside the
permissible value range
Error when executing the block Increase "ToleranceS1S2" tolerance
The calculated scaled radii from Increase the "TimeToleranceS1S2" discrepancy
8601 both sensors exceeds the time
specified tolerance for longer than Check the mounting of both sensors
the time tolerance
Siemens AG 2016 All rights reserved

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 66
4Acceptance and function test
4.1 Information for checking the Safety functionality of the machine

4 Acceptance and function test


4.1 Information for checking the Safety functionality of the
machine

Function test
The perfect functioning of all Safety Functions of the programmed user program
CAUTION must be carefully checked and documented by carrying out a complete function
check at the machine.

The plausibility of the fail-safe monitoring times of the I/O and the control must be
checked corresponding to the SIMATIC Safety Configuring and Programming
Manual.
The configuration must be documented by printing it out.

4.2 Examples for checking the Safety functionality of the F


blocks
Siemens AG 2016 All rights reserved

In this chapter, using examples, it is shown how the interaction between the
hardware wiring and software evaluation can be tested for the individual blocks.
These function tests only involve individual tests for the particular block, and not a
function test of the user program.

Note The function tests for the individual function blocks do not replace the function
test of the user program at the machine.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 67
4Acceptance and function test
4.2 Examples for checking the Safety functionality of the F blocks

4.2.1 PROFIsafe control words

4.2.1.1 LDrvSafe_CtrlT30SinaG (FB800)

Table 4-1 Function test of block LDrvSafe_CtrlT30SinaG


Execution Expected response Result
Select one of the Safety The selected Safety Function becomes
Functions being used at the active at the addressed drive.
block input.
Then deselect this Safety The selected Safety Function becomes
Function. inactive at the addressed drive.
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.

4.2.1.2 LDrvSafe_CtrlT30SinaS (FB801)

Table 4-2Function test of block LDrvSafe_CtrlT30SinaS


Execution Expected response Result
Siemens AG 2016 All rights reserved

Select one of the Safety The selected Safety Function becomes


Functions being used at the active at the addressed drive.
block input.
Then deselect this Safety The selected Safety Function becomes
Function. inactive at the addressed drive.
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.

4.2.1.3 LDrvSafe_CtrlT31SinaS (FB802)

Table 4-3Function test of block LDrvSafe_CtrlT31SinaS


Execution Expected response Result
Select one of the Safety The selected Safety Function becomes
Functions being used at the active at the addressed drive.
block input.
Then deselect this Safety The selected Safety Function becomes
Function. inactive at the addressed drive.
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 68
4Acceptance and function test
4.2 Examples for checking the Safety functionality of the F blocks

4.2.1.4 LDrvSafe_CtrlT900SinaG (FB803)

Table 4-4Function test of block LDrvSafe_CtrlT900SinaG


Execution Expected response Result
Select one of the Safety The selected Safety Function becomes
Functions being used at the active at the addressed drive.
block input.
Then deselect this Safety The selected Safety Function becomes
Function. inactive at the addressed drive.
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.

4.2.1.5 LDrvSafe_CtrlT901SinaS (FB804)

Table 4-5Function test of block LDrvSafe_CtrlT901SinaS


Execution Expected response Result
Select one of the Safety The selected Safety Function becomes
Functions being used at the active at the addressed drive.
block input.
Siemens AG 2016 All rights reserved

Then deselect this Safety The selected Safety Function becomes


Function. inactive at the addressed drive.
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.
Enter any value between 1 and The SLS limit value in level 1 p9531[0] is
32,767 at input "VariableSLS" changed and becomes active after the
and select the SLS Safety delay time in p9551 has expired:
Function with level 1. SLS level 1 (r9714[2]) = "VariableSLS" /
32,767 * p9531[0]

4.2.1.6 LDrvSafe_CtrlT902SinaS (FB805)

Table 4-6Function test of block LDrvSafe_CtrlT902SinaS


Execution Expected response Result
Select one of the Safety The selected Safety Function becomes
Functions being used at the active at the addressed drive.
block input.
Then deselect this Safety The selected Safety Function becomes
Function. inactive at the addressed drive.
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.
Enter any value between 1 and The SLS limit value in level 1 p9531[0] is
32,767 at input "VariableSLS" changed and becomes active after the
and select the SLS Safety delay time in p9551 has expired:
Function with level 1. SLS level 1 (r9714[2]) = "VariableSLS" /
32,767 * p9531[0]

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 69
4Acceptance and function test
4.2 Examples for checking the Safety functionality of the F blocks

4.2.2 PROFIsafe status words

4.2.2.1 LDrvSafe_StatusT30SinaG (FB820)

Table 4-7Function test of block LDrvSafe_StatusT30SinaG


Execution Expected response Result
In the drive, generate the The feedback signal becomes active in
feedback signal for a Safety the corresponding block.
Function being used.
Reset the feedback signal for The feedback signal becomes inactive in
this Safety Function. the corresponding block.

Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.

4.2.2.2 LDrvSafe_StatusT30SinaS (FB821)

Table 4-8Function test of block LDrvSafe_StatusT30SinaS


Execution Expected response Result
Siemens AG 2016 All rights reserved

In the drive, generate the The feedback signal becomes active in


feedback signal for a Safety the corresponding block.
Function being used.
Reset the feedback signal for The feedback signal becomes inactive in
this Safety Function. the corresponding block.

Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.

4.2.2.3 LDrvSafe_StatusT31SinaS (FB822)

Table 4-9Function test of block LDrvSafe_StatusT31SinaS


Execution Expected response Result
In the drive, generate the The feedback signal becomes active in
feedback signal for a Safety the corresponding block.
Function being used.
Reset the feedback signal for The feedback signal becomes inactive in
this Safety Function. the corresponding block.

Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 70
4Acceptance and function test
4.2 Examples for checking the Safety functionality of the F blocks

4.2.2.4 LDrvSafe_StatusT900SinaG (FB823)

Table 4-10Function test of block LDrvSafe_StatusT900SinaG


Execution Expected response Result
In the drive, generate the The feedback signal becomes active in
feedback signal for a Safety the corresponding block.
Function being used.
Reset the feedback signal for The feedback signal becomes inactive in
this Safety Function. the corresponding block.

Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.

4.2.2.5 LDrvSafe_StatusT901SinaS (FB824)

Table 4-11Function test of block LDrvSafe_StatusT901SinaS


Execution Expected response Result
In the drive, generate the The feedback signal becomes active in
feedback signal for a Safety the corresponding block.
Siemens AG 2016 All rights reserved

Function being used.


Reset the feedback signal for The feedback signal becomes inactive in
this Safety Function. the corresponding block.

Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.
The variable SLS limit via The value of "VariableSLSvalue" is
PROFIsafe has been enabled, identical to the value specified using
and SLS level 1 is selected. PROFIsafe.
Enter any value as SLS limit via
PROFIsafe
Communication via PROFIsafe The value of "CycleCounter" is
has been established incremented in the clock cycle of the
Safety Integrated Functions (p9500).
Communication via PROFIsafe - "SafePositionValid" returns a
has been established value of "1"
- The transferred position actual value
corresponds to the value at
"SafePosition" block output
- When using the safe absolute
position, "SafelyReferenced" returns
a value of "1"

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 71
4Acceptance and function test
4.2 Examples for checking the Safety functionality of the F blocks

4.2.2.6 LDrvSafe_StatusT902SinaS (FB825)

Table 4-12Function test of block LDrvSafe_StatusT902SinaS


Execution Expected response Result
Select one of the Safety The selected Safety Function becomes
Functions being used at the active at the addressed drive.
block input.
Then deselect Safety Function. The selected Safety Function becomes
inactive at the addressed drive.
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.
Communication via PROFIsafe - "SafePositionValid" returns a
has been established value of "1"
- The transferred position actual value
corresponds to the value at
"SafePosition" block output
- When using the safe absolute
position, "SafelyReferenced" returns
a value of "1"

4.2.3 Winder
Siemens AG 2016 All rights reserved

4.2.3.1 LDrvSafe_Smooth (FB810)

Table 4-13 Function test of block LDrvSafe_Smooth


Execution Expected response Result
Interconnect the block inputs Value "AvgValueSensor" is updated if the
according to the description so number of cycles run through reaches the
that no error occurs. number of cycles specified at
"NumberOfCycles",
and output "ValueUpdated" is set for one
cycle.

4.2.3.2 LDrvSafe_WinderRadius (FB811)

Table 4-14 Function test of block LDrvSafe_WinderRadius


Execution Expected response Result
Interconnect the block inputs The value for variable SLS limit
according to the description so "VariableSLS" and the actual radius
that no error occurs. "ActRadius" are displayed at the block
output.
This calculated radius (converted into
physical units) must correspond to the
actual diameter.
Wind the material until the actual Substitute value "SubstituteValue" is
radius "ActRadius exceeds the displayed at the block output as long as
maximum radius "MaxRadius". ActRadius >= MaxRadius
(only required if the application
actually permits this)
Initiate a discrepancy error by The block identifies a discrepancy error
interrupting the laser beam, by and sets the "Error" bit. The value 8601 is
e.g. interrupting. entered at "Status" output.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 72
5Working with the library
5.1 Integrating the library blocks into TIA Portal

5 Working with the library


This chapter provides instructions for integrating the LDrvSafe library into your TIA
project and instructions for using the library blocks.

5.1 Integrating the library blocks into TIA Portal


The steps to integrate the blocks of the LDrvSafe library into your TIA Portal as
described below.
Table 5-1 Integration of the library blocks
No. Action Note
1. First of all, depack the delivered application.
Therefore klick on the application with right mouse button and depack the file.
Siemens AG 2016 All rights reserved

2. Open the TIA Portal engineering tool

3. Search for your existing project and open it.

4. Click on the "Libraries" tab at the right-hand


edge of the screen. 1

Then click on button "Open global library". 2

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 73
5Working with the library
5.1 Integrating the library blocks into TIA Portal

No. Action Note


5. Then enter the path in which the LDrvSafe library is saved, and open the unzipped library.

6. The library is now opened. You can now use


all of the blocks in the LDrvSafe library in the
Siemens AG 2016 All rights reserved

"Master copies" subfolder in your project.

7. You can now drag the blocks from the library and drop them into your project.
In this diagram, function block "LDrvSafe_CtrlT30SinaS" is dragged to folder "Program blocks",
the datatype LDrvSafe_typeCtrlT30SinaS to folder PLC data types

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 74
5Working with the library
5.1 Integrating the library blocks into TIA Portal

No. Action Note


Siemens AG 2016 All rights reserved

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 75
5Working with the library
5.2 Loading the blocks into the S7 CPU

5.2 Loading the blocks into the S7 CPU


The steps to load all of the blocks of your user program into the S7 CPU are listed
below.
Table 5-2 Loading the blocks
No. Action Note
1. In the project tree, select the F-CPU that you wish to load 1 .
Then click on the download symbol 2 .
Siemens AG 2016 All rights reserved

2. When loading the safety program to the control, the following window is displayed.
In column "Action" 1 , set all lines so that there is a blue checkmark set in every line. 2
Enter your password to access fail-safe data.

1
2

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 76
5Working with the library
5.3 Online help

5.3 Online help


For all function blocks of this library, there exists an online help, which contains
information relating to principle of operation and meaning of all in- and outputs.

Note The help files are available in German and English language and open
accordingly to the user interface language of TIA-Portal. If neither German nor
English is chosen as user interface language, always the English version opens
by the call of a help file.

5.3.1 Open out of library directory

Tabelle 5-3 Open the online help out of the library directory
No. Action Note
1. To open the help for a block directly out of the library, you have to mark a block and
press Shift + F1 on the keyboard. At first a security warning appears, which you
have to confirm with Yes.
Siemens AG 2016 All rights reserved

2. Now an overview site opens in your web browser. On this site you can click on the
link of the block you want the help to open.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 77
5Working with the library
5.3 Online help

5.3.2 Open out of project directory

Tabelle 5-4 Open the online help out of the projekt directory or block
No. Action Note

1. To open the help also from the project directory or the programming editor, you have
to run the file setup.exe.

The file you can find here:


\LDrvSafeV10_TIA\UserFiles\UserOnlineHelp
2. Choose the installing language.

3. Choose the directory Siemens at Program Files. Usually this is C:\Program Files
Siemens AG 2016 All rights reserved

(x86)\Siemens. Run the installation.


If the message CorporateSettings.xml already exists. Do you want to overwrite it?
appears, klick Yes.

4. Now it is also possible to open the help directly from project folder or the
programming editor. In order to do this, select the desired block and press Shift +
F1.

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 78
6Notes and support
6.1 Version of library LDrvSafe

6 Notes and support


In this chapter you can find additional support when handling the described
LDrvSafe library.

6.1 Version of library LDrvSafe


The steps listed below show you how to check if your library is up-to-date.
Table 6-1 Actuality of the library
No. Action Note
1. To check the version of the LDrvSafe library,
proceed as follows:
1 Click on the "Libraries" tab at the right-
hand
edge of the screen

2 Under "Global libraries", select the


library and press the right-hand
mouse key. 3

4 Now click on Properties".


Siemens AG 2016 All rights reserved

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 79
6Notes and support
6.1 Version of library LDrvSafe

No. Action Note


2. The library version is shown 2 under menu item "Library". 1

2
Siemens AG 2016 All rights reserved

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 80
7 References

7 References
Table 7-1 References
Topic Title
\1\ Siemens Industry http://support.automation.siemens.com
Online Support
\2\ Download page of https://support.industry.siemens.com/cs/ww/de/view/10948
the article 5794
\3\ SIMATIC STEP 7 https://support.industry.siemens.com/cs/ww/en/view/54110126
Safety - Configuring
and Programming
\4\ SINAMICS S120 https://support.industry.siemens.com/cs/ww/en/view/99668646
Function Manual
Safety Integrated
\5\ SINAMICS G120 https://support.industry.siemens.com/cs/ww/en/view/109477367
Function Manual
Safety Integrated

8 Contact person
Siemens AG 2016 All rights reserved

Siemens AG
Digital Factory Division
DF FA PMA APC
Frauenauracher Strasse 80
D-91056 Erlangen
mailto: safety.team.motioncontrol.i-dt@siemens.com

9 History
Table 9-1 History
Version Date Change
V1.0 03/2016 First Edition
V1.1 10/2016 Addition of blocks for PROFIsafe control

LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 81

S-ar putea să vă placă și