Download as pdf or txt
Download as pdf or txt
You are on page 1of 249

Application Examples  12/2015

Safety Applications with the


S7-1200 FC CPU
STEP 7 Safety V13 SP1 (TIA Portal)

https://support.industry.siemens.com/cs/ww/en/view/109478932
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 this Application Example and other
Siemens publications – e.g. Catalogs – the contents of the other documents shall
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
deficiency or breach of fundamental contractual obligations (“wesentliche
 Siemens AG 2015 All rights reserved

Vertragspflichten”). The damages for a breach of a substantial contractual


obligation are, however, limited to the foreseeable damage, typical for the type of
contract, except in the event of intent or gross negligence or injury to life, body or
health. The above provisions do not imply a change of the burden of proof to your
detriment.
Any form of duplication or distribution of these Application Examples or excerpts
hereof is prohibited without the expressed consent of Siemens AG.

Security Siemens provides products and solutions with industrial security functions that
informati support the secure operation of plants, solutions, machines, equipment and/or
on networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens’ products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
http://support.industry.siemens.com/.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 2
Table of Contents

Table of Contents
Warranty and Liability ................................................................................................. 2
1 How to Use this Document ............................................................................... 9
2 Why Safety with the S7-1200 F-CPU? .............................................................. 9
3 Description of an Automation Task ............................................................... 10
4 PL and SIL ........................................................................................................ 11
4.1 Achieving PL c/SIL 1 .......................................................................... 12
4.1.1 Interconnection examples .................................................................. 12
4.1.2 Settings in the STEP 7 hardware configuration ................................. 13
4.2 Achieving PL d/SIL 2 .......................................................................... 15
4.2.1 Interconnection examples .................................................................. 15
4.2.2 Settings in the STEP 7 hardware configuration ................................. 16
4.3 Achieving PL e/SIL 3 .......................................................................... 18
4.3.1 Interconnection examples .................................................................. 18
4.3.2 Settings in the STEP 7 hardware configuration ................................. 19
5 Prepared User Scenarios ................................................................................ 20
6 Solution for the User Scenarios ..................................................................... 23
6.1 What applies to all user scenarios ..................................................... 23
6.1.1 Installing the user scenario................................................................. 23
6.1.2 Interlocking mechanisms for safety doors with guard locking ............ 26
 Siemens AG 2015 All rights reserved

6.1.3 Program structure ............................................................................... 29


6.1.4 Brief description of the F-library blocks .............................................. 30
6.1.5 Passivation and reintegration ............................................................. 32
6.1.6 Value status ........................................................................................ 33
6.1.7 Notes on the electric actuators ........................................................... 34
6.2 User Scenario 1: Emergency Stop at PL e/SIL 3,
Electromechanical Actuator................................................................ 34
6.2.1 Safety function .................................................................................... 34
6.2.2 Hardware and software components ................................................. 34
6.2.3 Wiring ................................................................................................. 35
6.2.4 Brief description of the core functionality ........................................... 37
6.2.5 Description of the user block FB F100EStopSIL3PLe ....................... 37
6.2.6 Configuration and parameterization ................................................... 39
6.2.7 Operation of the user scenario ........................................................... 40
6.3 User Scenario 2: Emergency Stop at PL d/SIL 2,
Electromechanical Actuator................................................................ 41
6.3.1 Safety function .................................................................................... 41
6.3.2 Hardware and software components ................................................. 41
6.3.3 Wiring ................................................................................................. 42
6.3.4 Brief description of the core functionality ........................................... 43
6.3.5 Description of the user block FB F02EStopSIL2PLd ......................... 43
6.3.6 Configuration and parameterization ................................................... 45
6.3.7 Operation of the user scenario ........................................................... 45
6.4 User Scenario 3: Emergency Stop at PL c/SIL 1,
Electromechanical Actuator................................................................ 47
6.4.1 Safety function .................................................................................... 47
6.4.2 Hardware and software components ................................................. 47
6.4.3 Wiring ................................................................................................. 48
6.4.4 Brief description of the core functionality ........................................... 49
6.4.5 Description of the user block FB F03EStopSIL1PLc ......................... 49
6.4.6 Configuration and parameterization ................................................... 51
6.4.7 Operation of the user scenario ........................................................... 51

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 3
Table of Contents

6.5 User Scenario 4: Emergency Stop at PL e/SIL 3, Electric


Actuator .............................................................................................. 53
6.5.1 Safety function .................................................................................... 53
6.5.2 Hardware and software components ................................................. 53
6.5.3 Wiring ................................................................................................. 54
6.5.4 Brief description of the core functionality ........................................... 55
6.5.5 Description of the user block FB F04EStopSIL3PLe ......................... 55
6.5.6 Configuration and parameterization ................................................... 56
6.5.7 Operation of the user scenario ........................................................... 57
6.6 User Scenario 5: Emergency Stop at PL d/SIL 2, Electric
Actuator .............................................................................................. 58
6.6.1 Safety function .................................................................................... 58
6.6.2 Hardware and software components ................................................. 58
6.6.3 Wiring ................................................................................................. 58
6.6.4 Brief description of the core functionality ........................................... 60
6.6.5 Description of the user block FB F05EStopSIL2PLd ......................... 60
6.6.6 Configuration and parameterization ................................................... 61
6.6.7 Operation of the user scenario ........................................................... 62
6.7 User Scenario 6: Emergency Stop at PL c/SIL 1, Electric
Actuator .............................................................................................. 63
6.7.1 Safety function .................................................................................... 63
6.7.2 Hardware and software components ................................................. 63
6.7.3 Wiring ................................................................................................. 64
6.7.4 Brief description of the core functionality ........................................... 65
6.7.5 Description of the user block FB F06EStopSIL1PLc ......................... 65
 Siemens AG 2015 All rights reserved

6.7.6 Configuration and parameterization ................................................... 67


6.7.7 Operation of the user scenario ........................................................... 67
6.8 User Scenario 7: Safety Door without Guard Locking at PL
e/SIL 3, Electromechanical Actuator .................................................. 68
6.8.1 Safety function .................................................................................... 68
6.8.2 Hardware and software components ................................................. 68
6.8.3 Wiring ................................................................................................. 69
6.8.4 Brief description of the core functionality ........................................... 70
6.8.5 Description of the user block FB F07FDoorSIL3PLe ......................... 71
6.8.6 Configuration and parameterization ................................................... 72
6.8.7 Operation of the user scenario ........................................................... 73
6.9 User Scenario 8: Safety Door without Guard Locking at PL
d/SIL 2, Electromechanical Actuator .................................................. 74
6.9.1 Safety function .................................................................................... 74
6.9.2 Hardware and software components ................................................. 74
6.9.3 Wiring ................................................................................................. 75
6.9.4 Brief description of the core functionality ........................................... 76
6.9.5 Description of the user block FB F08FDoorSIL2PLd ......................... 77
6.9.6 Configuration and parameterization ................................................... 78
6.9.7 Operation of the user scenario ........................................................... 79
6.10 User Scenario 9: Safety Door without Guard Locking at PL
c/SIL 1, Electromechanical Actuator .................................................. 80
6.10.1 Safety function .................................................................................... 80
6.10.2 Hardware and software components ................................................. 80
6.10.3 Wiring ................................................................................................. 81
6.10.4 Brief description of the core functionality ........................................... 82
6.10.5 Description of the user block FB F09FDoorSIL1PLc ......................... 83
6.10.6 Configuration and parameterization ................................................... 84
6.10.7 Operation of the user scenario ........................................................... 84
6.11 User Scenario 10: Safety Door without Guard Locking at PL
e/SIL 3, Electric Actuator .................................................................... 86
6.11.1 Safety function .................................................................................... 86
6.11.2 Hardware and software components ................................................. 86

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 4
Table of Contents

6.11.3 Wiring ................................................................................................. 87


6.11.4 Brief description of the core functionality ........................................... 88
6.11.5 Description of the user block FB F10FDoorSIL3PLe ......................... 89
6.11.6 Configuration and parameterization ................................................... 90
6.11.7 Operation of the user scenario ........................................................... 91
6.12 User Scenario 11: Safety Door without Guard Locking at PL
d/SIL 2, Electric Actuator .................................................................... 92
6.12.1 Safety function .................................................................................... 92
6.12.2 Hardware and software components ................................................. 92
6.12.3 Wiring ................................................................................................. 93
6.12.4 Brief description of the core functionality ........................................... 94
6.12.5 Description of the user block FB F11FDoorSIL2PL ........................... 95
6.12.6 Configuration and parameterization ................................................... 96
6.12.7 Operation of the user scenario ........................................................... 97
6.13 User Scenario 12: Safety Door without Guard Locking at PL
c/SIL 1, Electric Actuator .................................................................... 98
6.13.1 Safety function .................................................................................... 98
6.13.2 Hardware and software components ................................................. 98
6.13.3 Wiring ................................................................................................. 99
6.13.4 Brief description of the core functionality ......................................... 100
6.13.5 Description of the user block FB F12FDoorSIL1PLc ....................... 101
6.13.6 Configuration and parameterization ................................................. 102
6.13.7 Operation of the user scenario ......................................................... 103
6.14 User Scenario 13: Safety Door with Guard Locking at PL e/SIL
3, Electromechanical Actuator ......................................................... 104
 Siemens AG 2015 All rights reserved

6.14.1 Safety functions ................................................................................ 104


6.14.2 Hardware and software components ............................................... 104
6.14.3 Wiring ............................................................................................... 105
6.14.4 Brief description of the core functionality ......................................... 107
6.14.5 Description of the user block FB F13FDoorSIL3PLe ....................... 108
6.14.6 Configuration and parameterization ................................................. 110
6.14.7 Operation of the user scenario ......................................................... 110
6.15 User Scenario 14: Safety Door with Guard Locking at PL d/SIL
2, Electromechanical Actuator ......................................................... 112
6.15.1 Safety function .................................................................................. 112
6.15.2 Hardware and software components ............................................... 112
6.15.3 Wiring ............................................................................................... 113
6.15.4 Brief description of the core functionality ......................................... 115
6.15.5 Description of the user block FB F14FDoorSIL2PLd ....................... 116
6.15.6 Configuration and parameterization ................................................. 118
6.15.7 Operation of the user scenario ......................................................... 118
6.16 User Scenario 15: Safety Door with Guard Locking at PL c/SIL
1, Electromechanical Actuator ......................................................... 120
6.16.1 Safety function .................................................................................. 120
6.16.2 Hardware and software components ............................................... 120
6.16.3 Wiring ............................................................................................... 121
6.16.4 Brief description of the core functionality ......................................... 122
6.16.5 Description of the user block FB F15FDoorSIL1PLc ....................... 124
6.16.6 Configuration and parameterization ................................................. 126
6.16.7 Operation of the user scenario ......................................................... 126
6.17 User Scenario 16: Safety Door with Guard Locking at PL e/SIL
3, Electric Actuator ........................................................................... 128
6.17.1 Safety function .................................................................................. 128
6.17.2 Hardware and software components ............................................... 128
6.17.3 Wiring ............................................................................................... 129
6.17.4 Brief description of the core functionality ......................................... 130
6.17.5 Description of the user block FB F16FDoorSIL3PLe ....................... 132
6.17.6 Configuration and parameterization ................................................. 134

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 5
Table of Contents

6.17.7 Operation of the user scenario ......................................................... 135


6.18 User Scenario 17: Safety Door with Guard Locking at PL d/SIL
2, Electric Actuator ........................................................................... 136
6.18.1 Safety function .................................................................................. 136
6.18.2 Hardware and software components ............................................... 136
6.18.3 Wiring ............................................................................................... 137
6.18.4 Brief description of the core functionality ......................................... 138
6.18.5 Description of the user block FB F17FDoorSIL2PLd ....................... 140
6.18.6 Configuration and parameterization ................................................. 142
6.18.7 Operation of the user scenario ......................................................... 142
6.19 User Scenario 18: Safety Door with Guard Locking at PL c/SIL
1, Electric Actuator ........................................................................... 144
6.19.1 Safety function .................................................................................. 144
6.19.2 Hardware and software components ............................................... 144
6.19.3 Wiring ............................................................................................... 145
6.19.4 Brief description of the core functionality ......................................... 147
6.19.5 Description of the user block FB F18FDoorSIL1PLc ....................... 148
6.19.6 Configuration and parameterization ................................................. 150
6.19.7 Operation of the user scenario ......................................................... 150
6.20 User Scenario 19: Emergency Stop + Safety Door without
Guard Locking at PL e/SIL 3, Electromechanical Actuator .............. 151
6.20.1 Safety function .................................................................................. 151
6.20.2 Hardware and software components ............................................... 151
6.20.3 Wiring ............................................................................................... 152
6.20.4 Brief description of the core functionality ......................................... 153
 Siemens AG 2015 All rights reserved

6.20.5 Description of the user block FB F19EStopFDoorSIL3PLe ............. 154


6.20.6 Configuration and parameterization ................................................. 156
6.20.7 Operation of the user scenario ......................................................... 156
6.21 User Scenario 20: Emergency Stop + Safety Door without
Guard Locking at PL d/SIL 2, Electromechanical Actuator .............. 158
6.21.1 Safety function .................................................................................. 158
6.21.2 Hardware and software components ............................................... 158
6.21.3 Wiring ............................................................................................... 159
6.21.4 Brief description of the core functionality ......................................... 160
6.21.5 Description of the user block FB F20EStopFDoorSIL2PLd ............. 161
6.21.6 Configuration and parameterization ................................................. 163
6.21.7 Operation of the user scenario ......................................................... 163
6.22 User Scenario 21: Emergency Stop + Safety Door without
Guard Locking at PL c/SIL 1, Electromechanical Actuator .............. 165
6.22.1 Safety function .................................................................................. 165
6.22.2 Hardware and software components ............................................... 165
6.22.3 Wiring ............................................................................................... 166
6.22.4 Brief description of the core functionality ......................................... 167
6.22.5 Description of the user block FB F21EStopFDoorSIL1PLc ............. 168
6.22.6 Configuration and parameterization ................................................. 169
6.22.7 Operation of the user scenario ......................................................... 169
6.23 User Scenario 22: Emergency Stop and Safety Door without
Guard Locking at PL e/SIL 3, Electric Actuator ................................ 171
6.23.1 Safety function .................................................................................. 171
6.23.2 Hardware and software components ............................................... 171
6.23.3 Wiring ............................................................................................... 173
6.23.4 Brief description of the core functionality ......................................... 174
6.23.5 Description of the user block FB F22EStopFDoorSIL3PLe ............. 175
6.23.6 Configuration and parameterization ................................................. 176
6.23.7 Operation of the user scenario ......................................................... 177
6.24 User Scenario 23: Emergency Stop + Safety Door without
Guard Locking at PL d/SIL 2, Electric Actuator ................................ 178
6.24.1 Safety function .................................................................................. 178

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 6
Table of Contents

6.24.2 Hardware and software components ............................................... 178


6.24.3 Wiring ............................................................................................... 179
6.24.4 Brief description of the core functionality ......................................... 180
6.24.5 Description of the user block FB F23EStopFDoorSIL2PLd ............. 181
6.24.6 Configuration and parameterization ................................................. 182
6.24.7 Operation of the user scenario ......................................................... 183
6.25 User Scenario 24: Emergency Stop + Safety Door without
Guard Locking at PL c/SIL 1, Electric Actuator ................................ 184
6.25.1 Safety function .................................................................................. 184
6.25.2 Hardware and software components ............................................... 184
6.25.3 Wiring ............................................................................................... 185
6.25.4 Brief description of the core functionality ......................................... 186
6.25.5 Description of the user block FB F24EStopFDoorSIL1PLc ............. 187
6.25.6 Configuration and parameterization ................................................. 188
6.25.7 Operation of the user scenario ......................................................... 189
6.26 User Scenario 25: Emergency Stop + Safety Door with Guard
Locking at PL e/SIL 3, Electromechanical Actuator ......................... 190
6.26.1 Safety function .................................................................................. 190
6.26.2 Hardware and software components ............................................... 190
6.26.3 Wiring ............................................................................................... 192
6.26.4 Brief description of the core functionality ......................................... 194
6.26.5 Description of the user block FB F25EStopFDoorSIL3PLe ............. 195
6.26.6 Configuration and parameterization ................................................. 197
6.26.7 Implementation of the safety functions in the F-program ................. 198
6.26.8 Operation of the user scenario ......................................................... 200
 Siemens AG 2015 All rights reserved

6.27 User Scenario 26: Emergency Stop + Safety Door with Guard
Locking at PL d/SIL 2, Electromechanical Actuator ......................... 202
6.27.1 Safety function .................................................................................. 202
6.27.2 Hardware and software components ............................................... 202
6.27.3 Wiring ............................................................................................... 204
6.27.4 Brief description of the core functionality ......................................... 205
6.27.5 Description of the user block FB F26EStopFDoorSIL2PLd ............. 207
6.27.6 Configuration and parameterization ................................................. 209
6.27.7 Operation of the user scenario ......................................................... 210
6.28 User Scenario 27: Emergency Stop + Safety Door with Guard
Locking at PL c/SIL 1, Electromechanical Actuator ......................... 212
6.28.1 Safety function .................................................................................. 212
6.28.2 Hardware and software components ............................................... 212
6.28.3 Wiring ............................................................................................... 214
6.28.4 Brief description of the core functionality ......................................... 216
6.28.5 Description of the user block FB F27EStopFDoorSIL1PLc ............. 217
6.28.6 Configuration and parameterization ................................................. 219
6.28.7 Operation of the user scenario ......................................................... 219
6.29 User Scenario 28: Emergency Stop and Safety Door with
Guard Locking at PL e/SIL 3, Electric Actuator ................................ 221
6.29.1 Safety function .................................................................................. 221
6.29.2 Hardware and software components ............................................... 221
6.29.3 Wiring ............................................................................................... 223
6.29.4 Brief description of the core functionality ......................................... 225
6.29.5 Description of the user block FB F28EStopFDoorSIL3PLe ............. 226
6.29.6 Configuration and parameterization ................................................. 228
6.29.7 Operation of the user scenario ......................................................... 229
6.30 User Scenario 29: Emergency Stop + Safety Door with Guard
Locking at PL d/SIL 2, Electric Actuator ........................................... 230
6.30.1 Safety function .................................................................................. 230
6.30.2 Hardware and software components ............................................... 231
6.30.3 Wiring ............................................................................................... 232
6.30.4 Brief description of the core functionality ......................................... 233

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 7
Table of Contents

6.30.5 Description of the user block FB F29EStopFDoorSIL2PLd ............. 235


6.30.6 Configuration and parameterization ................................................. 237
6.30.7 Operation of the user scenario ......................................................... 238
6.31 User Scenario 30: Emergency Stop + Safety Door with Guard
Locking at PL c/SIL 1, Electric Actuator ........................................... 240
6.31.1 Safety function .................................................................................. 240
6.31.2 Hardware and software components ............................................... 240
6.31.3 Wiring ............................................................................................... 242
6.31.4 Brief description of the core functionality ......................................... 244
6.31.5 Description of the user block FB F30EStopFDoorSIL1PLc ............. 245
6.31.6 Configuration and parameterization ................................................. 247
6.31.7 Operation of the user scenario ......................................................... 247
7 References/Links ........................................................................................... 249
8 History............................................................................................................. 249
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 8
1 How to Use this Document

1 How to Use this Document


This document describes a large number of typical user scenarios from the field of
functional safety. From this variety of user scenarios, you can select (chapter 5
and the following chapters) a scenario you are particularly interested in. Therefore,
it is not necessary to read the entire document.

2 Why Safety with the S7-1200 F-CPU?


Simple stand-alone solutions
SIMATIC S7-1200 with Safety Integrated is the intelligent choice for all the
everyday standard and fail-safe automation tasks with a small project scope:
 Certified for functional safety according to EN 61508 (version 2010)
 Suitable for use in safety-related applications up to SIL 3 according to IEC
62061 and PL e according to ISO 13849
 Additional password protection for the F-configuration and F-program

F-blocks certified by TÜV are available for support. You can integrate these blocks
into your solutions. This document supports you in doing so.
 Siemens AG 2015 All rights reserved

Economic efficiency
As part of Safety Integrated, the S7-1200 FC CPU stands for the consistent
implementation of safety technology in the sense of Totally Integrated Automation.
This includes consistent and convenient integration of safety technology into
standard automation. This results in tremendous advantages for machine
manufacturers and plant operators – particularly in economic terms.

The TIA Portal automation platform


Engineering of the S7-1200 FC CPU is performed based on the TIA Portal
automation platform. This allows you to access all the advantages of Totally
Integrated Automation (TIA): TIA Portal is designed for efficiency, intuitive
operation and future viability. It allows you to solve all the engineering tasks of
automation and drive technology.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 9
3 Description of an Automation Task

3 Description of an Automation Task


This document assumes that a risk analysis and assessment have already been
performed. Hazard control on the cutting machine to be examined is implemented
through the safety devices safety door and emergency stop pushbutton (see the
figure below).
Figure 3-1 Cutting machine with safety door and emergency stop pushbutton
 Siemens AG 2015 All rights reserved

The following questions reflect the automation task to be discussed in this


document:
 Safety door with or without guard locking?
 Is it possible to open the safety door during operation without shutting down
