Documente Academic
Documente Profesional
Documente Cultură
LDrvSafe
Fail-safe SIMATIC library to control the Safety Integrated functions of
the SINAMICS drive family
https://support.industry.siemens.com/cs/ww/de/view/109485794
Warranty and liability
Note The Application Examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The Application
Examples do not represent customer-specific solutions. They are only intended
to provide support for typical applications. You are responsible for ensuring that
the described products are used correctly. These Application Examples do not
relieve you of the responsibility to use safe practices in application, installation,
operation and maintenance. When using these Application Examples, you
recognize that we cannot be made liable for any damage/claims beyond the
liability clause described. We reserve the right to make changes to these
Application Examples at any time without prior notice.
If there are any deviations between the recommendations provided in these
Application Examples and other Siemens publications e.g. Catalogs the
contents of the other documents have priority.
We do not accept any liability for the information contained in this document.
Any claims against us based on whatever legal reason resulting from the use of
the examples, information, programs, engineering and performance data etc.,
described in this Application Example shall be excluded. Such an exclusion shall
not apply in the case of mandatory liability, e.g. under the German Product Liability
Act (Produkthaftungsgesetz), in case of intent, gross negligence, or injury of life,
body or health, guarantee for the quality of a product, fraudulent concealment of a
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 2
Warranty and liability
List of contents
LDrvSafe ....................................................................................................................... 1
Warranty and liability ................................................................................................... 2
1 Overview of the library ...................................................................................... 4
1.1 Various application scenarios .............................................................. 5
1.2 Hardware and software requirements .................................................. 7
1.3 Library resources .................................................................................. 8
2 Certificate ........................................................................................................... 9
3 Library blocks .................................................................................................. 10
3.1 List of blocks ....................................................................................... 10
3.1.1 Availability of the blocks ..................................................................... 10
3.1.2 Signatures of the individual blocks ..................................................... 11
3.2 Description of the blocks .................................................................... 11
3.2.1 Principle of the blocks to control and evaluate PROFIsafe
telegrams ............................................................................................ 11
3.2.2 LDrvSafe_CtrlT30SinaG..................................................................... 16
3.2.3 LDrvSafe_CtrlT30SinaS ..................................................................... 18
3.2.4 LDrvSafe_CtrlT31SinaS ..................................................................... 20
3.2.5 LDrvSafe_CtrlT900SinaG................................................................... 23
3.2.6 LDrvSafe_CtrlT901SinaS ................................................................... 25
3.2.7 LDrvSafe_CtrlT902SinaS ................................................................... 28
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 3
1Overview of the library
1.1 Various application scenarios
Further, this documentation shows you potential applications - and helps you to
integrate the library into your TIA project using step-by-step instructions.
Hardware
Only certified, Safety-related CPUs of the SIMATIC S7 family that can be
programmed using Safety Advanced may be used. The program scope and cycle
time are the criteria when selecting the CPUs.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 4
1Overview of the library
1.1 Various application scenarios
Note The integrated Safety Functions of SINAMICS are certified according to SIL2 in
accordance with IEC 61508 or IEC 61800-5-2, as well as PLd and Category 3
according to ISO 13849-1.
PROFIsafe communication, as well as the fail-safe PLC are certified according to
SIL3 in accordance with IEC 61508 or EN 62061, as well as PLe and Category 4
according to ISO 13849-1.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 5
1Overview of the library
1.1 Various application scenarios
Several scenarios for potentially using the LDrvSafe library are subsequently
shown:
Scenario 1
Fig. 1-2 Scenario example, controlling Safety Functions via PROFIsafe
The Safety Functions of the SINAMICS should be controlled via PROFIsafe. For
Siemens AG 2016 All rights reserved
this purpose, the library provides fail-safe blocks, depending on the PROFIsafe
telegram used (30, 31, 900, 901, 902) to simply control these Safety Functions.
Scenario 2
Fig. 1-3 Example of safe diameter detection
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 6
1Overview of the library
1.2 Hardware and software requirements
Note This function is only available for SINAMICS S120 - and integrated drives
belonging to a SIMOTION D4xx.
SINAMICS firmware version 4.5 or higher is required.
Hardware
Table 1-1 Used hardware
No. Component Article number Number Alternative
1. CPU 1516F-3 PN/DP 6ES7516-3FN00-0AB0 1
2. SIMATIC Micro 6ES7954-8LE02-0AA0 1 Memory card with a different
Memory Card 12MB memory size
Siemens AG 2016 All rights reserved
Note Alternatively, similar components can also be used for the components listed in
Table 1-1.
Software
Table 1-2 Used software
No. Component Article number Number
3. TIA Portal V13 SP1 6ES7822-0AA03-0YA5 1
4. STEP 7 Safety Advanced V13 SP1 6ES7833-1FA13-0YA5 1
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 7
1Overview of the library
1.3 Library resources
Overall assignment
All of the blocks belonging to the LDrvSafe library occupy a total of 4881 bytes with
S7-1200F/1500F and 3038 bytes with S7-300F/400F in the working memory.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 8
2Certificate
1.3 Library resources
2 Certificate
Fig 2-1 Certificate
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 9
3Library blocks
3.1 List of blocks
3 Library blocks
3.1 List of blocks
All of the blocks belonging to the LDrvSafe library are listed in the following table.
Table 3-1 List of blocks
Block Symbol Classification
FB800 LDrvSafe_CtrlT30SinaG In-house development
FB801 LDrvSafe_CtrlT30SinaS In-house development
FB802 LDrvSafe_CtrlT31SinaS In-house development
FB803 LDrvSafe_CtrlT900SinaG In-house development
FB804 LDrvSafe_CtrlT901SinaS In-house development
FB805 LDrvSafe_CtrlT902SinaS In-house development
FB810 LDrvSafe_Smooth In-house development
FB811 LDrvSafe_WinderRadius In-house development
FB820 LDrvSafe_StatusT30SinaG In-house development
FB821 LDrvSafe_StatusT30SinaS In-house development
FB822 LDrvSafe_StatusT31SinaS In-house development
FB823 LDrvSafe_StatusT900SinaG In-house development
Siemens AG 2016 All rights reserved
These library blocks are available for the fail-safe controllers S7-300F, S7-400F,
S7-1200F and S7-1500F, which can be programmed using the STEP 7 Safety
Advanced software.
Table 3-2 Availability of blocks
Block Symbol S7-300F / S7-400F S7-1200F / S7-1500F
FB800 LDrvSafe_CtrlT30SinaG
FB801 LDrvSafe_CtrlT30SinaS
FB802 LDrvSafe_CtrlT31SinaS
FB803 LDrvSafe_CtrlT900SinaG
FB804 LDrvSafe_CtrlT901SinaS
FB805 LDrvSafe_CtrlT902SinaS
FB810 LDrvSafe_Smooth
FB811 LDrvSafe_WinderRadius
FB820 LDrvSafe_StatusT30SinaG
FB821 LDrvSafe_StatusT30SinaS
FB822 LDrvSafe_StatusT31SinaS
FB823 LDrvSafe_StatusT900SinaG
FB824 LDrvSafe_StatusT901SinaS
FB825 LDrvSafe_StatusT902SinaS
Available
Not available
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 10
3Library blocks
3.2 Description of the blocks
The checksums of the individual blocks of this library are listed in the following
table.
Table 3-3 Signatures
Block Symbol S7-300F / S7-400F S7-1200F / S7-1500F
Signature Start value Signature
signature
FB800 LDrvSafe_CtrlT30SinaG E4056166
FB801 LDrvSafe_CtrlT30SinaS 9726F711
FB802 LDrvSafe_CtrlT31SinaS B1065F27
FB803 LDrvSafe_CtrlT900SinaG EDF131E6
FB804 LDrvSafe_CtrlT901SinaS C598BF9F
FB805 LDrvSafe_CtrlT902SinaS DEF7E2F7
FB810 LDrvSafe_Smooth D1CD 3002 85F655E2
FB811 LDrvSafe_WinderRadius 5F52 38C0 C8D09709
FB820 LDrvSafe_StatusT30SinaG 3510072D
FB821 LDrvSafe_StatusT30SinaS 858E5317
FB822 LDrvSafe_StatusT31SinaS 680E615B
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 11
3Library blocks
3.2 Description of the blocks
Note These blocks are available from TIA V14 (with Safety Advanced V14).
These function blocks are used to simply control and evaluate the Safety
Integrated Functions of the SINAMICS via PROFIsafe.
3.2.1.1 Preconditions
The Safety Integrated Functions of SINAMICS are represented at the input of the
blocks. At the block input, the user interconnects his Safety-related signals or
sensors (e.g. Emergency Stop, protective door, ...) with the Safety Integrated
Functions.
Siemens AG 2016 All rights reserved
The user must interconnect the block output (in this case, "ProfisafeCtrlT30SinaG")
with a variable with the data type of the selected PROFIsafe telegram.
This variable must initially be created in the variable table. The start address 1
must be the same as the start address 2 of the PROFIsafe telegram in the
HWCN (hardware configuration).
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 12
3Library blocks
3.2 Description of the blocks
Fig. 3-2: Creating a variable with the data type of the selected PROFIsafe telegram (in this
case, "LDrvSafe_typeCtrlT30SinaG")
LDrvSafe_CtrlT902SinaS LDrvSafe_typeCtrlT902SinaS
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 13
3Library blocks
3.2 Description of the blocks
The user must interconnect the block input (in this case,
"ProfisafeStatusT30SinaG") with a variable with the data type of the selected
PROFIsafe telegram.
This variable must initially be created in the variable table. The start address 1
must be the same as the start address 2 of the PROFIsafe telegram in the HWCN
(hardware configuration).
Fig. 3-6: Creating a variable with the data type of the selected PROFIsafe telegram (in this
case, "LDrvSafe_typeStatusT30SinaG")
1
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 14
3Library blocks
3.2 Description of the blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 15
3Library blocks
3.2 Description of the blocks
3.2.2 LDrvSafe_CtrlT30SinaG
Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS G120 via PROFIsafe telegram 30.
Principle of operation
Fig. 3-9: Structure of the LDrvSafe_CtrlT30SinaG block
Siemens AG 2016 All rights reserved
Input parameters
Table 3-6 Input parameters of block LDrvSafe_CtrlT30SinaG
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed (SLS)
1: Deselect SLS
0: Select SLS
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a positive
signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 16
3Library blocks
3.2 Description of the blocks
Output parameters
Table 3-7 Output parameters of block LDrvSafe_CtrlT30SinaG
Parameter Data type Description
ProfisafeCtrlT30SinaG LDrvSafe_typeCtrlT30SinaG Assignment of the Safety Integrated Functions
at the block input to the structure of the
Siemens AG 2016 All rights reserved
PROFIsafe telegram
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 17
3Library blocks
3.2 Description of the blocks
3.2.3 LDrvSafe_CtrlT30SinaS
Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 30.
Principle of operation
Fig. 3-10 Structure of block LDrvSafe_CtrlT30SinaS
Siemens AG 2016 All rights reserved
Note Safety Function SLP is not supported when using a SINAMICS S110.
Details on how to commission the block are provided in Chapter PROFIsafe control
words.
Input parameters
Table 3-8 Input parameters of block LDrvSafe_CtrlT30SinaS
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SS2 BOOL Controlling the Safety Integrated Function Safe Stop 2 (SS2)
1: Deselect SS2
0: Select SS2
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 18
3Library blocks
3.2 Description of the blocks
SDIpositive BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in the
positive direction of rotation
1: Deselect SDI positive
0: Select SDI positive
SDInegative BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in the
negative direction of rotation
1: Deselect SDI negative
0: Select SDI negative
Output parameters
Table 3-9 Output parameters of block LDrvSafe_CtrlT30SinaS
Parameter Data type Description
ProfisafeCtrlT30SinaS LDrvSafe_typeCtrlT30SinaS Assignment of the Safety Integrated Functions
at the block input to the structure of the
PROFIsafe telegram
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 19
3Library blocks
3.2 Description of the blocks
3.2.4 LDrvSafe_CtrlT31SinaS
Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS S120 via PROFIsafe telegram 31.
Principle of operation
Fig. 3-11 Structure of block LDrvSafe_CtrlT31SinaS
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 20
3Library blocks
3.2 Description of the blocks
Input parameters
Table 3-10 Input parameters of block LDrvSafe_CtrlT31SinaS
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SS2 BOOL Controlling the Safety Integrated Function Safe Stop 2 (SS2)
1: Deselect SS2
0: Select SS2
SOS BOOL Controlling the Safety Integrated Function Safe Operating Stop
(SOS)
1: Deselect SOS
0: Select SOS
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed
(SLS)
1: Deselect SLS
0: Select SLS
Siemens AG 2016 All rights reserved
SLP BOOL Controlling the Safety Integrated Function Safely Limited Position
(SLP)
1: Deselect SLP
0: Select SLP
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a
positive signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"
SelectSLSbit1 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit0")
1: Select "Select SLS bit 1"
0: Deselect "Select SLS bit 1"
SDIpositive BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the positive direction of rotation
1: Deselect SDI positive
0: Select SDI positive
SDInegative BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the negative direction of rotation
1: Deselect SDI negative
0: Select SDI negative
SelectSLPposition BOOL Switchover between the two SLP traversing ranges
Range 1: SLP traversing range 2
0: SLP traversing range 1
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit0 conjunction with signals "SelectGearboxStage
Bit1" and "SelectGearboxStageBit2")
SelectGearboxStage BOOL Switchover between the eight gearbox stages (is active in
Bit1 conjunction with signals "SelectGearboxStage
Bit0" and "SelectGearboxStageBit2")
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 21
3Library blocks
3.2 Description of the blocks
Output parameters
Table 3-11 Output parameters of block LDrvSafe_CtrlT31SinaS
Parameter Data type Description
ProfisafeCtrlT31SinaS LDrvSafe_typeCtrlT31SinaS Assignment of the Safety Integrated Functions
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 22
3Library blocks
3.2 Description of the blocks
3.2.5 LDrvSafe_CtrlT900SinaG
Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS G via PROFIsafe telegram 900.
Principle of operation
Fig. 3-12 Structure of block LDrvSafe_CtrlT900SinaG
Siemens AG 2016 All rights reserved
Input parameters
Table 3-12 Input parameters of block LDrvSafe_CtrlT900SinaG
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed (SLS)
1: Deselect SLS
0: Select SLS
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a positive
signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction with
signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 23
3Library blocks
3.2 Description of the blocks
Output parameters
Table 3-13 Output parameters of block LDrvSafe_CtrlT900SinaG
Parameter Data type Description
ProfisafeCtrlT900SinaG LDrvSafe_typeCtrlT900SinaG Assignment of the Safety Integrated
Functions at the block input to the structure of
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 24
3Library blocks
3.2 Description of the blocks
3.2.6 LDrvSafe_CtrlT901SinaS
Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 901.
Principle of operation
Fig. 3-13 Structure of block LDrvSafe_CtrlT901SinaS
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 25
3Library blocks
3.2 Description of the blocks
Note The value for input VariableSLS must be located between 1 and 32,767. If the
value lies outside the value range, then SINAMICS signals Safety fault C01730
and the parameterized stop response for SLS level 1 is initiated.
The block itself does not check that this value range is complied with!
Input parameters
Table 3-14 Input parameters of block LDrvSafe_CtrlT901SinaS
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SS2 BOOL Controlling the Safety Integrated Function Safe Stop 2 (SS2)
1: Deselect SS2
0: Select SS2
Siemens AG 2016 All rights reserved
SOS BOOL Controlling the Safety Integrated Function Safe Operating Stop
(SOS)
1: Deselect SOS
0: Select SOS
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed
(SLS)
1: Deselect SLS
0: Select SLS
SLP BOOL Controlling the Safety Integrated Function Safely Limited Position
(SLP)
1: Deselect SLP
0: Select SLP
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a
positive signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction
with signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"
SelectSLSbit1 BOOL Switchover between the four SLS levels (is active in conjunction
with signal "SelectSLSbit0")
1: Select "Select SLS bit 1"
0: Deselect "Select SLS bit 1"
SDIpositive BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the positive direction of rotation
1: Deselect SDI positive
0: Select SDI positive
SDInegative BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the negative direction of rotation
1: Deselect SDI negative
0: Select SDI negative
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 26
3Library blocks
3.2 Description of the blocks
0: Select SS2E
VariableSLS INT Variable input of SLS level 1
SLS level 1 of SINAMICS is dynamically varied between 0.01 and
100%
Output parameters
Table 3-15 Output parameters of block LDrvSafe_CtrlT901SinaS
Parameter Data type Description
ProfisafeCtrlT901SinaS LDrvSafe_typeCtrlT901SinaS Assignment of the Safety Integrated
Functions at the block input to the structure of
the PROFIsafe telegram
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 27
3Library blocks
3.2 Description of the blocks
3.2.7 LDrvSafe_CtrlT902SinaS
Description
This function block is used to simply control the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 902.
Principle of operation
Fig. 3-14 Structure of block LDrvSafe_CtrlT902SinaS
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 28
3Library blocks
3.2 Description of the blocks
Note The value for input VariableSLS must be located between 1 and 32,767. If the
value lies outside the value range, then SINAMICS signals Safety fault C01730
and the parameterized stop response for SLS level 1 is initiated.
The block itself does not check that this value range is complied with!
Input parameters
Table 3-16 Input parameters of block LDrvSafe_CtrlT902SinaS
Parameter Data Description
type
STO BOOL Controlling the Safety Integrated Function Safe Torque Off (STO)
1: Deselect STO
0: Select STO
SS1 BOOL Controlling the Safety Integrated Function Safe Stop 1 (SS1)
1: Deselect SS1
0: Select SS1
SS2 BOOL Controlling the Safety Integrated Function Safe Stop 2 (SS2)
1: Deselect SS2
0: Select SS2
Siemens AG 2016 All rights reserved
SOS BOOL Controlling the Safety Integrated Function Safe Operating Stop
(SOS)
1: Deselect SOS
0: Select SOS
SLS BOOL Controlling the Safety Integrated Function Safely Limited Speed
(SLS)
1: Deselect SLS
0: Select SLS
SLP BOOL Controlling the Safety Integrated Function Safely Limited Position
(SLP)
1: Deselect SLP
0: Select SLP
InternalEventAck BOOL Fail-safe acknowledgment of Safety faults in the drive using a
positive signal edge at this input
SelectSLSbit0 BOOL Switchover between the four SLS levels (is active in conjunction
with signal "SelectSLSbit1")
1: Select "Select SLS bit 0"
0: Deselect "Select SLS bit 0"
SelectSLSbit1 BOOL Switchover between the four SLS levels (is active in conjunction
with signal "SelectSLSbit0")
1: Select "Select SLS bit 1"
0: Deselect "Select SLS bit 1"
SDIpositive BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the positive direction of rotation
1: Deselect SDI positive
0: Select SDI positive
SDInegative BOOL Controlling the Safety Integrated Function Safe Direction (SDI) in
the negative direction of rotation
1: Deselect SDI negative
0: Select SDI negative
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 29
3Library blocks
3.2 Description of the blocks
0: Select SS2E
VariableSLS INT Variable input of SLS level 1
SLS level 1 of SINAMICS is dynamically varied between 0.01 and
100%
Output parameters
Table 3-17 Output parameters of block LDrvSafe_CtrlT902SinaS
Parameter Data type Description
ProfisafeCtrlT902SinaS LDrvSafe_typeCtrlT902SinaS Assignment of the Safety Integrated
Functions at the block input to the structure
of the PROFIsafe telegram
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 30
3Library blocks
3.2 Description of the blocks
3.2.8 LDrvSafe_StatusT30SinaG
Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS G via PROFIsafe telegram 30.
Principle of operation
Fig. 3-15 Structure of block LDrvSafe_StatusT30SinaG
Siemens AG 2016 All rights reserved
Input parameters
Table 3-18 Input parameters of block LDrvSafe_StatusT30SinaG
Parameter Data type Description
ProfisafeStatusT30SinaG LDrvSafe_typeStatusT30SinaG Assignment of the structure of the
PROFIsafe telegram at the block input to
the statuses of the Safety Integrated
Functions
Output parameters
Table 3-19 Output parameters of block LDrvSafe_StatusT30SinaG
Parameter Data Description
type
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 31
3Library blocks
3.2 Description of the blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 32
3Library blocks
3.2 Description of the blocks
3.2.9 LDrvSafe_StatusT30SinaS
Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 30.
Principle of operation
Fig. 3-16 Structure of block LDrvSafe_StatusT30SinaS
Siemens AG 2016 All rights reserved
Note Safety Function SLP is not supported when using a SINAMICS S110.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 33
3Library blocks
3.2 Description of the blocks
Input parameters
Table 3-20 Input parameters of block LDrvSafe_StatusT30SinaS
Parameter Data type Description
ProfisafeStatusT30SinaS LDrvSafe_typeStatusT30SinaS Assignment of the structure of the
PROFIsafe telegram at the block input to
the statuses of the Safety Integrated
Functions
Output parameters
Table 3-21 Output parameters of block LDrvSafe_StatusT30SinaS
Parameter Data Description
type
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
SS2active BOOL Status of Safety Integrated Function Safe Stop 2 (SS2)
Siemens AG 2016 All rights reserved
1: SS2 active
0: SS2 inactive
SOSactive BOOL Status of Safety Integrated Function Safe Operating Stop (SOS)
1: SOS active
0: SOS inactive
SLSactive BOOL Status of Safety Integrated Function Safely Limited Speed (SLS)
1: SLS active
0: SLS inactive
SLPactive BOOL Status of Safety Integrated Function Safely Limited Position (SLP)
1: SLP active
0: SLP inactive
InternalEvent BOOL Display of Safety faults in the drive:
1: Safety fault in the drive
0: Fault-free operation
SelectSLSbit0active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit1active")
1: Select SLS bit 0 active
0: Select SLS bit 0 inactive
SelectSLSbit1active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit0active")
1: Select SLS bit 1 active
0: Select SLS bit 1 inactive
SOSselected BOOL Status of Safety Integrated Function Safe Operating Stop (SOS)
1: SOS selected (still not active)
0: SOS deselected
SDIpositiveActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in the
positive direction of rotation
1: SDI positive active
0: SDI positive inactive
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 34
3Library blocks
3.2 Description of the blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 35
3Library blocks
3.2 Description of the blocks
3.2.10 LDrvSafe_StatusT31SinaS
Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 31.
Principle of operation
Fig. 3-17 Structure of block LDrvSafe_StatusT31SinaS
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 36
3Library blocks
3.2 Description of the blocks
Input parameters
Table 3-22 Input parameters of block LDrvSafe_StatusT31SinaS
Parameter Data type Description
ProfisafeStatusT31SinaS LDrvSafe_typeStatusT31SinaS Assignment of the structure of the
PROFIsafe telegram at the block input to
the statuses of the Safety Integrated
Functions
Output parameters
Table 3-23 Output parameters of block LDrvSafe_StatusT31SinaS
Parameter Data Description
type
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
SS2active BOOL Status of Safety Integrated Function Safe Stop 2 (SS2)
Siemens AG 2016 All rights reserved
1: SS2 active
0: SS2 inactive
SOSactive BOOL Status of Safety Integrated Function Safe Operating Stop
(SOS)
1: SOS active
0: SOS inactive
SLSactive BOOL Status of Safety Integrated Function Safely Limited Speed
(SLS)
1: SLS active
0: SLS inactive
SLPactive BOOL Status of Safety Integrated Function Safely Limited Position
(SLP)
1: SLP active
0: SLP inactive
InternalEvent BOOL Display of Safety faults in the drive:
1: Safety fault in the drive
0: Fault-free operation
SelectSLSbit0active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit1active")
1: Select SLS bit 0 active
0: Select SLS bit 0 inactive
SelectSLSbit1active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit0active")
1: Select SLS bit 1 active
0: Select SLS bit 1 inactive
SDIpositiveActive BOOL Status of Safety Integrated Function Safe Direction (SDI) in
the positive direction of rotation
1: SDI positive active
0: SDI positive inactive
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 37
3Library blocks
3.2 Description of the blocks
FDI0 BOOL Status of fail-safe digital input F-DI0 (only for CU310-2):
1: F-DI0 inactive
0: F-DI0 active
FDI1 BOOL Status of fail-safe digital input F-DI1 (only for CU310-2):
1: F-DI1 inactive
0: F-DI1 active
FDI2 BOOL Status of fail-safe digital input F-DI2 (only for CU310-2):
1: F-DI2 inactive
0: F-DI2 active
SS2Eactive BOOL Status of Safety Integrated Function Safe Stop 2 with
external stop (SS2E)
1: SS2E active
0: SS2E inactive
SOSselected BOOL Status of Safety Integrated Function Safe Operating Stop
(SOS)
1: SOS selected (still not active)
0: SOS deselected
SLPupperLimitMaintained BOOL Display of the upper SLP limit:
1: Lower limit maintained
0: Lower limit not maintained
SLPlowerLimitMaintained BOOL Display of the lower SLP limit:
1: Upper limit maintained
0: Upper limit not maintained
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 38
3Library blocks
3.2 Description of the blocks
3.2.11 LDrvSafe_StatusT900SinaG
Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS G via PROFIsafe telegram 900.
Principle of operation
Fig. 3-18 Structure of block LDrvSafe_StatusT900SinaG
Siemens AG 2016 All rights reserved
Input parameters
Table 3-24 Input parameters of block LDrvSafe_StatusT900SinaG
Parameter Data type Description
ProfisafeStatusT900SinaG LDrvSafe_typeStatusT900SinaG Assignment of the structure of the
PROFIsafe telegram at the block input
to the statuses of the Safety Integrated
Functions
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 39
3Library blocks
3.2 Description of the blocks
Output parameters
Table 3-25 Output parameters of block LDrvSafe_StatusT900SinaG
Parameter Data type Description
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
SLSactive BOOL Status of Safety Integrated Function Safely Limited Speed (SLS)
1: SLS active
0: SLS inactive
InternalEvent BOOL Display of Safety faults in the drive:
1: Safety fault in the drive
0: Fault-free operation
SelectSLSbit0active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit1active")
1: Select SLS bit 0 active
0: Select SLS bit 0 inactive
SelectSLSbit1active BOOL Display of the active SLS level (in conjunction with signal
"SelectSLSbit0active")
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 40
3Library blocks
3.2 Description of the blocks
3.2.12 LDrvSafe_StatusT901SinaS
Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 901.
Principle of operation
Fig. 3-19 Structure of block LDrvSafe_StatusT901SinaS
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 41
3Library blocks
3.2 Description of the blocks
Input parameters
Table 3-26 Input parameters of block LDrvSafe_StatusT901SinaS
Parameter Data type Description
ProfisafeStatusT901SinaS LDrvSafe_typeStatusT901SinaS Assignment of the structure of the
PROFIsafe telegram at the block input to
the statuses of the Safety Integrated
Functions
Output parameters
Table 3-27 Output parameters of block LDrvSafe_StatusT901SinaS
Parameter Data Description
type
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 42
3Library blocks
3.2 Description of the blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 43
3Library blocks
3.2 Description of the blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 44
3Library blocks
3.2 Description of the blocks
3.2.13 LDrvSafe_StatusT902SinaS
Description
This function block is used to simply evaluate the Safety Integrated Functions of
SINAMICS S via PROFIsafe telegram 902.
Principle of operation
Fig. 3-20 Structure of block LDrvSafe_StatusT902SinaS
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 45
3Library blocks
3.2 Description of the blocks
Details on how to commission the block are provided in Chapter PROFIsafe status
words.
Input parameters
Table 3-28 Input parameters of block LDrvSafe_StatusT902SinaS
Parameter Data type Description
ProfisafeStatusT902SinaS LDrvSafe_typeStatusT902SinaS Assignment of the structure of the
PROFIsafe telegram at the block input to
the statuses of the Safety Integrated
Functions
Output parameters
Table 3-29Output parameters of block LDrvSafe_StatusT902SinaS
Parameter Data Description
type
STOactive BOOL Status of Safety Integrated Function Safe Torque Off (STO)
1: STO active
0: STO inactive
SS1active BOOL Status of Safety Integrated Function Safe Stop 1 (SS1)
1: SS1 active
0: SS1 inactive
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 46
3Library blocks
3.2 Description of the blocks
FDI0 BOOL Status of fail-safe digital input F-DI0 (only for CU310-2):
1: F-DI0 inactive
0: F-DI0 active
FDI1 BOOL Status of fail-safe digital input F-DI1 (only for CU310-2):
1: F-DI1 inactive
0: F-DI1 active
FDI2 BOOL Status of fail-safe digital input F-DI2 (only for CU310-2):
1: F-DI2 inactive
0: F-DI2 active
SS2Eactive BOOL Status of Safety Integrated Function Safe Stop 2 with external
stop (SS2E)
1: SS2E active
0: SS2E inactive
SOSselected BOOL Status of Safety Integrated Function Safe Operating Stop
(SOS)
1: SOS selected (still not active)
0: SOS deselected
SLPupperLimitMaintained BOOL Display of the upper SLP limit:
1: Lower limit maintained
0: Lower limit not maintained
SLPlowerLimitMaintained BOOL Display of the lower SLP limit:
1: Upper limit maintained
0: Upper limit not maintained
VariableSLSvalue INT Display of the active SLS limit value of the 1st SLS level:
Value range: 1 32767 (100%)
CycleCounter INT Numerator of the Safety clock cycle
Value range: -32768 32767
SafePosition DINT Display of the actual position value as 32-bit value
Value range: 737280000
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 47
3Library blocks
3.2 Description of the blocks
3.2.14 LDrvSafe_Smooth
Description
This function block is used to smooth/calculate the average value of an analog
signal over a user-defined duration.
Principle of operation
Fig. 3-21 Structure of block LDrvSafe_Smooth
Note The Safety program must be called in a cyclic interrupt organization block (OB)!
The duration of the smoothing is as follows (as long as the cyclic interrupt OB is
not interrupted by a higher priority OB):
"NumberOfCycles" * call time of the cyclic interrupt OB
Note The block uses the data type integer for internal calculations. This means that
especially for large values at input "NumberOfCycles", the calculation of the
average at output "AvgValueSensor" becomes inaccurate.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 48
3Library blocks
3.2 Description of the blocks
Input parameters
Table 3-30 Input parameters of block LDrvSafe_Smooth
Parameter Data type Description
ActValueSensor INT Analog value
Analog value that is to be smoothed
Pre-assignment: 0
NumberOfCycles INT Number of cycles
The average value of input "ActValueSensor" is calculated over this
number of cycles
Pre-assignment: 3
AckError BOOL Acknowledgment
Block errors can be acknowledged using a rising edge
Output parameters
Table 3-31 Output parameters of block LDrvSafe_Smooth
Parameter Data type Description
AvgValueSensor INT Average value of the analog signal
The smoothed analog value is provided at this output
ValueUpdated BOOL Updating the average value
Siemens AG 2016 All rights reserved
This bit is set for one cycle as soon as a new average value is
displayed.
Error BOOL Error
The error bit is set as soon as an error occurs in the block.
Bit "ValueUpdated" is reset
Users must define the error response in the user program.
Status WORD Error number
As soon as an error is active, the reason for this error is output as error
number. More detailed information is provided in the following table.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 49
3Library blocks
3.2 Description of the blocks
3.2.15 LDrvSafe_WinderRadius
Description
Winder applications involve feeding material (e.g. foil, rubber, paper) to a specific
process (e.g. printing, labeling, coating) with a constant web velocity.
If the material is being unwound, then as the radius of the roll decreases, the
speed setpoint of the unwinder must be increased so that the web velocity is kept
constant. The situation is the inverse when winding.
Siemens AG 2016 All rights reserved
The fail-safe function block calculates a dynamic SLS limit value as a function of
the roll radius.
This is transferred to the drive via PROFIsafe, and there, it is dynamically adapted
(as a function of the radius) as SLS level 1.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 50
3Library blocks
3.2 Description of the blocks
Design
The Safety concept involves measuring the roll radius using two redundant
distance sensors (e.g. laser, ...); the measured values are then read into the F-PLC
via two different diverse data paths.
Function block "LDrvSafe_WinderRadius" calculates the actual radius of the roll,
and as a function of this radius, adapts the SLS limit of the SINAMICS S120 via
PROFIsafe.
Fig. 3-23 Hardware design LDrvSafe_WinderRadius
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 51
3Library blocks
3.2 Description of the blocks
To sense the roll radius in a Safety-related fashion, you can use two identical
sensors (e.g. ifm O1D100)!
The condition is that the sensors must be mounted with different distances to the
roll. This distance must be greater than the tolerance set at block input
"ToleranceS1S2".
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 52
3Library blocks
3.2 Description of the blocks
Using a central analog module and an analog module from the ET200 distributed
I/O
Fig. 3-24 Safe distance sensing, scenario 1
Siemens AG 2016 All rights reserved
The analog values of the two sensors are transferred to the F-PLC via two
independent, diverse channels.
Channel 1: Sensor 1 is connected to a central analog input module of the F-PLC.
The sensor value is made available via the backplane bus of the F-PLC.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 53
3Library blocks
3.2 Description of the blocks
Using a central analog module and an analog input of the SINAMICS S120 CU310-
2
Fig. 3-26 Safe distance sensing, scenario 3
The analog values of the two sensors are transferred to the F-PLC via two
independent, diverse channels.
Channel 1: Sensor 1 is connected to a central analog input module of the F-PLC.
Siemens AG 2016 All rights reserved
The sensor value is made available via the backplane bus of the F-PLC.
Channel 2: Sensor 2 is connected to an analog input of the SINAMICS S120
CU310-2. The sensor value is made available to the F-PLC via PROFINET.
The analog values of the two sensors are transferred to the F-PLC via two
independent, diverse channels.
Channel 1: Sensor 1 is connected to a central analog input module of the F-PLC.
The sensor value is made available via the backplane bus of the F-PLC.
Channel 2: Sensor 2 is connected to an analog input of the TM31 Terminal Module
. The TM31 is connected to the Control Unit of the SINAMICS via DRIVE-CliQ. The
sensor value is made available to the F-PLC via PROFINET.
Alternatively, a Terminal Board can be used - e.g. a TB30 - instead of a Terminal
Module.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 54
3Library blocks
3.2 Description of the blocks
The analog values from the two sensors are transferred to a fail-safe analog input
module.
This means that the sensor values are available in a Safety-related fashion in the
Siemens AG 2016 All rights reserved
F-PLC.
Alternatively, the fail-safe analog input module can be installed decentrally. Then
PROFIsafe communication must be established between the F-PLC and the station
in which the fail-safe analog module is installed.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 55
3Library blocks
3.2 Description of the blocks
When winding cable, the traversing arm uniformly winds the material in tracks.
The traversing arm moves at the outer edge; as a consequence, depending on the
sensor, its mounting position and the state of the flange, it is possible that the
sensor senses the flange instead of the material.
This means that for this application it makes sense to use a third sensor. Sensor
S1 must be fixed, and the other two sensors S2 and S3 should be mounted on the
traversing arm. Depending on the position of the traversing arm, one of the two
sensors must be selected in the standard S7 program.
In this particular case, sensors S2 and S3 may be mounted at the same distance
away from the roll, even if identical sensors are used. The difference of the
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 56
3Library blocks
3.2 Description of the blocks
distances to the roll between S1 and S2, as well as between S1 and S3 must, if
identical sensors are being used, be greater than the tolerance set at block input
"ToleranceS1S2.
Example
The value ranges of the two sensors are listed in the following table:
Table 3-34 Value ranges of different sensors
Sensor S1 Sensor S2
Value range, lower (MIN) 0.06 m 0.10 m
Value range, upper (MAX) 0.30 m 0.35 m
Using the following formula in the standard PLC user program, the value range of
sensor S2 can be scaled to the value range of sensor S1:
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 57
3Library blocks
3.2 Description of the blocks
Principle of operation
Fig. 3-31 Structure of block LDrvSafe_WinderRadius
The function block calculates the thickness of the wound material based on the
distance of the two sensors from the empty roll ("S1EmptyRoll" and "S2EmptyRoll")
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 58
3Library blocks
3.2 Description of the blocks
In order to be able to calculate the radius of the complete (full) roll, the minimum
radius is added (radius of an empty roll). This calculation is performed in parallel for
sensor S1 and sensor S2 - and the average value is then calculated ("ActRadius").
The diagnostics to identify dangerous errors when reading in analog values is
Siemens AG 2016 All rights reserved
handled in the F program of the F-CPU. (Shifting out the diagnostics functionality
into another subsystem, in this case reading in the evaluation, is permissible
according to EN 62061). Safety-critical errors, which must be identified based on
these block diagnostics or plausibility check, are:
As soon as an error occurs in the block, the "Error" bit is set - and an error number
is saved at the "Status" output. In order that the SLS limit value is not exceeded,
this is set to the maximum value of 32,767 - and the output radius ("ActRadius")
freezes the value. Users must define the error response in the user program.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 59
3Library blocks
3.2 Description of the blocks
Preconditions
On the SINAMICS side:
The Safety Integrated Functions of the SINAMICS S120 are enabled and
PROFIsafe communication established with telegram 901 or 902.
Further, variable SLS level 1 must be enabled (p9501.24), 1 and SLS limit value
entered in level 1 (p9531[0]): 2
()
( 1) =
2 ()
n (SLS limit 1) SLS level 1 of SINAMICS S120 [rpm]
v(path) Material web velocity to be monitored [m/min]
r(min) Minimum roll radius [m], corresponds to block input "MinRadius"
in units [m]
ToleranceFactor Tolerance for monitoring the speed (also to compensate for
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 60
3Library blocks
3.2 Description of the blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 61
3Library blocks
3.2 Description of the blocks
Input parameters
Note All input parameters, data type INT must be specified as raw values.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 62
3Library blocks
3.2 Description of the blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 63
3Library blocks
3.2 Description of the blocks
Output parameters
Table 3-36 Output parameters of block LDrvSafe_WinderRadius
Parameter Data type Description
VariableSLS INT Variable SLS limit value
This value indicates the calculated SLS limit value as a function of
the radius, and the user must transfer this to the SINAMICS S120
via the PROFIsafe telegram.
In the SINAMICS, SLS level 1 must be assigned the following
value:
()
( 1) =
2 ()
n(SLS limit 1): SLS level 1 of SINAMICS S120 [rpm]
v(path): Material web velocity to be monitored [m/min]
r(min): minimum roll radius [m], corresponds to block input
"MinRadius" in units [m]
ToleranceFactor: Tolerance for monitoring the speed (also to
compensate for inaccuracies in calculating the SLS level by the
function block), e.g. 1, 3
ActRadius INT Actual roll radius
This value indicates the average radius calculated from the two analog
values "ActValueS1" and "ActValueS2"
SubstituteValue BOOL Substitute value
This bit has a high signal level as long as the calculated radius
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 64
3Library blocks
3.2 Description of the blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 65
3Library blocks
3.2 Description of the blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 66
4Acceptance and function test
4.1 Information for checking the Safety functionality of the machine
Function test
The perfect functioning of all Safety Functions of the programmed user program
CAUTION must be carefully checked and documented by carrying out a complete function
check at the machine.
The plausibility of the fail-safe monitoring times of the I/O and the control must be
checked corresponding to the SIMATIC Safety Configuring and Programming
Manual.
The configuration must be documented by printing it out.
In this chapter, using examples, it is shown how the interaction between the
hardware wiring and software evaluation can be tested for the individual blocks.
These function tests only involve individual tests for the particular block, and not a
function test of the user program.
Note The function tests for the individual function blocks do not replace the function
test of the user program at the machine.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 67
4Acceptance and function test
4.2 Examples for checking the Safety functionality of the F blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 68
4Acceptance and function test
4.2 Examples for checking the Safety functionality of the F blocks
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 69
4Acceptance and function test
4.2 Examples for checking the Safety functionality of the F blocks
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 70
4Acceptance and function test
4.2 Examples for checking the Safety functionality of the F blocks
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.
Repeat these two steps for all of See the previous lines.
the Safety Functions being
used.
The variable SLS limit via The value of "VariableSLSvalue" is
PROFIsafe has been enabled, identical to the value specified using
and SLS level 1 is selected. PROFIsafe.
Enter any value as SLS limit via
PROFIsafe
Communication via PROFIsafe The value of "CycleCounter" is
has been established incremented in the clock cycle of the
Safety Integrated Functions (p9500).
Communication via PROFIsafe - "SafePositionValid" returns a
has been established value of "1"
- The transferred position actual value
corresponds to the value at
"SafePosition" block output
- When using the safe absolute
position, "SafelyReferenced" returns
a value of "1"
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 71
4Acceptance and function test
4.2 Examples for checking the Safety functionality of the F blocks
4.2.3 Winder
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 72
5Working with the library
5.1 Integrating the library blocks into TIA Portal
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 73
5Working with the library
5.1 Integrating the library blocks into TIA Portal
7. You can now drag the blocks from the library and drop them into your project.
In this diagram, function block "LDrvSafe_CtrlT30SinaS" is dragged to folder "Program blocks",
the datatype LDrvSafe_typeCtrlT30SinaS to folder PLC data types
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 74
5Working with the library
5.1 Integrating the library blocks into TIA Portal
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 75
5Working with the library
5.2 Loading the blocks into the S7 CPU
2. When loading the safety program to the control, the following window is displayed.
In column "Action" 1 , set all lines so that there is a blue checkmark set in every line. 2
Enter your password to access fail-safe data.
1
2
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 76
5Working with the library
5.3 Online help
Note The help files are available in German and English language and open
accordingly to the user interface language of TIA-Portal. If neither German nor
English is chosen as user interface language, always the English version opens
by the call of a help file.
Tabelle 5-3 Open the online help out of the library directory
No. Action Note
1. To open the help for a block directly out of the library, you have to mark a block and
press Shift + F1 on the keyboard. At first a security warning appears, which you
have to confirm with Yes.
Siemens AG 2016 All rights reserved
2. Now an overview site opens in your web browser. On this site you can click on the
link of the block you want the help to open.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 77
5Working with the library
5.3 Online help
Tabelle 5-4 Open the online help out of the projekt directory or block
No. Action Note
1. To open the help also from the project directory or the programming editor, you have
to run the file setup.exe.
3. Choose the directory Siemens at Program Files. Usually this is C:\Program Files
Siemens AG 2016 All rights reserved
4. Now it is also possible to open the help directly from project folder or the
programming editor. In order to do this, select the desired block and press Shift +
F1.
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 78
6Notes and support
6.1 Version of library LDrvSafe
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 79
6Notes and support
6.1 Version of library LDrvSafe
2
Siemens AG 2016 All rights reserved
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 80
7 References
7 References
Table 7-1 References
Topic Title
\1\ Siemens Industry http://support.automation.siemens.com
Online Support
\2\ Download page of https://support.industry.siemens.com/cs/ww/de/view/10948
the article 5794
\3\ SIMATIC STEP 7 https://support.industry.siemens.com/cs/ww/en/view/54110126
Safety - Configuring
and Programming
\4\ SINAMICS S120 https://support.industry.siemens.com/cs/ww/en/view/99668646
Function Manual
Safety Integrated
\5\ SINAMICS G120 https://support.industry.siemens.com/cs/ww/en/view/109477367
Function Manual
Safety Integrated
8 Contact person
Siemens AG 2016 All rights reserved
Siemens AG
Digital Factory Division
DF FA PMA APC
Frauenauracher Strasse 80
D-91056 Erlangen
mailto: safety.team.motioncontrol.i-dt@siemens.com
9 History
Table 9-1 History
Version Date Change
V1.0 03/2016 First Edition
V1.1 10/2016 Addition of blocks for PROFIsafe control
LDrvSafe
Entry ID: 109485794, V1.1, 10/2016 81