the machine?
 How do I connect the components?
 How does the PLC support me?
 How and what can I parameterize? What can I program?
 How do I achieve PL e/SIL 3?
 What if I don’t need PL e/SIL 3 but PL d/SIL 2 or PL c/SIL 1?

This document provides specific answers to these questions. Before chapter 5


refers to a specific user scenario, chapter 4 provides basic information on the
safety integrity and performance level.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 10
4 PL and SIL
4.1 Achieving PL c/SIL 1

4 PL and SIL
The performance level (PL) or safety integrity level (SIL) classifies electrical and
(programmable) electronic systems in terms of the reliability of safety functions.
You implement a
 PL when you follow ISO 13849.
 SIL when you follow IEC 61508 (basic standard) or IEC 62061 (sector
standard).

Table 4 of ISO 13849 specifies a relationship between PL and SIL:

Table 4-1 Relationship between performance level (PL) and safety integrity level (SIL) from
table 4 of ISO 13849
PL SIL (high/continuous mode of operation)
a -
b 1
c 1
d 2
e 3
 Siemens AG 2015 All rights reserved

The following applies:


PL e/SIL 3 describes the highest degree of safety.

NOTICE This document does not replace the standards for functional safety!
However, it shows concise aspects of engineering and its aim is to contribute to
their clarification.

Note The statements in this chapter are of a general nature. They do not directly relate
to the F-library blocks offered with this documentation or settings of the
associated hardware configuration.

Note The following sections list the numerical values for the probability of a dangerous
failure per hour. You need these PFHD values to assess your safety function.
This assessment can be made conveniently using the Safety Evaluation Tool
(SET). For the link to the SET, please refer to \6\.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 11
4 PL and SIL
4.1 Achieving PL c/SIL 1

4.1 Achieving PL c/SIL 1


General
This chapter deals with emergency stops and position switches. The statements
generally apply to electromechanical components.
The following applies to PL c/SIL 1:
 10−6 ≤ 𝑃𝐹𝐻𝐷 < 3 10−5
 The circuit design may be a single-channel design.

4.1.1 Interconnection examples

Example of an emergency stop interconnection


Assign the emergency stop signal to the F-DI on a single-channel basis to achieve
PL c/SIL 1.
Figure 4-1 Emergency stop interconnection for PL c/SIL 1

F-DI
 Siemens AG 2015 All rights reserved

E-stop

Example of a safety door interconnection


Assign the position switch signal to the F-DI on a single-channel basis to achieve
PL c/SIL 1.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 12
4 PL and SIL
4.1 Achieving PL c/SIL 1

Figure 4-2 Interconnection of a position switch for PL c/SIL 1

F-DI

Position switch

4.1.2 Settings in the STEP 7 hardware configuration

You can assign – on a single-channel basis – the emergency stop pushbutton (or
position switch) to any channel (shown for channel 0 in the below figure).
 Siemens AG 2015 All rights reserved

Figure 4-3 Settings for the F-DI in the hardware configuration

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 13
4 PL and SIL
4.1 Achieving PL c/SIL 1

Table 4-2 Explanation of the above figure


No. Explanation
Select the appropriate channel pair (here: “Channel 0, 8”).

The default setting is “1oo1 evaluation”.


Note: 1oo1 = 1 out of 1
The channels are activated by default.
Note: You should deactivate unused channels.
For PL c/SIL 1, you can set internal or external sensor supply.
Note: We recommend the internal sensor supply offered in the hardware
configuration of the respective user scenarios.
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 14
4 PL and SIL
4.2 Achieving PL d/SIL 2

4.2 Achieving PL d/SIL 2


General
This chapter deals with emergency stops and position switches. The statements
generally apply to electromechanical components.
The following applies to PL d/SIL 2:
 10−7 ≤ 𝑃𝐹𝐻𝐷 < 10−6
 The circuit design should be a two-channel design ∗1 ).
 Internal or external sensor supply can be used.
1
∗ ) Single-channel circuit design (hardware fault tolerance (HFT) = 0) is basically
possible for PL d/SIL 2; in this case, however, you have to increase the safe failure
fraction (SFF). When HFT = 0, this value would be in the following range:
90% ≤ 𝑆𝐹𝐹 < 99%

Note The correlation between HFT and SFF can be found in table 5 of
IEC 62061 (see \4\). For help with IEC 62061, please refer to \7\.
 Siemens AG 2015 All rights reserved

4.2.1 Interconnection examples

Example of an emergency stop


Assign the emergency stop signal to the F-DI on a two-channel basis to achieve
PL d/SIL 2.
Figure 4-4 Emergency stop interconnection for PL d/SIL 2
F-DI

E-stop

Example of a safety door application


Use two position switches to achieve PL d/SIL 2. Assign each switch to the F-DI on
a single-channel basis. The evaluation itself is performed on a two-channel basis
(for more information, please refer to chapter 4.2.2).

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 15
4 PL and SIL
4.2 Achieving PL d/SIL 2

Figure 4-5 Interconnection of a position switch for PL d/SIL 2


F-DI

Position switch 1

Position switch 2

4.2.2 Settings in the STEP 7 hardware configuration

Emergency stop
 Siemens AG 2015 All rights reserved

You can assign the emergency stop to any provided channel pair (this is shown for
the channel pair 0 and 8 in the below figure).
Figure 4-6 Settings of the F-DI for the emergency stop in the hardware configuration

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 16
4 PL and SIL
4.2 Achieving PL d/SIL 2

Table 4-3 Explanation of the above figure


No. Explanation
Select the appropriate channel pair (here: “Channel 0, 8”).

Select “1oo2 evaluation, equivalent”


Note: 1oo1 = 1 out of 2, equivalent due to the same logic (normally closed contact,
NC/NC) of the sensors
For PL d/SIL 2, after a channel fault, reintegration requires a FALSE signal.

The channels are activated by default.

For PL d/SIL 2, you can set internal or external sensor supply.


Note: We recommend the internal sensor supply offered in the hardware
configuration of the respective user scenarios.
The channels are activated by default.

Same as no.

Position switches
In the prepared examples, the1oo2 evaluation of the position switches is performed
by the FB SFDOOR F-library block. This block requires a single-channel signal at
each of two inputs. For this reason, each of the two inputs is parameterized as a
1oo1 evaluation in the hardware configuration.
 Siemens AG 2015 All rights reserved

Figure 4-7 Settings of the F-DI for the position switches in the hardware configuration

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 17
4 PL and SIL
4.3 Achieving PL e/SIL 3

Here, too, the following applies:


 You should deactivate unused channels.
 For PL d/SIL 2, you can set internal or external sensor supply.
We recommend internal sensor supply.
 For PL d/SIL 2, after a channel fault, reintegration requires a FALSE signal. For
the safety door, this is automatically done by the FB SFDOOR F-library block
so that, in the hardware configuration, the “Test 0-Signal not necessary” setting
can be kept.

Note To implement a 1oo1 evaluation with two sensors for each switch, it is not
mandatory to select a channel pair (e.g., 0, 8 or 1, 9 or …).

Figure 4-8 1oo2 evaluation in the FB SFDOOR F-library block

1oo2 evaluation
is performed
in the block
 Siemens AG 2015 All rights reserved

FB SFDOOR evaluates the signals of the position switch received via IN1 and IN2
in the F-program.

4.3 Achieving PL e/SIL 3


General
This chapter deals with emergency stops and position switches. The statements
generally apply to electromechanical components.
The following applies to PL e/SIL 3:
 The circuit design must be a two-channel design and a cross-circuit must be
safely detected.
 10−8 ≤ 𝑃𝐹𝐻𝐷 < 10−7

4.3.1 Interconnection examples

Example of an emergency stop


The interconnection for SIL 3/PL e is the same as the one shown in Figure 4-4 for
PL d/SIL 2.

Example of a safety door application


The interconnection for SIL 3/PL e is the same as the one shown in Figure 4-5 for
PL d/SIL 2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 18
4 PL and SIL
4.3 Achieving PL e/SIL 3

4.3.2 Settings in the STEP 7 hardware configuration

Emergency stop
The settings of PL d/SIL 2 apply. In addition, the following applies:
The ability to withstand crossover required by PL e/SIL 3 can only be implemented
using internal sensor supply.
Figure 4-9 Activating the short-circuit test

Note You can deactivate the short-circuit test if you can otherwise rule out a cross-
circuit, for example, by installing protected lines or in the case of sensors that
perform internal short-circuit monitoring.
 Siemens AG 2015 All rights reserved

Position switches
The statements under “Position switches” in chapter 4.2.2 apply. In addition, the
statements made on the emergency stop earlier in this chapter (4.3.2) apply
accordingly.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 19
5 Prepared User Scenarios

5 Prepared User Scenarios


Prepared user scenarios
In many areas of production engineering, emergency stop buttons and safety doors
are typical safety devices to implement your safety function. Various options exist
for implementing typical safety functions with emergency stop and/or safety door.
From a total of 30 user scenarios, we offer you solutions for your safety function
with emergency stop and safety door. All solutions include the F-block that solves
the automation task.
Simply select your application from the matrix on the page following the next page.

Examples of using the matrix


Example 1: You want to safely shut down a drive using an emergency stop
pushbutton.
Figure 5-1 Emergency stop pushbutton
 Siemens AG 2015 All rights reserved

You will find solutions for this requirement in User Scenarios 1 to 6, depending on
which PL/SIL and which actuators (electromechanical actuators such as contactors
or electric actuators such as drives) you are using.
For PL e/SIL 3 and contactors as actuators, for example, you can use User
Scenario 1. In addition, you are provided with a ready-to-use F-program block that
implements the safety function at PL e according to IEC 13849 or SIL 3 according
to IEC 62061.

Example 2: You want to safely shut down a drive using an emergency stop
pushbutton. The hazardous area should not be accessible during operation and,
after shutting down the drive, it should only be accessible after a delay (e.g., due to
a dangerous slowing down of a machine).

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 20
5 Prepared User Scenarios

Figure 5-2 Emergency stop pushbutton + safety door with guard locking
 Siemens AG 2015 All rights reserved

Depending on which PL/SIL and which actuators (contactor or drive) you are using,
you can use User Scenarios 25 to 30 (emergency stop + safety door with guard
locking) for these safety functions. In this case, too, you are provided with a ready-
to-use F-program block that implements the safety function.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 21
 Siemens AG 2015 All rights reserved

5 Prepared User Scenarios

Matrix of the prepared user scenarios

Direct link to the user scenario

Note User Scenario 25 (emergency stop + safety door with guard locking at PL e/SIL
3 with contactors as actuators) contains additional information on the structure of
the F-program that is also applicable to other user scenarios.

User scenario no. and link to the appropriate chapter


No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Link 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 6.10 6.11 6.12 6.13 6.14 6.15 6.16
No. 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Link 6.17 6.18 6.19 6.20 6.21 6.22 6.23 6.24 6.25 6.26 6.27 6.28 6.29 6.30 6.31

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 22
6 Solution for the User Scenarios

6 Solution for the User Scenarios


Each of the 30 user scenarios is discussed in a separate chapter (chapter 6.2 and
the following chapters). This concisely provides you with all the information
required for the user scenario you are reading. Before we look at the individual
user scenarios, global information that applies to all user scenarios is given in the
next chapter (6.1). At the appropriate points in the individual user scenarios, there
are links to this information.
You can read the next chapter (6.1) or specifically access it from the individual user
scenarios.

6.1 What applies to all user scenarios


6.1.1 Installing the user scenario

Note If you make changes to safety-related settings or the safety program, you will be
prompted for a password. This password is siemens.

When you have selected your user scenario, the following instructions help you
download and use it.
 Siemens AG 2015 All rights reserved

Downloading the S7_1200F_LIB library


1. Download the S7_1200F_LIB.zip file to any Windows directory.
2. Extract the zip file: “Right-click > 7-Zip > Extract”

Opening the S7_1200F_LIB library


3. In TIA Portal, create a new S7 project: “Project > New”.
4. Enter a name and the storage path.
5. Click “Libraries”
Figure 6-1 Opening libraries

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 23
6 Solution for the User Scenarios

6. Click the “open global library” icon


Figure 6-2 “open global library” icon

7. Locate the S7_1200F_LIB file


Important: Uncheck “Open as read-only” before you click “Open”.
Figure 6-3 “Open as read-only” checked

Hardware configuration, F-user block and selection of the user scenario


8. Open the folder of your user scenario (shown here: “01EStopSIL3PLe”).
9. Drag and drop “PLC_1” to “Devices & networks”.
Figure 6-4 Drag and drop hardware configuration to STEP 7 project.
 Siemens AG 2015 All rights reserved

Drag & Drop

10. Open “Program blocks”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 24
6 Solution for the User Scenarios

Figure 6-5 “Program blocks” folder


 Siemens AG 2015 All rights reserved

The F-user block is located in the STEP 7 project.


11. Select “PLC_1 [CPU 1215FC DC/DC/RLY]” > Right-click > “Compile” >
“Hardware (rebuild all)”.
12. Select “PLC_1 [CPU 1215FC DC/DC/RLY]” > Right-click > “Compile” >
“Software (rebuild all blocks)”.
13. “Save project”.

Downloading to the CPU


1. Select the “PLC_1” F-CPU.
Right-click > Download to device > Hardware configuration.
2. Establish an online connection to the S7-1200 FC CPU.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 25
6 Solution for the User Scenarios

Figure 6-6 Preparing the download

3. Select the “PLC_1” F-CPU.


 Siemens AG 2015 All rights reserved

Right-click > Download to device > Software (only changes).

6.1.2 Interlocking mechanisms for safety doors with guard locking

You should read this chapter if you are using a safety door with guard locking.
An output of the F-DQ activates a magnet in the position switch. The magnet
implements guard locking depending on whether
(1 signal from the F-DQ) or not (0 signal from the F-DQ) it is activated.
Figure 6-7 Control of the coil in the position switch

F-DQ

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 26
6 Solution for the User Scenarios

Basically, there are two interlocking mechanisms:


 Locking with electro-magnetic force
 Locking with spring force

Locking with electro-magnetic force


To interlock the safety door, the coil must be controlled with 1 signal.

Locking with spring force


To interlock the safety door, the coil must be de-energized (0 signal).

Which option is preferable?


Locking with spring force has the advantage that in the event of a failure of the
F-DQ channel that controls the coil of the position switch, this channel safely
outputs 0 signal and therefore the coil remains de-energized; this means the guard
locking of the safety door remains active or is automatically activated. For this
reason, the user scenarios for safety doors with guard locking shown here use the
locking with spring force mechanism.

Monitoring the locking device


The SIRIUS 3SE5 position switch allows monitoring of the locking device position.
This information is read in via a standard DI.
 Siemens AG 2015 All rights reserved

Safety door signals


The following section provides an overview of the safety door signals
where
 fDoorCoil
 eMagnet
 sepAct
 hingedSwitch
are variables of the F-program of your user scenario.

Figure 6-8 Correlation between control of guard locking (fDoorCoil variable) and monitoring
of guard locking (eMagnet variable)
fDoorCoil = 0
41
(0 signal from F-DQ)
causes
E1 E2 eMagnet = 1

42
fDoorCoil = 1
41
(1 signal from F-DQ)
causes eMagnet = 0
E1 E2

42

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 27
6 Solution for the User Scenarios

Figure 6-9 Correlation between the actuator and the sepAct variable
Actuator inserted 11
(door closed) causes
sepAct = 1

12
Actuator not inserted 11
(door open) causes
sepAct = 0

12
Figure 6-10 Hinge switch
11
Unoperated
(door closed) hingedSwitch = 1
Hinge switch

12
 Siemens AG 2015 All rights reserved

11
Operated
(door open) sepAct = 0

12

Normative assessment of guard locking


For the normative assessment of a safety door application, a distinction has to
made between:
 Opening and closing of the safety door
 The guard locking of the safety door
Due to the use of spring-actuated lock position switches, guard locking remains
active in the event of an electrical fault (e.g., passivation of the channel of the F-DI)
(safety door cannot be opened).
A fault current on the magnet at a time when the safety door must be closed
(hazardous machine active, fDoorCoil=1) must result in the safe shutdown of the
machine. Theoretically, someone could open the door at this very moment, which
might cause a hazard. Therefore, PL e/SIL 3 e cannot be achieved for the guard
locking.
Chapter 8.4 (see \3\) of DIN EN ISO 14119 addresses this subject and assumes
that in most cases the required PL or SIL of the guard locking function is lower than
the required PL or SIL of the interlocking function. The probability of a guard
locking function failure while a person simultaneously enters the area is considered
to be very low.
The user scenarios provided in this document are based on this assessment.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 28
6 Solution for the User Scenarios

6.1.3 Program structure

The block offered for your user scenario is your user interface (F-user FB). All other
blocks that are used need not be edited. To provide an overall understanding of the
F-user FB within the F-program, some explanations will be given below.

F-library blocks
To implement the respective safety function, the F-user FBs access certified
F-library blocks included in STEP 7 Safety. The following F-library blocks are used
in the application examples shown here:
 Emergency stop (FB ESTOP1)
 Safety door (FB SFDOOR)
 Readback (FB FDBACK)
 Reintegration via all F-I/O (FB ACK_GL)

F-user FB
The F-user FB of your selected user scenario includes at least two of the
above-listed F-library blocks.
Figure 6-11 F-user FB and used F-library blocks

F-user FB
 Siemens AG 2015 All rights reserved

FB SFDOOR

FB ESTOP1

FB FDBACK F-library blocks

FB ACK_GL

While you can change the F-user FB,


the F-library blocks are know-how protected.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 29
6 Solution for the User Scenarios

Note The F-user FBs are also provided to you in a block library. However, this is not
the F-library included in STEP 7 Safety.

Execution of the F-program


The standard program is interrupted by the safety program (F-program) in fixed
time slices. During this process, an F-OB (FOB_RTG1) calls the
Main_Safety_RTG1 F-block.
Figure 6-12 Call of the F-program
 Siemens AG 2015 All rights reserved

FB Main_Safety_RTG1 calls the F-user FB.

6.1.4 Brief description of the F-library blocks

The following section provides a brief description of the functionality of the F-library
blocks.

Note For related information on the individual F-library blocks, please refer to the
STEP 7 online help.
Select the F-library block in the F-program editor > Press “F5”.

Emergency stop: FB ESTOP1


The signals from the emergency stop pushbutton are read in to the F-DI on a
two-channel basis (except for SIL1/PL c). To achieve PL e/SIL 3, both signals must
carry the same signal when the emergency stop pushbutton is actuated within a
certain configurable time. When this time is exceeded, the block reacts in the same
way as when the emergency stop is pressed: By resetting the Q output.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 30
6 Solution for the User Scenarios

Figure 6-13 Discrepancy analysis for the emergency stop

F-CPU

E-stop F-DI
Chnl 1
Discrepancy
Chnl 2 analysis

The evaluation of the two channels is performed in the F-DI. In the F-program, the
processed signal is available as an input in the process image. This always
corresponds to the lower address of the two channels.

Safety door: FB SFDOOR


This F-FB monitors the correct closing of the safety door. In the examples, the
evaluation is performed via two input channels:
 Insertion of the actuator into the position switch
 Position of the hinge switch
 Siemens AG 2015 All rights reserved

Figure 6-14 Reading in position switch/actuator and hinge switch

Position switch
Actuator

Hinge switch

If the two signals do not correlate as expected, this will be detected as a fault and
the Q output will not be set/reset.
Example:
An actuator – that has broken off the swinging part of the safety door – inserted in
the position switch outputs the information “safety door closed” when the safety
door is opened. The hinge switch, in contrast, outputs the information “safety door
open”. This discrepancy is detected by FB SFDOOR and the Q output is reset to 0
signal.
After such a fault, it is always necessary to completely open and close the safety
door before the fault can be acknowledged. This ensures that, for example, an
actuator that has broken off is safely detected.

Readback: FB FDBACK
This block compares, for example for a contactor, whether the state of the
contactor coil correctly correlates with the state of the contactor auxiliary contact.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 31
6 Solution for the User Scenarios

Figure 6-15 FB FDBACK

Contactor auxiliary
contact
K1
Contactor coil

K1

If these two states are not plausible to each other after a configurable period of
time, the Q output (here: the contactor coil) will be safely disabled. This allows you
to react, for example, to a welded contactor.
 Siemens AG 2015 All rights reserved

Reintegration: FB ACK_GL
Passivated F-modules/channels cannot output process values before the fault has
been cleared and the F-module/channel has been reintegrated (see also chapter
6.1.5). With FB ACK_GL used here, you reintegrate the entire F-I/O of an
F-runtime group.

6.1.5 Passivation and reintegration

Passivation
The safety program provides a set of commands that allows you to safely shut
down one or more actuators. Typical applications include emergency stop or the
unauthorized opening of a safety door.
Furthermore, situations can arise where functional errors occur. In this context, the
following example describes a discrepancy error:
Example:
Two sensors (normally closed contacts, NC) are read in via an F-DI. A time value is
configured to evaluate the discrepancy time. If a sensor changes its state, e.g. from
1 to 0 signal, this change must also be made – within the configured discrepancy
time – by the sensor on the other channel; otherwise, the F-system detects a
functional error (here: discrepancy error).
Figure 6-16 Passivation due to discrepancy error
F-DI

Sensor 1 Chnl 1
Discrepancy Time Discrepancy
Sensor 2 Chnl 2 analysis elapsed error

The discrepancy error automatically results in passivation of the respective


channels.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 32
6 Solution for the User Scenarios

In case of passivation, the affected channel outputs substitute values (0 signal)


instead of the process values. The author of the F-program must ensure that 0
signal corresponds to the safe state.

Reintegration
Even if the error that caused passivation is no longer present, passivation persists.
To enable the passivated channel to output process values, reintegration is
required.

Note The term “depassivation” is also used as a synonym for reintegration. This
document uses only the term reintegration.

Reintegration of the F-I/O after clearing the errors requires user acknowledgment
with a positive edge at the ACK_REI variable of the F-I/O DB. For this purpose, you
can provide, for example, the acknowledgment button, a separate button or also an
HMI.

Death or severe personal injury may result if you implement reintegration


in the program without deliberate acknowledgment (automatic
reintegration).
 Siemens AG 2015 All rights reserved

WARNING
Automatic reintegration may only be used if it does not result in hazards such as
the unexpected startup of hazardous machines. The risk analysis is to confirm
this.

In addition, the FB ACK_GL F-library block provides you with the option to
reintegrate the entire F-I/O (see chapter 6.1.4).

6.1.6 Value status

The value status is binary additional information on a channel value of an F-I/O and
entered in the process input image (PII).
Variable names that contain the value status have the “VS” suffix at the end. The
value status provides you with information on the valid channel value:
 1: A valid process value is output for the channel.
 0: A substitute value is output for the channel.

The table below shows an example of the address assignment in the PII for the 16-
channel F-DI:

Table 6-1 Example of the address assignment in the PII for a fail-safe digital input module with 16
channels
Byte in Assigned bits in the F-CPU per F-module:
the
F-CPU 7 6 5 4 3 2 1 0

x+0 DI8 DI7 DI6 DI5 DI4 DI3 DI2 DI1


x+1 DI16 DI15 DI14 DI13 DI12 DI11 DI10 DI9
x+2 DI8 DI7 DI6 DI5 DI4 DI3 DI2 DI1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 33
6 Solution for the User Scenarios

Byte in Assigned bits in the F-CPU per F-module:


the
F-CPU 7 6 5 4 3 2 1 0

value value value value value value value value


status status status status status status status status
x+3 DI16 DI15 DI14 DI13 DI12 DI11 DI10 DI9
value value value value value value value value
status status status status status status status status

Example:
The address of the value status of a fail-safe input E0.0 would be E2.0.

6.1.7 Notes on the electric actuators

Among other things, the user scenarios provided in this document differ in the
types of actuators used:
 Electromechanical actuators
 Electric actuators

In the case of electromechanical actuators (e.g., contactors), the readback signal is


processed accordingly by the actuator. In the case of certified electric actuators
 Siemens AG 2015 All rights reserved

(e.g., F-drives), safety-related checks are performed within the actuator. For this
case, we provide you with an appropriate signal on the F-DQ (e.g.,
signalPLdSIL2Quality) that meets the required PL/SIL of the respective user
scenario.

NOTICE It is possible that the required PL/SIL is not achieved.


Make sure that the electric actuator is also suitable for the required PL/SIL of the
safety function.

6.2 User Scenario 1:


Emergency Stop at PL e/SIL 3, Electromechanical
Actuator
6.2.1 Safety function

The safety function is as follows:


Pressing the emergency stop button safely shuts down the actuator.

6.2.2 Hardware and software components

You need the hardware and software components listed below.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 34
6 Solution for the User Scenarios

Hardware components
Table 6-2 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)
Contactors 2 3RT2015-2BB42

Software components
Table 6-3 Software
Component No. Article number Note
 Siemens AG 2015 All rights reserved

STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional


STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

6.2.3 Wiring

The figure below shows the wiring of the hardware components.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 35
6 Solution for the User Scenarios

Figure 6-17 Emergency stop PL e/SIL 3 wiring

24V DC
M

stop start ack

.0

.1

.2

L1
K2 K1
M

L+ Vs1
.3 L+ 0+
K1
.0
.4 M
K2
 Siemens AG 2015 All rights reserved

0-

.0
Vs2

eStop

Note In the F-program, the auxiliary contacts of the contactors K1 and K2 are termed
“feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 36
6 Solution for the User Scenarios

6.2.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-18 Core functionality

Start

Actuators Yes E-stop


switch off pressed?

No No
E-stop
released
?

Yes

No
Stop caused by
e-stop or
1st start?

Yes
 Siemens AG 2015 All rights reserved

Acknowledge

Actuators Yes
Operational stop?
switch off

Start conditions No
are complied

Actuators
on

6.2.5 Description of the user block FB F100EStopSIL3PLe

Note The block names of the prepared F-user FBs start with an “F” and a number for
the block number that refers to the user scenario number (e.g., FB
F23EStopFDoorSIL3PLe refers to User Scenario 23). The only exception to this
convention is FB F100EStopSIL3PLe, which refers to User Scenario 1. “100”
was used instead of “1”, because the block number “1” is assigned to the
Main_Safety_RTG1 by default.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 37
6 Solution for the User Scenarios

Figure 6-19 F-user FB F100EStopSIL3PLe

NOTICE For F-blocks, the enable input (EN) must not be wired.

Parameter description
The following section describes the inputs and outputs of FB F100EStopSIL3PLe.
 Siemens AG 2015 All rights reserved

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-4 Inputs of FB F100EStopSIL3PLe


Description Symbol Data type Convention Note
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment after triggering the
safety function
to reintegrate F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Readback signal from readbackK1 BOOL
auxiliary contact of
contactor K1 NC
0: Contactor has
Readback signal from readbackK2 BOOL picked up
auxiliary contact of
contactor K2
Emergency stop eStop BOOL NC/NC
pushbutton 0: Emergency
stop triggered
Value status for output K1K2_VS BOOL 0: Fault
K1K2
Time between the control feedbackTime TIME
command and the response
of the contactors

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 38
6 Solution for the User Scenarios

Table 6-5 Outputs of FB F100EStopSIL3PLe


Description Symbol Data type Convention Note
Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
Release releaseEStop BOOL 1: Emergency stop Information of the
emergency stop released and F-library blocks.
acknowledged Can be read out,
Acknowledgment AckReqEStop BOOL 1: for example, in the
required standard user
Acknowledgment
program.
required

6.2.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F100EStopSIL3PLe. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
 Siemens AG 2015 All rights reserved

WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.3.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 39
6 Solution for the User Scenarios

6.2.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released

Table 6-6 Start actuator


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start K1K2 picks up
3 Press stop K1K2 drops out
 Siemens AG 2015 All rights reserved

Table 6-7 Safety function: Trigger emergency stop


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start K1K2 picks up
3 Press the emergency stop (eStop) K1K2 drops out
4 Release the emergency stop (eStop)
5 Press start K1K2 does not pick up (acknowledgment
required)
6 Start again with no. 1

Table 6-8 Trigger readback error


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start K1K2 picks up
3 Make sure that K1 or K2 does not drop out when Simulated welding of the contactor
shutting down
4 Press stop Readback error is detected
5 Let the contactor drop out
6 Press start K1K2 does not pick up (acknowledgment
required)
7 Start again with no. 1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 40
6 Solution for the User Scenarios

6.3 User Scenario 2:


Emergency Stop at PL d/SIL 2, Electromechanical
Actuator
6.3.1 Safety function

The safety function is as follows:


Pressing the emergency stop button safely shuts down the actuator.

6.3.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-9 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
 Siemens AG 2015 All rights reserved

SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0


4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)
Contactors 2 3RT2015-2BB42

Software components
Table 6-10 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 41
6 Solution for the User Scenarios

6.3.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-20 Emergency stop PL d/SIL 2 wiring

24V DC
M

stop start ack

.0

.1

.2

L1
K2 K1
M
 Siemens AG 2015 All rights reserved

L+ Vs1
.3 L+ 0+
K1
.0
.4 M
K2

0-

eStop

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 42
6 Solution for the User Scenarios

6.3.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-21 Core functionality

Start

Actuators Yes E-stop


switch off pressed?

No No
E-stop
released
?

Yes

No
Stop caused by
e-stop or
1st start?

Yes
 Siemens AG 2015 All rights reserved

Acknowledge

Actuators Yes
Operational stop?
switch off

Start conditions No
are complied

Actuators
on

6.3.5 Description of the user block FB F02EStopSIL2PLd

Figure 6-22 F-user FB F02EStopSIL2PLd

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 43
6 Solution for the User Scenarios

NOTICE For F-blocks, the enable input (EN) must not be wired.

The following section describes the inputs and outputs of FB F02EStopSIL2PLd.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-11 Inputs of FB F02EStopSIL2PLd


Description Symbol Data type Convention Note
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment after triggering the
safety function
to reintegrate F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
 Siemens AG 2015 All rights reserved

Readback signal from readbackK1 BOOL


auxiliary contact of
contactor K1 NC
0: Contactor has
Readback signal from readbackK2 BOOL picked up
auxiliary contact of
contactor K2
Emergency stop eStop BOOL NC/NC
pushbutton 0: Emergency
stop triggered
Value status for output K1K2_VS BOOL 0: Fault
K1K2
Time between the control feedbackTime TIME
command and the response
of the contactors

Table 6-12 Outputs of FB F02EStopSIL2PLd


Description Symbol Data type Convention Note
Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
Release releaseEStop BOOL 1: Emergency stop Information of the
emergency stop released and F-library blocks.
acknowledged Can be read out,
Acknowledgment AckReqEStop BOOL 1: for example, in the
required Acknowledgment standard user
program.
required

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 44
6 Solution for the User Scenarios

6.3.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F02EStopSIL2PLd. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

6.3.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.
 Siemens AG 2015 All rights reserved

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released

Table 6-13 Start actuator


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start K1K2 picks up
3 Press stop K1K2 drops out

Table 6-14 Safety function: Trigger emergency stop


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start K1K2 picks up
3 Press the emergency stop (eStop) K1K2 drops out
4 Release the emergency stop (eStop)
5 Press start K1K2 does not pick up (acknowledgment
required)
6 Start again with no. 1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 45
6 Solution for the User Scenarios

Table 6-15 Trigger readback error


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start K1K2 picks up
3 Make sure that K1 or K2 does not drop out when Simulated welding of the contactor
shutting down
4 Press stop Readback error is detected
5 Let the contactor drop out
6 Press start K1K2 does not pick up (acknowledgment
required)
7 Start again with no. 1
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 46
6 Solution for the User Scenarios

6.4 User Scenario 3:


Emergency Stop at PL c/SIL 1, Electromechanical
Actuator
6.4.1 Safety function

The safety function is as follows:


Pressing the emergency stop button safely shuts down the actuator.

6.4.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-16 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
 Siemens AG 2015 All rights reserved

DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0DG3
pushbutton (NC)
Contactors 1 3RT2015-2BB42

Software components
Table 6-17 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 47
6 Solution for the User Scenarios

6.4.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-23 Emergency stop PL c/SIL 1 wiring

24V DC
M

stop start ack

.0

.1

.2

L1
K1
M
 Siemens AG 2015 All rights reserved

Vs1 0+
L+
.3 L+
K1
.0
M 0-

eStop

Note In the F-program, the auxiliary contact of contactor K1 is termed “feedback”.

Note Due to the use of the FB FDBACK F-library block, it is useful to monitor
readback. Basically, monitoring the readback signals is not required for PL c/SIL
1.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 48
6 Solution for the User Scenarios

6.4.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-24 Core functionality

Start

Actuator Yes E-stop


switches off pressed?

No No
E-stop
pressed
?

Yes

No
Stop caused by
e-stop or
1st start?

Yes
 Siemens AG 2015 All rights reserved

Acknowledge

Actuator Yes
Operational stop?
switches off

Start conditions No
are complied

Actuator
on

6.4.5 Description of the user block FB F03EStopSIL1PLc

Figure 6-25 F-user FB F03EStopSIL1PLc

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 49
6 Solution for the User Scenarios

NOTICE For F-blocks, the enable input (EN) must not be wired.

The following section describes the inputs and outputs of FB F03EStopSIL1PLc.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-18 Inputs of FB F03EStopSIL1PLc


Description Symbol Data type Convention Note
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment after triggering the
safety function
to reintegrate F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
 Siemens AG 2015 All rights reserved

Readback signal from readbackK1 BOOL NC


auxiliary contact of 0: Contactor has
contactor K1 picked up
Emergency stop eStop BOOL NC
pushbutton 0: Emergency
stop triggered
Value status of output K1 K1VS BOOL 0: Fault
Time between the control feedbackTime TIME
command and the response
of the contactor

Table 6-19 Outputs of FB F03EStopSIL1PLc


Description Symbol Data type Convention Note
Contactor K1 K1 BOOL 1: Actuator Actuator on F-DQ
switched
(contactor has
picked up)
Release releaseEStop BOOL 1: Emergency stop Information of the
emergency stop released and F-library blocks.
acknowledged Can be read out,
Acknowledgment AckReqEStop BOOL 1: for example, in the
required Acknowledgment standard user
required program.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 50
6 Solution for the User Scenarios

6.4.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F03EStopSIL1PLc. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.1.2.

6.4.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
 Siemens AG 2015 All rights reserved

scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released

Table 6-20 Start actuator


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start K1 picks up
3 Press stop K1 drops out

Table 6-21 Safety function: Trigger emergency stop


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start K1 picks up
3 Press the emergency stop (eStop) K1 drops out
4 Release the emergency stop (eStop)
5 Press start K1 does not pick up (acknowledgment
required)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 51
6 Solution for the User Scenarios

No. Action Comment


6 Start again with no. 1

Table 6-22 Trigger readback error


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start K1 picks up
3 Make sure that K1 does not drop out when Simulated welding of the contactor
shutting down
4 Press stop Readback error is detected
5 Let the contactor drop out
6 Press start K1 does not pick up (acknowledgment
required)
7 Start again with no. 1
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 52
6 Solution for the User Scenarios

6.5 User Scenario 4:


Emergency Stop at PL e/SIL 3, Electric Actuator
6.5.1 Safety function

The safety function is as follows:


Pressing the emergency stop button safely shuts down the actuator.

6.5.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-23 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
 Siemens AG 2015 All rights reserved

4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)

Software components
Table 6-24 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 53
6 Solution for the User Scenarios

6.5.3 Wiring

The figure below shows the wiring of the hardware components.

Figure 6-26 Emergency stop PL e/SIL 3 wiring

24V DC
M

stop start ack

.0

.1

.2

L1
 Siemens AG 2015 All rights reserved

L+ Vs1
L+ 0+
.0
M signalPLeSIL3Quality

0-

eStop

Note For the actuators used in this user scenario, please also refer to chapter 6.1.7.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 54
6 Solution for the User Scenarios

6.5.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-27 Core functionality

Start

Actuators Yes E-stop


switch off pressed?

No No
E-stop
released
?

Yes

No
Stop caused by
e-stop or
1st start?

Yes
 Siemens AG 2015 All rights reserved

Acknowledge

Actuators Yes
Operational stop?
switch off

Start conditions No
are complied

Actuators
on

6.5.5 Description of the user block FB F04EStopSIL3PLe

Figure 6-28 F-user FB F04EStopSIL3PLe

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 55
6 Solution for the User Scenarios

NOTICE For F-blocks, the enable input (EN) must not be wired.

Parameter description
The following section describes the inputs and outputs of FB F04EStopSIL3PLe.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-25 Inputs of FB F04EStopSIL3PLe


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment after triggering
the safety
function
to reintegrate F-
I/O
Start request start BOOL NO
1: Start request
 Siemens AG 2015 All rights reserved

Stop request stop BOOL NC


0: Stop request
Emergency stop eStop BOOL NC/NC
pushbutton 0: Emergency
stop triggered
Value status of output signalPLeSIL3QualityVS BOOL 0: Fault
signalPLeSIL3Quality

Table 6-26 Outputs of FB F04EStopSIL3PLe


Description Symbol Data type Convention Note
Output signal signalPLeSIL3Quality BOOL 1: F-DQ output
from the F-DQ to set
the electric
actuator
Release releaseEStop BOOL 1: Emergency Information of the
emergency stop stop released F-library blocks. Can
and be read out, for
acknowledged example, in the
standard user
program.

6.5.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F04EStopSIL3PLe. Customizations are possible.
The associated HW Config can be found in the provided block library.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 56
6 Solution for the User Scenarios

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.3.2.

6.5.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 Siemens AG 2015 All rights reserved

 No faults
 Emergency stop released

Table 6-27 Start actuator


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start signalPLeSIL3Quality=1
3 Press stop signalPLeSIL3Quality=0

Table 6-28 Safety function: Trigger emergency stop


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start signalPLeSIL3Quality=1
3 Press the emergency stop (eStop) signalPLeSIL3Quality=0
4 Release the emergency stop (eStop)
5 Press start signalPLeSIL3Quality=0
(acknowledgment required)
6 Start again with no. 1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 57
6 Solution for the User Scenarios

6.6 User Scenario 5:


Emergency Stop at PL d/SIL 2, Electric Actuator

Note You are using a drive as an actuator. Please also follow the information in
chapter 6.1.7.

6.6.1 Safety function

The safety function is as follows:


Pressing the emergency stop button safely shuts down the actuator.

6.6.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-29 Hardware
 Siemens AG 2015 All rights reserved

Component No. Article number Note


CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)

Software components
Table 6-30 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

6.6.3 Wiring

The figure below shows the wiring of the hardware components.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 58
6 Solution for the User Scenarios

Figure 6-29 Emergency stop PL d/SIL 2 wiring

24V DC
M

stop start ack

.0

.1

.2

L1

L+ Vs1
L+ 0+
.0
signalPLdSIL2Quality
M
 Siemens AG 2015 All rights reserved

0-

eStop

Note For the actuators used in this user scenario, please also refer to chapter 6.1.7.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 59
6 Solution for the User Scenarios

6.6.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-30 Core functionality

Start

Actuators Yes E-stop


switch off pressed?

No No
E-stop
released
?

Yes

No
Stop caused by
e-stop or
1st start?

Yes
 Siemens AG 2015 All rights reserved

Acknowledge

Actuators Yes
Operational stop?
switch off

Start conditions No
are complied

Actuators
on

6.6.5 Description of the user block FB F05EStopSIL2PLd

Figure 6-31 F-user FB F05EStopSIL2PLd

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 60
6 Solution for the User Scenarios

NOTICE For F-blocks, the enable input (EN) must not be wired.

The following section describes the inputs and outputs of FB F05EStopSIL2PLd.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-31 Inputs of FB F05StopSIL2PLd


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment after triggering
the safety
function
to reintegrate F-
I/O
Start request start BOOL NO
1: Start request
 Siemens AG 2015 All rights reserved

Stop request stop BOOL NC


0: Stop request
Emergency stop eStop BOOL NC/NC
pushbutton 0: Emergency
stop triggered
Value status of output signalPLdSIL2QualityVS BOOL 0: Fault
signalPLdSIL2Quality

Table 6-32 Outputs of FB F05StopSIL2PLd


Description Symbol Data type Convention Note
Output signal signalPLdSIL2Quality BOOL 1: F-DQ output
from the F-DQ to set
the electric
actuator
Release releaseEStop BOOL 1: Emergency Information of the
emergency stop stop released F-library blocks. Can
and be read out, for
acknowledged example, in the
standard user
program.

6.6.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F05StopSIL2PLd. Customizations are possible.
The associated HW Config can be found in the provided block library.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 61
6 Solution for the User Scenarios

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

6.6.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 Siemens AG 2015 All rights reserved

 No faults
 Emergency stop released

Table 6-33 Start actuator


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start signalPLdSIL2Quality=1
3 Press stop signalPLdSIL2Quality=0

Table 6-34 Safety function: Trigger emergency stop


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start signalPLdSIL2Quality=1
3 Press the emergency stop (eStop) signalPLdSIL2Quality=0
4 Release the emergency stop (eStop)
5 Press start signalPLdSIL2Quality=0
(acknowledgment required)
6 Start again with no. 1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 62
6 Solution for the User Scenarios

6.7 User Scenario 6:


Emergency Stop at PL c/SIL 1, Electric Actuator
6.7.1 Safety function

The safety function is as follows:


Pressing the emergency stop button safely shuts down the actuator.

6.7.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-35 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
 Siemens AG 2015 All rights reserved

SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0


4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0DG3
pushbutton (NC)

Software components
Table 6-36 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 63
6 Solution for the User Scenarios

6.7.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-32 Emergency stop PL c/SIL 1 wiring

24V DC
M

stop start ack

.0

.1

.2

L1

M
 Siemens AG 2015 All rights reserved

L+ Vs1
L+ 0+
.0
M
signalPLcSIL1Quality

0-

eStop

Note For the actuators used in this user scenario, please also refer to chapter 6.1.7.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 64
6 Solution for the User Scenarios

6.7.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-33 Core functionality

Start

Actuator Yes E-stop


switches off pressed?

No No
E-stop
released
?

Yes

No
Stop caused by
e-stop or
1st start?

Yes
 Siemens AG 2015 All rights reserved

Acknowledge

Actuator Yes
Operational stop?
switches off

Start conditions No
are complied

Actuator
on

6.7.5 Description of the user block FB F06EStopSIL1PLc

Figure 6-34 F-user FB F06EStopSIL1PLc

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 65
6 Solution for the User Scenarios

NOTICE For F-blocks, the enable input (EN) must not be wired.

The following section describes the inputs and outputs of FB F06EStopSIL1PLc.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-37 Inputs of FB F06EStopSIL1PLc


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment after triggering
the safety
function
to reintegrate F-
I/O
Start request start BOOL NO
1: Start request
 Siemens AG 2015 All rights reserved

Stop request stop BOOL NC


0: Stop request
Emergency stop eStop BOOL NC
pushbutton 0: Emergency
stop triggered
Value status of output signalPLcSIL1QualityVS BOOL 0: Fault
signalPLcSIL1Quality

Table 6-38 Outputs of FB F06EStopSIL1PLc


Description Symbol Data type Convention Note
Output signal signalPLcSIL1Quality BOOL 1: F-DQ output
from the F-DQ to set
the electric
actuator
Release releaseEStop BOOL 1: Emergency Information of the
emergency stop stop released and F-library blocks.
acknowledged Can be read out,
Acknowledgment AckReqEStop BOOL 1: for example, in the
required standard user
Acknowledgment
program.
required

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 66
6 Solution for the User Scenarios

6.7.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F06EStopSIL1PLc. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.1.2.

6.7.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
 Siemens AG 2015 All rights reserved

scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
Table 6-39 Start actuator
No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start signalPLcSIL1Quality=1
3 Press stop signalPLcSIL1Quality=0

Table 6-40 Safety function: Trigger emergency stop


No. Action Comment
1 Press ack Acknowledgment mandatory when starting
the scenario for the first time
2 Press start signalPLcSIL1Quality=1
3 Press the emergency stop (eStop) signalPLcSIL1Quality=0
4 Release the emergency stop (eStop)
5 Press start signalPLcSIL1Quality=0
(acknowledgment required)
6 Start again with no. 1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 67
6 Solution for the User Scenarios

6.8 User Scenario 7:


Safety Door without Guard Locking at PL e/SIL 3,
Electromechanical Actuator
6.8.1 Safety function

The safety function is as follows:


Opening the safety door safely shuts down the actuator.

6.8.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-41 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
 Siemens AG 2015 All rights reserved

SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0


4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch 2 3SE5132-1QV20
without tumbler
Actuator for position 2 3SE5000-0AV0
switch
Contactors 2 3RT2015-2BB42

Software components
Table 6-42 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 68
6 Solution for the User Scenarios

6.8.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-35 Safety door without guard locking PL e/SIL 3 wiring

24V DC
M

stop start ack

.0

.1

.2

L1
K2 K1
M
 Siemens AG 2015 All rights reserved

L+ Vs1
.3 L+ 0+
K1
.0
.4 M
K2

0-

posSwitch2 posSwitch1

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 69
6 Solution for the User Scenarios

6.8.4 Brief description of the core functionality

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Figure 6-36 Safety door without guard locking – core functionality

Start

Actuators Yes Safety door


switch off open?

No

No
Actuators Yes
Safety door Operational stop?
 Siemens AG 2015 All rights reserved

closed switch off


?
No
Yes

No
Safety door
closed
?
Acknowledge Yes

Start conditions
are complied

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 70
6 Solution for the User Scenarios

6.8.5 Description of the user block FB F07FDoorSIL3PLe

Figure 6-37 F-user FB F07FDoorSIL3PLe

NOTICE For F-blocks, the enable input (EN) must not be wired.
 Siemens AG 2015 All rights reserved

Parameter description
The following section describes the inputs and outputs of FB F07FDoorSIL3PLe.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-43 Inputs of FB F07FDoorSIL3PLe


Description Symbol Data type Convention Note
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after triggering
the safety
function
 to reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Readback signal from readbackK1 BOOL
auxiliary contact of
contactor K1 NC
0: Contactor has
Readback signal from readbackK2 BOOL picked up
auxiliary contact of
contactor K2
Position switch 1 posSwitch1 BOOL NC
1: Actuator

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 71
6 Solution for the User Scenarios

Description Symbol Data type Convention Note


inserted (safety
door closed)
Position switch 2 posSwitch2 BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch 1 value posSwitch1VS BOOL
status
VS: value status
Position switch 2 value posSwitch2VS BOOL
status 0: Fault Chapter 6.1.6

Value status of output K1K2 K1K2VS BOOL


Time between the control feedbackTime TIME
command and the response
of the contactors

Table 6-44 Outputs of FB F07FDoorSIL3PLe


Description Symbol Data type Convention Note
Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
 Siemens AG 2015 All rights reserved

Release safety releaseFDoor BOOL 1: With regard to Information of the


door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
Acknowledgment ackReqFDoor BOOL 1: standard user
program.
for safety door Acknowledgment
required

6.8.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F07FDoorSIL3PLe. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.3.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 72
6 Solution for the User Scenarios

6.8.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed
Table 6-45 Start actuator
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time or in
the event of a safety door fault, open and close
the door completely.
2 Press ack Required when starting the scenario for the first
time and after each opening of the safety door.
3 Press start K1K2 picks up
 Siemens AG 2015 All rights reserved

4 Press stop K1K2 drops out

Table 6-46 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time or in
the event of a safety door fault, open and close
the door completely.
2 Press ack Required when starting the scenario for the first
time and after each opening of the safety door.
3 Press start K1K2 picks up
4 Open the safety door K1K2 drops out
5 Close the safety door
6 Start again with no. 2

Table 6-47 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time or in
the event of a safety door fault, open and close
the door completely.
2 Press ack Acknowledgment mandatory when starting the
scenario for the first time
3 Press start K1K2 picks up
4 Make sure that K1 or K2 does not drop out Simulated welding of the contactor
when shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out
7 Press start K1K2 does not pick up (acknowledgment

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 73
6 Solution for the User Scenarios

No. Action Comment


required)
8 Start with no. 2

6.9 User Scenario 8:


Safety Door without Guard Locking at PL d/SIL 2,
Electromechanical Actuator
6.9.1 Safety function

The safety function is as follows:


Opening the safety door safely shuts down the actuator.

6.9.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-48 Hardware
 Siemens AG 2015 All rights reserved

Component No. Article number Note


CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch 2 3SE5132-1QV20
without tumbler
Actuator for position 2 3SE5000-0AV0
switch
Contactors 2 3RT2015-2BB42

Software components
Table 6-49 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 74
6 Solution for the User Scenarios

6.9.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-38 Safety door without guard locking PL d/SIL 2 wiring

24V DC
M

stop start ack

.0

.1

.2

L1
K2 K1
M
 Siemens AG 2015 All rights reserved

L+ Vs1
.3 L+ 0+
K1
.0
.4 M
K2

0-

posSwitch2 posSwitch1

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 75
6 Solution for the User Scenarios

6.9.4 Brief description of the core functionality

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Figure 6-39 Safety door without guard locking – core functionality

Start

Actuators Yes Safety door


switch off open?

No

No
Actuators Yes
Safety door
Operational stop?
closed switch off
 Siemens AG 2015 All rights reserved

?
No
Yes

No
Safety door
closed
?
Acknowledge Yes

Start conditions
are complied

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 76
6 Solution for the User Scenarios

6.9.5 Description of the user block FB F08FDoorSIL2PLd

Figure 6-40 F-user FB F08FDoorSIL2PLd

NOTICE For F-blocks, the enable input (EN) must not be wired.
 Siemens AG 2015 All rights reserved

The following section describes the inputs and outputs of FB F08FDoorSIL2PLd.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-50 Inputs of FB F09FDoorSIL1PLc


Description Symbol Data type Convention Note
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after triggering
the safety
function
 to reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Readback signal from readbackK1 BOOL
auxiliary contact of
contactor K1 NC
0: Contactor has
Readback signal from readbackK2 BOOL picked up
auxiliary contact of
contactor K2
Position switch 1 posSwitch1 BOOL NC
1: Actuator
inserted (safety
door closed)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 77
6 Solution for the User Scenarios

Description Symbol Data type Convention Note


Position switch 2 posSwitch2 BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch 1 value posSwitch1VS BOOL
status
VS: value status
Position switch 2 value posSwitch2VS BOOL
status 0: Fault Chapter 6.1.6

Value status of output K1K2 K1K2VS BOOL


Time between the control feedbackTime TIME
command and the response
of the contactors

Table 6-51 Outputs of FB F08FDoorSIL2PLd


Description Symbol Data type Convention Note
Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
 Siemens AG 2015 All rights reserved

is possible (safety Can be read out,


door closed) for example, in the
Acknowledgment ackReqFDoor BOOL 1: standard user
for safety door program.
Acknowledgment
required

6.9.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F08FDoorSIL2PLd. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 78
6 Solution for the User Scenarios

6.9.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed

Table 6-52 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time or in
the event of a safety door fault, open and close
the door completely.
2 Press ack Required when starting the scenario for the first
time and after each opening of the safety door.
 Siemens AG 2015 All rights reserved

3 Press start K1K2 picks up


4 Press stop K1K2 drops out

Table 6-53 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time or in
the event of a safety door fault, open and close
the door completely.
2 Press ack Required when starting the scenario for the first
time and after each opening of the safety door.
3 Press start K1K2 picks up
4 Open the safety door K1K2 drops out
5 Close the safety door
6 Start again with no. 2

Table 6-54 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time or in
the event of a safety door fault, open and close
the door completely.
2 Press ack Acknowledgment mandatory when starting the
scenario for the first time
3 Press start K1K2 picks up
4 Make sure that K1 or K2 does not drop out Simulated welding of the contactor
when shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 79
6 Solution for the User Scenarios

No. Action Comment


7 Press start K1K2 does not pick up (acknowledgment
required)
8 Start with no. 2

6.10 User Scenario 9:


Safety Door without Guard Locking at PL c/SIL 1,
Electromechanical Actuator
6.10.1 Safety function

The safety function is as follows:


Opening the safety door safely shuts down the actuator.

6.10.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
 Siemens AG 2015 All rights reserved

Table 6-55 Hardware


Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch 1 3SE5132-1QV20
without tumbler
Actuator for position 1 3SE5000-0AV0
switch
Contactors 1 3RT2015-2BB42

Software components
Table 6-56 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 80
6 Solution for the User Scenarios

6.10.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-41 Safety door without guard locking PL c/SIL 1 wiring

24V DC
M

stop start ack

.0

.1

.2

L1
K1
M
 Siemens AG 2015 All rights reserved

Vs1 0+
L+
.3 L+
K1
.0
M 0-

posSwitch

Note In the F-program, the auxiliary contact of contactor K1 is termed “feedback”.

Note Due to the use of the FB FDBACK F-library block, it is useful to monitor
readback. Basically, monitoring the readback signals is not required for PL c/SIL
1.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 81
6 Solution for the User Scenarios

6.10.4 Brief description of the core functionality

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Figure 6-42 Safety door without guard locking – core functionality

Start

Actuator Yes Safety door


switches off open?

No

No
Actuator Yes
Safety door
Operational stop?
closed switches off
 Siemens AG 2015 All rights reserved

?
No
Yes

No
Safety door
closed
?
Acknowledge Yes

Start conditions
are complied

Actuator
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 82
6 Solution for the User Scenarios

6.10.5 Description of the user block FB F09FDoorSIL1PLc

Figure 6-43 F-user FB F09FDoorSIL1PLc

NOTICE For F-blocks, the enable input (EN) must not be wired.

The following section describes the inputs and outputs of FB F09FDoorSIL1PLc.


 Siemens AG 2015 All rights reserved

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-57 Inputs of FB F09FDoorSIL1PLc


Description Symbol Data type Convention Note
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after triggering
the safety
function
 to reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Readback signal from readbackK1 BOOL NC
auxiliary contact of 0: Contactor has
contactor K1 picked up
Position switch posSwitch BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch value status posSwitch1VS BOOL VS: value status
0: Fault Chapter 6.1.6
Value status of output K1 K1VS BOOL
Time between the control feedbackTime TIME
command and the response
of the contactor

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 83
6 Solution for the User Scenarios

Table 6-58 Outputs of FB F08FDoorSIL2PLd


Description Symbol Data type Convention Note
Contactor K1 K1 BOOL 1: Actuator Actuator on F-DQ
switched
(contactor has
picked up)
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
Acknowledgment ackReqFDoor BOOL 1: standard user
for safety door program.
Acknowledgment
required

6.10.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F09FDoorSIL1PLc. Customizations are possible.
The associated HW Config can be found in the provided block library.
 Siemens AG 2015 All rights reserved

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.1.2.

6.10.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 84
6 Solution for the User Scenarios

Table 6-59 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time or in
the event of a safety door fault, open and close
the door completely.
2 Press ack Required when starting the scenario for the first
time and after each opening of the safety door.
3 Press start K1 picks up
4 Press stop K1 drops out

Table 6-60 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time or in
the event of a safety door fault, open and close
the door completely.
2 Press ack Required when starting the scenario for the first
time and after each opening of the safety door.
3 Press start K1 picks up
4 Open the safety door K1 drops out
5 Close the safety door
 Siemens AG 2015 All rights reserved

6 Start again with no. 2

Table 6-61 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time or in
the event of a safety door fault, open and close
the door completely.
2 Press ack Acknowledgment mandatory when starting the
scenario for the first time
3 Press start K1 picks up
4 Make sure that K1 does not drop out when Simulated welding of the contactor
shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out
7 Press start K1 does not pick up (acknowledgment required)
8 Start with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 85
6 Solution for the User Scenarios

6.11 User Scenario 10:


Safety Door without Guard Locking at PL e/SIL 3,
Electric Actuator
6.11.1 Safety function

The safety function is as follows:


Opening the safety door safely shuts down the actuator.

6.11.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-62 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
 Siemens AG 2015 All rights reserved

SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0


4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch 2 3SE5132-1QV20
without tumbler
Actuator for position 2 3SE5000-0AV0
switch

Software components
Table 6-63 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 86
6 Solution for the User Scenarios

6.11.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-44 Safety door without guard locking PL e/SIL 3 wiring

24V DC
M

stop start ack

.0

.1

.2

L1

M
 Siemens AG 2015 All rights reserved

L+ Vs1
L+ 0+
.0
M signalPLeSIL3Quality

0-

.0
Vs2

posSwitch2 posSwitch1

Note For the actuators used in this user scenario, please also refer to chapter 6.1.7.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 87
6 Solution for the User Scenarios

6.11.4 Brief description of the core functionality

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Figure 6-45 Safety door without guard locking – core functionality

Start

Actuators Yes Safety door


switch off open?

No

No
Actuators Yes
Safety door
Operational stop?
closed switch off
 Siemens AG 2015 All rights reserved

?
No
Yes

No
Safety door
closed
?
Acknowledge Yes

Start conditions
are complied

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 88
6 Solution for the User Scenarios

6.11.5 Description of the user block FB F10FDoorSIL3PLe

Figure 6-46 F-user FB F10FDoorSIL3PLe

NOTICE For F-blocks, the enable input (EN) must not be wired.
 Siemens AG 2015 All rights reserved

Parameter description
The following section describes the inputs and outputs of FB F10FDoorSIL3PLe.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-64 Inputs of FB F10FDoorSIL3PLe


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Position switch 1 posSwitch1 BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch 2 posSwitch2 BOOL NC
1: Actuator
inserted (safety

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 89
6 Solution for the User Scenarios

Description Symbol Data Convention Note


type
door closed)
Position switch 1 value posSwitch1VS BOOL
status
Position switch 2 value posSwitch2VS BOOL VS: value status
status 0: Fault Chapter 6.1.6
Value status of output signalPLeSIL3QualityVS BOOL
signalPLeSIL3Quality

Table 6-65 Outputs of FB F10FDoorSIL3PLe


Description Symbol Data type Convention Note
Output signal signalPLeSIL3Quality BOOL 1: F-DQ output
from the F-DQ to set
the electric
actuator
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks. Can
is possible be read out, for
(safety door example, in the
closed) standard user
program.
 Siemens AG 2015 All rights reserved

Acknowledgment ackReqFDoor BOOL 1:


for safety door Acknowledgment
required

6.11.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB FF10EStopSIL3PLe. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.3.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 90
6 Solution for the User Scenarios

6.11.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed

Table 6-66 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
 Siemens AG 2015 All rights reserved

safety door.
3 Press start signalPLeSIL3Quality =1
4 Press stop signalPLeSIL3Quality = 0

Table 6-67 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start signalPLeSIL3Quality = 1
4 Open the safety door signalPLeSIL3Quality =0
5 Close the safety door
6 Start again with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 91
6 Solution for the User Scenarios

6.12 User Scenario 11:


Safety Door without Guard Locking at PL d/SIL 2,
Electric Actuator

Note You are using a drive as an actuator. Please also follow the information in
chapter 6.1.7.

6.12.1 Safety function

The safety function is as follows:


Opening the safety door safely shuts down the actuator.

6.12.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-68 Hardware
 Siemens AG 2015 All rights reserved

Component No. Article number Note


CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch 2 3SE5132-1QV20
without tumbler
Actuator for position 2 3SE5000-0AV0
switch

Software components
Table 6-69 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 92
6 Solution for the User Scenarios

6.12.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-47 Safety door without guard locking PL d/SIL 2 wiring

24V DC
M

stop start ack

.0

.1

.2

L1

M
 Siemens AG 2015 All rights reserved

L+ Vs1
L+ 0+
.0
M signalPLdSIL2Quality

0-

.0
Vs2

posSwitch2 posSwitch1

Note For the actuators used in this user scenario, please also refer to chapter 6.1.7.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 93
6 Solution for the User Scenarios

6.12.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Figure 6-48 Safety door without guard locking – core functionality

Start

Actuators Yes Safety door


switch off open?

No

No
Actuators Yes
Safety door
 Siemens AG 2015 All rights reserved

Operational stop?
closed switch off
?
No
Yes

No
Safety door
closed
?
Acknowledge Yes

Start conditions
are complied

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 94
6 Solution for the User Scenarios

6.12.5 Description of the user block FB F11FDoorSIL2PL

Figure 6-49 F-user FB F11FDoorSIL2PL

NOTICE For F-blocks, the enable input (EN) must not be wired.
 Siemens AG 2015 All rights reserved

Parameter description
The following section describes the inputs and outputs of FB F11FDoorSIL2PL.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-70 Inputs of FB F11FDoorSIL2PL


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Position switch 1 posSwitch1 BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch 2 posSwitch2 BOOL NC
1: Actuator
inserted (safety

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 95
6 Solution for the User Scenarios

Description Symbol Data Convention Note


type
door closed)
Position switch 1 value posSwitch1VS BOOL
status
Position switch 2 value posSwitch2VS BOOL VS: value status
status 0: Fault Chapter 6.1.6
Value status of output signalPLdSIL2QualityVS BOOL
signalPLdSIL2Quality

Table 6-71 Outputs of FB F11FDoorSIL2PLd


Description Symbol Data type Convention Note
Output signal signalPLdSIL2Quality BOOL 1: F-DQ output
from the F-DQ to set
the electric
actuator
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
Acknowledgment ackReqFDoor BOOL 1: standard user
program.
 Siemens AG 2015 All rights reserved

for safety door Acknowledgment


required

6.12.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F11FDoorSIL2PLd. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 96
6 Solution for the User Scenarios

6.12.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed

Table 6-72 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
 Siemens AG 2015 All rights reserved

safety door.
3 Press start signalPLdSIL2Quality =1
4 Press stop signalPLdSIL2Quality = 0

Table 6-73 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start signalPLdSIL2Quality = 1
4 Open the safety door signalPLdSIL2Quality = 0
5 Close the safety door
6 Start again with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 97
6 Solution for the User Scenarios

6.13 User Scenario 12:


Safety Door without Guard Locking at PL c/SIL 1,
Electric Actuator
6.13.1 Safety function

The safety function is as follows:


Opening the safety door safely shuts down the actuator.

6.13.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-74 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
 Siemens AG 2015 All rights reserved

SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0


4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch 1 3SE5132-1QV20
without tumbler
Actuator for position 1 3SE5000-0AV0
switch

Software components
Table 6-75 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 98
6 Solution for the User Scenarios

6.13.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-50 Safety door without guard locking PL c/SIL 1 wiring

24V DC
M

stop start ack

.0

.1

.2

L1

M
 Siemens AG 2015 All rights reserved

L+ Vs1
L+ 0+
.0
M
signalPLcSIL1Quality

0-

posSwitch

Note For the actuators used in this user scenario, please also refer to chapter 6.1.7.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 99
6 Solution for the User Scenarios

6.13.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Figure 6-51 Safety door without guard locking – core functionality

Start

Actuator Yes Safety door


switches off open?

No

No
Actuator Yes
Safety door
 Siemens AG 2015 All rights reserved

Operational stop?
closed switches off
?
No
Yes

No
Safety door
closed
?
Acknowledge Yes

Start conditions
are complied

Actuator
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 100
6 Solution for the User Scenarios

6.13.5 Description of the user block FB F12FDoorSIL1PLc

Figure 6-52 F-user FB F12FDoorSIL1PLc

NOTICE For F-blocks, the enable input (EN) must not be wired.

Parameter description
 Siemens AG 2015 All rights reserved

The following section describes the inputs and outputs of FB F12FDoorSIL1PLc.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-76 Inputs of FB F12FDoorSIL1PLc


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Position switch posSwitch BOOL NC
1: Actuator
inserted (safety
door closed)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 101
6 Solution for the User Scenarios

Description Symbol Data Convention Note


type
Position switch 1 value posSwitchVS BOOL 0: Fault
status

VS: value status


Chapter 6.1.6

Value status of output signalPLcSIL1QualityVS BOOL


signalPLcSIL1Quality

Table 6-77 Outputs of FB F12FDoorSIL1PLc


Description Symbol Data type Convention Note
Output signal signalPLcSIL1Quality BOOL 1: F-DQ output
from the F-DQ to set
the electric
actuator
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks. Can
is possible be read out, for
(safety door example, in the
closed) standard user
 Siemens AG 2015 All rights reserved

program.
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
required

6.13.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F12FDoorSIL1PLc. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.1.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 102
6 Solution for the User Scenarios

6.13.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed

Table 6-78 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
 Siemens AG 2015 All rights reserved

safety door.
3 Press start signalPLcSIL1Quality = 1
4 Press stop signalPLcSIL1Quality = 0

Table 6-79 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start signalPLcSIL1Quality = 1
4 Open the safety door signalPLcSIL1Quality = 0
5 Close the safety door
6 Start again with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 103
6 Solution for the User Scenarios

6.14 User Scenario 13:


Safety Door with Guard Locking at PL e/SIL 3,
Electromechanical Actuator
6.14.1 Safety functions

This user scenario has the following safety functions:


 Safety function with regard to opening/closing the safety door
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.

6.14.2 Hardware and software components


 Siemens AG 2015 All rights reserved

You need the hardware and software components listed below.

Hardware components
Table 6-80 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)
Hinge switch 1 3SE5132-0LU21
Actuator for position 1 3SE5000-0AV0
switch
Contactors 2 3RT2015-2BB42

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 104
6 Solution for the User Scenarios

Software components
Table 6-81 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

6.14.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-53 Safety door with guard locking PL e/SIL 3 wiring

24V DC
M

stop start ack

.0
 Siemens AG 2015 All rights reserved

.1

.2 L+

.5 M
L1 .4
0+
K2 K1
M

L+ Vs1 K1 K2

.3 .0
eMagnet 0-

1-

1+
fDoorCoil

.0
Vs2

hingedSwitch sepAct

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

The following signals from the above connection diagram are connected to the
position switch (sepAct):
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 105
6 Solution for the User Scenarios

 fDoorCoil (control of guard locking)

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-54 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)

L+ (F-CPU)
 Siemens AG 2015 All rights reserved

Vs1 (F-DI) CH – (F-DQ)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 106
6 Solution for the User Scenarios

6.14.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Figure 6-55 Safety door with guard locking – core functionality

Start

No
Stop request?
No
Yes
Safety door
closed
?
Actuators stop
Yes
 Siemens AG 2015 All rights reserved

Previous
stop was Yes
operational Timer starts
stop
?
No

Acknowledge Unlock No
timer
expired
?
Yes

Start conditions Safety door


are complied interlocking
is released

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 107
6 Solution for the User Scenarios

In this example for electromechanical actuators, the safety door’s guard


locking is deactivated when the timer has expired. For moving parts, a
hazard cannot be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

6.14.5 Description of the user block FB F13FDoorSIL3PLe

Figure 6-56 F-user FB F13FDoorSIL3PLe


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Note This example assumes that you are using a hinge switch (hingedSwitch) as a
second channel. However, it is not mandatory to use a hinge switch. The
required dual-channel redundancy can also be implemented with a different
switch.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 108
6 Solution for the User Scenarios

Parameter description
The following section describes the inputs and outputs of FB F13FDoorSIL3PLe.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-82 Inputs of FB F13FDoorSIL3PLe


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: Acknowledgment required
 after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
 Siemens AG 2015 All rights reserved

0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter 6.1.2
position switch 0: Magnet in position
switch energized
1: Magnet in position
switch de-energized
Readback signal from readbackK1 BOOL
auxiliary contact of contactor
K1 NC
0: Contactor has
Readback signal from readbackK2 BOOL picked up
auxiliary contact of contactor
K2
Position switch sepAct BOOL NC
1: Actuator inserted
(safety door closed)
Chapter 6.1.2
Hinge switch hingedSwitch BOOL NC
1: Unoperated (safety
door
closed)
Position switch value status sepActVS BOOL
Hinge switch value status hingedSwitchVS BOOL
VS: value status
Value status of output K1K2 K1K2VS BOOL 0: Fault Chapter 6.1.6
Value status of output fDoorCoilVS BOOL
fDoorCoil
Time between the control feedbackTime TIME
command and the response
of the contactors
Time delay after shutdown of delayTimeUnlock TIME Choose a time
the actuators to release the which is long
safety door. enough

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 109
6 Solution for the User Scenarios

Table 6-83 Outputs of FB F13FDoorSIL3PLe


Description Symbol Data type Convention Note
Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
Magnet in the fDoorCoil BOOL 0: Guard locking
position switch active
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
standard user
Acknowledgment ackReqFDoor BOOL 1:
program.
for safety door Acknowledgment
required

6.14.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F13FDoorSIL3PL3. Customizations are possible.
The associated HW Config can be found in the provided block library.
 Siemens AG 2015 All rights reserved

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.3.2.

6.14.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 110
6 Solution for the User Scenarios

Table 6-84 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then K1K2 picks
up
4 Press stop K1K2 drops out; then the timer for the
delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Table 6-85 Safety function: Safety door fault


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
 Siemens AG 2015 All rights reserved

first time and after each opening of the


safety door.
3 Press start Guard locking is activated, then K1K2 picks
up
4 Turn the hinge switch until it outputs “0” signal. K1K2 drops out; then the timer for the
delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.
6 Close the safety door
7 Start again with no. 1

Table 6-86 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Acknowledgment mandatory when starting
the scenario for the first time
3 Press start K1K2 picks up
4 Make sure that K1 or K2 does not drop out when Simulated welding of the contactor
shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out
7 Press start K1K2 does not pick up (acknowledgment
required)
8 Wait until the timer expires.
9 Start with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 111
6 Solution for the User Scenarios

6.15 User Scenario 14:


Safety Door with Guard Locking at PL d/SIL 2,
Electromechanical Actuator
6.15.1 Safety function

This user scenario has the following safety functions:


 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.

6.15.2 Hardware and software components


 Siemens AG 2015 All rights reserved

You need the hardware and software components listed below.

Hardware components
Table 6-87 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)
Hinge switch 1 3SE5132-0LU21
Actuator for position 1 3SE5000-0AV0
switch
Contactors 2 3RT2015-2BB42

Software components
Table 6-88 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 112
6 Solution for the User Scenarios

Component No. Article number Note


Basic V13 SP1

6.15.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-57 Safety door with guard locking PL d/SIL 2 wiring

24V DC
M

stop start ack

.0

.1

.2 L+
 Siemens AG 2015 All rights reserved

.5 M
L1 .4
0+
K2 K1
M

L+ Vs1 K1 K2

.3 .0
0-
eMagnet

1-

1+
fDoorCoil

.0

Vs2

hingedSwitch sepAct

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 113
6 Solution for the User Scenarios

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.
Figure 6-58 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)
 Siemens AG 2015 All rights reserved

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 114
6 Solution for the User Scenarios

6.15.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Figure 6-59 Safety door with guard locking – core functionality

Start

No
Stop request?
No
Yes
Safety door
closed
?
Actuators stop
Yes
 Siemens AG 2015 All rights reserved

Previous
stop was Yes
operational Timer starts
stop
?
No

Unlock No
Acknowledge timer
expired
?
Yes

Start conditions Safety door


are complied interlocking
is released

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 115
6 Solution for the User Scenarios

In this example for electromechanical actuators, the safety door’s guard


locking is deactivated when the timer has expired. For moving parts, a
hazard cannot be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

6.15.5 Description of the user block FB F14FDoorSIL2PLd

Figure 6-60 F-user FB F14FDoorSIL2PLd


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Note This example assumes that you are using a hinge switch (hingedSwitch) as a
second channel. However, it is not mandatory to use a hinge switch. The
required dual-channel redundancy can also be implemented with a different
switch.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 116
6 Solution for the User Scenarios

Parameter description
The following section describes the inputs and outputs of FB F14FDoorSIL2PLd.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-89 Inputs of FB F14FDoorSIL2PLd


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: Acknowledgment required
 after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
 Siemens AG 2015 All rights reserved

0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter 6.1.2
position switch 0: Magnet in position
switch energized
1: Magnet in position
switch de-energized
Readback signal from readbackK1 BOOL
auxiliary contact of contactor
K1 NC
0: Contactor has
Readback signal from readbackK2 BOOL picked up
auxiliary contact of contactor
K2
Position switch sepAct BOOL NC
1: Actuator inserted
(safety door closed)
Chapter 6.1.2
Hinge switch hingedSwitch BOOL NC
1: Unoperated (safety
door
closed)
Position switch value status sepActVS BOOL
Hinge switch value status hingedSwitchVS BOOL
VS: value status
Value status of output K1K2 K1K2VS BOOL 0: Fault Chapter 6.1.6
Value status of output fDoorCoilVS BOOL
fDoorCoil
Time between the control feedbackTime TIME
command and the response
of the contactors
Time delay after shutdown of delayTimeUnlock TIME Choose a time
the actuators to release the which is long
safety door. enough

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 117
6 Solution for the User Scenarios

Table 6-90 Outputs of FB F14FDoorSIL2PLd


Description Symbol Data type Convention Note
Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
Magnet in the fDoorCoil BOOL 0: Guard locking
position switch active
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
standard user
Acknowledgment ackReqFDoor BOOL 1:
program.
for safety door Acknowledgment
required

6.15.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F14FDoorSIL2PLd. Customizations are possible.
The associated HW Config can be found in the provided block library.
 Siemens AG 2015 All rights reserved

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

6.15.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 118
6 Solution for the User Scenarios

Table 6-91 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then K1K2 picks
up
4 Press stop K1K2 drops out; then the timer for the
delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Table 6-92 Safety function: Safety door fault


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
 Siemens AG 2015 All rights reserved

first time and after each opening of the


safety door.
3 Press start Guard locking is activated, then K1K2 picks
up
4 Turn the hinge switch until it outputs “0” signal. K1K2 drops out; then the timer for the
delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.
6 Close the safety door
7 Start again with no. 1

Table 6-93 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Acknowledgment mandatory when starting
the scenario for the first time
3 Press start K1K2 picks up
4 Make sure that K1 or K2 does not drop out when Simulated welding of the contactor
shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out
7 Press start K1K2 does not pick up (acknowledgment
required)
8 Wait until the timer expires.
9 Start with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 119
6 Solution for the User Scenarios

6.16 User Scenario 15:


Safety Door with Guard Locking at PL c/SIL 1,
Electromechanical Actuator
6.16.1 Safety function

This user scenario has the following safety functions:


 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.

6.16.2 Hardware and software components

You need the hardware and software components listed below.


 Siemens AG 2015 All rights reserved

Hardware components
Table 6-94 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)
Actuator for position 1 3SE5000-0AV0
switch
Contactors 1 3RT2015-2BB42

Software components
Table 6-95 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 120
6 Solution for the User Scenarios

6.16.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-61 Safety door with guard locking PL c/SIL 1 wiring

24V DC
M

stop start ack

.0

.1 L+
.2
M

L1 .4
K1
 Siemens AG 2015 All rights reserved

M
.3
L+ Vs1 0+
K1
.0
eMagnet 0-

1-

1+
fDoorCoil

sepAct

Note In the F-program, the auxiliary contact of contactor K1 is termed “feedback”.

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 121
6 Solution for the User Scenarios

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-62 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)
 Siemens AG 2015 All rights reserved

6.16.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 122
6 Solution for the User Scenarios

Figure 6-63 Safety door with guard locking – core functionality

Start

No
Stop request?
No
Yes
Safety door
closed
?
Actuator stops
Yes

Previous
stop was Yes
operational Timer starts
stop
?
No
 Siemens AG 2015 All rights reserved

Unlock No
Acknowledge timer
expired
?
Yes

Start conditions Safety door


are complied interlocking
is released

Actuator
on

In this example for electromechanical actuators, the safety door’s guard


locking is deactivated when the timer has expired. For moving parts, a
hazard cannot be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 123
6 Solution for the User Scenarios

6.16.5 Description of the user block FB F15FDoorSIL1PLc

Figure 6-64 F-user FB F15FDoorSIL1PLc

NOTICE For F-blocks, the enable input (EN) must not be wired.
 Siemens AG 2015 All rights reserved

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Parameter description
The following section describes the inputs and outputs of FB F15FDoorSIL1PLc.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-96 Inputs of FB F15FDoorSIL1PLc


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: Acknowledgment required
 after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 124
6 Solution for the User Scenarios

Description Symbol Data Convention Note


type
Stop request stop BOOL NC
0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter 6.1.2
position switch 0: Magnet in position
switch energized
1: Magnet in position
switch de-energized
Readback signal from readbackK1 BOOL NC
auxiliary contact of contactor 0: Contactor has
K1 picked up
Position switch sepAct BOOL NC
Chapter 6.1.2
1: Actuator inserted
(safety door closed)

Position switch value status sepActVS BOOL 0: Fault


VS: value status
Chapter 6.1.6
Value status of output K1 K1VS BOOL
Time between the control feedbackTime TIME
command and the response
of the contactor
Time delay after shutdown of delayTimeUnlock TIME Choose a time
 Siemens AG 2015 All rights reserved

the actuators to release the which is long


safety door. enough

Table 6-97 Outputs of FB F13FDoorSIL1PLc


Description Symbol Data type Convention Note
Contactor K1 K1 BOOL 1: Actuator Actuator on F-DQ
switched
(contactor has
picked up)
Magnet in the fDoorCoil BOOL 0: Guard locking
position switch active
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
standard user
Acknowledgment ackReqFDoor BOOL 1:
program.
for safety door Acknowledgment
required

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 125
6 Solution for the User Scenarios

6.16.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F15FDoorSIL1PLc. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.1.2.

6.16.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
 Siemens AG 2015 All rights reserved

scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed

Table 6-98 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then K1 picks up
4 Press stop K1 drops out; then the timer for the delayed
release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 126
6 Solution for the User Scenarios

Table 6-99 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then K1 picks up
4 Release the interlocking and open the safety door K1 drops out

Table 6-100 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Acknowledgment mandatory when starting
the scenario for the first time
3 Press start K1 picks up
4 Make sure that K1 does not drop out when Simulated welding of the contactor
shutting down
 Siemens AG 2015 All rights reserved

5 Press stop Readback error is detected


6 Let the contactor drop out
7 Press start K1 does not pick up (acknowledgment
required)
8 Wait until the timer expires.
9 Start with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 127
6 Solution for the User Scenarios

6.17 User Scenario 16:


Safety Door with Guard Locking at PL e/SIL 3, Electric
Actuator
6.17.1 Safety function

This user scenario has the following safety functions:


 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.

6.17.2 Hardware and software components


 Siemens AG 2015 All rights reserved

You need the hardware and software components listed below.

Hardware components
Table 6-101 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)
Hinge switch 1 3SE5132-0LU21
Actuator for position 1 3SE5000-0AV0
switch

Software components
Table 6-102 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 128
6 Solution for the User Scenarios

Component No. Article number Note


Basic V13 SP1

6.17.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-65 Safety door with guard locking PL e/SIL 3 wiring

24V DC
M

stop start ack

.0

.1
L+
.2
M
 Siemens AG 2015 All rights reserved

L1

M
.3
L+ Vs1
0+
.0 SignalPLeSIL3Quality
eMagnet
0-

1-

1+
fDoorCoil

.0

Vs2

hingedSwitch

sepAct

Note For the actuator signals, please refer to chapter 6.1.7.

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 129
6 Solution for the User Scenarios

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-66 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)
 Siemens AG 2015 All rights reserved

6.17.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 130
6 Solution for the User Scenarios

Figure 6-67 Safety door with guard locking – core functionality

Start

No
Stop request?
No
Yes
Safety door
closed
?
Actuators stop
Yes

Previous
stop was Yes
operational Timer starts
stop
?
No
 Siemens AG 2015 All rights reserved

Unlock No
Acknowledge timer
expired
?
Yes

Safety door
Start conditions interlocking
are complied is released

Actuators
on

In this example for electric actuators, the safety door’s guard locking is
deactivated when the timer has expired. For moving parts, a hazard cannot
be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 131
6 Solution for the User Scenarios

6.17.5 Description of the user block FB F16FDoorSIL3PLe

Figure 6-68 F-user block FB F16FDoorSIL3PLe


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Note This example assumes that you are using a hinge switch (hingedSwitch) as a
second channel. However, it is not mandatory to use a hinge switch. The
required dual-channel redundancy can also be implemented with a different
switch.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Parameter description
The following section describes the inputs and outputs of FB F16FDoorSIL3PLe.

Note NO: normally open (contact); NC: normally closed (contact)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 132
6 Solution for the User Scenarios

Table 6-103 Inputs of FB F15F16FDoorSIL3PLe


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: Acknowledgment required
 after
triggerin
g the
safety
function
 to
reintegra
te
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter 6.1.2
position switch 0: Magnet in
position switch
energized
1: Magnet in
position switch de-
 Siemens AG 2015 All rights reserved

energized
Position switch sepAct BOOL NC
1: Actuator inserted
(safety door closed)
Chapter 6.1.2
Hinge switch hingedSwitch BOOL NC
1: Unoperated
(safety door
closed)
Position switch value status sepActVS BOOL
Hinge switch value status hingedSwitchVS BOOL
VS: value
Value status of output signalPLeSIL3QualityVS BOOL 0: Fault status
signalPLeSIL3Quality Chapter 6.1.6
Value status of output fDoorCoilVS BOOL
fDoorCoil
In the position switch: Time feedbackTime TIME
between the response of the
magnet and the monitoring
contact
Time delay after shutdown of delayTimeUnlock TIME Choose a
the actuators to release the time which is
safety door. long enough

Table 6-104 Outputs of FB F16FDoorSIL3PLe


Description Symbol Data type Convention Note
Output signal from signalPLeSIL3Quality BOOL 1: F-DQ output
the F-DQ to the set
electric actuator
Magnet in the fDoorCoil BOOL 0: Guard locking Actuator on F-DQ
position switch active

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 133
6 Solution for the User Scenarios

Description Symbol Data type Convention Note


Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
standard user
Acknowledgment ackReqFDoor BOOL 1:
program.
for safety door Acknowledgment
required

Configuration and parameterization


The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F16FDoorSIL3PLe. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.
 Siemens AG 2015 All rights reserved

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.3.2.

6.17.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F16FDoorSIL3PLe. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.1.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 134
6 Solution for the User Scenarios

6.17.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed

Table 6-105 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
 Siemens AG 2015 All rights reserved

3 Press start Guard locking is activated, then


signalPLeSIL3Quality = 1
4 Press stop signalPLeSIL3Quality = 0; then the timer for
the delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Table 6-106 Safety function: Safety door fault


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then
signalPLeSIL3Quality = 1
4 Turn the hinge switch until it outputs “0” signal. signalPLeSIL3Quality = 0; then the timer for
the delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.
6 Close the safety door
7 Start again with no. 1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 135
6 Solution for the User Scenarios

6.18 User Scenario 17:


Safety Door with Guard Locking at PL d/SIL 2, Electric
Actuator

Note You are using a drive as an actuator. Please also follow the information in
chapter 6.1.7.

6.18.1 Safety function

This user scenario has the following safety functions:


 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
 Siemens AG 2015 All rights reserved

situation where there is a safety function with regard to guard locking.

6.18.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-107 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)
Hinge switch 1 3SE5132-0LU21
Actuator for position 1 3SE5000-0AV0
switch

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 136
6 Solution for the User Scenarios

Software components
Table 6-108 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

6.18.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-69 Safety door with guard locking PL d/SIL 2 wiring

24V DC
M

stop start ack

.0
 Siemens AG 2015 All rights reserved

.1
L+
.2
M

L1

M
.3
L+ Vs1 0+
signalPLdSIL2Quality
.0
eMagnet 0-

1-

1+
fDoorCoil

.0

Vs2

hingedSwitch
sepAct

Note For the actuator signals, please refer to chapter 6.1.7.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 137
6 Solution for the User Scenarios

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)
The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-70 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)
 Siemens AG 2015 All rights reserved

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)

6.18.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 138
6 Solution for the User Scenarios

Figure 6-71 Safety door with guard locking – core functionality

Start

No
Stop request?
No
Yes
Safety door
closed
?
Actuators stop
Yes

Previous
stop was Yes
operational Timer starts
stop
?
No
 Siemens AG 2015 All rights reserved

Unlock No
Acknowledge timer
expired
?
Yes

Safety door
Start conditions interlocking
are complied is released

Actuators
on

In this example for electric actuators, the safety door’s guard locking is
deactivated when the timer has expired. For moving parts, a hazard cannot
be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 139
6 Solution for the User Scenarios

6.18.5 Description of the user block FB F17FDoorSIL2PLd

Figure 6-72 User block FB F17FDoorSIL2PLd


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Note This example assumes that you are using a hinge switch (hingedSwitch) as a
second channel. However, it is not mandatory to use a hinge switch. The
required dual-channel redundancy can also be implemented with a different
switch.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Parameter description
The following section describes the inputs and outputs of FB F17FDoorSIL2PLd.

Note NO: normally open (contact); NC: normally closed (contact)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 140
6 Solution for the User Scenarios

Table 6-109 Inputs of FB F17FDoorSIL2PLd


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: Acknowledgment required
 after
triggerin
g the
safety
function
 to
reintegra
te
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter 6.1.2
position switch 0: Magnet in
position switch
energized
1: Magnet in
position switch de-
 Siemens AG 2015 All rights reserved

energized
Position switch sepAct BOOL NC
1: Actuator inserted
(safety door closed)
Chapter 6.1.2
Hinge switch hingedSwitch BOOL NC
1: Unoperated
(safety door
closed)
Position switch value status sepActVS BOOL
Hinge switch value status hingedSwitchVS BOOL
VS: value
Value status of output signalPLdSIL2QualityVS BOOL 0: Fault status
signalPLdSIL2Quality Chapter 6.1.6
Value status of output fDoorCoilVS BOOL
fDoorCoil
In the position switch: Time feedbackTime TIME
between the response of the
magnet and the monitoring
contact
Time delay after shutdown of delayTimeUnlock TIME Choose a
the actuators to release the time which is
safety door. long enough

Table 6-110 Outputs of FB F17FDoorSIL2PLd


Description Symbol Data type Convention Note
Output signal from signalPLdSIL2Quality BOOL 1: F-DQ output
the F-DQ to the set
electric actuator
Magnet in the fDoorCoil BOOL 0: Guard locking Actuator on F-DQ
position switch active

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 141
6 Solution for the User Scenarios

Description Symbol Data type Convention Note


Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
standard user
Acknowledgment ackReqFDoor BOOL 1:
program.
for safety door Acknowledgment
required

6.18.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F17FDoorSIL2PLd. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.
 Siemens AG 2015 All rights reserved

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

6.18.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 142
6 Solution for the User Scenarios

Table 6-111 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then
signalPLdSIL2Quality = 1
4 Press stop signalPLdSIL2Quality = 0; then the timer for
the delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Table 6-112 Safety function: Safety door fault


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
 Siemens AG 2015 All rights reserved

first time and after each opening of the


safety door.
3 Press start Guard locking is activated, then
signalPLdSIL2Quality = 1
4 Turn the hinge switch until it outputs “0” signal. signalPLdSIL2Quality = 0; then the timer for
the delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.
6 Close the safety door
7 Start again with no. 1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 143
6 Solution for the User Scenarios

6.19 User Scenario 18:


Safety Door with Guard Locking at PL c/SIL 1, Electric
Actuator
6.19.1 Safety function

This user scenario has the following safety functions:


 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.

6.19.2 Hardware and software components


 Siemens AG 2015 All rights reserved

You need the hardware and software components listed below.

Hardware components
Table 6-113 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)
Actuator for position 1 3SE5000-0AV0
switch

Software components
Table 6-114 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 144
6 Solution for the User Scenarios

6.19.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-73 Safety door with guard locking SIL 1/PL d wiring

24V DC
M

stop start ack

.0

.1
L+
.2
M

L1

M
 Siemens AG 2015 All rights reserved

.3
L+ Vs1 0+

.0 signalPLcSIL1Quality
eMagnet 0-

1-

1+
fDoorCoil

sepAct

Note For the actuator signals, please refer to chapter 6.1.7.

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 145
6 Solution for the User Scenarios

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-74 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 146
6 Solution for the User Scenarios

6.19.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ACK=1.

Figure 6-75 Safety door with guard locking – core functionality

Start

No
Stop request?
No
Yes
Safety door
closed
?
Actuator stops
Yes
 Siemens AG 2015 All rights reserved

Previous
stop was Yes
operational Timer starts
stop
?
No

Unlock No
Acknowledge timer
expired
?
Yes

Safety door
Start conditions interlocking
are complied is released

Actuator
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 147
6 Solution for the User Scenarios

In this example for electric actuators, the safety door’s guard locking is
deactivated when the timer has expired. For moving parts, a hazard cannot
be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

6.19.5 Description of the user block FB F18FDoorSIL1PLc

Figure 6-76 F-user block FB F18FDoorSIL1PLc


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Parameter description
The following section describes the inputs and outputs of FB F18FDoorSIL1PLc.

Note NO: normally open (contact); NC: normally closed (contact)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 148
6 Solution for the User Scenarios

Table 6-115 Inputs of FB F18FDoorSIL1PLc


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: Acknowledgment required
 after
triggering
the safety
function
 to
reintegrat
e
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter 6.1.2
position switch 0: Magnet in
position switch
energized
1: Magnet in
position switch de-
energized
 Siemens AG 2015 All rights reserved

Position switch sepAct BOOL NC


1: Actuator inserted Chapter 6.1.2
(safety door closed)

Position switch value status sepActVS BOOL 0: Fault


VS: value
Value status of output signalPLcSIL1QualityVS BOOL status
signalPLcSIL1Quality Chapter 6.1.6

Time delay after shutdown delayTimeUnlock TIME Choose a


of the actuators to release time which is
the safety door. long enough

Table 6-116 Outputs of FB F18FDoorSIL1PLc


Description Symbol Data type Convention Note
Output signal from signalPLcSIL1Quality BOOL 1: F-DQ output
the F-DQ to the set
electric actuator
Magnet in the fDoorCoil BOOL 0: Guard locking Actuator on F-DQ
position switch active
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
standard user
Acknowledgment ackReqFDoor BOOL 1:
program.
for safety door Acknowledgment
required

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 149
6 Solution for the User Scenarios

6.19.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F18FDoorSIL1PLc. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.1.2.

6.19.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.
 Siemens AG 2015 All rights reserved

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Safety door closed
Table 6-117 Start actuator
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then
signalPLcSIL1Quality = 1
4 Press stop signalPLcSIL1Quality = 0; then the timer for
the delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 150
6 Solution for the User Scenarios

6.20 User Scenario 19:


Emergency Stop + Safety Door without Guard Locking
at PL e/SIL 3, Electromechanical Actuator
6.20.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Opening the safety door during operation safely shuts down the actuator.

6.20.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-118 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
 Siemens AG 2015 All rights reserved

DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)
Position switch 2 3SE5132-1QV20
without tumbler
Actuator for position 2 3SE5000-0AV0
switch
Contactors 2 3RT2015-2BB42

Software components
Table 6-119 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 151
6 Solution for the User Scenarios

6.20.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-77 Emergency stop and safety door without guard locking PL e/SIL 3 wiring

24V DC
M

stop start ack

.0

.1

.2

L1
K2 K1
M
 Siemens AG 2015 All rights reserved

L+ Vs1
.3 L+ 0+
K1
.1
.4 M
K2

0-

.1
.0

Vs2

posSwitch2 posSwitch1
eStop
Vs1

.0

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 152
6 Solution for the User Scenarios

6.20.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-78 Emergency stop + safety door without guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released Actuator is
? switched off
Yes

Previous
stop was Yes
operational stop
 Siemens AG 2015 All rights reserved

No

Acknowledge

Start conditions
are complied

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 153
6 Solution for the User Scenarios

6.20.5 Description of the user block FB F19EStopFDoorSIL3PLe

Figure 6-79 User block FB F19EStopFDoorSIL3PLe

NOTICE For F-blocks, the enable input (EN) must not be wired.
 Siemens AG 2015 All rights reserved

Parameter description
The following section describes the inputs and outputs of FB
F19EStopFDoorSIL3PLe.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-120 Inputs of FB F19EStopFDoorSIL3PLe


Description Symbol Data type Convention Note
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after triggering a
safety function
 to reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Readback signal from readbackK1 BOOL
auxiliary contact of
contactor K1 NC
0: Contactor has
Readback signal from readbackK2 BOOL picked up
auxiliary contact of
contactor K2
Emergency stop eStop BOOL NC/NC

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 154
6 Solution for the User Scenarios

Description Symbol Data type Convention Note


pushbutton 0: Emergency
stop triggered
Position switch 1 posSwitch1 BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch 2 posSwitch2 BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch 1 value posSwitch1VS BOOL
status
VS: value status
Position switch 2 value posSwitch2VS BOOL
status 0: Fault Chapter 6.1.6

Value status of output K1K2 K1K2VS BOOL


Time between the control feedbackTime TIME
command and the response
of the contactors

Table 6-121 Outputs of FB F19EStopFDoorSIL3PLe


 Siemens AG 2015 All rights reserved

Description Symbol Data type Convention Note


Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks. Can
is possible (safety be read out, for
door closed) example, in the
Release releaseEStop BOOL 1: Emergency standard user
emergency stop program.
stop released and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
required
Acknowledgment ackReqEStop BOOL
required

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 155
6 Solution for the User Scenarios

6.20.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F19EStopFDoorSIL3PLe. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.3.2.

6.20.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
 Siemens AG 2015 All rights reserved

scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-122 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1K2 picks up
4 Press stop K1K2 drops out

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 156
6 Solution for the User Scenarios

Table 6-123 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1K2 picks up
4 Open the safety door K1K2 drops out
5 Close the safety door
6 Start again with no. 2

Table 6-124 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Acknowledgment mandatory when starting
the scenario for the first time
 Siemens AG 2015 All rights reserved

3 Press start K1K2 picks up


4 Press the emergency stop (eStop) K1K2 drops out
5 Release the emergency stop (eStop)
6 Press start K1K2 does not pick up (acknowledgment
required)
7 Start again with no. 2

Table 6-125 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Acknowledgment mandatory when starting
the scenario for the first time
3 Press start K1K2 picks up
4 Make sure that K1 or K2 does not drop out when Simulated welding of the contactor
shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out
7 Press start K1K2 does not pick up (acknowledgment
required)
8 Start with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 157
6 Solution for the User Scenarios

6.21 User Scenario 20:


Emergency Stop + Safety Door without Guard Locking
at PL d/SIL 2, Electromechanical Actuator
6.21.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Opening the safety door during operation safely shuts down the actuator.

6.21.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-126 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
 Siemens AG 2015 All rights reserved

DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)
Position switch 2 3SE5132-1QV20
without tumbler
Actuator for position 2 3SE5000-0AV0
switch
Contactors 2 3RT2015-2BB42

Software components
Table 6-127 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 158
6 Solution for the User Scenarios

6.21.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-80 Emergency stop and safety door without guard locking PL d/SIL 2 wiring

24V DC
M

stop start ack

.0

.1

.2

L1
K2 K1
M
 Siemens AG 2015 All rights reserved

L+ Vs1
.3 L+ 0+
K1
.1
.4 M
K2

0-

.1
.0

Vs2

posSwitch2 posSwitch1
eStop
Vs1

.0

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 159
6 Solution for the User Scenarios

6.21.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-81 Emergency stop + safety door without guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released Actuator is
? switched off
Yes

Previous
stop was Yes
operational
stop
 Siemens AG 2015 All rights reserved

?
No

Acknowledge

Start conditions
are complied

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 160
6 Solution for the User Scenarios

6.21.5 Description of the user block FB F20EStopFDoorSIL2PLd

Figure 6-82 User block FB F20EStopFDoorSIL2PLd

NOTICE For F-blocks, the enable input (EN) must not be wired.
 Siemens AG 2015 All rights reserved

Parameter description
The following section describes the inputs and outputs of FB
F20EStopFDoorSIL2PLd.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-128 Inputs of FB F20EStopFDoorSIL2PLd


Description Symbol Data type Convention Note
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after triggering
the safety
function
 to reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Readback signal from readbackK1 BOOL
auxiliary contact of
contactor K1 NC
0: Contactor has
Readback signal from readbackK2 BOOL picked up
auxiliary contact of
contactor K2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 161
6 Solution for the User Scenarios

Description Symbol Data type Convention Note


Emergency stop eStop BOOL NC/NC
pushbutton 0: Emergency
stop triggered
Position switch 1 posSwitch1 BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch 2 posSwitch2 BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch 1 value posSwitch1VS BOOL
status
VS: value status
Position switch 2 value posSwitch2VS BOOL
status 0: Fault Chapter 6.1.6

Value status of output K1K2 K1K2VS BOOL


Time between the control feedbackTime TIME
command and the response
of the contactors

Table 6-129 Outputs of FB F20EStopFDoorSIL2PLd


 Siemens AG 2015 All rights reserved

Description Symbol Data type Convention Note


Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks. Can
is possible (safety be read out, for
door closed) example, in the
Release releaseEStop BOOL 1: Emergency standard user
program.
emergency stop stop released and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
required
Acknowledgment ackReqEStop BOOL
required

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 162
6 Solution for the User Scenarios

6.21.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F20EStopFDoorSIL2PLd. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

6.21.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
 Siemens AG 2015 All rights reserved

scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-130 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1K2 picks up
4 Press stop K1K2 drops out

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 163
6 Solution for the User Scenarios

Table 6-131 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1K2 picks up
4 Open the safety door K1K2 drops out
5 Close the safety door
6 Start again with no. 2

Table 6-132 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Acknowledgment mandatory when starting
the scenario for the first time
 Siemens AG 2015 All rights reserved

3 Press start K1K2 picks up


4 Press the emergency stop (eStop) K1K2 drops out
5 Release the emergency stop (eStop)
6 Press start K1K2 does not pick up (acknowledgment
required)
7 Start again with no. 2

Table 6-133 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Acknowledgment mandatory when starting
the scenario for the first time
3 Press start K1K2 picks up
4 Make sure that K1 or K2 does not drop out when Simulated welding of the contactor
shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out
7 Press start K1K2 does not pick up (acknowledgment
required)
8 Start with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 164
6 Solution for the User Scenarios

6.22 User Scenario 21:


Emergency Stop + Safety Door without Guard Locking
at PL c/SIL 1, Electromechanical Actuator
6.22.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Opening the safety door during operation safely shuts down the actuator.

6.22.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-134 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
 Siemens AG 2015 All rights reserved

SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0DG3
pushbutton (NC)
Position switch 1 3SE5132-1QV20
without tumbler
Actuator for position 1 3SE5000-0AV0
switch
Contactors 1 3RT2015-2BB42

Software components
Table 6-135 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 165
6 Solution for the User Scenarios

6.22.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-83 Emergency stop and safety door without guard locking PL c/SIL 1 wiring

24V DC
M

stop start ack

.0

.1

.2

L1
K1
M
 Siemens AG 2015 All rights reserved

L+ Vs1 0+
.3 L+
K1
.1
0-
M

.0

eStop posSwitch1
Vs1

Note In the F-program, the auxiliary contact of contactor K1 is termed “feedback”.

Note Due to the use of the FB FDBACK F-library block, it is useful to monitor
readback. Basically, monitoring the readback signals is not required for PL c/SIL
1.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 166
6 Solution for the User Scenarios

6.22.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Figure 6-84 Emergency stop + safety door without guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released Actuator is
? switched off
Yes

Previous
stop was Yes
 Siemens AG 2015 All rights reserved

operational
stop
?
No

Acknowledge

Start conditions
are complied

Actuator
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 167
6 Solution for the User Scenarios

6.22.5 Description of the user block FB F21EStopFDoorSIL1PLc

Figure 6-85 User block FB F21EStopFDoorSIL1PLc

NOTICE For F-blocks, the enable input (EN) must not be wired.
 Siemens AG 2015 All rights reserved

Parameter description
The following section describes the inputs and outputs of FB
F21EStopFDoorSIL1PLc.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-136 Inputs of FB F21EStopFDoorSIL1PLc


Description Symbol Data type Convention Note
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after triggering
the safety
function
 to reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Readback signal from readbackK1 BOOL NC
auxiliary contact of 0: Contactor has
contactor K1 picked up
Emergency stop eStop BOOL NC
pushbutton 0: Emergency
stop triggered

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 168
6 Solution for the User Scenarios

Description Symbol Data type Convention Note


Position switch posSwitch BOOL NC
1: Actuator
inserted (safety
door closed)

Position switch value status posSwitchVS BOOL 0: Fault VS: value status
Value status of output K1 K1VS BOOL Chapter 6.1.6

Time between the control feedbackTime TIME


command and the response
of the contactor

Table 6-137 Outputs of FB F21EStopFDoorSIL1PLc


Description Symbol Data type Convention Note
Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks. Can
is possible (safety be read out, for
door closed) example, in the
standard user
 Siemens AG 2015 All rights reserved

Release releaseEStop BOOL 1: Emergency


emergency stop program.
stop released and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
required
Acknowledgment ackReqEStop BOOL
required

6.22.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F21EStopFDoorSIL1PLc. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

6.22.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 169
6 Solution for the User Scenarios

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-138 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1 picks up
4 Press stop K1 drops out
 Siemens AG 2015 All rights reserved

Table 6-139 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Acknowledgment mandatory when starting
the scenario for the first time
3 Press start K1 picks up
4 Press the emergency stop (eStop) K1 drops out
5 Release the emergency stop (eStop)
6 Press start K1 does not pick up (acknowledgment
required)
7 Start again with no. 2

Table 6-140 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1 picks up
4 Open the safety door K1 drops out
5 Close the safety door
6 Start again with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 170
6 Solution for the User Scenarios

Table 6-141 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1 picks up
4 Make sure that K1 does not drop out when Simulated welding of the contactor
shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out
7 Press start K1 does not pick up (acknowledgment
required)
8 Start again with no. 2

6.23 User Scenario 22:


Emergency Stop and Safety Door without Guard
 Siemens AG 2015 All rights reserved

Locking at PL e/SIL 3, Electric Actuator


6.23.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Opening the safety door during operation safely shuts down the actuator.

6.23.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-142 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)
Position switch 2 3SE5132-1QV20
without tumbler

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 171
6 Solution for the User Scenarios

Component No. Article number Note


Actuator for position 2 3SE5000-0AV0
switch

Software components
Table 6-143 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 172
6 Solution for the User Scenarios

6.23.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-86 Emergency stop and safety door without guard locking PL e/SIL 3 wiring

24V DC
M

stop start ack

.0

.1

.2

L1

M
 Siemens AG 2015 All rights reserved

L+ Vs1
L+
0+
.1
M signalPLeSIL3Quality

0-

.1
.0

Vs2

posSwitch2 posSwitch1
eStop
Vs1

.0

Note For the actuator signals, please refer to chapter 6.1.7.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 173
6 Solution for the User Scenarios

6.23.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-87 Emergency stop + safety door without guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released Actuator is
? switched off
Yes

Previous
stop was Yes
operational
stop
 Siemens AG 2015 All rights reserved

?
No

Acknowledge

Start conditions
are complied

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 174
6 Solution for the User Scenarios

6.23.5 Description of the user block FB F22EStopFDoorSIL3PLe

Figure 6-88 User block FB F22EStopFDoorSIL3PLe

NOTICE For F-blocks, the enable input (EN) must not be wired.
 Siemens AG 2015 All rights reserved

Parameter description
The following section describes the inputs and outputs of FB
F22EStopFDoorSIL3PLe.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-144 Inputs of FB F22EStopFDoorSIL3PLe


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Emergency stop eStop BOOL NC/NC
pushbutton 0: Emergency
stop triggered
Position switch 1 posSwitch1 BOOL NC
1: Actuator
inserted (safety

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 175
6 Solution for the User Scenarios

Description Symbol Data Convention Note


type
door closed)
Position switch 2 posSwitch2 BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch 1 value posSwitch1VS BOOL 0: Fault
status
Position switch 2 value posSwitch2VS BOOL VS: value status
status Chapter 6.1.6
Value status of output signalPLeSIL3QualityVS BOOL
signalPLeSIL3Quality

Table 6-145 Outputs of FB F22EStopFDoorSIL3PLe


Description Symbol Data type Convention Note
Output signal signalPLeSIL3Quality BOOL 1: F-DQ output
from the F-DQ to set
the electric
actuator
Release safety releaseFDoor BOOL 1: With regard to Information of the
 Siemens AG 2015 All rights reserved

door safety door, start F-library blocks. Can


is possible be read out, for
(safety door example, in the
closed) standard user
program.
Release releaseEStop BOOL 1: Emergency
emergency stop stop released
and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
required
Acknowledgment ackReqEStop BOOL
required

6.23.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F22EStopFDoorSIL3PLe. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.3.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 176
6 Solution for the User Scenarios

6.23.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-146 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
 Siemens AG 2015 All rights reserved

safety door.
3 Press start signalPLeSIL3Quality = 1
4 Press stop signalPLeSIL3Quality = 0

Table 6-147 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start signalPLeSIL3Quality = 1
4 Press the emergency stop (eStop) signalPLeSIL3Quality = 0
5 Release the emergency stop (eStop)
6 Press start signalPLeSIL3Quality = 0
(acknowledgment required)
7 Start again with no. 2

Table 6-148 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 177
6 Solution for the User Scenarios

No. Action Comment


3 Press start signalPLeSIL3Quality = 1
4 Open the safety door signalPLeSIL3Quality = 0
5 Close the safety door
6 Start again with no. 2

6.24 User Scenario 23:


Emergency Stop + Safety Door without Guard Locking
at PL d/SIL 2, Electric Actuator

Note You are using a drive as an actuator. Please also follow the information in
chapter 6.1.7.

6.24.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Siemens AG 2015 All rights reserved

 Opening the safety door during operation safely shuts down the actuator.

6.24.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-149 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)
Position switch 2 3SE5132-1QV20
without tumbler
Actuator for position 2 3SE5000-0AV0
switch

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 178
6 Solution for the User Scenarios

Software components
Table 6-150 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

6.24.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-89 Emergency stop and safety door without guard locking PL d/SIL 2 wiring

24V DC
M

stop start ack

.0
 Siemens AG 2015 All rights reserved

.1

.2

L1

L+ Vs1 0+
L+
.1 signalPLdSIL2Quality
M

0-

.1
.0

Vs2

posSwitch2 posSwitch1
eStop
Vs1

.0

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 179
6 Solution for the User Scenarios

Note For the actuator signals, please refer to chapter 6.1.7.

6.24.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-90 Emergency stop + safety door without guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released Actuator is
? switched off
Yes
 Siemens AG 2015 All rights reserved

Previous
stop was Yes
operational stop
?

No

Acknowledge

Start conditions
are complied

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 180
6 Solution for the User Scenarios

6.24.5 Description of the user block FB F23EStopFDoorSIL2PLd

Figure 6-91 User block FB F23EStopFDoorSIL2PLd

NOTICE For F-blocks, the enable input (EN) must not be wired.
 Siemens AG 2015 All rights reserved

Parameter description
The following section describes the inputs and outputs of FB
F23EStopFDoorSIL2PLd.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-151 Inputs of FB F23EStopFDoorSIL2PLd


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Emergency stop eStop BOOL NC/NC
pushbutton 0: Emergency
stop triggered
Position switch 1 posSwitch1 BOOL NC
1: Actuator
inserted (safety

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 181
6 Solution for the User Scenarios

Description Symbol Data Convention Note


type
door closed)
Position switch 2 posSwitch2 BOOL NC
1: Actuator
inserted (safety
door closed)
Position switch 1 value posSwitch1VS BOOL
status
Position switch 2 value posSwitch2VS BOOL VS: value status
status 0: Fault Chapter 6.1.6
Value status of output signalPLdSIL2QualityVS BOOL
signalPLdSIL2Quality

Table 6-152 Outputs of FB F23EStopFDoorSIL2PLd


Description Symbol Data type Convention Note
Output signal signalPLdSIL2Quality BOOL 1: F-DQ output
from the F-DQ to set
the electric
actuator
Release safety releaseFDoor BOOL 1: With regard to Information of the
 Siemens AG 2015 All rights reserved

door safety door, start F-library blocks.


is possible (safety Can be read out,
door closed) for example, in the
Release releaseEStop BOOL 1: Emergency standard user
program.
emergency stop stop released and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
required
Acknowledgment ackReqEStop BOOL
required

6.24.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F23EStopFDoorSIL2PLd. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 182
6 Solution for the User Scenarios

6.24.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-153 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
 Siemens AG 2015 All rights reserved

safety door.
3 Press start signalPLdSIL2Quality = 1
4 Press stop signalPLdSIL2Quality = 0

Table 6-154 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start signalPLdSIL2Quality = 1
4 Press the emergency stop (eStop) signalPLdSIL2Quality = 0
5 Release the emergency stop (eStop)
6 Press start signalPLdSIL2Quality = 0
(acknowledgment required)
7 Start again with no. 2

Table 6-155 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 183
6 Solution for the User Scenarios

No. Action Comment


3 Press start signalPLdSIL2Quality = 1
4 Open the safety door signalPLdSIL2Quality = 0
5 Close the safety door
6 Start again with no. 2

6.25 User Scenario 24:


Emergency Stop + Safety Door without Guard Locking
at PL c/SIL 1, Electric Actuator
6.25.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Opening the safety door during operation safely shuts down the actuator.

6.25.2 Hardware and software components


 Siemens AG 2015 All rights reserved

You need the hardware and software components listed below.

Hardware components
Table 6-156 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0DG3
pushbutton (NC)
Position switch 1 3SE5132-1QV20
without tumbler
Actuator for position 1 3SE5000-0AV0
switch

Software components
Table 6-157 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 184
6 Solution for the User Scenarios

6.25.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-92 Emergency stop and safety door without guard locking PL c/SIL 1 wiring

24V DC
M

stop start ack

.0

.1

.2

L1

M
 Siemens AG 2015 All rights reserved

L+ Vs1
L+
0+
.1
M
signalPLcSIL1Quality

0-

.0

eStop posSwitch1
Vs1

Note For the actuator signals, please refer to chapter 6.1.7.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 185
6 Solution for the User Scenarios

6.25.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.


Figure 6-93 Emergency stop + safety door without guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released Actuator is
? switched off
Yes

Previous
stop was Yes
operational
stop
 Siemens AG 2015 All rights reserved

?
No

Acknowledge

Start conditions
are complied

Actuator
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 186
6 Solution for the User Scenarios

6.25.5 Description of the user block FB F24EStopFDoorSIL1PLc

Figure 6-94 User block FB F24EStopFDoorSIL1PLc

NOTICE For F-blocks, the enable input (EN) must not be wired.

Parameter description
 Siemens AG 2015 All rights reserved

The following section describes the inputs and outputs of FB


F24EStopFDoorSIL1PLc.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-158 Inputs of FB F24EStopFDoorSIL1PLc


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: required
Acknowledgment  after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Emergency stop eStop BOOL NC
pushbutton 0: Emergency
stop triggered
Position switch posSwitch BOOL NC
1: Actuator
inserted (safety
door closed)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 187
6 Solution for the User Scenarios

Description Symbol Data Convention Note


type
Position switch value posSwitchVS BOOL 0: Fault
status VS: value status
Value status of output signalPLcSIL1QualityVS BOOL Chapter 6.1.6
signalPLcSIL1Quality

Table 6-159 Outputs of FB F24EStopFDoorSIL1PLc


Description Symbol Data type Convention Note
Output signal signalPLcSIL1Quality BOOL 1: F-DQ output
from the F-DQ to set
the electric
actuator
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
Release releaseEStop BOOL 1: Emergency standard user
emergency stop program.
stop released and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
 Siemens AG 2015 All rights reserved

for safety door Acknowledgment


required
Acknowledgment ackReqEStop BOOL
required

6.25.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F24EStopFDoorSIL1PLc. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.1.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 188
6 Solution for the User Scenarios

6.25.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-160 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
 Siemens AG 2015 All rights reserved

safety door.
3 Press start signalPLcSIL1Quality = 1
4 Press stop signalPLcSIL1Quality = 0

Table 6-161 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start signalPLcSIL1Quality = 1
4 Press the emergency stop (eStop) signalPLcSIL1Quality = 0
5 Release the emergency stop (eStop)
6 Press start signalPLcSIL1Quality = 0
(acknowledgment required)
7 Start again with no. 2

Table 6-162 Safety function: Safe shutdown when the safety door is opened
No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 189
6 Solution for the User Scenarios

No. Action Comment


3 Press start signalPLcSIL1Quality = 1
4 Open the safety door signalPLcSIL1Quality = 0
5 Close the safety door
6 Start again with no. 2

6.26 User Scenario 25:


Emergency Stop + Safety Door with Guard Locking at
PL e/SIL 3, Electromechanical Actuator
6.26.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
 Siemens AG 2015 All rights reserved

the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.

6.26.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-163 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 190
6 Solution for the User Scenarios

Component No. Article number Note


Hinge switch 1 3SE5132-0LU21
Actuator for position 1 3SE5000-0AV0
switch
Contactors 2 3RT2015-2BB42

Software components
Table 6-164 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 191
6 Solution for the User Scenarios

6.26.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-95 Emergency stop + safety door with guard locking PL e/SIL 3 wiring

24V DC
M

stop start ack

.0

.1

.2 L+

.4 M
L1 .3
0+ Vs1
K2 K1
M
 Siemens AG 2015 All rights reserved

L+ .0 K1 K2

.5 eMagnet .1
0-

1-

1+
fDoorCoil

.1

Vs2

hingedSwitch
sepAct

.0

eStop

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 192
6 Solution for the User Scenarios

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-96 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)
 Siemens AG 2015 All rights reserved

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 193
6 Solution for the User Scenarios

6.26.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ack=1.

Figure 6-97 Emergency stop + safety door with guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released
? Actuators stop
Yes
 Siemens AG 2015 All rights reserved

Previous
stop was Yes
operational
Timer starts
stop
?
No

Unlock No
Acknowledge timer
expired
?
Yes

Start conditions Safety door


are complied interlocking
is released

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 194
6 Solution for the User Scenarios

In this example for electromechanical actuators, the safety door’s guard


locking is deactivated when the timer has expired. For moving parts, a
hazard cannot be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

6.26.5 Description of the user block FB F25EStopFDoorSIL3PLe

Figure 6-98 User block FB F25EStopFDoorSIL3PLe


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Note This example assumes that you are using a hinge switch (hingedSwitch) as a
second channel. However, it is not mandatory to use a hinge switch. The
required dual-channel redundancy can also be implemented with a different
switch.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 195
6 Solution for the User Scenarios

Parameter description
The following section describes the inputs and outputs of FB
F25EStopFDoorSIL3PLe.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-165 Inputs of FB F25EStopFDoorSIL3PLe


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: Acknowledgment required
 after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
 Siemens AG 2015 All rights reserved

Stop request stop BOOL NC


0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter 6.1.2
position switch 0: Magnet in position
switch energized
1: Magnet in position
switch de-energized
Readback signal from readbackK1 BOOL
auxiliary contact of
contactor K1 NC
0: Contactor has picked
Readback signal from readbackK2 BOOL up
auxiliary contact of
contactor K2
Emergency stop pushbutton eStop BOOL NC/NC
0: Emergency stop
triggered
Position switch sepAct BOOL NC
1: Actuator inserted
(safety door closed) Chapter 6.1.2
Hinge switch hingedSwitch BOOL NC
1: Unoperated (safety
door
closed)
Position switch value status sepActVS BOOL
Hinge switch value status hingedSwitchVS BOOL
VS: value status
Value status of output K1K2 K1K2_VS BOOL 0: Fault Chapter 6.1.6
Value status of output fDoorCoil_VS BOOL
fDoorCoil
Time between the control feedbackTime TIME
command and the response
of the contactors

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 196
6 Solution for the User Scenarios

Description Symbol Data Convention Note


type
Time delay after shutdown delayTimeUnlock TIME When the time has Choose a time
of the actuators to release elapsed, the door will be which is long
the safety door. released. enough

Table 6-166 Outputs of FB F25EStopFDoorSIL3PLe


Description Symbol Data type Convention Note
Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
Magnet in the fDoorCoil BOOL 0: Guard locking
position switch active
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
Release releaseEStop BOOL 1: Emergency stop standard user
program.
emergency stop released and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
 Siemens AG 2015 All rights reserved

required
Acknowledgment AckReqEStop BOOL
required

6.26.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F32F25EStopFDoorSIL3PLe. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.3.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 197
6 Solution for the User Scenarios

6.26.7 Implementation of the safety functions in the F-program

In this chapter, you will find information on the structure of the F-program that is (in
parts) also applicable to the other user scenarios.

Release
The application will only be released when the F-library blocks for the safety door
(FB SFDOOR) and the emergency stop (FB ESTOP1), for their part, give the
release (Q=1).
Figure 6-99 Release of safety door and emergency stop

For each release,


Q=1 is required
 Siemens AG 2015 All rights reserved

Switching the actuator


The actuator can only be switched on when the safety door provides feedback that
the safety door was interlocked. This information is provided via the eMagnet
variable that correlates with the magnet in the position switch (see also “Safety
door signals” in chapter 6.1.2).

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 198
6 Solution for the User Scenarios

Figure 6-100 Switching the actuator

Contactor auxiliary
contacts must
correlate
with the actuator
signal

Missing release of
safety door or e-stop or
operational stop
switches off the actuator

Feedback from the


magnet in the position
switch as a
switch-on condition
 Siemens AG 2015 All rights reserved

Guard locking
The guard locking also uses FB FDBACK. This is where the correlation of the
signals of the eMagnet monitoring contact and of the magnet in the position switch
is monitored.
Figure 6-101 Activating and monitoring the interlocking

Death or severe personal injury may result if the actuator starts before the
safety door is interlocked.
WARNING For the following reason, this risk does not exist in the user scenarios described
in this document: The guard locking, incl. monitoring, was programmed in a
network following the switching of the actuator. This means that the actuator
only starts one program cycle after the safety door has been interlocked
(switch-on condition due to eMagnet).

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 199
6 Solution for the User Scenarios

6.26.8 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-167 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
 Siemens AG 2015 All rights reserved

2 Press ack Required when starting the scenario for the


first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then K1K2 picks
up
4 Press stop K1K2 drops out; then the timer for the
delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Table 6-168 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1K2 picks up
4 Press the emergency stop (eStop) K1K2 drops out
5 Release the emergency stop (eStop)
6 Press start K1K2 does not pick up (acknowledgment
required)
7 Wait until the timer expires.
8 Start again with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 200
6 Solution for the User Scenarios

Table 6-169 Safety function: Safety door fault


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then K1K2 picks
up
4 Turn the hinge switch until it outputs “0” signal. K1K2 drops out; then the timer for the
delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.
6 Close the safety door
7 Start again with no. 1

Table 6-170 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
 Siemens AG 2015 All rights reserved

and close the door completely.


2 Press ack Acknowledgment mandatory when starting
the scenario for the first time
3 Press start K1K2 picks up
4 Make sure that K1 or K2 does not drop out when Simulated welding of the contactor
shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out
7 Press start K1K2 does not pick up (acknowledgment
required)
8 Start with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 201
6 Solution for the User Scenarios

6.27 User Scenario 26:


Emergency Stop + Safety Door with Guard Locking at
PL d/SIL 2, Electromechanical Actuator
6.27.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.
 Siemens AG 2015 All rights reserved

6.27.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-171 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)
Hinge switch 1 3SE5132-0LU21
Actuator for position 1 3SE5000-0AV0
switch
Contactors 2 3RT2015-2BB42

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 202
6 Solution for the User Scenarios

Software components
Table 6-172 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 203
6 Solution for the User Scenarios

6.27.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-102 Emergency stop + safety door with guard locking PL d/SIL 2 wiring

24V DC
M

stop start ack

.0

.1

.2 L+

.4 M
L1 .3
0+ Vs1
K2 K1
M
 Siemens AG 2015 All rights reserved

L+ .0 K1 K2

.1
.5 eMagnet 0-

1-

1+
fDoorCoil

.1

Vs2

hingedSwitch
sepAct

.0

eStop

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 204
6 Solution for the User Scenarios

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-103 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)
 Siemens AG 2015 All rights reserved

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)

6.27.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ack=1.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 205
6 Solution for the User Scenarios

Figure 6-104 Emergency stop + safety door with guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released
? Actuators stop
Yes

Previous
stop was Yes
operational
Timer starts
stop
?
No
 Siemens AG 2015 All rights reserved

Unlock No
Acknowledge timer
expired
?
Yes

Start conditions Safety door


are complied interlocking
is released

Actuators
on

In this example for electromechanical actuators, the safety door’s guard


locking is deactivated when the timer has expired. For moving parts, a
hazard cannot be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 206
6 Solution for the User Scenarios

6.27.5 Description of the user block FB F26EStopFDoorSIL2PLd

Figure 6-105 User block FB F26EStopFDoorSIL2PLd


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Note This example assumes that you are using a hinge switch (hingedSwitch) as a
second channel. However, it is not mandatory to use a hinge switch. The
required dual-channel redundancy can also be implemented with a different
switch.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Parameter description
The following section describes the inputs and outputs of FB
F26EStopFDoorSIL2PLd.

Note NO: normally open (contact); NC: normally closed (contact)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 207
6 Solution for the User Scenarios

Table 6-173 Inputs of FB F26EStopFDoorSIL2PLd


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: Acknowledgment required
 after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter 6.1.2
position switch 0: Magnet in position
switch energized
1: Magnet in position
switch de-energized
Readback signal from readbackK1 BOOL
 Siemens AG 2015 All rights reserved

auxiliary contact of
contactor K1 NC
0: Contactor has picked
Readback signal from readbackK2 BOOL up
auxiliary contact of
contactor K2
Emergency stop pushbutton eStop BOOL NC/NC
0: Emergency stop
triggered
Position switch sepAct BOOL NC
1: Actuator inserted
(safety door closed)
Chapter 6.1.2
Hinge switch hingedSwitch BOOL NC
1: Unoperated (safety
door
closed)
Position switch value status sepActVS BOOL
Hinge switch value status hingedSwitchVS BOOL
VS: value status
Value status of output K1K2 K1K2_VS BOOL 0: Fault Chapter 6.1.6
Value status of output fDoorCoil_VS BOOL
fDoorCoil
Time between the control feedbackTime TIME
command and the response
of the contactors
Time delay after shutdown delayTimeUnlock TIME When the time has Choose a time
of the actuators to release elapsed, the door will be which is long
the safety door. released. enough

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 208
6 Solution for the User Scenarios

Table 6-174 Outputs of FB F26EStopFDoorSIL2PLd


Description Symbol Data type Convention Note
Contactors K1/K2 K1K2 BOOL 1: Control Actuator on F-DQ
command for the
contactors
Magnet in the fDoorCoil BOOL 0: Guard locking
position switch active
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
Release releaseEStop BOOL 1: Emergency stop standard user
emergency stop program.
released and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
Acknowledgment AckReqEStop BOOL required
required

6.27.6 Configuration and parameterization


 Siemens AG 2015 All rights reserved

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F26EStopFDoorSIL2PLd. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 209
6 Solution for the User Scenarios

6.27.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-175 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
 Siemens AG 2015 All rights reserved

first time and after each opening of the


safety door.
3 Press start Guard locking is activated, then K1K2 picks
up
4 Press stop K1K2 drops out; then the timer for the
delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Table 6-176 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1K2 picks up
4 Press the emergency stop (eStop) K1K2 drops out
5 Release the emergency stop (eStop)
6 Press start K1K2 does not pick up (acknowledgment
required)
7 Wait until the timer expires.
8 Start again with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 210
6 Solution for the User Scenarios

Table 6-177 Safety function: Safety door fault


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then K1K2 picks
up
4 Turn the hinge switch until it outputs “0” signal. K1K2 drops out; then the timer for the
delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.
6 Close the safety door
7 Start again with no. 1

Table 6-178 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
 Siemens AG 2015 All rights reserved

and close the door completely.


2 Press ack Acknowledgment mandatory when starting
the scenario for the first time
3 Press start K1K2 picks up
4 Make sure that K1 or K2 does not drop out when Simulated welding of the contactor
shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out
7 Press start K1K2 does not pick up (acknowledgment
required)
8 Start with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 211
6 Solution for the User Scenarios

6.28 User Scenario 27:


Emergency Stop + Safety Door with Guard Locking at
PL c/SIL 1, Electromechanical Actuator
6.28.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.
 Siemens AG 2015 All rights reserved

6.28.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-179 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0DG3
pushbutton (NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)
Actuator for position 1 3SE5000-0AV0
switch
Contactors 1 3RT2015-2BB42

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 212
6 Solution for the User Scenarios

Software components
Table 6-180 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 213
6 Solution for the User Scenarios

6.28.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-106 Emergency stop + safety door with guard locking PL c/SIL 1 wiring

24V DC
M

stop start ack

.0

.1

.2 L+

M
L1
Vs1
K1
M
 Siemens AG 2015 All rights reserved

.4
.0 0+
L+
K1
.1
.3 eMagnet 0-

1-

1+
fDoorCoil

.1

sepAct

.0

eStop

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 214
6 Solution for the User Scenarios

Note Due to the use of the FB FDBACK F-library block, it is useful to monitor
readback. Basically, monitoring the readback signals is not required for
PL c/SIL 1.

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-107 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)
 Siemens AG 2015 All rights reserved

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 215
6 Solution for the User Scenarios

6.28.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ack=1.

Figure 6-108 Emergency stop + safety door with guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released
? Actuator stops
Yes
 Siemens AG 2015 All rights reserved

Previous
stop was Yes
operational
Timer starts
stop
?
No

Unlock No
Acknowledge timer
expired
?
Yes

Start conditions Safety door


are complied interlocking
is released

Actuator
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 216
6 Solution for the User Scenarios

In this example for electromechanical actuators, the safety door’s guard


locking is deactivated when the timer has expired. For moving parts, a
hazard cannot be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

6.28.5 Description of the user block FB F27EStopFDoorSIL1PLc

Figure 6-109 User block FB F27EStopFDoorSIL1PLc


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Parameter description
The following section describes the inputs and outputs of FB
F27EStopFDoorSIL1PLc.

Note NO: normally open (contact); NC: normally closed (contact)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 217
6 Solution for the User Scenarios

Table 6-181 Inputs of FB F27EStopFDoorSIL1PLc


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: Acknowledgment required
 after
triggering
the safety
function
 to
reintegrate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter 6.1.2
position switch 0: Magnet in position
switch energized
1: Magnet in position
switch de-energized
Readback signal from readbackK1 BOOL NC
auxiliary contact of 0: Contactor has picked
 Siemens AG 2015 All rights reserved

contactor K1 up
Emergency stop pushbutton eStop BOOL NC/NC
0: Emergency stop
triggered
Position switch sepAct BOOL NC
Chapter 6.1.2
1: Actuator inserted
(safety door closed)

Position switch value status sepActVS BOOL 0: Fault VS: value status
Value status of output K1 K1_VS BOOL Chapter 6.1.6

Time between the control feedbackTime TIME


command and the response
of the contactor
Time delay after shutdown delayTimeUnlock TIME When the time has Choose a time
of the actuators to release elapsed, the door will be which is long
the safety door. released. enough

Table 6-182 Outputs of FB F27EStopFDoorSIL1PLc


Description Symbol Data type Convention Note
Contactor K1 K1 BOOL 1: Actuator Actuator on F-DQ
switched
(contactor has
picked up)
Magnet in the fDoorCoil BOOL 0: Guard locking
position switch active
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
Release releaseEStop BOOL 1: Emergency stop standard user
program.
released and

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 218
6 Solution for the User Scenarios

Description Symbol Data type Convention Note


emergency stop acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
required
Acknowledgment AckReqEStop BOOL
required

6.28.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F27EStopFDoorSIL1PLc. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.
 Siemens AG 2015 All rights reserved

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.1.2.

6.28.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 219
6 Solution for the User Scenarios

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-183 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then K1 picks up
4 Press stop K1 drops out; then the timer for the delayed
release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Table 6-184 Safety function: Trigger emergency stop


 Siemens AG 2015 All rights reserved

No. Action Comment


1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1 picks up
4 Press the emergency stop (eStop) K1 drops out
5 Release the emergency stop (eStop)
6 Press start K1 does not pick up (acknowledgment
required)
7 Start again with no. 2

Table 6-185 Trigger readback error


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start K1 picks up
4 Make sure that K1 does not drop out when Simulated welding of the contactor
shutting down
5 Press stop Readback error is detected
6 Let the contactor drop out
7 Press start K1 does not pick up (acknowledgment

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 220
6 Solution for the User Scenarios

No. Action Comment


required)
8 Start with no. 2

6.29 User Scenario 28:


Emergency Stop and Safety Door with Guard Locking
at PL e/SIL 3, Electric Actuator
6.29.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.
 Siemens AG 2015 All rights reserved

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.

6.29.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-186 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)
Hinge switch 1 3SE5132-0LU21
Actuator for position 1 3SE5000-0AV0

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 221
6 Solution for the User Scenarios

Component No. Article number Note


switch

Software components
Table 6-187 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 222
6 Solution for the User Scenarios

6.29.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-110 Emergency stop + safety door with guard locking PL e/SIL 3 wiring

24V DC
M

stop start ack

.0

.1

.2 L+

M
L1
Vs1
M
 Siemens AG 2015 All rights reserved

.3 .0 0+
L+
SignalPLeSIL3Quality
.1 0-
eMagnet

1-

1+
fDoorCoil

.1

Vs2

hingedSwitch

sepAct
.0

eStop

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 223
6 Solution for the User Scenarios

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-111 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)
 Siemens AG 2015 All rights reserved

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 224
6 Solution for the User Scenarios

6.29.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ack=1.

Figure 6-112 Emergency stop + safety door with guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released
? Actuators stop
Yes
 Siemens AG 2015 All rights reserved

Previous
stop was Yes
operational Timer starts
stop
?
No

Unlock No
Acknowledge timer
expired
?
Yes

Start conditions Safety door


are complied interlocking
is released

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 225
6 Solution for the User Scenarios

In this example for electric actuators, the safety door’s guard locking is
deactivated when the timer has expired. For moving parts, a hazard cannot
be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

6.29.5 Description of the user block FB F28EStopFDoorSIL3PLe

Figure 6-113 User block FB F28EStopFDoorSIL3PLe


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Note This example assumes that you are using a hinge switch (hingedSwitch) as a
second channel. However, it is not mandatory to use a hinge switch. The
required dual-channel redundancy can also be implemented with a different
switch.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 226
6 Solution for the User Scenarios

Parameter description
The following section describes the inputs and outputs of FB
F28EStopFDoorSIL3PLe.

Note NO: normally open (contact); NC: normally closed (contact)

Table 6-188 Inputs of FB F28EStopFDoorSIL3PLe


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive
1: Acknowledgment edge
required
 after
triggerin
g the
safety
function
 to
reintegr
ate
F-I/O
 Siemens AG 2015 All rights reserved

Start request start BOOL NO


1: Start request
Stop request stop BOOL NC
0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter
position switch 0: Magnet in 6.1.2
position switch
energized
1: Magnet in
position switch de-
energized
Emergency stop eStop BOOL NC/NC
pushbutton 0: Emergency stop
triggered
Position switch sepAct BOOL NC
1: Actuator inserted
(safety door closed) Chapter
Hinge switch hingedSwitch BOOL NC 6.1.2
1: Unoperated
(safety door
closed)
Position switch value status sepActVS BOOL
Hinge switch value status hingedSwitchVS BOOL VS: value
0: Fault
Value status of output signalPLeSIL3Quality_VS BOOL status
signalPLeSIL3Quality Chapter
6.1.6
Value status of output fDoorCoil_VS BOOL
fDoorCoil
In the position switch: Time feedbackTime TIME
between the response of
the magnet and the
monitoring contact

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 227
6 Solution for the User Scenarios

Description Symbol Data Convention Note


type
Time delay after shutdown delayTimeUnlock TIME When the time has Choose a
of the actuators to release elapsed, the door time which is
the safety door. will be released. long enough

Table 6-189 Outputs of FB F28EStopFDoorSIL3PLe


Description Symbol Data type Convention Note
Channel 1: signalPLeSIL3Quality BOOL 1: F-DQ output
Output signal set
from the F-DQ to
the electric
actuator
Magnet in the fDoorCoil BOOL 0: Guard locking
position switch active
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks. Can
is possible be read out, for
(safety door example, in the
closed) standard user
program.
Release releaseEStop BOOL 1: Emergency
emergency stop stop released
 Siemens AG 2015 All rights reserved

and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
required
Acknowledgment AckReqEStop BOOL
required

6.29.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F28EStopFDoorSIL3PLe. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.3.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 228
6 Solution for the User Scenarios

6.29.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-190 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
 Siemens AG 2015 All rights reserved

first time and after each opening of the


safety door.
3 Press start Guard locking is activated, then
signalPLeSIL3Quality=1
4 Press stop signalPLeSIL3Quality = 0; then the timer for
the delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Table 6-191 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start signalPLeSIL3Quality=1
4 Press the emergency stop (eStop) signalPLeSIL3Quality=0
5 Release the emergency stop (eStop)
6 Press start signalPLeSIL3Quality=0
(acknowledgment required)
7 Wait until the timer expires.
8 Start again with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 229
6 Solution for the User Scenarios

Table 6-192 Safety function: Safety door fault


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then
signalPLeSIL3Quality=1
4 Turn the hinge switch until it outputs “0” signal. signalPLeSIL3Quality = 0; then the timer for
the delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.
6 Close the safety door
7 Start again with no. 1

6.30 User Scenario 29:


Emergency Stop + Safety Door with Guard Locking at
 Siemens AG 2015 All rights reserved

PL d/SIL 2, Electric Actuator

Note You are using a drive as an actuator. Please also follow the information in
chapter 6.1.7.

6.30.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 230
6 Solution for the User Scenarios

6.30.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-193 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0EG3
pushbutton (NC/NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
 Siemens AG 2015 All rights reserved

(spring-locked)
Hinge switch 1 3SE5132-0LU21
Actuator for position 1 3SE5000-0AV0
switch

Software components
Table 6-194 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 231
6 Solution for the User Scenarios

6.30.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-114 Emergency stop + safety door with guard locking PL d/SIL 2 wiring

24V DC
M

stop start ack

.0

.1

.2 L+

M
L1
Vs1
M
 Siemens AG 2015 All rights reserved

.3 .0 0+
L+
signalPLdSIL2Quality
.1
eMagnet 0-

1-

1+
fDoorCoil

.1

Vs2

hingedSwitch

.0
sepAct

eStop

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 232
6 Solution for the User Scenarios

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-115 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)
 Siemens AG 2015 All rights reserved

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)

6.30.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ack=1.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 233
6 Solution for the User Scenarios

Figure 6-116 Emergency stop + safety door with guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released
? Actuators stop
Yes

Previous
stop was Yes
operational Timer starts
stop
?
No
 Siemens AG 2015 All rights reserved

Unlock No
Acknowledge timer
expired
?
Yes

Start conditions Safety door


are complied interlocking
is released

Actuators
on

In this example for electric actuators, the safety door’s guard locking is
deactivated when the timer has expired. For moving parts, a hazard cannot
be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 234
6 Solution for the User Scenarios

6.30.5 Description of the user block FB F29EStopFDoorSIL2PLd

Figure 6-117 User block FB F29EStopFDoorSIL2PLd


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Note This example assumes that you are using a hinge switch (hingedSwitch) as a
second channel. However, it is not mandatory to use a hinge switch. The
required dual-channel redundancy can also be implemented with a different
switch.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Parameter description
The following section describes the inputs and outputs of FB
F29EStopFDoorSIL2PLd.

Note NO: normally open (contact); NC: normally closed (contact)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 235
6 Solution for the User Scenarios

Table 6-195 Inputs of FB F29EStopFDoorSIL2PLd


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive
1: Acknowledgment edge
required
 after
triggerin
g the
safety
function
 to
reintegr
ate
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter
position switch 0: Magnet in 6.1.2
position switch
energized
1: Magnet in
 Siemens AG 2015 All rights reserved

position switch de-


energized
Emergency stop eStop BOOL NC/NC
pushbutton 0: Emergency stop
triggered
Position switch sepAct BOOL NC
1: Actuator inserted
(safety door closed) Chapter
Hinge switch hingedSwitch BOOL NC 6.1.2
1: Unoperated
(safety door
closed)
Position switch value status sepActVS BOOL
Hinge switch value status hingedSwitchVS BOOL VS: value
Value status of output signalPLdSIL2Quality_VS BOOL status
0: Fault
signalPLdSIL2Quality Chapter
6.1.6
Value status of output fDoorCoil_VS BOOL
fDoorCoil
In the position switch: Time feedbackTime TIME
between the response of
the magnet and the
monitoring contact
Time delay after shutdown delayTimeUnlock TIME When the time has Choose a
of the actuators to release elapsed, the door time which is
the safety door. will be released. long enough

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 236
6 Solution for the User Scenarios

Table 6-196 Outputs of FB F29EStopFDoorSIL2PLd


Description Symbol Data type Convention Note
Output signal from signalPLdSIL2Quality BOOL 1: F-DQ output
the F-DQ to the set
electric actuator
Magnet in the fDoorCoil BOOL 0: Guard locking
position switch active
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
Release releaseEStop BOOL 1: Emergency standard user
program.
emergency stop stop released and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment
required
Acknowledgment AckReqEStop BOOL
required

6.30.6 Configuration and parameterization


 Siemens AG 2015 All rights reserved

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F29EStopFDoorSIL2PLd. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.2.2.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 237
6 Solution for the User Scenarios

6.30.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios. These
scenarios can also be used as verification steps for validation.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released
 Safety door closed

Table 6-197 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
 Siemens AG 2015 All rights reserved

first time and after each opening of the


safety door.
3 Press start Guard locking is activated, then
signalPLdSIL2Quality = 1
4 Press stop signalPLdSIL2Quality=0; then the timer for
the delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Table 6-198 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start signalPLdSIL2Quality=1
4 Press the emergency stop (eStop) signalPLdSIL2Quality=0
5 Release the emergency stop (eStop)
6 Press start signalPLdSIL2Quality=0;
(acknowledgment required)
7 Wait until the timer expires.
8 Start again with no. 2

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 238
6 Solution for the User Scenarios

Table 6-199 Safety function: Safety door fault


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then
signalPLdSIL2Quality = 1
4 Turn the hinge switch until it outputs “0” signal. signalPLdSIL2Quality=0; then the timer for
the delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.
6 Close the safety door
7 Start again with no. 1
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 239
6 Solution for the User Scenarios

6.31 User Scenario 30:


Emergency Stop + Safety Door with Guard Locking at
PL c/SIL 1, Electric Actuator
6.31.1 Safety function

This user scenario has the following safety functions:


 Pressing the emergency stop button safely shuts down the actuator.
 Safety function with regard to the position of the safety door (interlocking)
– Opening the safety door during operation safely shuts down the actuator.
 Safety function with regard to guard locking
– After shutdown of the actuator, the safety door may only be opened when
the actuator no longer constitutes a hazard.

Note Under “Normative assessment of guard locking”, chapter 6.1.2 addresses the
situation where there is a safety function with regard to guard locking.
 Siemens AG 2015 All rights reserved

6.31.2 Hardware and software components

You need the hardware and software components listed below.

Hardware components
Table 6-200 Hardware
Component No. Article number Note
CPU 1215FC 1 6ES7215-1HF40-0XB0
DC/DC/RLY
SM 1226 F- 1 6ES7226-6BA32-0XB0
DI8/16x24VDC
SM 1226 F-DQ 1 6ES7 226-6DA32-0XB0
4x24VDC
Enclosed 2 3SB3801-0DD3
pushbutton (NO)
Enclosed 1 3SB3801-0DB3
pushbutton (NC)
Emergency stop 1 3SB3801-0DG3
pushbutton (NC)
Position switch with 1 3SE5322-0SD21
solenoid interlocking
(spring-locked)
Actuator for position 1 3SE5000-0AV0
switch

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 240
6 Solution for the User Scenarios

Software components
Table 6-201 Software
Component No. Article number Note
STEP 7 Basic 1 6ES7822-0AA03-0YA5 Or STEP 7 Professional
STEP 7 Safety 1 6ES7833-1FB13-0YA5 Or STEP 7 Safety Advanced
Basic V13 SP1
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 241
6 Solution for the User Scenarios

6.31.3 Wiring

The figure below shows the wiring of the hardware components.


Figure 6-118 Emergency stop + safety door with guard locking PL c/SIL 1 wiring

24V DC
M

stop start ack

.0

.1

.2 L+

M
L1
Vs1
M
 Siemens AG 2015 All rights reserved

.3 .0 0+
L+
signalPLcSIL1Quality
.1 0-
eMagnet

1-

1+
fDoorCoil

sepAct

.0

eStop

Vs1

Note In the F-program, the NC auxiliary contacts of the contactors K1 and K2 are
termed “feedback1” and “feedback2”.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 242
6 Solution for the User Scenarios

In the safety program, the signals of the position switch are defined as follows:
 sepAct (monitoring of the actuator position)
 sepAct (monitoring of the locking device position)
 fDoorCoil (control of guard locking)

The following figure shows the wiring on the position switch and therefore
complements the above connection diagram.

Figure 6-119 Internal terminals of the position switch with solenoid interlocking

sepAct (F-DI) CH + (F-DQ)


eMagnet (Standard-DI)
 Siemens AG 2015 All rights reserved

L+ (F-CPU)
Vs1 (F-DI) CH – (F-DQ)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 243
6 Solution for the User Scenarios

6.31.4 Brief description of the core functionality

The following flowchart provides a concise description of the core functionality.

Note Before starting the scenario for the first time, open and close the safety door
once. Then acknowledge with ack=1.

Figure 6-120 Emergency stop + safety door with guard locking – core functionality

Start

No
Stop request?
No
Safety door
Yes
closed
and e-stop
released
? Actuator stops
Yes
 Siemens AG 2015 All rights reserved

Previous
stop was Yes
operational Timer starts
stop
?
No

Unlock No
Acknowledge timer
expired
?
Yes

Start conditions Safety door


are complied interlocking
is released

Actuators
on

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 244
6 Solution for the User Scenarios

In this example for electric actuators, the safety door’s guard locking is
deactivated when the timer has expired. For moving parts, a hazard cannot
be automatically ruled out when the timer has expired.
WARNING
Make sure that the safety door’s guard locking is deactivated only when a hazard
no longer exists.

6.31.5 Description of the user block FB F30EStopFDoorSIL1PLc

Figure 6-121 User block FB F30EStopFDoorSIL1PLc


 Siemens AG 2015 All rights reserved

NOTICE For F-blocks, the enable input (EN) must not be wired.

Death or severe personal injury may result if you select a delayTimeUnlock


time that is too short.
WARNING Customize these times to your requirements, for example to the slow-down time
of a hazardous machine, to release the safety door when the delayTimeUnlock
time has expired.

Parameter description
The following section describes the inputs and outputs of FB
F30EStopFDoorSIL1PLc.

Note NO: normally open (contact); NC: normally closed (contact)

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 245
6 Solution for the User Scenarios

Table 6-202 Inputs of FB F30EStopFDoorSIL1PLc


Description Symbol Data Convention Note
type
Acknowledgment ack BOOL NO Positive edge
1: Acknowledgment required
 after
triggering
the
safety
function
 to
reintegrat
e
F-I/O
Start request start BOOL NO
1: Start request
Stop request stop BOOL NC
0: Stop request
Monitoring of magnet in eMagnet BOOL NC Chapter 6.1.2
position switch 0: Magnet in position
switch energized
1: Magnet in position
switch de-energized
 Siemens AG 2015 All rights reserved

Emergency stop eStop BOOL NC


pushbutton 0: Emergency stop
triggered
Position switch sepAct BOOL NC
Chapter 6.1.2
1: Actuator inserted
(safety door closed)

Position switch value sepActVS BOOL 0: Fault


status VS: value
status
Value status of output signalPLcSIL1QualityVS BOOL Chapter 6.1.6
signalPLcSIL1Quality
Time delay after shutdown delayTimeUnlock TIME When the time has Choose a
of the actuators to release elapsed, the door will time which is
the safety door. be released. long enough

Table 6-203 FB F30EStopFDoorSIL1PLc


Description Symbol Data type Convention Note
Output signal from signalPLcSIL1Quality BOOL 1: F-DQ output
the F-DQ to the set
electric actuator
Magnet in the fDoorCoil BOOL 0: Guard locking
position switch active
Release safety releaseFDoor BOOL 1: With regard to Information of the
door safety door, start F-library blocks.
is possible (safety Can be read out,
door closed) for example, in the
Release releaseEStop BOOL 1: Emergency standard user
emergency stop program.
stop released and
acknowledged
Acknowledgment ackReqFDoor BOOL 1:
for safety door Acknowledgment

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 246
6 Solution for the User Scenarios

Description Symbol Data type Convention Note


Acknowledgment ackReqEStop BOOL required
required

6.31.6 Configuration and parameterization

The STEP 7 hardware configuration (HW Config) has already been prepared for
commissioning FB F30EStopFDoorSIL1PLc. Customizations are possible.
The associated HW Config can be found in the provided block library.

Inappropriate values for safety-related settings may result in the safety


function not being triggered in the event of danger.
WARNING Please keep this in mind if, due to your requirements, you want to change the
settings shown here.

Note For more information on the hardware configuration in this user scenario, please
refer to chapter 4.1.2.
 Siemens AG 2015 All rights reserved

6.31.7 Operation of the user scenario

For demonstration purposes, this document shows different user scenarios.

Note For information on installing the user scenario, please refer to chapter 6.1.1.

Requirements:
 No faults
 Emergency stop released

Table 6-204 Start actuator


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start Guard locking is activated, then
signalPLcSIL1Quality = 1
4 Press stop signalPLcSIL1Quality=0; then the timer for
the delayed release of the safety door starts.
5 Wait until the timer expires. When the timer has expired, the safety door
can be opened.

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 247
6 Solution for the User Scenarios

Table 6-205 Safety function: Trigger emergency stop


No. Action Comment
1 Open and close the safety door When starting the scenario for the first time
or in the event of a safety door fault, open
and close the door completely.
2 Press ack Required when starting the scenario for the
first time and after each opening of the
safety door.
3 Press start signalPLcSIL1Quality=1
4 Press the emergency stop (eStop) signalPLcSIL1Quality=0
5 Release the emergency stop (eStop)
6 Press start signalPLcSIL1Quality=0
(acknowledgment required)
7 Wait until the timer expires.
8 Start again with no. 2
 Siemens AG 2015 All rights reserved

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 248
7 References/Links

7 References/Links
Table 7-1
Subject Title
\1\ Siemens Industry https://support.industry.siemens.com/cs/?lc=en-WW
Online Support
\2\ Download page of https://support.industry.siemens.com/cs/ww/en/view/109478932
the entry
\3\ DIN EN ISO 14119 Safety of machinery –
Interlocking devices associated with
guards –
Principles for design and selection (ISO 14119:2013);
German version EN ISO 14119:2013
\4\ Standard: Safety of machinery –
IEC 62061 Functional safety of safety-related electrical, electronic
and programmable electronic control systems
\5\ Standard: Safety of machinery –
ISO 13849 Safety-related parts of control systems
\6\ Safety Evaluation www.siemens.com/safety-evaluation-tool
Tool (SET)
\7\ Document for https://support.industry.siemens.com/cs/de/en/view/23996473
IEC 62061
 Siemens AG 2015 All rights reserved

8 History
Table 8-1
Version Date Modifications
V1.0 11/2015 First version
V1.1 12/2015 Addition of the Value status for F-DQ
V1.2 12/2015 „ack“ as NO in the circuit diagram
Replacement picture position switch with guard locking

Safety with S7-1200 FC CPU


Entry ID: 109478932, V1.2, 12/2015 249

You might also like