S7ftsysb en-US
S7ftsysb en-US
Preface 2
Product Overview 3
SIMATIC
Installing 4
Industrial software
SIMATIC S7 F/FH Systems – 5
Configuration
Configuring and Programming
V6.4
Access Protection 6
Programming and Operating Manual
Programming 7
F-I/O access 8
Programming
communication 9
Operations with "Secure
Write Command++" 10
Migrating "Safety Data
Write" functionality 11
Compiling and
commissioning an S7 12
program
F-libraries A
Checklist B
06/2021
A5E50557762-AA Requirements for virtual
environments and remote C
access
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage
to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices
referring only to property damage have no safety alert symbol. These notices shown below are graded according to
the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will be
used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property
damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended or
approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance
are required to ensure that the products operate safely and without any problems. The permissible ambient
conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may
be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described.
Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this
publication is reviewed regularly and any necessary corrections are included in subsequent editions.
1 Security information............................................................................................................................ 11
2 Preface ................................................................................................................................................. 13
2.1 Preface .............................................................................................................................. 13
2.2 Warnings index .................................................................................................................. 20
3 Product Overview ................................................................................................................................ 23
3.1 Overview ........................................................................................................................... 23
3.2 Hardware and software components .................................................................................. 26
4 Installing .............................................................................................................................................. 29
4.1 Installing the S7 F Systems optional package ...................................................................... 29
4.2 Uninstalling the S7 F Systems optional package.................................................................. 33
4.3 Upgrading to S7 F Systems V6.4 ......................................................................................... 34
4.3.1 Overview of upgrading ...................................................................................................... 34
4.3.2 User scenario 1 .................................................................................................................. 36
4.3.3 User scenario 2 .................................................................................................................. 37
4.3.4 User scenario 3 .................................................................................................................. 39
4.3.5 User scenario 4 .................................................................................................................. 40
4.3.6 Updating custom F-block types .......................................................................................... 42
4.3.7 Updating a multiproject master data library........................................................................ 43
5 Configuration....................................................................................................................................... 45
5.1 Configuration overview ...................................................................................................... 45
5.2 Particularities for configuring an F-System .......................................................................... 46
5.3 Configuring the F-CPU........................................................................................................ 47
5.4 Configuring the F-I/O.......................................................................................................... 49
5.4.1 Overview of configuring the F-I/O....................................................................................... 49
5.4.2 General information on configuring the F-I/O...................................................................... 49
5.4.3 Configuration of the F-modules with assignment of the F_destination_address via DIL
switches ............................................................................................................................ 52
5.4.4 Configuring fail-safe modules with assignment of F_destination_address in the
Engineering System ........................................................................................................... 54
5.4.4.1 Identification of F-modules (address assignment in the engineering system) ....................... 55
5.4.4.2 Assigning the F-destination address and F-source address (address assignment in the
engineering system) .......................................................................................................... 57
5.4.4.3 Changing the F-destination address or F-source address (address assignment in the
engineering system) .......................................................................................................... 58
5.5 Configuring fail-safe DP standard slaves/IO standard devices ............................................... 59
5.6 Configuring fail-safe PA field devices................................................................................... 65
5.7 Configuring redundant F-I/O............................................................................................... 66
A.3.9 F_SHUTDN: F-Control block "Control of shutdown and F-Startup of the safety program" .... 433
A.3.10 RTGLOGIC: F-Control block ............................................................................................... 436
A.3.11 F_PS_12: F-Control block "F_Module_Driver"..................................................................... 437
A.3.12 F_PS_13: F-control block "F_module driver" PROFIsafe profile V2.6.1 XP ............................ 439
A.3.13 F_PS_40: F-control block "F_module driver" PROFIsafe profile V2.6.1 XP ............................ 441
A.3.14 F_CHG_WS: F-Control block.............................................................................................. 444
A.3.15 DB_INIT: F-Control block................................................................................................... 445
A.3.16 DB_RES: F-Control block ................................................................................................... 446
A.3.17 F_PS_MIX: F-Control block................................................................................................ 446
A.3.18 F_VFSTP1: F-Control block................................................................................................ 447
A.3.19 F_VFSTP2: F-Control block................................................................................................ 447
A.3.20 FORCEOFF: Deactivation of F-Force .................................................................................. 448
A.3.21 F_MNR_H: F-control block ............................................................................................... 448
A.4 Differences between the S7 F Systems Library F-libraries................................................... 450
A.4.1 Differences between the F-libraries S7 F Systems Library V1.3 and V1.3 SP1...................... 450
A.4.2 Differences between the F-libraries S7 F Systems Library V1.3 SP1 and SP2 ....................... 451
A.4.3 Differences between the F-libraries S7 F Systems Library V1.3 SP2 and SP3 ....................... 452
A.4.4 Differences between the F-libraries S7 F Systems Library V1.3 SP3 and V1.3 SP4 ............... 453
A.5 Run times, F-Monitoring times, and response times .......................................................... 455
B Checklist ............................................................................................................................................ 457
C Requirements for virtual environments and remote access.............................................................. 461
C.1 Summary......................................................................................................................... 461
C.2 Configuration and operation ............................................................................................ 463
C.2.1 Virtual environments ....................................................................................................... 463
C.2.2 Remote Access and Control .............................................................................................. 464
C.3 Examples of valid configurations in PCS 7 ......................................................................... 467
C.3.1 Example 1........................................................................................................................ 467
C.3.2 Example 2........................................................................................................................ 469
C.4 Abbreviations and explanations of terms .......................................................................... 471
C.5 References....................................................................................................................... 472
Glossary ............................................................................................................................................. 473
Index .................................................................................................................................................. 481
The "SIMATIC S7 F Systems" optional package is used for configuring and programming S7 F/
FH Systems. The integration of the following F-I/Os in S7 F/FH Systems is also viewed in this
context:
• ET 200S fail-safe I/O modules
• ET 200SP fail-safe I/O modules
• ET 200SP HA fail-safe I/O modules
• ET 200eco fail-safe I/O modules
• ET 200pro fail-safe I/O modules
• ET 200iSP fail-safe I/O modules
• Fail-safe signal modules S7-300 (used in ET 200M)
• Fail-safe DP standard slaves/IO standard devices
• Fail-safe PA field devices
What's New?
The new features and changes in "S7 F Systems" V6.4 are described below:
Approvals
S7 F/FH Systems and the F‑I/O are certified for use in safety mode for:
• Safety Integrity Level SIL3 according to IEC 61508:2010
• Performance Level (PL) e and Category 4 according to ISO 13849-1:2015 or EN ISO
13849-1:2015
Guide
This documentation describes how to work with the "S7 F Systems" optional package. It includes
both instructional material and reference material (description of fail-library blocks).
The following topics are addressed:
• Configuration of S7 F Systems
• Access protection for S7 F Systems
• Programming of the safety program (safety-related user program)
• Safety-related communication
• Support for the system acceptance test
• Operation and maintenance of S7 F Systems
• F-Libraries
Conventions
The following terms are used in this documentation...
• The terms "safety engineering" and "fail-safe engineering" are used synonymously in this
manual. The same applies to the terms "fail-safe" and "F-".
• "S7 F Systems" refers to the optional package "SIMATIC S7 F Systems" for the F-system
"SIMATIC S7 F/FH Systems".
• "Safety Matrix" refers to the option "SIMATIC S7 Safety Matrix".
• The term "safety program" refers to the fail-safe portion of the user program and is used
instead of "fail-safe user program", "F-program", etc. For purposes of contrast, the non-safety-
related user program is referred to as the "standard user program".
• "F-CPU" denotes a CPU with fail-safe capability. An F-CPU with fail-safe capability is a central
processing unit that is approved for use in S7 F/FH Systems.
Additional support
If you have further questions about the use of products presented in this manual, contact your
local Siemens representative:
You will find information on who to contact on the Web (http://www.siemens.com/automation/
partner).
A guide to the technical documentation for the various SIMATIC products and systems is
available on the Web (https://support.industry.siemens.com/cs/ww/en/view/109742705).
You will find the online catalog and online ordering system on the Web (https://
mall.industry.siemens.com).
Training center
We offer courses to help you get started with the SIMATIC S7 automation system. Contact your
regional training center or the central training center in D -90327 Nuremberg, Federal Republic
of Germany.
You will find more information on the Web (https://new.siemens.com/global/en/products/
services/industry/sitrain.html).
Technical Support
You can contact Technical Support for all Industry Automation products using the Support
Request (https://support.industry.siemens.com/cs/ww/en/sc/4868).
You can find additional information about our Technical Support on the Web (https://
support.industry.siemens.com/cs/ww/en/).
Note
Operation of safety-related systems
Systems with safety-related characteristics are subject to special operational safety
requirements on the part of the operator. The supplier is also obliged to comply with special
product monitoring measures. For this reason, we provide you with information on product
developments and product features that are (or could be) relevant to operation of safety-related
systems. In order to obtain the latest information on this topic and to enable you to undertake
modifications to your system you must subscribe to the corresponding notifications. To
subscribe, go to the Internet (https://support.industry.siemens.com/My/ww/de/).
Register on this website and under "Notifications" select the notifications for the following topics,
for example:
• S7-300/S7-300F
• S7-400/S7-400H/S7-400F/FH
• Distributed I/O
• SIMATIC Industrial Software
• Safety Matrix
• S7 F/FH Systems
You can find more information on setting up notifications on the page "Helpful functions in
Online Support (https://support.industry.siemens.com/cs/ww/en/sc/2063)".
Safety concepts and communication
The PCS 7 safety concepts described in the document "PCS 7 Compendium Part F - Industrial
Security" must be observed for safe operation of the system.
Additional information on this document is available in the table above under "PCS 7".
In particular we recommend the following:
• The protection of the devices/systems, e.g. PCS 7 OS server and clients
• Ensuring the integrity and confidentiality of the communication between the devices/
systems, e.g.:
– By means of encrypted and authenticated communication between the systems involved,
such as PCS 7 OS system and/or also between engineering stations (ES)
– When using Industrial Ethernet CPs through VPN tunnels between the OS systems and/or
automation systems (AS).
safety function. The safety function for the process can be provided through a user safety
function or a fault reaction function. In the event of a fault, if the F-system can no longer execute
its actual user safety function, it executes the fault reaction function.
You can find additional information in the "F-STOP (Page 97)" section.
5FSNJOBMCVT TUBOEBSE&UIFSOFU
04TFSWFS
1MBOUCVT *OEVTUSJBM&UIFSOFU
'4.T &54
'4.T 4UBOEBSE4.T
4UBOEBSE4.T
&5.
'JFMECVT 130'*/&5130'*#64
&5.
4UBOEBSE4.T
'NPEVMFT
&5.
&5J41
'NPEVMFT
'NPEVMFT
&5QSP
&541)"
'BJMTBGF1"FMEEFWJDF FH
4*53"/41
'*0NPEVMF %11"DPVQMFS
&5FDP
'BJMTBGF%1TUBOEBSETMBWF*0TUBOEBSEEFWJDF
'NPEVMFT FHMBTFSTDBOOFS MJHIUBSSBZ
&541
'NPEVMFT
&541)"
$PBMNJMMCVSOFS &.&3(&/$:0''
CPJMFSQSPUFDUJPO
JOTUBOEBSENPEF
"VUPNBUJPOTZTUFN
'$16
ܱ4BGFUZQSPHSBN
ܱ4'4ZTUFNT35-JDFOTF $PQZ-JDFOTF
&OHJOFFSJOHTUBUJPO
%JTUSJCVUFE*0TZTUFN
PQUJPOBMMZSFEVOEBOU
0QUJPOQBDLBHFXJUI GBJMTBGF
ܱ$POHVSJOHUPPM *OQVUTPVUQVUT
ܱ1SPHSBNNJOHUPPM
ܱ'CMPDLMJCSBSZ
0UIFSEJTUSJCVUFE
*0TZTUFNTEFWJDFTJGOFDFTTBSZ
GBJMTBGF%1TUBOEBSETMBWFTJGOFDFTTBSZ
130'*#64%1130'*/&5*0 -JHIUBSSBZ MBTFSTDBOOFS FUD
GBJMTBGF*0TUBOEBSEEFWJDFT
Hardware components
The hardware components of S7 F/FH systems include:
• F-CPU (CPU 412-5H, CPU 414-5H, CPU 416-5H, CPU 417-5H, CPU 410-5H, CPU 410SIS, CPU
410E)
• Fail-safe inputs/outputs (F-I/O), for example:
– S7-300 fail-safe signal modules in ET 200M (distributed configuration)
– Fail-safe power and electronic modules in ET 200S
– Fail-safe power and I/O modules in ET 200SP
– Fail-safe I/O modules in ET 200SP HA
– ET 200eco fail-safe I/O modules
– ET 200pro fail-safe I/O modules
– ET 200iSP fail-safe modules
– Fail-safe DP standard slaves
– Fail-safe IO standard devices
– Fail-safe PA field devices
Note
F-I/O for PCS 7
For information on the F-I/O released for PCS 7, please refer to the "Process Control System PCS 7
Released Modules" manual for the respective PCS 7 version.
Software components
WARNING
S7 F/FH systems operation
You may only operate S7 F/FH systems in the approved system environments.
Operation in a virtual environment or remote access are permitted under the conditions listed
in section "Requirements for virtual environments and remote access (Page 461)".
FSW-001
Safety program
You can create a safety program with the CFC Editor in STEP 7 from the F-blocks that are included
in an F-library with the "SIMATIC S7 F Systems" optional package.
When you compile the S7 program, safety checks are automatically performed and additional F-
blocks for fault detection and fault response are installed. This ensures that failures and errors
are detected and appropriate reactions triggered. This keeps the F-system in a safe state or
brings the system to a safe state.
The S7 program in the CPU is comprised of fail-safe (safety program) and non-fail-safe (standard
user program) components.
Data can be exchanged between safety and standard user programs in the F-CPU using special
F-blocks for data conversion.
Software requirements
In order to operate S7 F Systems V6.4, the following software packages must be installed:
• On the ES:
– Automation License Manager
– PCS 7
or
– STEP 7 and CFC
• On the OS (for SIMATIC S7 F Systems HMI)
– PCS 7
• For offline testing
– S7-PLCSIM
– SIMIT VC
You can find the corresponding versions and requirements in the readme file.
• "Engineering OS"
– SIMATIC S7 F Systems HMI
• "Runtime"
– SIMATIC S7 F Systems HMI
Read the installation notes in section 3 of the "SIMATIC S7 F Configuration Pack - Readme" file for
S7 F Configuration Pack.
Installation options
The following options are available in the setup:
Option Description
Engineering AS and This option is used to install all S7 F Systems components on the ES, i.e. when the computer is used for
OS AS and OS engineering.
This option is used for the installation under SIMATIC PCS 7.
Engineering AS This option is used to install the S7 F Systems components on the ES, i.e. when the computer is used for
engineering the AS.
This option is used:
• For installation under SIMATIC STEP 7.
• For updating S7 F Systems Engineering including S7 F Systems Library, S7 F Device Integration Pack,
S7 F Configuration Pack under SIMATIC PCS 7.
Engineering OS This option is used for installation of OS components on the ES, i.e. when the computer is used for the
configuration of AS and OS and only the OS is to be updated.
This option is used for the installation of the OS component S7 F Systems HMI under SIMATIC PCS 7.
Runtime This option is used to install the OS components S7 F Systems HMI:
• On the OS, i.e. when the computer is only used as OS (for example, in OS single station system, OS
server, or OS with Web server).
The optional packages from S7 F Systems can also be installed via SIMATIC Management
Console.
Starting S7 F Systems
The "SIMATIC S7 F Systems" optional package does not contain any applications that you must
start specifically. Support for the configuration and programming of F-Systems is integrated into:
• SIMATIC Manager
• HW Config
• CFC Editor
• PCS 7-OS
Removing S7 F Systems
The "S7 F Systems" optional package comprises the following components:
• S7 F Systems
• S7 F Systems HMI
• S7 F Systems Library
• S7 F Device Integration Pack
• S7 F Configuration Pack
It is recommended not to uninstall the SIMATIC S7 F Systems components as this can lead to
problems with your configuration.
If you want to remove SIMATIC S7 F Systems or one of the components, place it on a basic image
of your system and reinstall the required components.
Introduction
Before upgrading from an existing project to S7 F Systems V6.4, read the following section
carefully. This section contains the following important information:
• Basic information on upgrading
• Effects of upgrading
• User scenarios for upgrades
Note
S7 F Systems V6.4 and higher support more F-I/Os than PCS 7. If necessary, consult the
documentation for PCS 7.
With these F-I/O, however, only the processing with S7 F Systems and not the diagnostic
functionality of PCS 7 is generated during compilation. For this reason, the message "Module is
not supported" appears on the "Module drivers" tab when compiling.
Note
If you want to use the new features, updating from S7 F Systems to V6.4 also requires updating
the S7 F Systems Library to V1.3 SP4.
Note
Specific notes on compatibility
• S7 F Systems Library V1.3 or higher is used as the F-library in the S7 project.
Note
Proceed with the upgrade according to the scenarios described here. Do not use the "Update
block types" function even for multiprojects. Proceed as described in section "Updating a
multiproject master data library (Page 43)" to update a multiproject master data library.
Before you upgrade a certain project to S7 F Systems V6.4, consider the following consequences:
Note
"S7 F Systems Lib V1_3" library
In the following descriptions and user scenarios, the library name "S7 F Systems Lib V1.3" is used
and applies to the following versions.
• S7 F Systems Library V1.3
• S7 F Systems Library V1.3 SP1
• S7 F Systems Library V1.3 SP1 Update 1
• S7 F Systems Library V1.3 SP2
• S7 F Systems Library V1.3 SP3
• S7 F Systems Library V1.3 SP4
You can find the installed version in the Windows Start menu in subdirectory "Siemens
Automation > SIMATIC > Installed software".
Upgrade of S7 F Systems V6.x Update of the S7 F Systems Li‐ Upgrade to S7 F Systems V6.4
brary
Only upgrade of the OS component "S7 F Systems HMI" No User scenario 1 (Page 36)
on ES and OS
Upgrade ES and OS No User scenario 2 (Page 37)
Upgrade ES Yes User scenario 3 (Page 39)
Upgrade ES and OS Yes User scenario 4 (Page 40)
Requirements:
• The S7 project is created with S7 F Systems as of V6.0.
• S7 F Systems Library V1.3 or higher is used as the F-library.
Note
Before using S7 F Systems, please check if the ES/OS operating system meets the minimum
requirements of S7 F Systems V6.4. If necessary, you need to upgrade your operating system to
the ES/OS before installing S7 F Systems V6.4.
Note
See also the section "Differences between the S7 F Systems Library F-libraries (Page 450)".
Objective
Upgrading the OS component "S7 F Systems HMI" to ES and OS without program modification.
Introduction
This user scenario helps you to upgrade the OS component S7 F Systems HMI to ES and OS.
There is no upgrade of S7 F Systems or the S7 F Systems Library.
By upgrading according to this user scenario, you maintain compatibility with your previous
version.
Requirement
Your S7 program must be compiled, downloaded and executable for the original S7 F Systems
Lib V1.3. Ensure this through a printout of the safety program and an online comparison.
There must not be any offline changes that are not downloaded online.
Consequences
• Safety program is not changed
• No change of the collective signature of the safety program
• No new functionality
• Compilation and download of the OS required
Procedure
1. Start the installation program of S7 F Systems V6.4.
Select a program package with the OS component "S7 F Systems HMI" in the setup.
– "Engineering OS" on the ES
– "Runtime" on the OS
Detailed information on the options/program packages is available in the section "Installing
the S7 F Systems optional package (Page 29)" in the "Installation options" table.
The selected program package is installed on the computer.
2. Prior to the initial compilation, save the current version of your safety program as a reference
("Save reference" in the "Safety program" dialog) so that it will be available for future
comparisons.
3. You can now compile your S7 program again.
Take the following steps to use the new S7 F Systems HMI faceplates in a project already existing.
1. Launch the WinCC Explorer for the OS assigned to the S7 F Systems project.
2. Open the OS Project Editor and click OK.
The project is reconfigured and the new block icons are applied.
3. Open the Global Script C Editor and select the menu command "Options > Regenerate
Header".
Authorizations at the block icons (e.g. LevelInitiate, LevelBypass) may need to be configured
again.
Result
Once you have performed these steps, the new OS functions can be used in the project.
In order to use the OS functions, you must compile and download the OS for the relevant project.
Objective
Upgrade ES and OS from S7 F Systems V6.2 Upd1 or higher to V6.4 without upgrading the S7 F
Systems Library.
Introduction
This user scenario helps you upgrade from ES and OS to S7 F Systems V6.4 without upgrading
the S7 F Systems Library.
Since the blocks of the S7 F Systems Library are not upgraded to V1.3 SP4, you cannot use new
functions of the F-library S7 F Systems Library V1.3 SP4.
Requirements
• S7 F Systems Library V1.3 SP1 Upd1 or higher is used as the F-library in the S7 project.
Consequences
• No change of the collective signature of the safety program
• Safety program is not changed
• Compilation and download of the OS required
You can find additional information on the possible consequences in the section "Acceptance
test following system upgrade (Page 211)".
Procedure
1. Create a backup copy of the entire S7 project for comparison purposes before you install S7
F Systems V6.4.
2. Start the S7 F Systems V6.4 installation program on the ES or OS.
3. Select the following program package in the setup:
– "Engineering AS OS" on the ES
– "Runtime" on the OS
Detailed information on the options/program packages is available in the section "Installing
the S7 F Systems optional package (Page 29)" in the "Installation options" table.
4. Prior to the initial compilation, save the current version of your safety program as a reference
("Save reference" in the "Safety program" dialog) so that it will be available for future
comparisons.
5. Compile and load your S7 program.
Take the following steps to use the new S7 F Systems HMI faceplates in a project already existing.
1. Launch the WinCC Explorer for the OS assigned to the S7 F Systems project.
2. Open the OS Project Editor and click OK.
The project is reconfigured and the new block icons are applied.
3. Open the Global Script C Editor and select the menu command "Options > Regenerate
Header".
Authorizations at the block icons (e.g. LevelInitiate, LevelBypass) may need to be configured
again.
Result
ES and OS are upgraded to S7 F Systems V6.4.
The S7 F Systems Library has not been upgraded.
In order to use the OS functions, you must compile and download the OS for the relevant project.
Objective
Only an ES upgrade from S7 F Systems V6.2 Upd1 or higher to V6.4 with an upgrade of S7 F
Systems Library V1.3.SP1 Upd1 or higher to V1.3 SP4.
Introduction
This user scenario helps you to upgrade the ES to S7 F Systems V6.4 with upgrading of the S7 F
Systems Library to V1.3 SP4.
Since the blocks of the S7 F Systems Library are upgraded to V1.3 SP4, you can use the new
functions of the F-library S7 F Systems Library V1.3 SP4.
By changing from the S7 F Systems Library V1.3.SP1 Upd1 or higher to V1.3 SP4, the blocks of
the F-library in your safety program are overwritten by F-blocks with other block signatures. This
means that the collective signature will change.
Requirements
• S7 F Systems Library V1.3.SP1 Upd1 or higher is used as the F-library in the S7 project.
• If custom F-block types are used in your project, you must re-create them with S7 F Systems
Library V1.3 SP4 beforehand. You can find additional information on this in the section
"Updating custom F-block types (Page 42)".
Consequences
• Change of the collective signature of the safety program
• Change the safety program
• Complete download with STOP of F-CPU required
• Compilation and download of the OS required
You can find additional information on the possible consequences in the section "Acceptance
test following system upgrade (Page 211)".
Procedure
1. Create a backup copy of the entire S7 project for comparison purposes before you install S7
F Systems V6.4.
2. Start the S7 F Systems V6.4 installation program on the ES.
3. Select the following program package in the setup:
– "Engineering AS"
4. Detailed information on the options/program packages is available in the section "Installing
the S7 F Systems optional package (Page 29)" in the "Installation options" table.
5. Prior to the initial compilation, save the current version of your safety program as a reference
("Save reference" in the "Safety program" dialog) so that it will be available for future
comparisons.
6. Select the "S7 F Systems Lib V1.3" F-library in the "Safety Program" dialog.
To do so, click the "Library Version" button in the "Edit safety program" dialog.
7. In the S7 program, update the existing F-block types. You can find additional information on
this in the section "Updating custom F-block types (Page 42)".
8. Update all block types in the CFC Editor by selecting Options > Block Types and clicking "New
Version".
9. In the CFC Editor under Options > Block Types, click "Clean Up".
10.Compile and download your hardware configuration.
11.Compile and load your S7 program.
Result
Upgrade of ES to S7 F Systems V6.4 including upgrading of the S7 F Systems Library to V1.3 SP4.
Objective
Upgrade of ES and OS from S7 F Systems V6.2 Upd1 or higher to V6.4 with upgrading S7 F
Systems Library V1.3.SP1 Upd1 or higher to V1.3 SP4.
Introduction
This user scenario helps you upgrade from ES and OS to S7 F Systems V6.4 by upgrading the S7
F Systems Library to V1.3 SP4.
Since the blocks of the S7 F Systems Library are upgraded to V1.3 SP4, you can use the new
functions of the F-library S7 F Systems Library V1.3 SP4.
By changing from the S7 F Systems Library V1.3.SP1 Upd1 or higher to V1.3 SP4, the blocks of
the F-library in your safety program are overwritten by F-blocks with other block signatures. This
means that the collective signature will change.
Requirements
• S7 F Systems Library V1.3.SP1 Upd1 or higher is used as the F-library in the S7 project.
• If custom F-block types are used in your project, you must re-create them with S7 F Systems
Library V1.3 SP4 beforehand. You can find additional information on this in the section
"Updating custom F-block types (Page 42)".
Consequences
• Change of the collective signature of the safety program
• Change the safety program
• Complete download with STOP of F-CPU required
• Compilation and download of the OS required
You can find additional information on the possible consequences in the section "Acceptance
test following system upgrade (Page 211)".
Procedure
1. Create a backup copy of the entire S7 project for comparison purposes before you install S7
F Systems V6.4.
2. Start the S7 F Systems V6.4 installation program on the ES.
3. Select a program package in the setup.
– "Engineering AS OS" if you are using ES and OS on this computer.
– "Engineering AS" if you are using only the ES on this computer. Refer to step 4.
– "Engineering OS", if the computer is used for the configuration of AS and OS and only the
OS is to be updated.
Detailed information on the options/program packages is available in the section "Installing
the S7 F Systems optional package (Page 29)" in the "Installation options" table.
4. If you are using an OS standalone system or an OS server for the OS, then start the installation
program on the corresponding computer.
Select the program package in the setup:
– "Runtime"
5. Prior to the initial compilation, save the current version of your safety program as a reference
("Save reference" in the "Safety program" dialog) so that it will be available for future
comparisons.
6. Select the "S7 F Systems Lib V1.3" F-library in the "Safety Program" dialog.
To do so, click the "Library Version" button in the "Edit safety program" dialog.
7. In the S7 program, update the existing F-block types. You can find additional information on
this in the section "Updating custom F-block types (Page 42)".
8. Update all block types in the CFC Editor by selecting Options > Block Types and clicking "New
Version".
9. In the CFC Editor under Options > Block Types, click "Clean Up".
10.Compile and download your hardware configuration.
11.Compile and load your S7 program.
Take the following steps to use the new S7 F Systems HMI faceplates in a project already existing.
1. Launch the WinCC Explorer for the OS assigned to the S7 F Systems project.
2. Open the OS Project Editor and click OK.
The project is reconfigured and the new block icons are applied.
3. Open the Global Script C Editor and select the menu command "Options > Regenerate
Header".
Authorizations at the block icons (e.g. LevelInitiate, LevelBypass) may need to be configured
again.
Result
ES and OS are upgraded to S7 F Systems V6.4 with the S7 F Systems Library V1.3 SP4.
In order to use the OS functions, you must compile and download the OS for the relevant project.
See also
Creating F-Block types (Page 99)
Introduction
The following describes how you apply the F-blocks from S7 F Systems Library V1.3 SP4 to the
master data library of your multiproject.
Requirement
The user projects are already updated.
Note
You update the user projects in your multiproject as described in the section "Overview of
upgrading (Page 34)".
If you are using F-block types that you have created in your master data library, you must update
these F-block types as described in section "Updating custom F-block types (Page 42)".
All attributes of the F blocks must be applied. Do not perform an update of the old F-block
attributes.
Procedure
Proceed as follows to continue using the master data library with fail-safe blocks as usual in the
multiproject:
1. Open the block folder in the master data library of your multiproject and select the "Details"
view option.
2. Delete all blocks with the author "F_SAFE11" or "F_SAFE12".
Important: Select the "Also delete symbolic block names" option.
3. In SIMATIC Manager, select File > Open and switch to the "Libraries" tab.
4. Select the "S7 F Systems Lib V1.3" library and acknowledge with "OK".
Result: The library opens.
5. Select the "F-User Blocks" library component to be copied.
6. Select the Edit > Copy menu command.
7. Select the folder in the master data library (destination) in which the copied library
component is to be placed.
8. Select the menu command Edit > Paste. The copied library component is placed into the
master data library.
9. Repeat Steps 6 to 8 for the "F-Control Blocks" library component.
10.Repeat Steps 6 to 8 for the block folder containing the F-block types that you created.
11.In SIMATIC Manager, select Options > Charts > Update Block Types for the master data
library. This will update all blocks in your sample solutions and process tag types in the master
data library.
Introduction
The following section lists the main points in which the configuration of a fail-safe system
differs from that of an S7 standard system.
Note
F-I/O for PCS 7
For information on the F-I/O released for PCS 7, please refer to the "Process Control System PCS 7
Released Modules" manual for the respective PCS 7 version.
Note
If you change a safety-related parameter for an F-I/O or an F-CPU, you must recompile the S7
program.
The same applies to changes in S7 connections for safety-related communication via S7
connections.
WARNING
An F-CPU containing a safety program must have a password.
You must ensure that the following conditions are met:
• The "CPU contains safety program" option must be selected.
• A password must always be assigned.
You make these settings in the object properties of the F-CPU in HW Config.
FSW-003
WARNING
Configuring a protection level
In safety mode, access authorization by means of the F-CPU password must not be active when
changes are made to the standard user program, because the safety program can then also be
changed. To rule out this possibility, you must configure protection level "1".
If only one person is authorized to change the standard user program and the safety program,
protection level "2" or "3" should be configured to ensure that other persons have only limited
access or no access to the standard user program and safety program.
FSW-004
Overview
You can find general information on the configuration of the F-I/O in the section "General
information on configuring the F-I/O (Page 49)".
The configuring of the F-I/O differs in the following options:
• The F_destination_address is set on the fail-safe module via a DIP switch. This option applies
to F-modules such as ET 200iSP and S7-300 F-SMs.
You can find additional information on this in the section "Configuration of the F-modules
with assignment of the F_destination_address via DIL switches (Page 52)".
• For F-modules such as ET 200SP HA, the PROFIsafe address (F-source and F-destination
address) is assigned directly from the engineering system in STEP 7.
These fail-safe modules do not have a DIP switch for setting the F-destination address.
You can find additional information on this in the section "Configuring fail-safe modules with
assignment of F_destination_address in the Engineering System (Page 54)".
Note
Requirement for redundant interface modules and system redundancy of the type R1
For system redundancy of the type R1 for distributed I/O, e.g. ET 200SP HA, the left IM must be
plugged in and the power supply must be switched on for redundant interface modules (IM) so
that the F-destination addresses can be assigned to the I/O modules.
If only the right IM is plugged in and the corresponding power supply is switched on, then no
F_destination_address can be assigned to the I/O modules.
Additional Information
For a description of the parameters, refer to the context-sensitive online help for the tab and the
relevant F-I/O manual.
For information on what you must consider when configuring the F-monitoring time for fail-safe
I/O, refer to the "Safety Engineering in SIMATIC S7 (http://
support.automation.siemens.com/WW/view/en/12490443)" system manual.
Operating mode
For S7-300 fail-safe signal modules, you can distinguish on the basis of the "Operating mode"
parameter whether the modules are being used in standard mode (as standard S7-300 signal
modules except SM 326; DO 8xDC 24V/2A, SM 326 F DO 10xDC24V/2A PP
(6ES7326-2BF10-0AB0) and SM 336 F AI6x0/4..20mA HART (6ES7336-4GE00-0AB0)) or in
safety mode.
ET 200SP HA, ET 200SP, ET 200S, ET 200pro, ET 200iSP and ET 200eco fail-safe modules can only
be used in safety mode.
WARNING
"Group diagnostics" for fail-safe F-SMs in safety mode
"Group diagnostics" must be activated on all connected channels of fail-safe F-SMs in safety
mode.
Check to verify that you have shutdown group diagnostics only for unused input and output
channels.
(FSW-005)
PROFIsafe addresses
The F-source address "F_source_address" together with the F-destination address
"F_destination_address" forms the PROFIsafe address. The PROFIsafe address is used for the
unique identification of the PROFIsafe destination, i.e. the F-I/O.
F_destination_address
The F_Destination_Address is a unique identification of the PROFIsafe destination, i.e. the F-I/O.
Therefore, the F_destination_address must be unique network-wide and station-wide (see
section "Rules for address assignment").
To prevent incorrect parameter assignment, a "station-wide unique" F_destination_address is
automatically assigned when the F-I/O are placed in HW Config.
In S7 F/FH Systems, you must ensure that the F_destination_address is "unique network-wide"
when multiple stations are present in a network by manually changing the
F_destination_addresses.
If you change the F_destination_address, the uniqueness of the F_destination_address within
the station is checked automatically. You yourself must make sure that the
F_destination_address is unique network-wide.
F_source_address
The F_source_address is automatically assigned in S7 F Systems and is preset with the value "1".
See also
S7 Distributed Safety - Configuration and Programming (http://
support.automation.siemens.com/WW/view/en/54110126)
F_destination_address
Fail-safe modules, for example in the ET 200iSP, have a DIP switch with which you can assign the
unique F-destination address for each module.
You must set the F_destination_address on the F-I/O via the DIP switch before installing the F-I/
O.
Note
For the following S7-300 F-SMs, the F_destination_address is the same as the start address of
the F-SM/8:
• SM 326; DI 24 x DC 24V (article no. 6ES7326-1BK00-0AB0),
• SM 326; DI 8 x NAMUR (article no. 6ES7326-1RF00-0AB0)
• SM 326 DO 10 x DC 24V/2A (article no. 6ES7326-2BF01-0AB0)
• SM 336; AI 6 x 13 Bit (article no. 6ES7336-1HE00-0AB0)
Assign low start addresses for these F-SMs if you are also using other F-I/O.
WARNING
Address assignment in subnets only and in mixed configurations
The following applies to PROFIBUS DP subnets only:
The PROFIsafe destination address and, thus, the switch setting on the address switch of the F-
I/O must be unique network-wide* and station-wide** (system-wide).
For S7-300 F-SMs and ET 200S, ET 200eco, ET 200iSP and ET 200pro F-modules, you can assign
a maximum of 1022 different PROFIsafe destination addresses.
The following applies to PROFINET IO subnets only and to mixed configurations of
PROFIBUS DP and PROFINET IO:
The PROFIsafe destination address and, thus, the address switch setting on the F-I/O must be
unique only*** within the PROFINET IO subnet, including all lower-level PROFIBUS DP subnets,
and station-wide** (system-wide).
For S7-300 F-SMs and ET 200S, ET 200eco, ET 200iSP and ET 200pro F-modules, you can assign
a maximum of 1022 different PROFIsafe destination addresses.
A PROFINET IO subnet is characterized by the fact that the IP addresses of all networked nodes
have the same subnet address, i.e. the IP addresses match in the positions that have the value
"1" in the subnet mask.
Example:
IP address: 140.80.0.2.
Subnet mask: 255.255.0.0 = 11111111.11111111.00000000.00000000
Meaning: The first 2 bytes of the IP address define the subnet; subnet address = 140.80.
* A network consists of one or more subnets. "Network-wide" means across subnet boundaries.
** "Station-wide" means for one station in HW Config (e.g. an S7-400H station).
*** Across Ethernet subnets, excluding cyclic PROFINET IO communication (RT
communication)
(FSW-006)
Note that the rules for address assignment of the PROFIsafe destination addresses also apply to
F-modules, such as in ET 200SP or ET 200SP HA.
WARNING
Uniqueness of PROFIsafe addresses across stations required
• Uniqueness across stations:
F-I/O modules, e.g. the ET 200SP or ET 200SP HA, are uniquely addressed station-wide by
a combination of F-source address (PROFIsafe base address of the assigned F-CPU) and F-
destination address. The F-system itself ensures that the F-destination addresses of all F-I/O
modules are unique within the assigned F-CPU.
• Uniqueness across stations:
To also ensure uniqueness across stations, you must check that the PROFIsafe addresses
("F_source_address" + "F_destination_address") of the F-I/O modules are unique across
stations.
• Check for a change:
Since the F-source address "F_source_address" of the PROFIsafe address of the F-CPU is
automatically set to "1", you can only change the default address "F_destination_address"
for F-I/O modules, e.g. the ET 200SP or ET 200SP HA.
Note that the PROFIsafe address of the F-I/O module must be unique across all stations.
For Ethernet subnets and mixed configurations of PROFIBUS and Ethernet subnets, the
following also applies:
The combination of F-source address and F-destination address of each F-I/O must only* be
unique in the overall Ethernet subnet including all subordinate PROFIBUS subnets.
An Ethernet subnet is characterized by the fact that the IP addresses of all networked stations
have the same subnet address. This means that the IP addresses match in the places that have
the value "1" in the subnet mask.
Example:
IP address: 140.80.0.2.
Subnet mask: 255.255.0.0 = 11111111.11111111.00000000.00000000
Meaning: The first 2 bytes of the IP address define the subnet; subnet address = 140.80.
* When cyclic PROFINET IO communication between Ethernet subnets is excluded
(FSW-007)
Introduction
Fail-safe modules, for example in the ET 200SP or ET 200SP HA, do not have a DIP switch with
which you can assign a unique F-destination address for each module.
Instead, you assign the PROFIsafe address (F-source address and F-destination address) directly
from the Engineering System in STEP 7. Before you use a fail-safe module, you must assign it the
associated F-destination address together with the F-source address.
Basic procedure
1. Configure the F-destination address in HW Config.
2. Identify the F-modules in the distributed I/O to which you want to assign the configured F-
destination addresses (together with the F-source address).
You can find additional information on this in the section "Identification of F-modules
(address assignment in the engineering system) (Page 55)".
3. Assign the F-destination address (together with the F-source address) to the F-modules.
You can find additional information on this in the section "Assigning the F-destination
address and F-source address (address assignment in the engineering system) (Page 57)".
Requirements
The following requirements must be met:
• The interface module and the F-I/O modules (F-modules) are configured.
• The configuration was downloaded to the F-CPU.
• The interface module and the F-I/O modules (F modules) can be reached online.
For type R1 system redundancy for distributed I/Os, e.g. ET 200SP HA, at least the left
interface module (IM) must be accessible online for redundant interface modules.
WARNING
Identification and acknowledgment of the F-I/O
Press the "Identification" button to confirm the fail-safe correctness of the PROFIsafe addresses
for the F-modules.
Therefore, proceed cautiously when confirming the F-I/O by LED flashing or by the serial
number of the interface module.
Assigning the PROFIsafe addresses with the serial number of the interface module is only
permitted if the assignment is to be performed for all F-I/Os of a station. If individual F-I/Os are
selected, the flashing of each individual F-I/O must be checked and confirmed.
FSW-008
Procedure
To identify F-modules, follow these steps:
1. Establish an online connection to the F-CPU on which this F-module will be operated.
2. In HW-Config, select the F-module to which you want to assign the F-destination address.
3. Select "Name F-addresses..." from the shortcut menu:
4. Select the method for identification of the F-modules under "Assign F-destination address
by".
– "Identify LED flashing"
This is the default setting. During the identification, the DIAG and STATUS LEDs of the F-
modules to be identified flash.
– "Identification with the serial number"
If you do not have direct sight of the F-modules, you can identify the F-modules using the
serial number of the interface module.
Note
Unlike the serial number printed on the interface module, the displayed serial number
may be supplemented to include the year date. The serial numbers are identical despite
that.
5. In the "Assign" column, select all F-modules to which you want to assign the F-destination
address.
If you select the check box "Assign F-destination address for all reachable F-modules", all F-
modules of the station are selected.
6. Click the "Identification" button.
If you selected the "Identify LED flashing" option: Observe whether the DIAG LEDs and status
LEDs of the F-modules whose F-destination address you want to assign are flashing. The
DIAG LED should flash "Red" and the status LED "Green".
If you selected the "Identify with serial number" option: Compare the displayed serial number
with the serial number of the interface module.
See also
Configuring fail-safe modules with assignment of F_destination_address in the Engineering
System (Page 54)
Assigning the F-destination address and F-source address (address assignment in the
engineering system) (Page 57)
5.4.4.2 Assigning the F-destination address and F-source address (address assignment in the
engineering system)
Requirement
The F-modules have been successfully identified as described in the "Identification of F-modules
(address assignment in the engineering system) (Page 55)" section.
Procedure
To assign the F-destination address and F-source address, follow these steps:
1. After identification in section "Identification of F-modules (address assignment in the
engineering system) (Page 55)", check the reaction of the F-modules.
– If you selected the "Identify LED flashing" option: Observe whether the DIAG LEDs and
status LEDs of the F-modules whose F-destination address you want to assign are
flashing. The DIAG LED should flash "Red" and the status LED "Green".
– If you selected the "Identify with serial number" option: Compare the displayed serial
number with the serial number of the interface module.
2. For each F-module selected in the "Assign" column, a query is displayed in the
"Identification" column.
Confirm the identification of an F-module by activating the corresponding check box in the
"Identification" column.
Only then will the "Assign F-destination address" button be activated.
3. Assign the F-destination address (together with the F-source address) to the selected F-
modules using the "Assign F-destination address" button. You must enter the password of the
F-CPU if necessary.
4. To assign the F-destination address (together with the F-source address), you must confirm
the "Confirm assignment" dialog within 60 seconds.
See also
Configuring fail-safe modules with assignment of F_destination_address in the Engineering
System (Page 54)
5.4.4.3 Changing the F-destination address or F-source address (address assignment in the
engineering system)
Procedure
1. Change the F-destination address or F-source address in the hardware configuration.
2. Compile the hardware configuration.
3. Download the hardware configuration to the F-CPU.
4. Establish an online connection to the F-CPU on which this F-module is operated.
5. Select "Name F-addresses" from the shortcut menu:
6. Repeat the steps described in sections "Identification of F-modules (address assignment in
the engineering system) (Page 55)" and "Assigning the F-destination address and F-source
address (address assignment in the engineering system) (Page 57)".
7. Compile the user program and download it to the F-CPU.
Requirement
In order to use fail-safe DP standard slaves/IO standard devices, these standard devices must be
on PROFIBUS DP or PROFINET IO and support the PROFIsafe bus profile.
"PROFIsafe" tab
The parameter texts specified in the GSD/GSDML file are contained on the "PROFIsafe" tab under
"Parameter name". The associated current value is shown under "Value". You can modify this
value using the "Change value" button.
The parameters are explained below.
"F_Check_SeqNr" parameter
This parameter defines whether the sequence number is to be incorporated in the consistency
check (CRC calculation) of the F-User data frame.
The "F_Check_SeqNr" parameter must be set to "No check" in the PROFIsafe V1 MODE. Only fail-
safe DP standard slaves/PA field devices that behave accordingly are supported.
"F_CHECK_SeqNr" is irrelevant in PROFIsafe V2 MODE.
"F_SIL" parameter
This parameter defines the safety class of the fail-safe DP standard slave/IO standard device/PA
field device. The parameter is device-dependent. The "F_SIL" parameter can be set between "No
SIL" and "SIL 3" depending on the GSD/GSDML file.
"F_CRC_Length" parameter
A cyclic redundancy check with a length of 2 bytes, 3 bytes or 4 bytes is required, depending on
the length of the F-user data (process data) and the PROFIsafe mode. This parameter provides
information to the F-CPU on the size of the CRC2 key in the safety message frame.
In PROFIsafe V1 MODE:
S7 F Systems only supports a user data length up to and including 12 bytes and "2-byte CRC". The
fail-safe DP standard slave/PA field device must behave accordingly.
In PROFIsafe V2 MODE:
S7 F Systems supports the following user data length:
• With F_CRC_Seed = 0: Up to and including 12 bytes and "3-byte CRC".
• With F_CRC_Seed = 1 (PROFIsafe V2.6.1 XP): Up to and including 40 bytes and "4-byte CRC".
The fail-safe DP standard slave/IO standard device/PA field device must behave accordingly.
"F_CRC_Seed" parameter
In principle, the parameter specifies which value is to be taken as the start value ("seed value")
for the CRC2 calculation and which values are included in the cyclic calculation.
• If F_CRC_Seed = 0, the CRC_FP is taken as start value and a counter (sequence number) is
cyclically incremented.
This is the previous behavior, i.e. prior to PROFIsafe V2.6.1.
• If F_CRC_Seed = 1, a 1 is taken as the start value and a monitoring number based on a 32-bit
CRC value is added via F-parameter and code name (source/destination address).
This is the behavior for PROFIsafe V2.6.1 XP.
The "F_CRC_Seed" parameter influences the "F_CRC_Length" parameter.
You can find additional information on these parameters in the PROFIsafe Specification V2.6.1.
F_CRC_Seed F_Passivation
0 1 Not permitted
1 0/1 Allowed
Protocol (XP) V2.6.1. The default setting for the parameter F_CRC_Seed = CRC-Seed32 and for
the parameter F_Passivation = Device/Module.
"F_Passivation" parameter
The parameter is used for passivation:
• F_Passivation = 0: F-(sub)module passivation
• F_Passivation = 1: Channel-level passivation
You can find additional information on these parameters in the PROFIsafe Specification V2.6.1.
"F_Block_ID" parameter
The F_Block_ID parameter has the value 1 if the F_iPar_CRC parameter exists, otherwise it has
the value 0.
The value 1 of the F_Block_ID parameter indicates that the data record for the value of
F_iPar_CRC has been extended by 4 bytes. You must not change the parameter.
"F_Par_Version" parameter
This parameter identifies the PROFIsafe operating mode. You can identify the operating modes
supported by the device from the value range offered.
For fail-safe IO standard devices, this parameter is set to "1" (PROFIsafe V2 MODE) and cannot be
changed.
For fail-safe DP standard slaves/PA field devices, you can set this parameter to the following:
• Set "F_Par_Version" to "1" (PROFIsafe V2 MODE) for a homogenous PROFIBUS DP network, if
the device and the F-CPU support this. Otherwise, set it to "0" (PROFIsafe V1 MODE).
• For a network that consists of PROFIBUS DP and PROFINET IO subnets, "F_Par_Version" must
be set to "1" (PROFIsafe V2 MODE).
Note
The following F-CPUs support V2 MODE:
• As of CPU 410-5H (article no. 6ES7410-5HX08-0AB0)
• As of CPU 410E (article no. 6ES7410-5HM08-0AB0)
• As of CPU 412-5H PN/DP (article no. 6ES7412-5HK06-0AB0)
• As of CPU 414-5H PN/DP (article no. 6ES7414-5HM06-0AB0)
• As of CPU 416-5H PN/DP (article no. 6ES7 416-5HS06-0AB0)
• As of CPU 417-5H PN/DP (article no. 6ES7417-5HT06-0AB0)
If you set "F_Par_Version" to "1" for F-CPUs that do not support PROFIsafe V2 MODE, this will
result in a communication error during safety-related communication with the device. One
of the following diagnostics events is then entered in the diagnostics buffer of the F-CPU:
• "F-I/O passivated": Check value error (CRC)/Sequence number error ...
• "F-I/O passivated": F-Monitoring time exceeded at the safety message frame detected in
the F-CPU ...
WARNING
Devices and "F_Par_Version" parameter for a mixed configuration
For a network that consists of PROFIBUS DP and PROFINET IO subnets, "F_Par_Version" must be
set to "1" (PROFIsafe V2 MODE).
Devices that do not support PROFIsafe V2 MODE must not be used on a PROFINET IO network
only or with mixed configurations of PROFIBUS DP and PROFINET IO.
FSW-009
"F_WD_Time" parameter
This parameter defines the F-monitoring time in the fail-safe DP standard slave/IO standard
device/PA field device.
A valid current safety message frame must come from the F-CPU within the monitoring time
period. This ensures that failures and faults are detected and appropriate reactions are triggered
to maintain the fail-safe system in a safe state or bring it to a safe state.
On the one hand, you should set the monitoring time high enough that message frame delays
due to communication are tolerated. On the other hand, it should be low enough to enable a
quick fault reaction function in case of a fault (interruption of the communication connection,
for example).
The "F_WD_Time" parameter can be set in 1 ms increments. The value range of the "F_WD_Time"
parameter is specified by the GSD/GSDML file.
You can find additional information on the F-monitoring time in the section "Run times, F-
Monitoring times, and response times (Page 455)".
"F_iPar_CRC" parameter
CRC via individual device parameters (i-parameter).
The individual device parameters (i-parameters) of a fail-safe DP standard slave/IO standard
device/PA field device are configured using the device manufacturer's own parameterization
tool.
Enter the CRC calculated by the parameterization tool of the device manufacturer (CPD Tool) for
protection of the i-parameters. S7 F Systems takes the value into account when calculating the
F-parameter CRC (CRC1).
FB24 serves as an iPar server for fail-safe DP standard slaves / IO standard devices / PA field
devices with iPar functionality.
You can find additional information in the "Industry Online Support; entry ID 45841087 (http://
support.automation.siemens.com/WW/view/en/45841087)".
See also
Safety engineering in SIMATIC S7 (https://support.industry.siemens.com/cs/ww/en/view/
12490443)
Introduction
To increase availability of your automation system and, thus, to prevent process failures due to
faults in the fail-safe system, you can optionally equip S7 F/FH Systems fail-safe systems as fault-
tolerant systems (S7 FH Systems). This increased availability can be achieved by component
redundancy (F-CPU, communication connection and F-I/O).
For S7 F Systems, availability can be increased without fault-tolerant configuration.
• You can use S7-300 fail-safe signal modules (F-SMs) redundantly in one ET 200M or in
multiple ET 200Ms.
• Fail-safe I/O modules of the ET 200SP HA can also be used redundantly.
Note
You must observe the following for redundantly configured F-I/O modules:
• Both F-I/O modules have the same type, product status and firmware.
• The two input/output modules of the same type must be placed directly next to each other
on a terminal block for IO redundancy of the ET 200SP HA.
The left F-module must be inserted in a slot with even slot number so that the "Redundancy"
tab is displayed in the properties dialog of the two modules. This means that the two F-
modules can be used redundantly.
The F-module with the even slot address is then the master module. The F-module of the
same type placed to the right of it is always the slave module.
This assignment of the synchronization role cannot be changed.
For example, to configure two fail-safe I/O modules (F-modules) of the ET 200SP HA
redundantly, proceed as follows:
1. Configure the two F-modules of the ET 200SP HA in HW Config.
2. Open the properties dialog at one of the two redundant F-modules and select the
"Redundancy" tab.
Select the option "2 modules" in the "Redundancy" selection field.
The "Master" setting is then automatically displayed in the "Synchronization role" selection
field for the F-module with the even slot number placed on the left. If the F-Module is placed
on the right, "Slave" is displayed.
The "Module overview" table shows the address properties of the two redundant F-modules
in this case.
3. Check the uniqueness of the "F_Destination_Address" in the properties of the F-module
configured as "Slave".
Note
In the case of redundantly configured F-SMs, you must ensure the following:
• Both F-SMs have the same type, product status and firmware.
• For both F-SMs of an S7-300, the "Safety mode" is activated in the "Parameters" tab of the
object properties dialog.
For example, to configure two fail-safe S7-300 signal modules redundantly when used in the
ET 200M, proceed as follows:
1. Configure the two F-SMs in the ET 200M(s) in HW Config.
2. Configure the first F-SM:
Activate the "Safety mode" operating mode on the "Parameters" tab
3. Configure the second F-SM:
Activate the "Safety mode" operating mode on the "Parameters" tab
4. For the second F-SM, set the "2 modules" operating mode on the "Redundancy" tab.
5. Select the first F-SM for the F-SM in the "Find redundant module" dialog.
6. Set additional parameters, if necessary. The settings are applied automatically for the first F-
SM. As soon as two F-SMs are redundant, changes in the parameter assignment for one of the
F-SMs are applied automatically for the other F-SM.
7. For redundant fail-safe digital input modules, the F-channel driver F_CH_DI can perform a
discrepancy analysis for increased availability. You must set the "Discrepancy time"
parameter for this. If you set discrepancy time "0", the discrepancy analysis is deactivated.
You can find additional information on the "Redundancy" tab in the online help.
8. For redundant fail-safe analog input modules, the F-channel driver F_CH_AI can perform a
discrepancy analysis for increased availability. You must activate the "DISC_ON" parameter
for this. This setting must be made in the CFC. You can find additional information on the
"Redundancy" tab in the online help.
See also
F_CH_DI: F-channel driver for digital inputs of F-I/O (except fail-safe DP standard slaves and fail-
safe IO standard devices) (Page 327)
F_CH_AI: F-channel driver for analog inputs of F-I/O (except fail-safe DP standard slaves and fail-
safe IO standard devices) (Page 335)
Introduction
Some systems for process control must not be switched off during operation. Reasons for this
are, for example, the complex nature of the automation systems or the excessive costs of a
restart. Sometimes, however, changes or extensions to these systems are required for process
control. This allows you to configure in RUN mode (CiR for short). The program sequence is then
stopped for a maximum of 2500 ms. During this time, the process outputs retain their current
values. This has no effect on the actual process, especially in process control systems.
Plant modification during operation via CiR is based on precautions in the master system of the
output configuration for subsequent hardware expansion of your automation system. You
define suitable CiR elements, which you can later replace step-by-step with real elements in the
RUN operating state. You can download such a modified configuration into the F-CPU while the
process is running.
Before you perform the procedures described below, read the CiR instructions in the "Modifying
the System during Operation via CiR (https://support.industry.siemens.com/cs/en/en/view/
45531308)" manual.
Introduction
CiR allows you to add new fail-safe I/O to your system or delete existing fail-safe I/O from your
system. The following two sections explain the procedure.
2. Extend your S7 program and compile it with the "Changes" scope and activated "Generate
module drivers" option.
3. Download your safety program.
4. When safety mode is activated, you are prompted whether you want to disable safety mode.
Confirm this prompt. Safety mode is deactivated and the download operation is carried out.
Note
A user acknowledgment at the ACK_REI input is required to activate the fail-safe I/O.
5. After completion of the download operation, you are prompted whether you want to activate
safety mode. Confirm this prompt.
Safety mode is activated.
Note
Parameter reassignment of fail-safe I/O is not supported. Additional information can be
found in the "Fault-Tolerant Systems S7-400H (http://support.automation.siemens.com/WW/
view/en/82478488)" system manual.
2. Change your S7 program and compile it with the "Changes" scope and activated "Generate
module drivers" option.
3. Download your safety program.
4. When safety mode is activated, you are prompted whether you want to disable safety mode.
Confirm this prompt. Safety mode is deactivated and the download operation is carried out.
5. Download your configuration using CiR.
6. After completion of the download operation, you are prompted whether you want to activate
safety mode.
Confirm this prompt. Safety mode is activated.
See also
Deactivating safety mode (Page 195)
Activating safety mode (Page 196)
Note
Parameter reassignment of fail-safe I/O is not supported.
Procedure
1. Select the F-CPU or its S7 program in SIMATIC Manager.
2. Select the PLC > Access Rights > Setup menu command. On the "Protection" tab of the
displayed dialog, enter the password that was assigned during parameter assignment of the
F-CPU.
Access permission is always valid until you revoke it (PLC > Access Rights > Cancel) or until you
end the last STEP 7 application.
WARNING
Limiting accessing using the engineering system
If you have not activated access protection to limit access to the engineering system to persons
authorized to modify safety programs, you must use the following organizational measures in
the engineering system to ensure the effectiveness of the password protection:
• Only authorized persons may have access to the password.
• Authorized persons must explicitly revoke the access permission for the F-CPU before
leaving the engineering system. If you do not implement this measure consistently, you
must additionally use a screen saver whose password can only be accessed by authorized
persons.
In safety mode, access permission by means of the F-CPU password must not be active when
changes are made to the standard user program, because the safety program can then also be
changed. To rule out this possibility, you must configure protection level "1".
If only one person is authorized to change the standard user program and the safety program,
protection level "2" or "3" should be configured to ensure that other persons have only limited
access or no access to the standard user program and safety program.
If safety mode is active after access permission is revoked, check to determine whether
• the collective signature of the safety program online
and
• the collective signature of the accepted safety program are identical.
If not, download the correct safety program to the F-CPU again.
FSW-010
Note
Automatic downloading of safety programs is not supported in multiprojects. The passwords
must be entered at the time of downloading to the respective F-CPU.
WARNING
Transferring the safety program to multiple F-CPUs
If multiple F-CPUs can be reached from an ES via a network (e.g. MPI), you must take the
following additional measures to ensure that the safety program is downloaded to the correct
F-CPU.
Use F-CPU-specific passwords, e.g. a password for the F-CPUs with appended MPI address
"FCPUPW_8". The password has a maximum of 8 characters, including at least one special
character. In STEP 7 V5.5.4 HF9 and higher, the password must contain 8 characters for new
projects.
Note the following:
• Before a safety program for which access permission by means of an F-CPU password does
not yet exist is downloaded to an F-CPU, any existing access permission for another F-CPU
must first be canceled.
FSW-011
WARNING
Password protection
After a cold restart, the current password is deleted from the RAM load memory and the old
password from the flash EPROM memory card becomes valid again. To prevent too many
people form knowing the old password on the flash EPROM memory card, you should take
organizational measures.
FSW-012
Requirement
To set up an access permission for the safety program, a safety program (F-chart) must exist.
Procedure
To set up or change the password for the safety program, follow these steps:
1. Select the F-CPU or its S7 program in SIMATIC Manager.
2. For an F-library or a project without a configured CPU, select the corresponding directory of
the CFCs with the built-in F-blocks.
WARNING
Limiting accessing using the engineering system
If you have not activated access protection to limit access to the engineering system to persons
authorized to modify safety programs, you must use the following organizational measures in
the engineering system to ensure the effectiveness of the password protection:
• Only authorized persons may have access to the password.
• Authorized persons must explicitly revoke the access permission for the safety program
before leaving the engineering system. If you do not implement this measure consistently,
you must additionally use a screen saver whose password can only be accessed by
authorized persons.
FSW-013
Note
The access permission relates to the safety program itself and not the persons that work on the
ES. This must be taken into consideration, particularly in relation to multi-user engineering
projects.
Note
Automatic editing and compiling of safety programs is not supported.
The password must be valid during the respective action.
WARNING
Passwords must be unique
To improve access protection, use different passwords for the F-CPU and the safety program.
The passwords of various safety programs must also be different.
FSW-014
Introduction
A safety program consists of F-blocks that you select from the F-library and interconnect in the
"CFC Editor" and F-blocks that are automatically added when the safety program is generated.
When the safety program is generated, fault-control measures are automatically added to the
safety program you created and additional safety-related checks are performed.
Schematic structure of a project with standard user program and safety program
The following figure shows the schematic structure of an S7 program on the engineering station
(ES) and in the F‑CPU:
&OHJOFFSJOHTUBUJPO 4'')4ZTUFNT
4QSPHSBN
45&11$4QSPKFDU
)BSEXBSFDPOHVSBUJPO 4BGFUZQSPHSBN
$'$
4UBOEBSEVTFSQSPHSBN
4UBOEBSEVTFSQSPHSBN 4'4ZTUFNT-JC
'DPOUSPMCMPDLT
4BGFUZQSPHSBN 'VTFSCMPDLT
'*0
'MJCSBSZ
4UBOEBSE
*0
The S7 program typically consists of a standard user program in which you program the parts of
the program not required for the safety function and a safety program for the safety function.
0#Y 'TZTUFNDIBSU
'35( "VUPNBUJDBMMZJOTFSUFE'CMPDLT
'35(Y
$IBSUTXJUI'CMPDLT
'4(Y 'VTFSCMPDLT
3FBEZNBEF'CMPDLTGPSUIF
4UBOEBSE DPOOFDUJPOPG'*0
SVOUJNFHSPVQ
DPNNVOJDBUJPO EBUB
DPOWFSTJPO FUD
'35('SVOUJNFHSPVQ
'4('TIVUEPXOHSPVQ
You can find more information on this in the "SIMATIC Process Control System PCS 7 CFC for
SIMATIC S7 (https://support.industry.siemens.com/cs/ww/en/view/90683154)" manual,
"Special features of F-blocks in CFCs" section.
F-runtime groups
You are not permitted to insert F-blocks directly in tasks (OBs) when programming the safety
program.
A runtime group becomes an F-runtime group only when it is called in its F-blocks. If no F-blocks
are contained in the runtime group, it is regarded as a standard runtime group.
Your safety program consists of multiple F-runtime groups.
In CFC V8.2 and higher, the creation of F-runtime groups by CFC is supported. Note the
paragraph "Support in creating the program structure" regarding this.
F-shutdown groups
An F-shutdown group is a self-contained unit of your safety program. An F-shutdown group
contains the user logic which is simultaneously executed or shut down.
The F-shutdown group contains one or more F-runtime groups that are assigned to a common
task. You can select whether a fault during execution of the safety program is to trigger a full
shutdown of the entire safety program or a partial shutdown, that is, shutdown only of the F-
runtime group in which the fault occurred.
F-blocks can exchange data between F-shutdown groups only via special F-blocks. All F-channel
drivers belonging to an F-I/O must be located in the same F-shutdown group.
See also
F-STOP (Page 97)
Creating the Safety Program (Page 84)
Requirements
• You must have created a project structure in SIMATIC Manager.
• You must already have configured the hardware components of your project - in particular,
the F-CPU and the F-I/O - prior to programming the safety mode.
• You must have assigned your safety program to an F-capable central processing unit, such as
a CPU 410-5H.
Basic procedure
Proceed as follows to create a safety program:
%FOFQSPHSBNTUSVDUVSF
*OTFSU$'$DIBSUT
*OTFSU DPOHVSFBOEJOUFSDPOOFDU'CMPDLT
$PNQJMFBOEMPBE4QSPHSBN
5FTUTBGFUZQSPHSBN
:FT /P
0,
$IBOHFTBGFUZQSPHSBN
0OTJUFBDDFQUBODFPGUIFTBGFUZQSPHSBN
FHCZBOFYQFSU
Introduction
When designing an S7 program for S7 F/FH systems, you need to answer the following questions
in addition to the standard case:
• Which parts of the S7 program must be fail-safe?
• Which reaction times do you want to achieve?
Depending on this, you have to divide your S7 program into different OB 3x cyclic interrupts.
Note
You improve the performance if you program those program parts which are not needed for
the safety functions in the standard user program.
When splitting between the standard user program and the safety program, note that it is
easier to change the standard user program and load it into the F-CPU. As a rule, changes to
the standard user program do not require acceptance.
WARNING
Default setting of the maximum MAX_CYC
The default setting for the maximum F-cycle time is 3000 milliseconds. Check whether this
setting is suitable for your process. Change the defaults, if required.
FSW-015
Note
For changes to the F-cycle time in the RUN operating state, refer to section " Changing the time
ratios or F-Monitoring times (Page 207) ".
WARNING
Do not change values created during compilation
You must not change the automatic placement, interconnections and parameter assignment
of F-blocks during compiling!
• In particular, you must not manipulate the structure components COMPLEM and PAR_ID of
F‑data types.
• You must not change the F-control blocks (except parameter MAX_CYC at F_CYC_CO) that
are automatically inserted into the safety program (in F-system charts).
• In F-blocks, you may only interconnect or configure the parameters that are described in the
online help or in the manual.
You must not change or delete the F-blocks in the block container.
FSW-016
WARNING
Call interval of cyclic interrupt OB 3x is monitored for the maximum value
The call interval of the cyclic interrupt OB 3x is monitored for maximum value, i.e. it is
monitored whether the call is performed often enough, but not too often.
Fail-safe times must therefore be implemented via F-blocks, e.g. F_TON, F_TOF, F_TP, and not
via counters (OB calls).
FSW-017
WARNING
Compression changes the signature
The collective signature of your safety program may change if you compress a CFC program
(menu command in the CFC Editor Options > Settings > Compile/Download).
Therefore, check the collective signature after compression.
Perform this before the acceptance.
FSW-018
F-blocks are identified by color in the CFC chart. They are colored yellow to draw your attention
to the fact that this is a safety program.
CFCs and F-runtime groups with F-blocks are yellow and marked with an "F" to distinguish them
from the charts and runtime groups of the standard user program.
Procedure
You insert individual CFCs as for standard user programs in the chart folder:
• In the SIMATIC Manager with the menu command Insert > S7 Software > CFC
• Directly in the CFC Editor with the menu command Chart > New
Note
To ensure that the newly inserted CFCs are installed immediately in the planned cyclic
interrupt OB 3x, you must position the CFC installation pointer accordingly.
Nested charts
You must not connect chart outputs of a lower-level chart that are not internally connected to
each other in the higher-level chart.
WARNING
Effect of optimizing the runtime sequence in the CFC
Optimizing the run sequence in CFC can lead to a change in the collective signature and a
deterioration in the response times of the safety program.
It is therefore not possible to optimize the run sequence.
FSW-019
Procedure
As for standard user programs, you insert F-runtime groups in the runtime editor of the CFC
Editor.
Procedure
Insert the F-blocks into your chart as usual in CFC.
Note
All F-blocks are displayed in yellow in the CFC Editor and in the SIMATIC manager. Only these
blocks are part of your safety program. There are also standard blocks in the F-library in the F-
User Blocks folder, for example, for converting F-data types into standard data types.
WARNING
Entries for F-blocks in the symbol table must not be changed
You may not change or delete the names of the F-blocks in the "Symbol" column of the
symbol table of your S7 program. This also applies to changes in the symbol table assigned
to the F-library.
FSW-020
Procedure
Configure and interconnect the inputs and outputs of the F-blocks as usual in CFC.
WARNING
Illegal changes to input parameters of F-blocks can cause a shutdown of the safety
program and its outputs
Changes to the input parameters of the F-blocks with F-data types can be made as follows:
• Offline using the CFC Editor
or
• Online using CFC test mode when safety mode is disabled.
If you do not change F-data types online using CFC test mode when safety mode is enabled, this
may cause the outputs involved to shut down or trigger an F-STOP.
FSW-021
Note
Changing the run sequence also changes the collective signature.
F-control blocks
When compiling a CFC with F-blocks, the following F‑control blocks are automatically inserted
into the safety program:
• F_DIAG
• F_CYC_CO
• F_MNR_H
• F_PLK
• F_PLK_O
• F_PS_12
• F_PS_13
• F_PS_40
• F_PS_MIX
• F_PSG_M
• F_TEST
• F_TESTC
• F_TESTM
When compiling a CFC with F-blocks, the following blocks are automatically inserted into the
standard user program:
• DB_INIT
• DB_RES
• F_SHUTDN
• RTGLOGIC
• F_VFSTP1
• F_VFSTP2
• F_MOVRWS *
• F_CHG_WS *
*) The insertion of the F_MOVRWS and F_CHG_WS blocks depends on your programmed user
logic.
WARNING
Do not change automatically inserted F-Control blocks.
The automatically inserted F-control blocks are visible after compiling. You must not delete
these F-blocks and must not make any changes to them, since this can lead to errors during the
next compiling. Exceptions can be found in the description of the F-blocks in the appendix "F-
libraries (Page 229)".
FSW-022
Note
When compiling the S7 program, additional blocks (DB_RES) and calls are automatically inserted
at the beginning of the sequence in OB 100.
F-startup
S7 F Systems does not distinguish between CPU cold start and CPU warm start. The F-blocks
F_MOV_R, F_SWC_CB and F_SWC_CR are exceptions here. You can find additional information
on this in the sections "Blocks and F-Blocks for data conversion (Page 275)" and "Multiplex blocks
(Page 410)". Both a cold restart and a warm restart of the CPU results in an F-startup.
Note
Startup type "Cold restart"
In PCS 7 and when blocks from PCS 7 libraries are used, the startup type "Cold restart" is not
permitted.
After an F-startup, the safety program starts up automatically with the initial values.
An F-startup takes place:
• After a CPU STOP when you perform a warm restart or a cold restart of the F-CPU.
• After an F-STOP when you perform the following steps:
– Set the value "1" at the "Restart" input for the restart.
– After you accept the value, reset it back to the original value "0".
After a partial shutdown of the safety program, only the F-shutdown groups that were in F-STOP
perform an F-startup.
F-shutdown groups that are not fault-free remain in F-STOP.
WARNING
Saved error information is lost following an F-startup.
After a STOP of the F-CPU, the F-system automatically reintegrates the F-I/O following an F-
startup.
A data handling error or an internal fault can also trigger a safety program restart with the initial
values of the F-blocks. If your process does not allow such a startup, you must program a restart/
startup protection in the safety program: Process data outputs must be blocked until manually
enabled. Enabling of the process data output must not occur until it is safe to do so and faults
have been corrected.
FSW-023
Restart/startup protection
If the process does not permit automatic startup of the safety program with initial values, you
must program a reaction to the F-startup. The F-block F_START is available for signaling an F-
startup of the safety program with initial values.
The COLDSTRT output parameter signals the occurrence of an F-startup.
Examples
You can use the following measures to react to a startup of the safety program with initial values:
• Programming of an interlock of the outputs after startup using the PASS_ON passivation
inputs at the F-channel drivers for outputs. To do this, interconnect the COLDSTRT output of
the F-block F_START with the S input of an SR-Flip-Flop (F_SR_FF) and the Q output of the
F_SR_FF with PASS_ON of the F-channel driver for outputs. You can then enable the interlock
manually:
– Using a button that is queried via an F-I/O.
or
– By input at the ES/OS via the F-block SWC_QOS (F_SWC_BO).
You need to connect the Q output of the F-channel driver associated with the button or
the OUT output of the F_SWC_BO to the R input of the F_SR_FF.
• Programming of an idle loop so that the internal states of the safety program correspond to
the process state again.
• Programming using multiplexers: The output of a multiplexer F_MUX2_R is controlled by the
COLDSTRT output of the F-block F_START. As a result, a different program branch can be
executed after a startup than in cyclic operation.
7.6 F-STOP
Introduction
If the safety program detects a safety-related fault, a fault reaction is triggered. If no fail-safe
values can be output, the fault reaction that is then carried out is called an F-STOP.
Types of F-STOP
There are two types of F-STOP:
• Full shutdown
All F-shutdown groups of the F-CPU are shut down. The shutdown is carried out in the
following order:
– Initially, the F-shutdown group in which the fault was detected is shut down.
– All other F-shutdown groups are then shut down within a period of time equal to twice the
F-monitoring time you assigned for the slowest OB.
• Partial shutdown
Only the F-blocks of the F-shutdown group in which a fault was detected are shut down.
A shutdown of F-shutdown groups means:
• The outputs of the F-I/O controlled by the F-shutdown group are passivated.
• The F-channel drivers of the F-shutdown group set the outputs QBAD to "1" and QUALITY to
"0".
• The safety-related communication of the F-shutdown group with other F-CPUs is interrupted.
• The data exchange of the F-shutdown group with other F-shutdown groups is interrupted.
• In the case of data exchange from the safety program to the standard user program, the last
valid values are provided to the standard user program.
• The F_SHUTDN block generates a message you can display on an OS.
• Diagnostic events are entered in the diagnostics buffer of the F-CPU.
The standard user program of the F-CPU continues running even after an F-STOP.
In order to assign the F-STOP parameters, use the "Shutdown behavior" button in the "Safety
Program" dialog. See also ""Shutdown Behavior" dialog box (Page 180)".
Ending an F-STOP
Perform an F-startup as described in the section "F-Startup and reprogramming restart/startup
protection (Page 95)".
See also
Initial run and startup characteristics (Page 209)
Group passivation (Page 119)
7.7.1 Introduction
S7 F Systems allows you to generate an F-block type from the CFC of a safety program. You can
reuse F-block types in other safety programs.
• The chart inputs/outputs of the new F block type can have both F-Data types and standard
data types.
• You are not permitted to use names of F blocks in the F-Library as the names of F block types.
• For instances of F blocks that are called in an F block type, we recommend that you assign
names as follows:
– Numbers only, as specified in the CFC Editor
or
Alphanumeric names, but that must begin with "F_"
– Upper-case letters only
– No "_" at the end
WARNING
F-block outputs always use the predefined initial values
When creating F block types, you are not permitted to change any initial values at F block
outputs. CFC allows this and shows you the change. However, S7 F Systems always uses the
initial values described in the F block description under "Default".
FSW-024
Procedure
1. Create the CFC in a separate S7 program that is assigned to an F‑CPU. The S7 program can be
located in the same project.
Note
Use a separate AS station to create an F-block type!
Always use a separate AS station that contains only the safety program of the F-block type to
create an F-block type.
3. Select the menu command Chart > Compile > Chart as block type. A dialog for entering the
block properties is displayed.
See also
Downloading changes (Page 204)
System Acceptance Test (Page 213)
7.7.5 Integrating F-parameters of custom F-block types in the printout of the safety
program
Requirement
You have already created an F-block type and opened it as a CFC chart.
Procedure
1. Select the chart I/O that you want to include in the safety-related printout.
2. Select "Object properties" in the shortcut menu to open the object properties of the tag. Make
sure that you open the object properties of the structure and not the subordinate elements.
3. Open the "Attributes" tab and enter the "F_PrintTypParam" attribute in an empty row.
Set the value of the attribute to "TRUE".
4. Repeat this process for all chart I/Os you want to include in the safety-related printout.
5. Select the menu command Chart > Compile > Chart as Block Type and compile the F-block
type.
Result
The I/Os with the "F_PrintTypParam" attribute appear in a printout of the F-program with the
"Print safety-relevant parameters" option.
See also
Creating F-Block types with "Compile Chart as F-Block Type" (Page 101)
Introduction
Control Module Types (CMT) with F-blocks from the SIMATIC S7 F Systems Library are supported,
as well as their instances, which are referred to as control modules.
You can find additional information on Control Module Types (CMTs) in the CFC documentation
"SIMATIC Process Control System PCS 7 CFC for SIMATIC S7 (https://
support.industry.siemens.com/cs/ww/en/view/109779389)".
Note
When using CMTs/CMs with F-blocks of the SIMATIC S7 F Systems Library, the rules and warnings
in the "Inserting and interconnecting F-Blocks (Page 90)" section must be observed.
Overview
Creating CMTs
When creating CMTs, only F-blocks directly from the SIMATIC S7 F Systems Library may be used.
Previously compiled F-blocks from a safety program, F-control blocks (see section "F-Control
Blocks S7 F Systems Library V1.3 SP4 (Page 425)") and F-system blocks (see section "F-System
blocks (Page 378)") must not be used.
WARNING
Identical version of an F-block required
The F-block version used must be identical in CMT (master data library) and CM (program).
FSW-066
WARNING
Checking unique assignment
You need to check that the assignments of CMTs to the instances (CM) are unique.
FSW-067
The assignment of an instance (CM) can be seen in the technological editor of the CFC via the
unique name of the CMT from the master data library.
WARNING
Check after synchronization of the CMT with the instances (CM)
After matching the CMT with the instances (CM) in the program involved, check whether the
desired changes have been made to the instances (CMs). Changes to the instances must be
traceable.
FSW-068
If you want to do this, follow the steps described in the section "Comparing safety programs
(Page 184)".
WARNING
Relevance for acceptance of the safety program
When using CMTs, only the respective associated instances (CMs) in the safety program are
relevant for the acceptance of the safety program.
FSW-069
Available F-blocks
You must use the following F-system blocks for the data exchange between F-blocks in
different F-shutdown groups:
F-block Description
F_S_R / F_R_R Safe transmission of 5 data elements of F-data type F_REAL.
F_S_BO / F_R_BO Safe transmission of 10 data elements of F-data type F_BOOL.
Procedure
1. Insert an F-block of type F_S_R or F_S_BO into the F-shutdown group, from which data is to
be transferred.
2. Insert an F-block of type F_R_R or F_R_BO into the F-shutdown group, from which data is to
be transferred.
3. Interconnect inputs SD_R_xx of F_S_R or SD_BO_xx of F_S_BO with the data to be
transmitted.
4. Interconnect outputs RD_R_xx of F_R_R or RD_BO_xx of F_R_BO with the inputs of the F-
blocks for further processing of the received data.
5. Interconnect the S_DB output of the send block with the S_DB input of the associated receive
block.
6. Set the desired F-monitoring time for the TIMEOUT inputs of the F_R_R and F_R_BO receive
blocks.
For information regarding calculation of the F-monitoring time, see section "Run times, F-
Monitoring times, and response times (Page 455)".
Examples: Excerpt from the chart of the F-shutdown group from which data will be transmitted
Example: Excerpt from the chart of the F-shutdown group to which data will be transmitted
Note
If you interconnect F-blocks in different F-shutdown groups directly (without the above-
indicated F-system blocks), a compilation error will be generated at the next compilation.
If you interconnect F-blocks within a F-shutdown group with the above-indicated F-system
blocks, an error message will be generated.
Overview
Safety programs and standard user programs use different data formats. Safety-related F-data
types are used in safety programs. Standard data types are used in the standard user program.
You must therefore use special conversion blocks for data exchange.
Parameters are transferred as safety-related F-data types in the safety program.
Data transfer from the safety program to the standard user program
If the standard user program is to further process data from the safety program, for example, for
monitoring, you need to insert a data conversion block (F_data type) in the CFC Editor that
converts the F-data types to standard data types. You can find these blocks in the F-library.
Data transfer from the standard user program to the safety program
Data from the standard user program cannot be processed in the safety program until a validity
check is performed. You need to use additional process-specific plausibility checks in the safety
program to ensure that no dangerous states can occur.
If you want to further process data from the standard user program in the safety program, you
must use F-blocks for data conversion (F_data type) in order to generate safety-related F-data
types from the standard data types. If necessary, you must then subject the converted data to a
programmed plausibility check. You can find these F-blocks in the F‑library.
7.10.1 Programming data exchange from the safety program to the standard user
program
Block Description
F_FBO_BO Converts F_BOOL to standard BOOL
F_FR_R Converts F_REAL to standard REAL
F_FI_I Converts F_INT in standard INT
F_FTI_TI Converts F_TIME to standard TIME
Procedure
Proceed as follows:
1. Insert blocks of the F_FBO_BO, F_FR_R, F_FI_I or F_FTI_TI type into the charts of the standard
user program. You can find these blocks in the F‑library.
2. Interconnect the inputs of the F_data type to similar signals from the safety program.
3. Interconnect the outputs of the standard data type with similar signals from the standard
user program.
7.10.2 Programming data exchange from the standard user program to the safety
program
F-block Description
F_BO_FBO Converts standard BOOL to F_BOOL
F_I_FI Coverts standard INT in F_INT
F_R_FR Converts standard REAL to F_REAL
F_TI_FTI Converts standard TIME to F_TIME
Procedure
Proceed as follows:
1. Insert F-blocks of F_BO_FBO, F_I_FI, F_TI_FTI or F_R_FR the type into the charts of the safety
program.
2. Interconnect the inputs of standard data types with similar signals from the standard user
program.
3. Use a plausibility check to interconnect the outputs of F-data types with signals of the same
type in the safety program.
Note
Adding, changing and deleting the connections from the standard user program to the F-
conversion blocks is a change to the safety program, even if these are connections of a
standard data type. This means that access authorization is required for compiling (see
"Access Protection (Page 73)").
WARNING
Validity check
The F-blocks F_BO_FBO, F_I_FI, F_TI_FTI and F_R_FR only perform a data conversion. You
must therefore program additional measures for plausibility checks in the safety program.
FSW-025
Validity check
The simplest type of plausibility check is an area specification with a fixed high and low limit, for
example, with F_LIM_R.
Not all input parameters can be checked for plausibility in a sufficiently simple way.
Note
When a user acknowledgment is implemented using an acknowledgment button and a
communication error, F-I/O fault or channel fault occurs on the F-I/O to which the
acknowledgment button is connected, an acknowledgment for reintegration of these F-I/O is
also no longer possible. This "blocking" can only be canceled by a STOP/RUN transition of the F-
CPU. For this reason, provision for an additional acknowledgment via an OS is recommended for
the acknowledgment for reintegration of an F-I/O to which an acknowledgment button is
connected.
Note
When configuring a process image partition at the F-module, installation of the F-module and
the call of the fail-safe driver module in different cyclic interrupt OBs is not permitted.
Failure to observe this may cause sporadic data corruption during communication with the F-
module.
F-module drivers
The F-module driver undertakes the PROFIsafe communication between the safety program and
the F-I/O. The F-module driver is automatically placed and interconnected in the safety program
by the CFC driver generator.
F-channel drivers
The F-channel drivers in your safety program form the interface to a channel of an F-I/O and
perform signal processing. Depending on the F-I/O, different F-channel drivers are appropriate
(see section F-Channel drivers for F-I/O (Page 299)).
You must place and interconnect F-channel drivers in the safety program.
For redundantly configured F-I/O, you need only one F-channel driver for two redundant
channels
Note
Do not connect symbols more than once
It must be ensured that symbols are not connected more than once, i.e. exactly one F-channel
driver is connected to the symbol of the associated channel. It is recommended to document any
necessary exceptions to this and to explicitly check them in the function test.
Procedure
1. Place the suitable F-channel driver for each utilized input/output channel.
2. For each F-channel driver, connect the VALUE I/O to the symbol of the associated channel.
This step is required for all placed F-channel drivers. For redundantly configured F-I/O,
interconnect the VALUE I/O with the symbol of the channel with the lower channel address.
3. Interconnect the following inputs/outputs with your user logic:
– The inputs I of the F-channel drivers F_CH_DO, F_CH_BO, F_CH_QBO, F_CH_QIO
– The outputs Q or QN of the F-channel drivers F_CH_DI, F_PA_DI, F_CH_BI, F_CH_QBI,
F_CH_QII
– The outputs V of the F-channel drivers F_CH_AI, F_PA_AI
4. Optional: Interconnect the simulation I/O.
5. Optional: Connect the PASS_ON input if you want to activate passivation of the channel, e.g.
depending on certain states in your safety program.
6. Check the parameter assignment at the respective ACK_NEC input. Assign the value "1" to the
respective ACK_NEC input if a user acknowledgment is required for reintegration of the
channel.
7. Interconnect the respective ACK_REI input with the signal for acknowledgment of
reintegration (see section "Group passivation (Page 119)").
8. Optional: Interconnect the PASS_OUT or QBAD output in order to observe whether a fail-safe
value or a valid process value is being output.
9. Optional: Evaluate the QUALITY output in the standard user program or on the OS if you want
to query or observe the value status (quality code) of the process value.
10.Optional: Evaluate the ACK_REQ output in the standard user program or on the OS in order
to determine whether a user acknowledgment is required.
11.Optional: Connect the QBIT output with F-channel drivers for PROFIsafe profile 2.6.1 XP, e.g.
F_CH_QBI, F_CH_QBO, to evaluate the validity of the corresponding process value at the
input/output channel.
Depending on the F-channel driver, there are other inputs and outputs you can or must
interconnect (see appendix "F-Channel drivers for F-I/O (Page 299)")
WARNING
F-I/O with digital inputs of the BOOL data type
For F-I/O with inputs, the substitute value "0" provided at the F-channel driver must be further
processed for (digital) channels of data type BOOL in the safety program.
FSW-028
For an F-I/O with outputs, substitute values are transferred from the F-system to the fail-safe
outputs instead of the output values provided on the F-channel driver during passivation.
Reintegration
The changeover from the substitute values to process values (reintegration of a F-I/O devices)
takes place automatically or only after a user acknowledgment at the fail-safe channel driver.
The type of reintegration depends on:
• Cause of passivation of the F‑I/O or channels of the F-I/O
• Configuration to be performed by you on the F-channel driver
Note
For F-I/Os with outputs, an acknowledgment may only be possible in the minute range after
error correction due to required test signal connections after F-I/O/channel errors (see
manuals for F-I/Os).
See also
F-Channel drivers for F-I/O (Page 299)
Description
If you want to enable passivation of additional F-I/O when an F-I/O or a channel of an F-I/O is
passivated by the F-System, you can use the PASS_OUT output or PASS_ON input to perform a
group passivation of associated F-I/O.
Group passivation by means of PASS_OUT/PASS_ON can, for example, be used to force
simultaneous reintegration of all F-I/O after startup of the F-System.
For group passivation, you must OR all PASS_OUT outputs of the F-Channel drivers in the group
with F_OR4 F-Blocks and interconnect the result at the OUT output of F_OR4 with all PASS_ON
inputs of the F-Channel drivers in the group.
See also
F-Channel drivers for F-I/O (Page 299)
Introduction
Safety-related communication between the safety programs of F‑CPUs via S7 connections takes
place using connection tables in NetPro, in the same way as with standard programs.
Note
In S7 F/FH Systems, safety-related communication via S7 connections is possible to and from the
following F-CPUs:
• CPU 315F‑2 and higher
• CPU 317F‑2 and higher
• CPU 319F-3 and higher
• CPU 412-4H and higher
• CPU 414-4H and higher
• CPU 414F-3 and higher
• CPU 416F-x and higher
• CPU 416-5H and higher
• CPU 417-4H and higher
• CPU 410-5H and higher
Note
WARNING
CPU-CPU communication and public networks
Safety-related CPU-CPU communication is not permitted via public networks.
FSW-029
STEP 7 assigns a local ID and a partner ID for each connection end-point. You can change the
local ID in NetPro if necessary. You assign the local ID to the ID parameter of the appropriate F-
blocks in the safety programs.
Note
Safety-related communication via S7 connections to unspecified partners is not possible.
Note
If you modify the configuration of S7 connections for safety-related communication, you must
recompile the relevant S7 programs and download them to the F-CPUs.
Additional information
You will find a description of how to configure S7 connections in the following sources:
• In the manual "Configuring hardware and configure connections with STEP 7 V 5.5 (https://
support.industry.siemens.com/cs/ww/en/view/109751824)"
• In the manual "Automation System S7-400H Fault-Tolerant Systems (http://
support.automation.siemens.com/WW/view/en/82478488)" and
• STEP 7 online help.
'@4&/%Y'@4%4@#0 '@3$7Y'@3%4@#0
'@3$7Y'@3%4@#0 '@4&/%Y'@4%4@#0
FH*OEVTUSJBM&UIFSOFU
This enables you to securely transfer a fixed number of up to 20 data of the F-data type F_REAL
and up to 20/32 data of the F-data type F_BOOL.
Programming procedure
1. In the safety program that is to send data, insert the F-block F_SENDBO/F_SDS_BO/F_SENDR
for sending.
2. In the safety program that is to receive data, insert the F-block F_RCVBO/F_RDS_BO/F_RCVR
for receiving.
3. Configure the ID input of the F_SENDBO/F_SDS_BO/F_SENDR with the local ID of the S7
connection configured in NetPro (data type: WORD).
4. Configure the ID input of F_RCVBO/F_RDS_BO/F_RCVR with the local ID of the S7 connection
configured in NetPro (data type: WORD).
FH$16) FH$16)
4BGFUZQSPHSBN 4BGFUZQSPHSBN
'@4&/%#0'@4%4@#0'@4&/%3 '@3$7#0'@3%4@#0'@3$73
*%8 *%8
3@*%%8 3@*%%8
'@3$7#0'@3%4@#0'@3$73 '@4&/%#0'@4%4@#0'@4&/%3
*%8 *%8
3@*%%8# 3@*%%8#
WARNING
Value for the relevance address reference
The value for the respective address relationship (input parameter R_ID; data type: DWORD)
can be selected by the user but must be an odd number and unique network-wide for all
safety-related communication connections. The value R_ID + 1 is internally assigned and
must not be used.
FSW-030
WARNING
Duration of the signal level to be transmitted
It can only be ensured (from a fail-safe standpoint) that a signal level to be transmitted will
be detected on the sender side and transmitted to the receiver if the signal level is present
for at least as long as the assigned F-monitoring time (TIMEOUT).
For information regarding the calculation of the F-monitoring time, see section "Run times,
F-Monitoring times, and response times (Page 455)".
FSW-031
Note
For safety reasons, the parameters at the TIMEOUT inputs must be set with the minimum F-
monitoring time. TIMEOUT must not be used to increase availability.
10.At the EN_SEND input of the F_SENDBO/F_SDS_BO/F_SENDR, you can temporarily switch off
communication between the F-CPUs to reduce the bus load by supplying input EN_SEND
(default setting = "1") with "0". Then no more send data is sent to the corresponding F_RCVBO/
F_RDS_BO/F_RCVR and the receiver F_RCVBO/F_RDS_BO/F_RCVR provides the configured
substitute values for this period. If communication between the connection partners has
already been established, a communication error is detected.
11.Optional: Evaluate the ACK_REQ output of the F_RCVBO/F_RDS_BO/F_RCVR, for example, in
the standard user program, to query or display whether a user acknowledgment is required.
12.Interconnect the ACK_REI input of F_RCVBO/F_RDS_BO/F_RCVR with the signal for
acknowledgment for reintegration.
13.Optional: Evaluate the SUBS_ON output of F_RCVBO/F_RDS_BO/F_RCVR or F_SENDBO/
F_SDS_BO/F_SENDR to query whether F_RCVBO/F_RDS_BO/F_RCVR outputs the substitute
values that you configured at the SUBBO_xx/SUBR_xx inputs.
WARNING
Data reception when safety mode is deactivated
If the F-CPU with the associated F_SENDBO/F_SDS_BO/F_SENDR is in deactivated safety
mode, you can no longer assume that the data received from this F-CPU were generated
safely. You must then also ensure the safety of the plant units that are influenced by the
received data by organizational measures, such as monitored operation and manual safety
shutdown, or output of safe substitute values in the F-CPU with F_RCVBO/F_RDS_BO/
F_RCVR by evaluating SENDMODE instead of the received data.
FSW-032
WARNING
The S7 program must be recompiled if the S7 connections for communication
between F-CPUs have been changed.
If the safety program contains F-blocks for safety-related CPU-CPU communication, the S7
program involved in the communication must be recompiled after the following actions so
that the connection data is updated:
• Copying an F-CPU
• Copying a safety program or chart to another F-CPU
• Changing a communication partner of an S7 connection
• Removing/inserting a project containing the communication partner of an S7
connection from/to the multiproject
FSW-033
See also
Determining the runtime sequence (Page 91)
Safety engineering in SIMATIC S7 System Manual (http://support.automation.siemens.com/WW/
view/en/12490443)
4BGFUZQSPHSBN 4BGFUZQSPHSBN
4%JTUSJCVUFE4BGFUZ 4'4ZTUFNT
'@3$74 '@4%4@#0
'$PNN%#*OQVU
EBUB
'@4&/%4 '@3%4@#0
'$PNN%#0VUQVU
EBUB
*OEVTUSJBM&UIFSOFU
Function
The "Secure Write Command++" functionality (SWC++) enables safety-related changes to be
made to F-parameters in the safety program of an F-CPU from an operation station (OS).
The safety-related changes are executed by the following operator functions based on "SWC++":
• Maintenance Override
• Change process values
• Fail-safe acknowledgment
You can find additional information on the operator control functions in the section "Operator
functions based on "Secure Write Command++" (Page 132)".
Note
The operator functions based on "SWC++" are available only under SIMATIC PCS 7.
With "SWC++" the actions for changing parameters in the F-CPU from the WinCC OS are
separated into:
Note
When used with PCS 7, one PO license is used for each instance of an operator control block in
the safety program.
See also
Blocks and F-Blocks for data conversion (Page 275)
Overview
The following operator functions are based on "Secure Write Command++" (SWC++):
• "Maintenance Override"
"Maintenance Override" allows you to set bypasses in the safety program from the OS.
Starting from S7 F Systems V6.1, you can create a bypass for up to three process signals for
F_BOOL or F_REAL. The bypasses can be mutually interlocked, if required. In addition, you
can use "Maintenance Override" to change substitute values for process signals and
configure a reset time in order to reset the set bypasses automatically after this time.
• "Change process values"
"Change process values" allows you to change F-parameters in the safety program from the
OS.
Starting from S7 F Systems V6.2 with S7 F Systems Lib as of V1.3 SP2, you can change an F-
parameter of data type F_BOOL or F_REAL with "SWC++" (F_SWC_CB / F_SWC_CR and
SWC_CHG).
• "Fail-safe acknowledgment"
"Fail-safe acknowledgment" allows you to implement a fail-safe acknowledgment from the
OS.
As of S7 F Systems V6.2 with S7 F Systems Lib as of V1.3 SP2, you can control reintegration
of F-I/O via the ES/OS with "SWC++" (F_SWC_BO and SWC_QOS).
Note
Possible combinations of blocks
• The F_SWC_CB and F_SWC_CR blocks may only be used with SWC_CHG. It is not possible to
use these blocks for SWC_MOS or SWC_QOS.
• The F_SWC_BO block may only be used with SWC_MOS and SWC_QOS. It is not possible to use
this block with SWC_CHG.
• The F_SWC_R block may only be used with SWC_MOS. It is not possible to use this block with
SWC_CHG.
10.3 "SWC++" operator control functions via "Web Option for OS"
Overview
As of S7 F Systems V6.3, you can operate and monitor the following operator control functions
based on "SWC++" over the intranet/Internet on a PCS 7 Web client with the help of the "PCS 7
Web Option for OS".
• "Maintenance override" allows you to set bypasses in the safety program from the OS.
• "Change process values" allows you to change F-parameters in the safety program from the
OS.
• "Fail-safe acknowledgment" for fail-safe acknowledgment from the OS
Configuration steps on the ES
• Faceplates, e.g. SWC_QOS, were placed in the CFCs during configuration.
• Faceplates were configured for the operator control blocks.
You can find additional information on this in the section "Basic procedure for configuring
operator control functions with "SWC++". (Page 135)".
Note
No operations based on the "Safety Data Write" functionality are possible via "PCS 7 Web Option
for OS".
You can find a detailed description of the "Web Option for OS" in the Function Manual "Process
Control System PCS 7 Web Option for OS". You can find additional information on this document
"Scope of information" section in the preface.
When using "Web Option for OS" in an OS single-user system or OS multi-user system, note the
following:
• The notes in the foreword to "Safety concepts and communication".
• The conditions and notes in the Function Manual "Process Control System PCS 7 Web Option
for OS" in the section "Overview of the Web Option for OS".
– An OS client that is configured as Web server, for example, can no longer be utilized as an
operator station (OS client, SIMATIC BATCH client, etc.) within the PCS 7 system.
– The Web client cannot be used as an additional PCS 7 station.
Requirements:
• OS:
– S7 F Systems HMI must be installed on the OS.
– "PCS 7 Web Option for OS" must be installed and set up on the OS.
– "Web Option for OS" requires PCS 7 V9.0.2 or higher.
• Web client
– The required plug-ins must be installed on the Web client.
The plug-in is available for download and installation after the Web client has logged onto
the Web Navigator Server.
– Microsoft Visual C++ Redistributable 2010 32-Bit must be installed.
This software is available on the installation storage medium with "SIMATIC S7 F Systems".
– No S7 F Systems HMI must be installed on the Web client.
10.4.1 Basic procedure for configuring operator control functions with "SWC++".
Basic procedure
To perform an operator function via an OS, follow these steps:
10.4.2.1 Introduction
Introduction
The following sections show you typical application cases for the individual operator functions.
You will be given information on the procedure for placement, parameter assignment and
interconnection of blocks and F-blocks for the operator functions in CFC charts.
• "Change process values"
– Application case: "Change process values" with logic blocks (Page 137)
– Application case: "Change process values" with arithmetic block (Page 139)
• "Maintenance Override"
– Application case: Simulating a F-channel driver (Page 141)
– Application case: Grouped maintenance override with mutual interlock (Page 143)
– Application case: Time-triggered maintenance override (Page 145)
• "Fail-safe acknowledgment"
– Application case: Fail-safe acknowledgment (Page 148)
Note
The creation of F-block types based on the "Secure Write Command++" function is not supported.
Use of a keyswitch
To ensure that only authorized persons can perform operator inputs, you can connect the
EN_SWC input of the F-block F_SWC_P to a keyswitch.
Input EN_SWC = 1 must be set during an operator input. When EN_SWC = 0 after an operator
input, all existing bypasses are deactivated. However, set fail-safe values are retained.
WARNING
The "Secure Write Command++" functionality allows changes to the safety program to be
made during RUN mode
As a result, the following additional safety measures are required:
• Ensure that operator inputs that could compromise plant safety cannot be carried out. You
can use the EN_SWC input of the F-block F_SWC_P for this purpose, for example, by
controlling it with a keyswitch or on a process-dependent basis via the safety program.
• Ensure that only authorized persons can carry out operator inputs.
Examples:
• Control the EN_SWC input of the F-block F_SWC_P with a keyswitch.
• Set up access protection for the operator stations where an operator function based on
"Secure Write Command++" can be performed.
FSW-034
The remaining configuration steps are described in the following application cases.
Application
This application case shows you how to control a signal in your plant with the "Change process
values" function dependent on a control signal from your plant.
Procedure
WARNING
Warnings in the descriptions of the F-blocks
Observe the warnings in the descriptions of the following F-blocks.
F_SWC_CB
F_SWC_CR
F_SWC_BO
F_SWC_R
FSW-035
11.Follow the procedure as described in section "Configuring the faceplate of the operator
functions (Page 149)".
Application
This application case shows you how to control a signal in your plant with the "Change process
values" function dependent on a control signal from your plant.
Procedure
WARNING
Warnings in the descriptions of the F-blocks
Observe the warnings in the descriptions of the following F-blocks.
F_SWC_CB
F_SWC_CR
F_SWC_BO
F_SWC_R
FSW-035
11.Follow the procedure as described in section "Configuring the faceplate of the operator
functions (Page 149)".
Application
This application case shows you how to simulate an F-channel driver with "Maintenance
Override".
Procedure
WARNING
Warnings in the descriptions of the F-blocks
Observe the warnings in the descriptions of the following F-blocks.
F_SWC_CB
F_SWC_CR
F_SWC_BO
F_SWC_R
FSW-035
14.Follow the procedure as described in section "Configuring the faceplate of the operator
functions (Page 149)".
Application
This application case shows you how to create a grouped "Maintenance Override".
Procedure
WARNING
Warnings in the descriptions of the F-blocks
Observe the warnings in the descriptions of the following F-blocks.
F_SWC_CB
F_SWC_CR
F_SWC_BO
F_SWC_R
FSW-035
11.Optional:
If you want to display the current value of an F-I/O in the faceplate when the bypass is
activated, connect the following outputs to the F-channel driver:
– Output Q_MOD or V_MOD on the F-channel driver with the V_MOD_BxB or V_MOD_BxR
input on the SWC_MOS block
12.Optional:
If you want to have the process value and its QUALITY displayed for the F-channel driver in
the faceplate, connect the following outputs of the F-channel driver:
– Q_DATA or V_DATA output to the Q_BxB or V_BxR input of the SWC_MOS block.
– QUALITY output to the QUAL_Bx input of the SWC_MOS block
13.Compile your CFC chart.
Additional connections between the SWC_MOS block, the F-blocks F_SWC_BO or F_SWC_R,
F_SWC_P and the F-channel drivers are created during compilation.
14.Follow the procedure as described in section "Configuring the faceplate of the operator
functions (Page 149)".
Application
This application case shows you how to create a time-controlled "Maintenance Override".
Procedure
WARNING
Warnings in the descriptions of the F-blocks
Observe the warnings in the descriptions of the following F-blocks.
F_SWC_CB
F_SWC_CR
F_SWC_BO
F_SWC_R
FSW-035
12.Optional:
Assign the prewarning time for the automatic reset of the active bypasses (default setting =
0 ms) at the T_WARN input of the SWC_MOS block.
13.Optional:
Set the MODE = 'MutualExclBypass' input of the SWC_MOS block in order to activate the
mutual interlock.
14.Optional:
If you want to have the current value of an F-I/O displayed in the faceplate when a bypass is
activated, connect the Q_MOD or V_MOD output of the F-channel driver to the V_MOD_BxB
or V_MOD_BxR input of the SWC_MOS block.
15.Optional:
If you want to have the process value and its QUALITY displayed for the F-channel driver in
the faceplate, connect the following outputs of the F-channel driver:
– Q_DATA or V_DATA output to the Q_BxB or V_BxR input of the SWC_MOS block.
– QUALITY output to the QUAL_Bx input of the SWC_MOS block
16.Compile your CFC chart.
Additional connections between the SWC_MOS block, the F-blocks F_SWC_BO or F_SWC_R,
F_SWC_P and the F-channel drivers are created during compilation.
17.Follow the procedure as described in section "Configuring the faceplate of the operator
functions (Page 149)".
Application
This application case shows you how to perform a "Fail-safe acknowledgement" for a channel
driver with the SWC_QOS block.
Core statement
WARNING
Warnings in the descriptions of the F-blocks
Observe the warnings in the descriptions of the following F-blocks.
F_SWC_CB
F_SWC_CR
F_SWC_BO
F_SWC_R
FSW-035
10.Follow the procedure as described in section "Configuring the faceplate of the operator
functions (Page 149)".
Requirements
• Placement, parameter assignment and interconnection of all required F-blocks, such as
F_SWC_R, F_SWC_BO, in the CFCs is complete.
You can find additional information in the section "Placement, parameter assignment and
interconnection of F-blocks in the CFC (Page 135)".
• The CFCs with F-blocks for the desired operator function are located in the plant hierarchy.
Activating the OS
Activate the WinCC Runtime system of the OS, e.g. by selecting File > Activate in WinCC Explorer.
Result
After activation, the hierarchy levels appear as buttons in the runtime system of the OS. Click the
button to display the block icons for this level.
Example
The following figures show two block icons in the runtime system of the OS, dependent on the
operator function.
Clicking a block icon opens the faceplate.
• Operator function "Change process values"
You can change F-parameters in the safety program. The successful change is visible from the
changes in the last line.
The following symbol in the block icon indicates "Acknowledgment request is active".
You can use "Maintenance Override" to establish a bypass of the F-channel drivers for
maintenance work.
The following symbols appear in the block icon:
– "Acknowledgment request is active"
– "Bypass active"
Note
The "Acknowledgment request is active" function ("O" symbol) is only supported as of F Systems
Library V1.3 SP3.
Detailed information
For detailed information on the described steps, refer to:
• "PCS 7 Operator Station (https://support.industry.siemens.com/cs/ww/en/view/90682677)"
configuration manual
• Online help for the WinCC Editors, e.g. Graphics Designer and User Administrator
Introduction
You can also integrate an operator function such as "Maintenance Override" in an existing
project.
Requirement
In order to integrate the operator function in an existing project, you must update your project.
3. Select the OS object in the navigation window and select the menu command "Compile" from
the shortcut menu. The "Wizard: Compile OS" dialog box opens.
4. Click the "Compile" button in the last step of the wizard.
Result
Once you have performed these steps, your project will contain the new block icons of the
operator functions and the necessary pictures.
Note
If user settings for the block icon of an operator function are to be retained during a subsequent
OS compilation of an existing picture, you must clear the "Derive block icons from the plant
hierarchy" option for this WinCC picture.
Requirements
• The S7 program is compiled and downloaded to the F-CPU.
• The user(s) with the relevant authorizations are set up.
• The configuration of the faceplates is compiled and downloaded to the OS.
• When using OS clients, make sure that no default server is set for tags (in WinCC Explorer
select "Server Data," in the shortcut menu select "Default Server" and in the "Configure
Default Server" dialog for the "Tags" component select "No Default Server").
General information
WARNING
Initiator and confirmer must not accept an invalid value
Before starting the transaction, you must verify the following values in the faceplate:
• The technological name in the header of the faceplate.
• The name contained in the "ID" field (HID of the CPU or value of the "IDENT" parameter of the
F_SWC_P).
• The "Tag name".
As the initiator or confirmer, you must not accept an invalid value. If there are inconsistencies,
you must cancel the operation. As an operator, you must not rely on individual display fields of
the faceplate; rather, you must check the values and compare them with each other.
FSW-037
WARNING
Technological assignment must be appropriate for the environment
When opening the faceplate, make sure that the technological assignment in the top line is
appropriate for the environment in which the block icon was placed.
FSW-038
WARNING
Transaction for changing an F-Parameter
You can only perform one transaction for changing an F-Parameter at a time. You must use
organizational measures to ensure that multiple transactions are not performed
simultaneously for the same F-parameter. Otherwise, the transaction cannot be performed
correctly, resulting in unexpected results, such as:
• Display of incorrect values in the faceplate fields
Or
• Unexpected cancellation of the transaction
FSW-039
Note
The message "Other operator function active" appears when two operator control blocks are
assigned to the same protocol block and both want to perform an operator input at the same
time.
Starting from S7 F Systems V6.2, multiple operator functions can be executed simultaneously.
You can find additional information in section "Introduction (Page 135)" in paragraph "Multiple
protocol blocks in a shutdown group".
Introduction
In faceplates used for "SWC++", the so-called operating and display bar is located at the top.
• "Lock messages"
• "Bypass inactive"
Symbol Identifier
Standard view
This view shows the operations for the functions of "SWC++", e.g. initialization, ac‐
knowledgment
Alarm view
This view displays the current messages.
Limit view
This view displays information about the current limits.
Additional views
If other views are available, the button can be selected.
Note
If views are not selectable, the buttons are disabled.
10.5.3 Use of operator function "Change process value" with two operators
Operator authorizations
To change a process value, two operators having different authorizations are required.
• The Initiator initiates the process value change. The authorization corresponds to the
"InitiatorAuthorization" attribute in the properties of the block icon. The default setting is No.
5, "Process controlling".
• The Confirmer verifies and confirms the change. This operator must have the necessary
authorization for confirming the change but not for initiating it. The authorization
corresponds to the "ConfirmerAuthorization" attribute in the properties for the block icon.
The default setting is No. 6, "Higher process controlling".
Note
The sections below describe the necessary operator input steps for the two operators. The
figures show the example of an F_REAL parameter with the operator identifiers (Login):
• level5 – Initiator
• level6 – Confirmer
You can check the authorization of the logged on operator in the "User rights" view of the
faceplate, which is opened by the button of the same name in the toolbar.
3. To perform a value change, enter the desired value in the "New value" text box and confirm
the input by pressing the <Enter> key. If you are changing an F_REAL value, the configured
"MIN", "MAX" and "MAXDELTA" values are evaluated.
You can check the current limits in the "Limits" view of the faceplate, which is opened by the
button of the same name in the toolbar.
4. Click the "Initiate" button.
The Confirmer must then continue the operator input. If you cancel the operator input after
pressing the "Initiate" key, check whether the previously valid value is displayed in the
"Current value" field.
The faceplate has the "O" symbol to indicate that acknowledgment is required.
You can check the authorization of the logged on operator in the "User rights" view of the
faceplate.
3. Verify that:
– The right operator control block was selected (technological name in the header of the
faceplate).
– The right F-CPU was selected (for identifier, refer to section "F_SWC_P: Centralized control
of operator input via the OS (Page 282)").
– The right parameter is to be changed (tag name).
– The change (modified value) is displayed correctly.
– New values of the changed parameters are highlighted in yellow under "New value".
4. Confirm the change with "Operation was verified and can be activated!" or cancel the
operator input with the "Cancel" button.
5. Press the "Confirm" button to activate the value change. Click "Cancel" to cancel the
operation.
Result
The successful value change is signaled. The entry in the "New value" text box has been applied
to the field under "Current value".
See also
Operating and display bar of the faceplates (Page 156)
10.5.4 Use of operator function "Change process value" with one operator
The difference is that there is no longer a wait for the Confirmer. Instead, the operator can verify
and confirm the operator input immediately after pressing the "Initiate" button.
All other steps remain the same.
Operator authorizations
The "Maintenance Override" operator function allows you to set bypasses in the safety program
from the OS.
Two operators having different authorizations are required to create a bypass.
• The Initiator initiates the bypass of the F-channel driver. This operator must have the
"LevelInitiate", "LevelBypass" and "LevelBypassValue" authorizations for initiating the bypass
but not for confirming it.
• The Confirmer verifies and confirms the change. This operator must have the required
"LevelConfirm", "LevelBypass" and "LevelBypassValue" authorizations for confirming the
change, but not for initiating it.
Reset time
If you have configured a retrigger function in the CFC, the simulation is only active for the time
configured at the T_MAX input of the "nested chart" block SWC_TR. As the Initiator, if you click
the "Retrigger" button while the configured reset time is running, the reset time restarts with the
configured time after the change is confirmed by the Confirmer.
Note
The sections below describe the necessary transaction steps for the two operators. The figures
show the example of an F_REAL parameter with the operator identifiers (Login):
• level5 – Initiator
• level6 – Confirmer
You can check the authorization of the logged-on operator in the "User rights" view of the
faceplate which can be opened using the button of the same name in the toolbar.
Under "Value" on the Maintenance Override faceplate, you can see the current process value
of the F-I/O and the current fail-safe value setting. The values on the F-channel drivers are
displayed in the V_MOD column.
The symbols under "Bypass" show you the current status of the bypass (SIM_ON) on the F-
channel drivers:
Symbol Meaning
Bypass not active
Bypass active
For this F-channel driver, either a bypass cannot be created (mutually exclusive in‐
terlock) or the user authorization is insufficient.
3. To enable a bypass for one or more F-channel drivers, press the corresponding button under
"Bypass".
4. If the input setting MODE = 'MutualExclBypass' has been assigned on the SWC_MOS block,
the remaining F-channel drivers are interlocked when a bypass is enabled. The interlocked F-
channel drivers are indicated by the following symbol.
5. If you want to change the current fail-safe value on F-channel drivers for F_BOOL, press the
button under "Bypass".
If you are using F-channel drivers for F_REAL and want to change the fail-safe value, enter the
new fail-safe value in the text box and confirm your input with the <Enter> key. The
configured "MIN" and "MAX" limits are evaluated in the process.
You can check the current limits in the "Limits" view of the faceplate, which is opened by the
button of the same name in the toolbar.
6. If you want to reset the reset time to the configured initial value, click the "Retrigger" button.
The faceplate has the "O" symbol to indicate that acknowledgment is required.
You can check the authorization of the logged on operator in the "User rights" view of the
faceplate.
3. Verify that:
– The right operator control block was selected (technological name in the header of the
faceplate).
– The right F-CPU was selected (for identifier, refer to section "F_SWC_P: Centralized control
of operator input via the OS (Page 282)").
– The right parameter is to be changed (tag name).
– The change (modified value) is displayed correctly.
– New values of the changed parameters are highlighted in yellow under "Bypass".
– No other fields for new values are highlighted in yellow.
4. Confirm the change with "Operation checked and to be activated!" or cancel the operator
input with the "Cancel" button.
5. Click "Confirm" to enable the bypass. Click "Cancel" to cancel the operation.
Result
The successful change on the F-channel drivers is signaled. The F-channel driver for which the
bypass was activated is indicated with the following symbol.
Depending on the interconnection on SWC_MOS, additional status displays become visible (see
section "SWC_MOS: Command function for Maintenance Override (Page 296)").
If you have configured a reset time, the countdown for this time begins. Bypasses are
automatically canceled when the reset time has elapsed.
See also
Operating and display bar of the faceplates (Page 156)
Operator authorizations
The fail-safe acknowledgment requires two operators having different authorizations.
• The Initiator initiates the fail-safe acknowledgment. The authorization corresponds to the
"InitiatorAuthorization" attribute in the properties of the block icon. The default setting is No.
5, "Process controlling".
• The Confirmer verifies and confirms the acknowledgment. This operator must have the
necessary authorization for confirming the change but not for initiating it. The authorization
corresponds to the "ConfirmerAuthorization" attribute in the properties for the block icon.
The default setting is No. 6, "Higher process controlling".
You can check the authorization of the logged on operator in the "User rights" view of the
faceplate, which is opened by the button of the same name in the toolbar.
3. To perform a fail-safe acknowledgment, click the button below "Acknowledge". The button
background turns yellow.
4. Click the "Initiate" button.
The Confirmer must then continue the acknowledgment.
You can check the authorization of the logged on operator in the "User rights" view of the
faceplate.
3. Verify that:
– The right operator control block was selected (technological name in the header of the
faceplate).
– The right F-CPU was selected (for identifier, refer to section "F_SWC_P: Centralized control
of operator input via the OS (Page 282)").
– The right parameter is to be changed (tag name).
– The new value of the changed parameter is highlighted in yellow under "Acknowledge".
4. Confirm the change with "Operation was verified and can be activated!" or cancel the
operator input with the "Cancel" button.
5. Press the "Confirm" button to confirm the fail-safe acknowledgment. Click "Cancel" to cancel
the operation.
Result
The successful operator input is signaled.
See also
Configuring the faceplate of the operator functions (Page 149)
Operating and display bar of the faceplates (Page 156)
The difference is that there is no longer a wait for the Confirmer. Instead, the operator can verify
and confirm the operator input immediately after pressing the "Initiate" button.
All other steps remain the same.
Introduction
You compile a safety program by compiling the entire S7 program as usual in the CFC Editor.
Procedure
If an S7 program contains a safety program, this is automatically also compiled when the CFC
charts are compiled. At the same time, fault-control measures are automatically added and
additional safety-related checks are performed.
Read the documentation on CFC: "SIMATIC Process Control System PCS 7 CFC for SIMATIC S7
(https://support.industry.siemens.com/cs/ww/en/view/109782631)".
If you have changed the safety program since it was last compiled, you will be prompted for the
password of your safety program during the compilation operation. You must enter the
password of your safety program to continue compiling.
The following information about the safety program located online on the F-CPU or offline in the
engineering system will be displayed in the "Safety Program" dialog box:
• A list of all included F-blocks with signatures and initial value signatures
• Current compilation: Date and collective signature
• Reference: Date and collective signature
• Last online change: Date and collective signature
This data is provided for information purposes only and is not relevant for acceptance.
Not all operator controls are available, depending on the desired function. Refer to the section
above, "Available operating options and displays in the dialog".
Button Description
F-Shutdown behavior ""Shutdown Behavior" dialog box (Page 180)"
Logs ""Logs..." button (Page 181)"
Compare "Comparing safety programs (Page 184)"
Save Reference ""Save Reference" button (Page 181)"
Library version ""Library Version" button (Page 181)"
Safety mode "Safety mode (Page 194)"
Password ""Password for Safety Program Creation" dialog (Page 181)"
Print "Printing project data of the safety program (Page 191)"
Refresh ""Update" button (Page 183)"
See also
Testing the safety program (Page 200)
Description
Using the "Shutdown behavior" dialog, you can select how the safety program should react to a
detected error, i.e. an F-STOP:
• "Complete shutdown": All F-shutdown groups of a safety program are switched off in an F-
shutdown group when the first error is detected.
• "According to the configuration of F_SHUTDN":
– The faulty F-shutdown group(s) are switched off in an F-shutdown group (partial
shutdown) when the first error is detected.
or
– All F-shutdown groups of a safety program are switched off in an F-shutdown group when
the first error is detected.
After changing the shutdown behavior, you must compile the S7 program again.
You must also enter the password for the safety program if you change the shutdown behavior.
See also
F-STOP (Page 97)
Description
You can use the "Library version..." button to upgrade the version of the F-library used in the
project to the current version of the F-library.
The window below the button displays the version of the F-library currently used in the project.
Description
In the "Create password for safety program" dialog, you can create a new password or change an
existing password for the safety program.
Target system and program name:
The upper part of the dialog shows the target system and program name for the safety program
for which the password is being created or changed.
If the password for an F-library or a project without a configured CPU is to be changed, no entry
is displayed under "CPU".
Overview
You must create a password for each safety program. You must enter this password using the
"Password..." button in the "Safety program" dialog before you can perform the actions described
in section "Overview of access protection (Page 73)".
When the password for the safety program is entered for one of these actions, the user obtains
access permission. This access permission is valid for one hour. After this time elapses, the user
is prompted to enter the password again when he wants to perform one of the above-named
actions.
The access permission is reset to 1 hour following each safety-related action.
The access permission can also be canceled in this dialog.
Note
This option is activated by default as of S7 F Systems V6.3.
When using Safety Matrix with version V6.2.2 or earlier, the option "Increased password safety"
must not be activated.
Then, choose the new password based on whether or not the "Increased password security"
check box is selected and enter it in the "New password" and "Reenter password" fields.
Revoking access permission
You can use the "Logout" button in the "Access permission" area to revoke the 1-hour access
permission period since the last time the password was entered.
Any user who then wants to perform an action that requires entry of a password must now enter
the password for the safety program again.
Description
You can use this button to update all displayed information. This may be necessary, for example,
if changes have been made in other applications, such as the CFC Editor, since the dialog was
opened.
Introduction
The "Compare Programs" dialog box enables you to compare safety programs and display and
print out differences.
You can compare the following safety programs:
• Online safety program in the F-CPU
• Current offline safety program
• Last compilation of the current S7 program
• Saved reference program
• Other project
The result of the comparison shows you whether the following are the same or different:
• Collective signature
• Individual signatures
• Parameter values
• Differences in the safety program and control structures
• Modified or deleted F-Blocks and interconnections, etc.
With the "Compare Programs" dialog, you can also tell if a safety program was not modified. For
this purpose, compare the safety program with the reference program.
As of S7 F Systems V6.2, the dialog can be resized to improve the readability of the table.
In S7 F/FH Systems V6.1 and later, system-related changes are shown in a combined display,
making it easy for you to identify changes that are relevant for checks. This facilitates the
acceptance test for changes.
System-related changes are primarily found:
• In system charts beginning with @F_x
• In runtime groups beginning with @F_x
• On driver blocks
Program/reference
Select one of these option boxes to specify whether you want to compare the current program
or the reference program.
Compare with:
Use this drop-down list box to specify the second safety program to which you want to compare
the safety program you just selected.
"Browse" button
Use this button and the "Open" dialog to select the offline program of any project to be compared.
"Start" button
Click this button to start the comparison.
View options
If you want to compare two offline programs, you can switch back and forth between the
following options by clicking the relevant option buttons:
• Block view:
Shows you a list with the differing blocks (different block signatures).
• Chart view:
Shows you a hierarchy of all differences in the:
– Task
– F-Runtime group
– F-Block
– Parameters
In this view, the "Go to" button is available.
A note is displayed indicating whether or not the collective signatures of all F-Blocks are identical.
Text Meaning
Deleted F-Block only present in source
Added F-Block only present in comparison program
Runtime position changed F-Block is located in a different runtime position in the F-Runtime group
Interface changed • Additional parameters
• Removed parameters
• Modified data type (e.g. F-Bool <- Bool)
Signature changed Signature of F-Block type (FB) changed
Value: "new" <- "old" The parameter assignment of an input or output or the interconnection
source of an input has been changed from "old" to "new".
"Not-interconnected" can also be specified as the interconnection source
if an interconnection has been deleted or newly created.
Note
If "Different versions of F-Reference data" appears in the chart view when comparing the safety
program to a reference, this means that you created the reference with an older version of S7 F
Systems and did not overwrite it with the current version during migration.
Instead, use the old project version that you archived prior to migration.
Displayed changes
Note the following when changing names:
The S7 F Systems comparator references the elements according to their names. If an element
name is changed, the element can no longer be assigned.
• Chart names
• Name of a runtime group
• Block name (instance in a chart)
• Parameter name (for F-Block types)
Although chart names are not relevant for runtime, changes still affect the "Chart view":
• Each time a chart name is changed, the chart is displayed with the old name as "Deleted" and
with the new name as "Added".
• With a CFC, an F-runtime group with the same name is renamed at the same time. Therefore,
this F-Runtime group is also displayed with the old name as "Deleted" and with the new name
as "Added".
• All interconnects of F-Blocks outside of this chart to F-Blocks within this chart as displayed as
changed. The reason for this is that the chart name is also used as the name component of
an interconnection peer to identify the interconnection.
• The block view correctly returns no difference in this case. The collective signature of the
safety program does not change. In order to prevent such unnecessary entries in the chart
view, we recommend that you do not rename any F-Charts or shift between F-Charts after
performing the acceptance test.
Note the following:
• In the chart view of the comparison, only differences pertaining to the safety program are
generally displayed. In particular, changes in interconnections between the safety program
and the standard program or global addresses are not displayed.
• If an interconnection of an output is changed at the same time as the initial value of this
output, the modified interconnection will be displayed, but not the modified initial value.
If you have selected the online program in the "Compare with" drop-down list box, only the block
view is available. In this case, the following two view options are available:
• Show unconnected F-FB input parameter differences
• Filter F-System checksums
Just as in the offline block view, the window shows you all F-blocks whose signatures differ.
"Print" button
Click this button to print out the result of the comparison.
See also
Upgrading to S7 F Systems V6.4 (Page 34)
Requirement
The safety protocol can be printed in landscape format.
To ensure that all columns are printed, make the following settings:
1. In SIMATIC Manager, select the menu command File > Page Setup.... In the following dialog,
select landscape format in the "Paper Size" tab.
2. Also select landscape in the format settings of the printer or the PDF generator.
Procedure:
You receive a printout of all important project data as follows.
1. Select the program folder (e.g., "S7 Program").
2. Select the menu command Options > Edit Safety Program.
The "Safety Program" dialog will appear.
3. Click "Print". In the "Print" dialog, you can select the parts of the project you want to print:
The selectable print options in this dialog depend on the selected option "Blocks", "Runtime
groups", "Charts" or "Shutdown groups" in the "Safety Program" dialog.
– Chart (both standard and safety):
Prints all or selected charts of the standard program and safety program in a graphical
representation.
A selection dialog for selecting the charts to be printed can be opened using the "..."
button. Additional information can be found in the next section "Selecting the charts for
printing".
If not all charts were selected in the selection dialog, the "Chart (both standard and
safety)" check box is shown partially activated.
– Safety program: Block list and signatures
Offline/online status log
Name of the safety program
Date of the last compile operation and the collective signature of the safety program
Date of the last compile operation and collective signature of the reference program
F-blocks in the safety program
Print safety-related parameters
The footer on each page of the printout shows you the version of S7 F Systems used to
generate the printout along with the collective signature.
– HW configuration:
Printout of the complete hardware configuration or portions thereof. The "Print" dialog
will appear so that you can specify what information is to be printed for the F-I/O.
Signatures
The printout of the safety program also contains the collective signature and the date of the last
compilation, which are relevant to the on-site acceptance of the safety program (e.g. by
experts). The collective signature of the compiled S7 program appears twice in the printout:
1. In the program information section as a value of the block container
2. In the footer as a value from the chart container
You can find more information on this in section "Downloading the S7 program to the F-CPU
(Page 219)" under "Checking the collective signature".
Note
Ensure that the CFC Editor is closed when printing the safety program using the "Safety Program"
dialog.
Introduction
The safety mode of the safety program in the F‑CPU can be temporarily deactivated and
reactivated. This allows you to make changes to the safety program in RUN mode.
Description
All mechanisms for error detection and error reaction are activated in the safety mode. In this
state, it is not possible to change the safety program during operation (RUN).
Using the "Safety mode..." button in the "Safety Program" dialog, you can activate or deactivate
the safety mode in the F-CPU in the RUN operating state.
Changes to the safety program in RUN mode can only be loaded when then safety mode is
deactivated.
The window below this button shows you whether the safety mode is "activated" or
"deactivated". It will indicate "unknown" if the safety program does not correspond to the safety
program in the F-CPU or if no communication is taking place with the F-CPU.
Using the SAFE_M output at the F_SHUTDN block (located in the @F_ShutDn chart), you can also
determine whether the safety mode is activated or not.
See also
Overview of downloading the safety program (Page 197)
Introduction
Deactivation of safety mode enables changes to be made to the safety program during operation
(RUN). For this purpose, mechanisms for detecting changes to the safety program that would
trigger shutdown of the safety program and its outputs in activated safety mode are deactivated.
The safety program and thus the programmed safety functions continue to be executed.
"Incidental hardware faults" will continue to be detected and the diagnostics of the modules
remain active.
WARNING
Deactivating safety mode
Because changes can be made to the safety program in RUN mode when safety mode is
deactivated, you must observe the following:
• Deactivation of safety mode is intended for test purposes, commissioning, etc. Whenever
safety mode is deactivated, the safety of the plant must be ensured by other organizational
measures, such as operation monitoring and manual safety shutdown.
• Deactivation of safety mode must be verifiable. Logging is required and can, for example, be
guaranteed by using an OS. The automatically placed F_SHUTDN block generates
corresponding messages for this. Otherwise, you must log the deactivation of safety mode
through organizational measures.
• Furthermore, we recommend that deactivation of safety mode be displayed, e.g. on the OS.
For this purpose, the automatically placed F-block F_SHUTDN sets the SAFE_M output to "0"
when safety mode is deactivated (or F-block F_TESTM sets the TEST output to 1).
• Safety mode is deactivated only F-CPU-wide. You must observe the following for safety-
related CPU-CPU communication:
If the F-CPU with the F_SENDBO, F_SENDR or F_SDS_BO is in deactivated safety mode, you
can no longer assume that the data sent by this F-CPU were generated safely. To ensure the
safety of the parts of the plant influenced by the sent data, you must then also take
organizational measures, e.g. monitored operation and manual safety shutdown, or output
safe fail-safe values instead of the received data in the F-CPU with the F_RCVBO, F_RCVR or
F_RDS_BO through evaluation of SENDMODE.
FSW-045
Requirements
The F-CPU is in RUN mode and safety mode is activated.
Procedure
1. Select the F‑CPU or its S7 program in SIMATIC Manager.
2. Select the menu command Options > Edit Safety Program.
3. Select the "Safety mode" button.
You can then download changes in the safety program to the F-CPU during operation (in RUN
mode).
Introduction
After changes in the safety program are downloaded, you must reactivate safety mode in order
to guarantee safe execution of the safety program.
Requirements
The F-CPU is in RUN mode and safety mode is deactivated.
Procedure
1. Select the F‑CPU or its S7 program in SIMATIC Manager.
2. Select the menu command Options > Edit Safety Program .
3. Select the "Safety mode" button.
Note
If the safety program detects a safety-related error during deactivated safety mode, it is no
longer possible to activate safety mode. You then receive a corresponding message with
corrective actions.
See also
Downloading changes (Page 204)
Introduction
After compiling, you can load the CFC program into the target system.
When safety mode is activated, a prompt is displayed as to whether the safety mode should be
deactivated.
Depending on whether Safety mode is enabled or disabled, you can load the entire Safety
program or changes to the Safety program as follows
What should be loaded? F-CPU in F-CPU in RUN, safety F-CPU in RUN, safety
STOP mode activated mode deactivated
Loading the entire S7 program Possible F-CPU is automatically set F-CPU is automatically set
to STOP by the CFC Editor to STOP by the CFC Editor
Loading changes in the stand‐ Possible Possible Possible
ard user program
Loading changes of the entire Possible Not possible Possible
S7 program
After loading, a prompt is displayed as to whether the safety mode should be reactivated.
Requirements
• The hardware configuration data of the station is downloaded to the F-CPU
• The S7 program was compiled without error.
• You have access rights to the target system.
• There is an online connection between the F-CPU and your ES.
WARNING
Do not copy F-Blocks with SIMATIC Manager
As is usual in PCS 7, you must not copy individual blocks between the block containers
online and offline. To do this, use the downloading in the CFC Editor or download the chart
folder.
You can find more detailed information in the "SIMATIC Process Control System PCS 7 CFC
for SIMATIC S7 (https://support.industry.siemens.com/cs/ww/en/view/90683154)"
manual, section "Downloading" and "Reading back charts".
FSW-046
Procedure
To load the safety program to the PLC, use the menu command PLC > Download > Entire
program in the CFC Editor. The F-CPU is thereby set to STOP.
Note
Before the safety program is downloaded, a prompt for the password of the F-CPU is displayed
when changes in the safety program are detected.
WARNING
Safety program on a memory card
If you are using the safety program on a memory card, you must observe the following:
• Before you switch the S7 F System to RUN mode, compare the collective signature of the
safety program on the Flash EPROM memory card with the collective signature of the
reference data. If necessary, mark the memory card with the collective signature.
• For a fault-tolerant S7 FH System, you ensure that the memory cards of the redundant F-
CPUs are of the same type (RAM or Flash EPROM) and redundant Flash EPROM memory
cards contain the same safety program.
• You ensure access protection with regard to removal and insertion of memory cards.
• Online parameter changes must not be performed when using Flash EPROM memory cards,
since the values changed online are lost during a transition from STOP to RUN.
If it is not possible or desired to block the online change, e.g. for commissioning, the
program must be read back after the online change and then the entire program must be
downloaded so that the changes are transferred to the Flash EPROM memory card.
FSW-047
WARNING
Downloading the safety program with multiple F-CPUs
If multiple F-CPUs can be reached from an ES via a network (e.g. MPI), you must take the
following additional measures to ensure that the safety program is downloaded to the correct
F-CPU.
Use F-CPU-specific passwords, e.g. a password for the F-CPUs with appended MPI address
"FCPUPW_8". The password has a maximum of 8 characters, including at least one special
character. In STEP 7 V5.5.4 HF9 and higher, the password must contain 8 characters for new
projects.
Note the following:
• Before a safety program for which access permission by means of an F-CPU password does
not yet exist is downloaded to an F-CPU, any existing access permission for another F-CPU
must first be canceled.
FSW-048
Introduction
Testing is performed as usual in CFC by switching to test mode.
WARNING
Shutdown of the safety program following changes to the fail-safe outputs
In test mode of the CFC Editor, you can monitor safety programs and change unconnected
inputs of F-blocks. Changes made online to fail-safe outputs and automatically supplied
connections are not permitted; they cause the safety program to shut down.
FSW-049
Procedure
The S7 PLCSIM and SIMIT Virtual Controller (VC) simulation applications allow you to simulate a
safety program on your engineering system.
To simulate your safety program, proceed as you would with a standard user program.
When you download the safety program in the simulation application, the "Set Up Access Rights"
dialog appears. You will be prompted for the password for the F-CPU.
WARNING
A simulation is no substitute for a function test
To perform a full function test, you need to use the real F-CPU.
FSW-050
The complete function test is described in the "Implementation of a complete function test
(Page 220)" section.
WARNING
Safe operation during simulation
The simulation of the safety program parallel to the safe operation of the plant, in particular
loading and online change, is only permitted if there is no physical connection from the
engineering system to the real F-CPU in the plant.
FSW-065
Introduction
Changes in the safety program can be made offline as well as online. Online changes are made
by means of the CFC test mode and take effect immediately. You must then download offline
changes to the F-CPU.
Note
Safety program changes made otherwise, for example, by means of the "Monitor/Modify
Variables" function, can lead to an F-STOP.
Introduction
In test mode of the CFC Editor, you have the option of changing the values of non-
interconnected inputs of F-blocks during operation.
Rules
• For inputs in safety data format, you may only change the DATA component and not the
COMPLEM or PAR_ID component.
• You are not permitted to change outputs or any inputs not documented in the block
description.
Requirements
Ensure that the following requirements are met before you switch on test mode of the CFC
Editor:
• The F-CPU must be in RUN mode.
• Safety mode of the safety program must be deactivated. Otherwise, you will be prompted to
deactivate safety mode when you attempt to change the first parameter.
WARNING
Change of the collective signature following changes in CFC test mode
Changing the safety program in CFC test mode causes the collective signature to change.
This means that the safety program must undergo acceptance again, if necessary.
FSW-051
Procedure
For changing the fail-safe block I/O, follow the usual procedure in the CFC Editor.
The collective signature at the F_SIG_OUT output of the F_SHUTDN F-block is set to 0 at the first
change in CFC test mode and updated after CFC test mode is ended.
WARNING
Do not change values created during compilation
When safety mode is activated, direct operator control of safety programs is not permitted! You
may input safety parameters for non-interconnected inputs:
• From the standard user program via F-conversion blocks with additional validity check
or
• In test mode of the CFC Editor and with deactivated safety mode
or
• With the "Secure Write Command++" function
Failure to observe this warning will trigger an F-STOP. The following diagnostics event is then
entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error detected" (event ID 16#75E1)
FSW-052
Requirements
• Safety mode must be deactivated.
• S7 FH Systems must be in redundant system state.
Procedure
1. To download changes in the safety program, follow the usual procedure for downloading
changes in CFC. For more information, refer to the "SIMATIC Process Control System PCS 7
CFC for SIMATIC S7 (https://support.industry.siemens.com/cs/ww/en/view/90683154)"
manual.
2. Activate safety mode again by responding to the prompt that appears.
3. If necessary, repeat Steps 1 and 2 to download incremental changes, for example.
4. In the SIMATIC Manager select the menu command Options > Edit safety program.
5. Follow the procedure described in Section "Acceptance test of safety program changes
(Page 221)".
WARNING
Abort of download operation
If the download operation is aborted, you must repeat the download and the check of the
collective signature online and offline. In this way, you ensure the consistency of data in the
load memory and work memory.
FSW-053
Note
Undoing changes
If you undo a change and download it nevertheless, it is possible that a different collective
signature will be generated than before the change.
WARNING
Moving F-blocks or F-runtime groups
Note that
• F-blocks that were moved to another F-runtime group
or
• F-runtime groups that were moved to another task
while downloading changes over multiple processing cycles may be processed multiple times
or not at all.
FSW-054
WARNING
Modifying the safety program in RUN mode
• When changes are made to the safety program in RUN mode when safety mode is
deactivated, switchover effects may occur. Take additional organization measures to ensure
that this does not impair the safety of the plant.
• Whenever possible, the standard user program and the safety program should be changed
separately and the changes downloaded. Otherwise, an error may be downloaded to the
standard user program while the required protection function in the safety program is not
yet effective or switchover effects may occur in both programs.
FSW-055
Note
• Note also the corresponding FAQs (http://support.automation.siemens.com/WW/view/en/
13711209/133000) on the Internet regarding downloading changes.
• Changes to the automatically generated charts and F-runtime groups are generally
forbidden and may trigger an F-STOP. Exceptions:
– The MAX_CYC parameter of the F_CYC_CO blocks for which you assign the F-monitoring
time for a cyclic interrupt OB
– Parameter assignments for the F_SHUTDN block for the F-shutdown behavior
Note
Splitting or combining F-runtime groups when safety programs are running represents an
essential change in the run sequence. Before downloading changes with the "Compare safety
programs" dialog, check for moved F-module drivers.
This can lead to the following unintended behavior when changes are downloaded in RUN
mode:
• Passivation of output channels
• Processing of outdated input data at the input channels
The change in the run sequence causes the associated F-module drivers to be moved to other F-
runtime groups.
12.8.3.4 Changes that require a cold restart or warm restart (restart) of the F-CPU
The following changes take effect only after a cold restart or warm restart of the F-CPU:
• Changes in values of the ID or R_ID parameter of the F-blocks F_SENDR/BO, F_RCVR/BO,
F_SDS_BO and F_RDS_BO. (See also section " Change in the safety-related communication
between F-CPUs (Page 208) ".)
Note
In the PCS 7 process control system and when blocks from PCS 7 libraries are used, the startup
type "Cold restart" is not permitted.
When changing these F-monitoring times, make sure that the calculated minimum F-
monitoring times do not fall below the limits. For more information about the F-Monitoring
time, see section "Run times, F-Monitoring times, and response times (Page 455)".
Introduction
If safety-related communication between F-CPUs is to continue in all phases, you need to
proceed in several steps.
Rule
Never change the interconnection for the send data at F_SENDBO/F_SDS_BO/F_SENDR and for
the corresponding receive data at F_RCVBO/F_RDS_BO/F_RCVR at the same time. Otherwise, the
simultaneous activation of the new interconnections is not ensured.
Procedure
To delete a safety program from an F-CPU, proceed as follows:
1. Delete all F-charts from the chart folder. The symbols of these charts are located in the
SIMATIC Manager and are highlighted in yellow.
2. Delete all charts whose name begins with "@F_".
3. Compile the S7 program with the option "Generate module drivers" selected.
4. In HW Config, open the properties dialog of the associated F-CPU from which you want to
delete the safety program. Remove the check mark at "CPU contains safety program" under
"Protection".
5. Compile and load the hardware configuration.
6. Compile and download the S7 program.
Upgrade from Change of signa‐ STOP of F-CPU re‐ New acceptance re‐
ture quired quired
S7 F Systems V6.0 (or higher) without update of the F- No No No
library (starting from S7 F Systems Lib V1.3)
Upgrading from S7 F Systems Library V1.3 to S7 F Sys‐ Change of signa‐ STOP of F-CPU re‐ New acceptance re‐
tems Library V1.3 SP1 ture quired quired
• With use of the new F-blocks Yes No Changes
• With use of the changed F_CH_DO Yes Yes 1)
Changes
• With use of the changed F_CH_BI Yes No Changes
• With use of the changed F_QUITES Yes No Changes
• With use of the changed F_CH_AI Yes No Changes
• With use of the changed F_PA_AI Yes No Changes
• With use of the changed F_SQRT Yes No Changes
• With use of the changed F_CHG_BO No No Changes
• With use of the changed F_CHG_R No No Changes
1): The change is not safety-related and does not influence the usability of the existing project.
You can find additional information on this in the section "Differences between the F-libraries S7
F Systems Library V1.3 and V1.3 SP1 (Page 450)".
Upgrading from S7 F Systems Library V1.3 SP1 to SP2 Change of signa‐ STOP of F-CPU re‐ New acceptance re‐
ture quired quired
• When the new F-blocks are used (F_SWC_CB, Yes Yes Changes
F_SWC_CR, F_CH_RI)
• With use of the changed F_XOUTY Yes Yes Changes
• With use of the changed F_2oo3AI Yes Yes Changes
• With use of the changed F_CH_AI Yes Yes Changes
• With use of the changed F_TESTC / F_PLK Yes Yes Changes
• With use of the changed F-blocks for F-communica‐ Yes No Changes
tion: F_SDS_BO, F_SENDBO and F_SENDR
• With use of the changed F-blocks for F-communica‐ Yes Yes Changes
tion: F_RDS_BO, F_RCVBO und F_RCVR
• When the changed F-block F_SWC_BO for Mainte‐ Yes No Changes
nance Override (MOS) is used
S7 F Systems Library V1.3 SP2 to SP3
You can find additional information on this in the section "Differences between the F-libraries S7
F Systems Library V1.3 SP1 and SP2 (Page 451)".
Upgrading from S7 F Systems Library V1.3 SP2 to SP3 Change of signa‐ STOP of F-CPU re‐ New acceptance re‐
ture quired quired
• With use of the new F-block F_PS_13 Yes No Changes
• With use of the new F-block F_CH_QBI Yes No Changes
• With use of the new F-block F_CH_QBO Yes No Changes
• With use of the new F-block F_CH_QII Yes No Changes
• With use of the new F-block F_CH_QIO Yes No Changes
• With use of the changed F-block F_PS_12 Yes Yes Changes
• With use of the modified F-block F_PS_MIX Yes No Changes
• With use of the modified F-block F_SWC_BO Yes Yes Changes
• With use of the changed F-blocks for F-communica‐ Yes No Changes
tion:
F_SDS_BO, F_SENDBO, F_SENDR, F_RDS_BO,
F_RCVBO, F_RCVR
• With use of the changed F-block F_CH_DO Yes Yes Changes
• With use of the modified F-block F_CH_AI Yes Yes Changes
You can find additional information on this in the section "Differences between the F-libraries S7
F Systems Library V1.3 SP2 and SP3 (Page 452)".
Upgrading from S7 F Systems Library V1.3 SP3 to SP4 Change of signa‐ STOP of F-CPU re‐ New acceptance re‐
ture quired quired
• With use of the new F-block F_PS_40 Yes No Changes
• With use of the modified F-block F_CH_AI Yes Yes Changes
• With use of the modified F-block F_SWC_BO Yes Yes Changes
• With use of the modified F-block F_PS_MIX Yes No Changes
• With use of the modified F-block F_PS_13 Yes No Changes
• With use of the new F-block F_MS_XCH Yes Yes Changes
You can find additional information on this in the section "Differences between the F-libraries S7
F Systems Library V1.3 SP3 and V1.3 SP4 (Page 453)".
Introduction
During the system acceptance, all relevant application-specific standards must be adhered to as
well as the following procedures. This also applies to plants that are not subject to acceptance.
For the acceptance, you must observe the requirements subject to approval in the report for the
certificate.
As a general rule, the acceptance of an F-system is performed by an independent expert.
Special functions in the SIMATIC Manager support you during the acceptance of an F-system.
This allows you to:
• Compare safety programs
• Log the safety program
• Print out the safety program
All data relevant for the acceptance of the S7 F system can be archived in the SIMATIC Manager
(File > Archive) and printed out if required.
You can find more information on these topics in the sections "Comparing safety programs
(Page 184)", ""Logs..." button (Page 181)" and "Printing project data of the safety program
(Page 191)".
Introduction
After you finish configuring the hardware and assigning parameters for the F-CPU and F-I/O, you
can perform an initial acceptance for the F‑I/O configuration.
In order to do this, the hardware configuration data must be printed out, checked, and saved
together with the overall STEP 7 project.
3. Once the safety-related parameters of an F-I/O module are checked, the parameter CRCs in
the printout are sufficient as reference for further acceptance. These parameter CRCs have
the following appearance (address/F-address = PROFIsafe address):
Fail-safe signal modules S7-300 (SM 326; DI 24 x DC 24V, with article no.
6ES7326-1BK00-0AB0; SM 326; DI 8 x NAMUR; SM 326; DO 10 x DC 24V/2A; SM 336; AI 6
x 13-bit)
Example:
– Parameters - CRC: 12345
– Parameters - CRC (without F-addresses): 54321
Fail-safe modules ET200S, ET 200SP, ET 200SP HA, ET 200pro, ET 200eco, ET 200iSP and
S7-300 fail-safe signal modules (SM 326; DI 24 x DC 24 V, as of article no.
6ES7326-1BK01-0AB0; SM 326; DO 8 x DC 24V/2A PM)
Example:
– Parameters - CRC: 12345
– Parameters - CRC (without F-addresses): 54321
As of PROFIsave profile V2.6.1:
– Parameters - CRC (CRC_FP): 0x4a22fed8 (1243807448)
– Parameters - CRC (without F-addresses): 0xD410 (54288)
Fail-safe DP standard slaves/IO standard devices
Example:
– Parameters - CRC: 12345
– Parameters - CRC (without F-addresses): 54321
As of PROFIsave profile V2.6.1:
– F_iPar_CRC 0x59C752D1 (1506235089)
– F_Par_CRC 0x5D49 (23881)
– F_Par_CRC (without F addresses): 0x2391 (9105)
F-I/O that are to be assigned the same safety-related parameters can be copied during
configuration. All safety-related parameters for these no longer have to checked individually:
It is sufficient to compare every other CRC (for example, "Parameter CRC (excluding address)")
of the copied F-I/O to the corresponding CRC of the previously checked F-I/O and to check the
PROFIsafe source and destination addresses.
4. Check that the PROFIsafe addresses are unique from one another.
To determine the PROFIsafe addresses of individual F-I/O, refer to step 1.
WARNING
Address assignment in subnets only and in mixed configurations
The following applies to PROFIBUS DP subnets only:
The PROFIsafe destination address and, thus, the switch setting on the address switch of the
F-I/O must be unique network-wide* and station-wide** (system-wide). You can assign up
to 1022 different PROFIsafe destination addresses.
The following applies to PROFINET IO subnets only and mixed configurations of
PROFIBUS DP and PROFINET IO:
The PROFIsafe destination address and, thus, the address switch setting on the F-I/O must
be unique only*** within the PROFINET IO subnet, including all lower-level PROFIBUS DP
subnets, and station-wide** (system-wide).
For S7-300 F-SMs and ET 200S, ET 200eco, ET 200iSP and ET 200pro F-modules, you can
assign a maximum of 1022 different PROFIsafe destination addresses. For ET 200SP and
ET 200SP HA max. 65534 destination addresses are possible.
A PROFINET IO subnet is characterized by the fact that the IP addresses of all networked
nodes have the same subnet address, i.e. the IP addresses match in the positions that have
the value "1" in the subnet mask.
Example:
IP address: 140.80.0.2.
Subnet mask: 255.255.0.0 = 11111111.11111111.00000000.00000000
Meaning: Bytes 1 and 2 of the IP address define the subnet; subnet address: 140.80.
* A network consists of one or more subnets. "Network-wide" means across subnet
boundaries.
** "Station-wide" means for one station in HW Config (e.g. an S7-400H station).
*** Across Ethernet subnets, excluding cyclic PROFINET IO communication (RT
communication)
FSW-056
Requirement
Before acceptance, compile the safety program to be accepted.
Introduction
Print the entire project as described in the section "Printing project data of the safety program
(Page 191)".
Printout
The printout contains the collective signature as a reference. The collective signature appears in
the printout at two positions. All values must match the value in the footer.
• In the program information section as a value of the block container:
– For the current compilation
– For the reference
– For the last online change (optional)
• In the footer as a value from the source
The following relations must be checked depending on an online change:
• If no online change has taken place, the collective signature for the current compilation must
match the collective signature in the footer.
• If an online change has taken place, the collective signature in the footer corresponds to the
collective signature of the last online change.
If a collective signature is not printed in the footer, this means that the safety program or the
configuration (HW Config or NetPro) has changed. In this case, you must recompile the safety
program.
The version number of the utilized S7 F Systems optional package appears in the footer of the
printout and must be checked by you.
Checking the signatures and initial value signatures of the F-block types
The signatures and initial value signatures of all F-block types must match those in the
acceptance documents of the F-block types (see section "Acceptance test of F-Block types
(Page 222)").
The acceptance documents of the F-block types also list the signatures and initial value
signatures of all called F-blocks. These signatures must also match those in the safety program.
Introduction
Download the S7 program to the F‑CPU as described in section "Downloading the safety program
(Page 197)". Then check the signatures.
Overview
Requirements
For successful initial acceptance of a safety program, a complete function test is required.
For this purpose, corresponding test specifications must be implemented based on documented
procedures in order to verify the configured safety functions and rule out unwanted side
effects.
The following points must be observed:
• Conformity to the specification of the safety function
• Full coverage of the safety program during the function test
Note
The system charts created by S7 F Systems with prefix "@F_" do not have to be tested.
• Negative tests
• Tests for the time sequence and logic sequence
Results
The results of the function test must be documented, The following information should be
present:
• Collective signature of the safety program
• Safety program printout
• Any utilized test tools including version
• Names of the responsible persons
• Test description
• Test result
Procedure
To perform an acceptance test on your safety program changes, follow these steps:
1. Back up your safety program.
2. Compare your new safety program with your accepted safety program. For more
information, refer to Chapter " Comparing safety programs (Page 184) ".
3. Inspect the changes in the printout. You must locate the changes that you made to your
safety program on the printout again. Check the signature in the printout (and in the footer).
To do so, follow the same procedure as for the initial acceptance test.
4. Download your modified safety program to the F-CPU.
5. Perform a function test of your changes.
Initial acceptance
The same process is used for initial acceptance of a newly created F-block type as for initial
acceptance of a safety program. The function test of the F-block type must take place in a
different safety program than the test environment.
For acceptance of F-block types, the signature and initial value signature of the resulting
generated F-block are relevant. You can obtain these signatures from the printout of the safety
program. In addition, you must also check the signatures and initial value signatures of the
called F-blocks.
The collective signatures in the footers of the printouts of the safety program and the CFC chart
of the F-block type must match. Otherwise, you must recompile the F-block type.
All F-blocks called in an F-block type must be compared.
Note
For testing a safety program in which an F-block type is used, you must check the signatures of
the F-block type and the signatures of all called F-blocks.
Acceptance of changes
The process for acceptance of changes to an F-block type is the same as for a safety program.
For acceptance of the F-block types, use a printout to document the signature and initial value
signature of the new F-block type as well as the signatures and initial value signatures of all F-
blocks called in the F-block type.
In addition, you must use a function test to test all points in the test safety program at which the
new F-block type is called. Changed signatures of F-blocks are displayed in the chart view when
safety programs are compared.
Introduction
Below you will find the rules and safety instructions for the operation of S7 F/FH Systems.
WARNING
Safety of the F-system when using simulation devices / simulation programs
If you operate simulation devices / simulation programs that generate safety telegrams, e.g.
according to PROFIsafe, and make them available to the F‑system S7 F/FH System via the bus
system (e.g. PROFIBUS DP), you must ensure the safety of the F-system using organizational
measures, e.g. with observed operation and manual safety shutdown.
If you use the S7-PLCSIM STEP 7 function to simulate safety programs, these measures are not
necessary, since S7-PLCSIM cannot establish an online connection to a real S7 component.
Note that, for example, a protocol analyzer is not allowed to execute a function for playback of
recorded telegram sequences with correct time behavior.
FSW-057
WARNING
STOP not as a safety condition
Changing from STOP to RUN via ES operation, via operating mode switch or via communication
function is not locked. With ES operation, for example, you only need to press a button to
change from STOP to RUN. This is why you must not regard the STOP set via ES operation,
operating mode switch or communication function as a safety condition.
Therefore, always switch off the F-CPU directly at the device during maintenance work.
FSW-058
WARNING
STOP state, which was initiated with SFC 46 "STP", is not a safety-related STOP
A STOP state that was initiated with the SFC 46 "STP" can easily be canceled via ES operation
(even unintentionally). This is why the STOP initiated via the SFC 46 is not a safety-related STOP.
FSW-059
Fiber optic cables between the synchronization modules for S7 F/FH Systems
WARNING
Two F-CPUs not simultaneously as master system
In S7 F/FH Systems, you need to prevent having both F‑CPUs acting as master systems at the
same time. Otherwise, dangerous errors may occur.
Such a state (both F-CPUs master at the same time) can occur if the two fiber optic cables for
coupling the F-CPUs are pulled or interrupted simultaneously in the Redundant system state of
S7 F/FH Systems. This must be prevented by laying the fiber optic cables separately.
After the repair of an F-CPU, this condition (both F-CPUs simultaneously master) can also occur
if the F-CPUs have not yet been connected over both fiber optic cables before the power supply
is switched on.
Organizational measures must be taken to ensure that after an F-CPU has been replaced, both
connections are established via fiber optics cables before the power supply is switched on.
FSW-060
Additional information
For information on replacing components in high-availability systems, refer to the manual
"SIMATIC Fault-tolerant systems S7-400H (http://support.automation.siemens.com/WW/
view/en/82478488) ".
Uninstalling S7 F Systems
You can obtain information on uninstalling the software in the section "Uninstalling the S7 F
Systems optional package (Page 33)".
You disassemble and dispose of the hardware of an F-system in the same was as for standard
automation systems. You can find additional information in the manuals for the hardware.
14.3 F-Forcing
Introduction
S7 F Systems as of V6.1 with S7 F Systems Library V1.3 as of SP1 supports forcing of F-
parameters in deactivated safety mode depending on the CFC version used.
F-Forcing allows you to modify F-Parameters at user interconnections.
• The modification of F-Parameters at system interconnections is not supported.
• Changing force values with activated F-forcing is not supported for F-parameters.
Consult the documentation for CFC or PCS 7 to find out which CFC versions support forcing of
F-Parameters, in particular.
WARNING
Using the "F-Forcing" function
Forcing is only permitted when the safety of the system is ensured by other measures.
FSW-061
Procedure
1. Configure forcing for F-Parameters in CFC using the same procedure as for forcing with
standard parameters.
2. If you haven't already done so, you will be prompted to deactivate safety mode.
– Modify and check the force values for F-Parameters.
– Enable F-Forcing for F-Parameters.
3. In your CFC program, make changes to F-Parameters of user interconnections by means of F-
Forcing.
4. Activate safety mode again when forcing is no longer taking place in the F-Parameters.
Note
F-Forcing is deactivated automatically any time the F-Program starts up. The display in the CFC
Editor is not updated after startup, however. The display can be updated by deactivating/
activating safety mode again, for example.
The F-Program starts up:
• Each time the CPU restarts (cold/warm restart), e.g., following a brief power outage
• Each time the CPU restarts after a full shutdown
Note
Safety mode cannot be activated if F-Forcing is activated for an F-Parameter.
Note
F-Forcing is a typical commissioning function. The final F-Program should not include F-Forcing
of F-Parameters.
Use the Maintenance Override function for the maintenance functions.
See also
Operations with "Secure Write Command++" (Page 129)
A.1.1 F-Blocks
Overview
You will find the following in the F-library S7 F Systems Library V1.3 SP4:
• In the block container "F-user blocks\blocks": F-blocks
• In the block container "F-Control Blocks\Blocks": F-control blocks
Note
See also section "Differences between the S7 F Systems Library F-libraries (Page 450)".
Note
You are not permitted to change the name of the F-library.
Note
FB numbers of F-blocks
You are not permitted to change the numbers of the F-blocks.
The following F-blocks available as of the S7 F Systems Library V1.3 SP2 use FBs that are also
used in S7 Distributed Safety:
S7 F Systems Library V1.3 SP2 Number of the FB F‑Library "Distributed Safety (V1)"
(or higher)
F_CH_DII FB 465 F_IGNTR
F_CH_DIO FB 466 F_TIGHTN
F_POLYG FB 467 F_GAS_BU
F_INT_P FB 468 F_OIL_BU
F_PT1_P FB 469 F_AIRD
Function
Special F-data types in a safety data format are used for fail-safe block interfaces. The safety data
format is used to expose data and address errors.
Example
F_BOOL:
STRUCT
DATA BOOL
PAR_ID WORD
COMPLEM WORD
END_STRUCT
If you want to change the value (default) of a block IO with an F-data type, you must only change
the DATA component.
WARNING
Values of PAR_ID and COMPLEM must not be changed
You must not change the PAR_ID and COMPLEM components after the S7 program has been
compiled since this might result in serious errors remaining undetected. If errors in the safety
data format are detected during the execution of the safety program, an F-STOP is triggered. If
necessary, you need to compile the S7 program again and download it to the F-CPU.
FSW-101
If the floating-point operation yields an invalid floating-point number (NaN) and an invalid
floating-point number (NaN) does not already exist as an address, the following diagnostic
event is entered in the diagnostic buffer of the F-CPU:
• "Safety program: invalid REAL number in DB" (Event ID 16#75D9)
You can use this diagnostic buffer entry to identify the F-Block with the invalid floating-point
number (NaN).
Refer also to the documentation of the F-Blocks.
If you cannot rule out the occurrence of these events in your safety program, you must decide
independently of your application whether you have to react to these events in your safety
program. With F-Block F_LIM_R, you can check the result of a floating-point operation for
overflow (± infinity) and invalid floating-point number (NaN).
Overview
Function
This block links the INx inputs by means of AND. The OUT output is "1" when all INx inputs are
"1". Otherwise the OUT output is "0". The OUTN output corresponds to the negated OUT output.
Truth table
Inputs/outputs
Error handling
None
Function
This F-Block combines the INx inputs with a logical OR. The OUT output is "1" when at least one
INx input is "1". If all INx inputs are "0", the OUT output is "0". The OUTN output corresponds to
the negated OUT output.
Truth table
Inputs/outputs
Error handling
None
Function
This F-Block combines the INx inputs with an exclusive OR. The OUT output is "1" if exactly one
INx input is "1". The OUTN output corresponds to the negated OUT output.
Truth table
Inputs/outputs
Error handling
None
Function
This F-Block inverts the input.
Truth table
IN OUT
0 1
1 0
Inputs/outputs
Error handling
None
Function
This F-Block monitors three binary inputs for signal state "1". The OUT output is "1" when at least
two INx inputs are "1". Otherwise the OUT output is "0". The OUTN output corresponds to the
negated OUT output.
Truth table
Inputs/outputs
Error handling
None
Function
The F-block monitors up to 16 binary inputs IN1…IN16 for signal state 1. The input signals are
monitored for signal state 1 beginning with input IN1 up to an including input INY. The number
of binary inputs to be monitored is set with the Y parameter. The OUT output is 1, when at least
x inputs IN1…IN16 are 1. Otherwise, output OUT is 0. The OUTN output corresponds to the
negated OUT output.
The binary inputs must be assigned consecutively beginning from IN1. When X > Y, X ≤ 0, X > 16,
Y ≤ 0, then output OUT is 0. When Y > 16, the OUT output behaves the same as when Y = 16.
The OUT_XA output gives the number of active inputs, enabling larger functions such as "5oo32"
with a significantly reduced block count.
I/Os
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Overview
A.2.2.2 F_SENDBO: Sending of 20 data elements of data type F_BOOL in a fail-safe manner to
another F-CPU
Function
The F-block F_SENDBO sends the data of data type F_BOOL at the SD_BO_xx inputs in a fail-safe
manner to another F-CPU. The data must be received there with the F-block F_RCVBO.
At the EN_SEND input, you can temporarily switch off communication between the F-CPUs in
order to reduce the bus load by supplying the EN_SEND input with 0 (default setting = 1). Send
data are then no longer sent to the associated F_RCVBO, and F_RCVBO provides the assigned fail-
safe values for this time period. If communication was already established between the
connection partners, a communication error is detected.
At the ID input you must specify – from the perspective of the F CPU – the local ID of the S7
connection (from connection table in NetPro).
Communication between the F-CPUs is implemented hidden in the background using a special
safety protocol. For this purpose, you must define the communication relationship between an
F_SENDBO in an F-CPU and an F_RCVBO in the other F-CPU by specifying an odd number at the
R_ID input of F_SENDBO and F_RCVBO. Associated F_SENDBO and F_RCVBO are given the same
value for R_ID.
WARNING
Value for the relevance address reference
The value for the respective address relationship (input parameter R_ID; data type: DWORD) can
be selected by the user but must be an odd number and unique network-wide for all safety-
related communication connections. The value R_ID + 1 is internally assigned and must not be
used. You must supply the ID and R_ID inputs with constant values when the F-block is called.
FSW-102
You must assign the desired F-monitoring time at the TIMEOUT input. The TIMEOUT input
cannot be interconnected.
WARNING
Detecting and transmitting a signal level
It can only be ensured (from a fail-safe standpoint) that a signal level to be transmitted will be
detected on the sender side and transmitted to the receiver if the signal level is present for at
least as long as the assigned F-monitoring time (TIMEOUT).
For information regarding the calculation of the F-monitoring time, see section "Run times, F-
Monitoring times, and response times (Page 455)".
FSW-103
Note
If the data is received with the F-block F_RCVBO of the F-library Fail-safe Blocks (V1.2) or (V1.1),
you must configure the input EN_SMODE with 0 (default = 1), otherwise F_RCVBO will detect a
CRC error.
Otherwise, you must leave the default value of the EN_SMODE input unchanged, because the
operating mode of the F-CPU can otherwise not be evaluated with F_SENDBO at the SENDMODE
output of the F-CPU.
I/Os
*) The CRC_IMP input is automatically supplied when the S7 program is compiled and must not
be changed. The CRC_IMP input is indicated as changed during comparison of safety programs
if changes were made to the connection configuration in NetPro.
Fail-safe value
Fail-safe values are output by the receiver F_RCVBO in the following cases:
• A communication error (e.g. CRC error, timeout) was detected.
• The communication was disabled using EN_SEND = 0.
• An F-startup is present.
The SUBS_ON output is set to 1.
If the output of the fail-safe value is caused by a communication error, output ERROR = 1 is
additionally set.
A "Timeout" communication error is detected for the first time when the communication
between the F_SENDBO and F_RCVBO connection partners has already been established once.
If communication cannot be established after startup of the sending F-system and receiving F-
system, check the configuration of the safety-related CPU-CPU communication, the parameter
assignment of the F_SENDBO and F_RCVBO and the bus connection. You can also obtain
information on possible error causes by evaluating the RETVAL outputs of F_SENDBO and
F_RCVBO. In general, always evaluate RETVAL of F_SENDBO and F_RCVBO as it may be that only
one of the two outputs contains error information.
Reintegration
After a communication error, the data active at the SD_BO_xx inputs are only output again when
a communication error is no longer detected and acknowledgment is made with a positive edge
at the ACK_REI input of the F_RCVBO.
Startup behavior
After start-up of the sending and receiving F-systems, the communication between the
connection partners F_SENDBO and F_RCVBO must be established for the first time. The receiver
F_RCVBO provides fail-safe values during the time period. The SUBS_ON output is set to 1.
RETVAL output
Non-fail-safe information about the type of communication error that occurred is provided at
the RETVAL output for service purposes. You can read out this information on your ES/OS or
evaluate it in your standard user program if necessary. The DIAG bits are saved until an
acknowledgment is made at the ACK_REI input of the associated F_RCVBO.
Structure of RETVAL
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.2.3 F_RCVBO: Receiving of 20 data elements of data type F_BOOL in a fail-safe manner
from another F-CPU
Function
The F-block F_RCVBO receives 20 data elements of data type F_BOOL from another F-CPU and
makes it available to the RD_BO_xx outputs. The data must be sent from the other F-CPU with
the F-block F_SENDBO.
At the ID input you must specify – from the perspective of the F‑CPU – the local ID of the S7
connection (from the connection table in NetPro).
Communication between the F-CPUs is implemented hidden in the background using a special
safety protocol. For this purpose, you must define the communication relationship between an
F_RCVBO in one F-CPU and an F_SENDBO in the other F-CPU by specifying an odd number at the
R_ID input of F_SENDBO and F_RCVBO. Associated and F_SENDBO and F_RCVBO receive the
same value for R_ID.
WARNING
Value for the respective address relationship
The value for the respective address relationship (input parameter R_ID; data type: DWORD) can
be selected by the user but must be an odd number and unique network-wide for all safety-
related communication connections. The value R_ID + 1 is internally assigned and must not be
used. You must supply the ID and R_ID inputs with constant values when the F-block is called.
FSW-102
You must assign the desired F-monitoring time at the TIMEOUT input. The TIMEOUT input
cannot be interconnected.
WARNING
Detecting and transmitting the signal level
It can only be ensured (from a fail-safe standpoint) that a signal level to be transmitted will be
detected on the sender side and transmitted to the receiver if the signal level is present for at
least as long as the assigned F-monitoring time (TIMEOUT).
For information regarding the calculation of the F-monitoring time, see section "Run times, F-
Monitoring times, and response times (Page 455)".
FSW-103
The operating mode of the F-CPU with F_SENDBO is provided at the SENDMODE output. If the
F-CPU with F_SENDBO is in deactivated safety mode, the output SENDMODE = 1.
Note
If the data is received from an F_SENDBO block from older F-libraries, you must assign the
COMMVER_USED input with 0. Otherwise, sequence number errors may occur. Default setting
is "1".
I/Os
*) The CRC_IMP input is automatically supplied when the S7 program is compiled and must not
be changed. The CRC_IMP input is indicated as changed during comparison of safety programs
if changes were made to the connection configuration in NetPro.
Fail-safe values
The fail-safe values active at the SUBBO_xx inputs are output in the following cases:
• A communication error (e.g. CRC error, timeout) was detected.
• The communication was disabled at the associated F_SENDBO via EN_SEND = 0.
• An F-startup is present.
The SUBS_ON output is set to 1.
If the output of the fail-safe value is caused by a communication error, output ERROR = 1 is
additionally set.
A "Timeout" communication error is detected for the first time when the communication
between the F_SENDBO and F_RCVBO connection partners has already been established once.
If communication cannot be established after startup of the sending and receiving F-system,
Reintegration
After a communication error, the data active at the SD_BO_xx inputs of the associated
F_SENDBO are only output again at the RD_BO_xx outputs when a communication error is no
longer detected and acknowledgment is made with a positive edge at the ACK_REI input.
Output ACK_REQ = 1 is used to signal that a user acknowledgment at the ACK_REI input is
required for the acknowledgment.
WARNING
User acknowledgment is always required for communication errors
For this, you must interconnect the ACK_REI input with a signal generated by an operator input.
An interconnection with an automatically generated signal is not permitted.
FSW-104
Startup characteristics
After start-up of the sending and receiving F-systems, the communication between the
connection partners F_SENDBO and F_RCVBO must be established for the first time. The fail-safe
values active at the SUBBO_xx inputs are output during this time period. The SUBS_ON output
is set to 1.
The SENDMODE output is preset with 0 and is not updated as long as output SUBS_ON = 1.
RETVAL output
Error handling
An F-STOP is triggered when an error occurs in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F‑CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.2.4 F_SENDR: Sending of 20 data elements of data type F_REAL in a fail-safe manner to
another F-CPU
Function
In a fail-safe operation, the F-block F_SENDR sends the data of the data type F_REAL, which is
present at the SD_R_xx inputs, to another F‑CPU. The data must be received there with the F-
block F_RCVR.
At the EN_SEND input, you can temporarily switch off the communication between the F‑CPUs
to reduce the bus load by supplying the input EN_SEND (default = 1) with 0. No send data is then
sent to the associated F_RCVR, and the F_SENDR provides the configured substitute values for
this period. If communication between the connection partners has already been established,
a communication error is detected.
At the ID input you must specify – from the perspective of the F CPU – the local ID of the S7
connection (from connection table in NetPro).
Communication between the F‑CPUs is implemented hidden in the background using a special
safety protocol. For this purpose, you must define the communication relationship between an
F_SENDR in one F‑CPU and an F_RCVR in the other F‑CPU by specifying an odd number at the R_ID
input of F_SENDR and F_RCVR. Associated F_SENDR and F_RCVR receive the same value for R_ID.
WARNING
Value for the respective address relationship
The value for the respective address relationship (input parameter R_ID; data type: DWORD) can
be selected by the user but must be an odd number and unique network-wide for all safety-
related communication connections. The value R_ID + 1 is internally assigned and must not be
used. You must supply the ID and R_ID inputs with constant values when the F-block is called.
FSW-102
You must assign the desired F-monitoring time at the TIMEOUT input. The TIMEOUT input
cannot be interconnected.
WARNING
Detecting and transmitting a signal level
It can only be ensured (from a fail-safe standpoint) that a signal level to be transmitted will be
detected on the sender side and transmitted to the receiver if the signal level is present for at
least as long as the assigned F-monitoring time (TIMEOUT).
For information regarding the calculation of the F-monitoring time, see section "Run times, F-
Monitoring times, and response times (Page 455)".
FSW-103
Note
If the data is received with the F-block F_RCVR of the F-library Fail-safe Blocks (V1.2) or (V1.1),
you must configure the input EN_SMODE with 0 (default = 1), otherwise F_RCVR will detect a
CRC error.
Otherwise, you must leave the default setting of the EN_SMODE input unchanged, since
otherwise the SENDMODE output of the F_RCVR will not be able to evaluate the operating mode
of the F‑CPU with the F_SENDR.
I/Os
*) The CRC_IMP input is automatically supplied when the S7 program is compiled and must not
be changed. The CRC_IMP input is indicated as changed during comparison of safety programs
if changes were made to the connection configuration in NetPro.
Substitute value
Substitute values are output by the receiver F_RCVR in the following cases:
• A communication error (e.g. CRC error, timeout) was detected.
• The communication was disabled with EN_SEND = 0.
• An F-startup is present.
The SUBS_ON output is set to 1.
If the output of the fail-safe value is caused by a communication error, output ERROR = 1 is
additionally set.
A "Timeout" communication error is detected for the first time when the communication
between the F_SENDR and F_RCVR connection partners has already been established once. If
communication cannot be established after startup of the sending and receiving F-system,
check the configuration of the safety-related CPU-CPU communication, the parameter
assignment of F_SENDR and F_RCVR and the bus connection. You can also obtain information
on possible error causes by evaluating the RETVAL outputs of F_SENDR and F_RCVR. In general,
always evaluate RETVAL of F_SENDR and F_RCVR as it may be that only one of the two outputs
contains error information.
Reintegration
After a communication error, the data active at the SD_R_xx inputs are only output again when
a communication error is no longer detected and acknowledgment is made with a positive edge
at the ACK_REI input of the F_RCVR.
Startup behavior
After start-up of the sending and receiving F-systems, the communication between the
connection partners F_SENDR and F_RCVR must be established for the first time. The receiver
F_RCVR provides substitute values during this period. The SUBS_ON output is set to 1
RETVAL output
Non fail-safe information about the nature of the communication error that occurred is made
available at the RETVAL output for service purposes. You can read out this information on your
ES/OS or evaluate it in your standard user program if necessary. The DIAG bits remain stored until
you acknowledge at the ACK_REI input of the corresponding F_RCVR.
Structure of RETVAL
Error handling
An F-STOP is triggered when an error occurs in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.2.5 F_RCVR: Receiving of 20 data elements of data type F_REAL in a fail-safe manner from
another F-CPU
Function
The F-block F_RCVR receives 20 data elements of data type F_REAL from another F-CPU and
makes it available to the RD_R_xx outputs. The data must be sent from the other F-CPU with the
F-block F_SENDR.
At the ID input you must specify – from the perspective of the F CPU – the local ID of the S7
connection (from connection table in NetPro).
Communication between the F-CPUs is implemented hidden in the background using a special
safety protocol. For this purpose, you must define the communication relationship between an
F_SENDR in one F-CPU and an F_RCVR in the other F-CPU by specifying an odd number at the
R_ID input of F_SENDR and F_RCVR. Associated F_SENDR and F_RCVR receive the same value for
R_ID.
WARNING
Value for the respective address relationship
The value for the respective address relationship (input parameter R_ID; data type: DWORD) can
be selected by the user but must be an odd number and unique network-wide for all safety-
related communication connections. The value R_ID + 1 is internally assigned and must not be
used. You must supply the ID and R_ID inputs with constant values when the F-block is called.
FSW-102
You must assign the desired F-monitoring time at the TIMEOUT input. The TIMEOUT input
cannot be interconnected.
WARNING
Detecting and transmitting the signal level
It can only be ensured (from a fail-safe standpoint) that a signal level to be transmitted will be
detected on the sender side and transmitted to the receiver if the signal level is present for at
least as long as the assigned F-monitoring time (TIMEOUT).
For information regarding the calculation of the F-monitoring time, see section "Run times, F-
Monitoring times, and response times (Page 455)".
FSW-103
The operating mode of the F-CPU with F_SENDR is provided at the SENDMODE output. If the F-
CPU with F_SENDR is in deactivated safety mode, the SENDMODE output becomes = 1.
Note
If the data is received from an F_SENDR block from older F-libraries, you must assign the
COMMVER_USED input with 0. Otherwise, sequence number errors may occur. Default setting
is "1".
I/Os
*) The CRC_IMP input is automatically supplied when the S7 program is compiled and must not
be changed. The CRC_IMP input is indicated as changed during comparison of safety programs
if changes were made to the connection configuration in NetPro.
Fail-safe values
The fail-safe values active at the SUBR_xx inputs are output in the following cases:
• A communication error (e.g. CRC error, timeout) was detected.
• The communication was disabled at the associated F_SENDR via EN_SEND = 0.
• An F-startup is present.
The SUBS_ON output is set to 1.
While output SUBS_ON = 1, the SENDMODE output is not updated.
If the output of the fail-safe value is caused by a communication error, output ERROR = 1 is
additionally set.
A "Timeout" communication error is detected for the first time when the communication
between the F_SENDR and F_RCVR connection partners has already been established once. If
communication cannot be established after startup of the sending and receiving F-system,
check the configuration of the safety-related CPU-CPU communication, the parameter
assignment of F_SENDR and F_RCVR and the bus connection. You can also obtain information
on possible error causes by evaluating the RETVAL outputs of F_SENDR and F_RCVR. In general,
always evaluate RETVAL of F_SENDR and F_RCVR as it may be that only one of the two outputs
contains error information.
Reintegration
After a communication error, the data active at the SD_R_xx inputs of the associated F_SENDR
are only output again at the RD_R_xx outputs when a communication error is no longer detected
and acknowledgment is made with a positive edge at the ACK_REI input.
Output ACK_REQ = 1 is used to signal that a user acknowledgment at the ACK_REI input is
required for the acknowledgment.
WARNING
User acknowledgment is always required for communication errors
For this, you must interconnect the ACK_REI input with a signal generated by an operator input.
An interconnection with an automatically generated signal is not permitted.
FSW-104
Startup characteristics
After start-up of the sending and receiving F-systems, the communication between the
connection partners F_SENDR and F_RCVR must be established for the first time. The fail-safe
values active at the SUBR_xx inputs are output during this time period. The SUBS_ON output is
set to 1.
The SENDMODE output is preset with 0 and is not updated as long as output SUBS_ON = 1.
RETVAL output
Non fail-safe information about the nature of the communication error that occurred is made
available at the RETVAL output for service purposes. You can read out this information on your
ES/OS or evaluate it in your standard user program if necessary. The DIAG bits remain stored until
you acknowledge at the ACK_REI input.
Structure of RETVAL
Error handling
An F-STOP is triggered when an error occurs in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F‑CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.2.6 F_SDS_BO: Sending of 32 data elements of data type F_BOOL in a fail-safe manner to
another F-CPU
Function
The F-block F_SDS_BO sends the data of the data type F_BOOL, that are present at the inputs
SD_BO_xx, to another F‑CPU in a fail-safe operation. The data must be received there with the
F-block F_RDS_BO.
Note
The F-block F_SDS_BO can also send the data of the F_BOOL data type, that are present at the
SD_BO_xx inputs, to an F‑CPU with S7 Distributed Safety in a fail-safe operation. The data must
then be received there with the F-block F_RCVS7 and an F-communication DB with exactly 32
data elements of the F_BOOL data type.
At the EN_SEND input, you can temporarily switch off the communication between the F‑CPUs
to reduce the bus load by supplying the input EN_SEND (default = 1) with 0. No send data is then
sent to the associated F_RDS_BO, and the F_RDS_BO provides the configured substitute values
for this period. If communication between the connection partners has already been
established, a communication error is detected.
At the ID input you must specify – from the perspective of the F‑CPU – the local ID of the S7
connection (from connection table in NetPro).
Communication between the F‑CPUs is implemented hidden in the background using a special
safety protocol. For this purpose, you must define the communication relationship between an
F_SDS_BO in one F‑CPU and an F_RDS_BO in the other F‑CPU by specifying an odd number at the
R_ID input of F_SDS_BO and F_RDS_BO. Associated F_SDS_BO and F_RDS_BO receive the same
value for R_ID.
WARNING
Value for the respective address relationship
The value for the respective address relationship (input parameter R_ID; data type: DWORD) can
be selected by the user but must be an odd number and unique network-wide for all safety-
related communication connections. The value R_ID + 1 is internally assigned and must not be
used. You must supply the ID and R_ID inputs with constant values when the F-block is called.
FSW-102
You must assign the desired F-monitoring time at the TIMEOUT input. The TIMEOUT input
cannot be interconnected.
WARNING
Detecting and transmitting a signal level
It can only be ensured (from a fail-safe standpoint) that a signal level to be transmitted will be
detected on the sender side and transmitted to the receiver if the signal level is present for at
least as long as the assigned F-monitoring time (TIMEOUT).
For information regarding the calculation of the F-monitoring time, see section "Run times, F-
Monitoring times, and response times (Page 455)".
FSW-103
I/Os
*) The CRC_IMP input is automatically supplied when the S7 program is compiled and must not
be changed. The CRC_IMP input is indicated as changed during comparison of safety programs
if changes were made to the connection configuration in NetPro.
Substitute values
The receiver F_RDS_BO outputs substitute values in the following cases:
• A communication error (e.g. CRC error, timeout) was detected.
• The communication was disabled with EN_SEND = 0.
• An F-startup is present.
The SUBS_ON output is set to 1.
If the output of the fail-safe value is caused by a communication error, output ERROR = 1 is
additionally set.
A "Timeout" communication error is detected for the first time when the communication
between the F_SDS_BO and F_RDS_BO connection partners has already been established once.
If communication cannot be established after startup of the sending and receiving F-system,
check the configuration of the safety-related CPU-CPU communication, the parameter
assignment of F_SDS_BO and F_RDS_BO, and the bus connection. You can also obtain
information on possible error causes by evaluating the RETVAL outputs of F_SDS_BO and
F_RDS_BO. In general, always evaluate RETVAL of F_SDS_BO and F_RDS_BO as it may be that
only one of the two outputs contains error information.
Reintegration
After a communication error, the data active at the SD_BO_xx inputs are only output again when
a communication error is no longer detected and acknowledgment is made with a positive edge
at the ACK_REI input of the F_RDS_BO.
Startup behavior
After startup of the sending and receiving F-system, the communication between the
connection partners F_SDS_BO and F_RDS_BO must be established for the first time. The
receiver F_RDS_BO provides substitute values during this period. The SUBS_ON output is set to
1.
RETVAL output
Non fail-safe information about the nature of the communication error that occurred is made
available at the RETVAL output for service purposes. You can read out this information on your
ES/OS or evaluate it in your standard user program if necessary. The DIAG bits remain stored until
you acknowledge at the ACK_REI input of the corresponding F_RDS_BO.
Structure of RETVAL
Error handling
An F-STOP is triggered when an error occurs in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.2.7 F_RDS_BO: Receiving of 32 data elements of data type F_BOOL in a fail-safe manner
from another F-CPU
Function
The F-block F_RDS_BO receives 32 data elements of the F_BOOL data type from another F‑CPU,
and provides them to RD_BO_xx outputs. The data must be sent from the other F-CPU with the
F-block F_SDS_BO.
Note
The F-block F_RDS_BO can also receive the 32 data elements of data type F_BOOL in a fail-safe
manner from an F‑CPU with S7 Distributed Safety. The data must then be sent there with the F-
block F_SENDS7 and an F-communication DB with exactly 32 data elements of the F_BOOL data
type.
At the ID input you must specify – from the perspective of the F‑CPU – the local ID of the S7
connection (from connection table in NetPro).
Communication between the F-CPUs is implemented hidden in the background using a special
safety protocol. For this purpose, you must define the communication relationship between an
F_SDS_BO in one F-CPU and an F_RDS_BO in the other F-CPU by specifying an odd number at the
R_ID input of F_SDS_BO and F_RDS_BO. Associated F_SDS_BO and F_RDS_BO receive the same
value for R_ID.
WARNING
Value for the respective address relationship
The value for the respective address relationship (input parameter R_ID; data type: DWORD) can
be selected by the user but must be an odd number and unique network-wide for all safety-
related communication connections. The value R_ID + 1 is internally assigned and must not be
used. You must supply the ID and R_ID inputs with constant values when the F-block is called.
FSW-102
You must assign the desired F-monitoring time at the TIMEOUT input. The TIMEOUT input
cannot be interconnected.
WARNING
Detecting and transmitting the signal level
It can only be ensured (from a fail-safe standpoint) that a signal level to be transmitted will be
detected on the sender side and transmitted to the receiver if the signal level is present for at
least as long as the assigned F-monitoring time (TIMEOUT).
For information regarding the calculation of the F‑monitoring time, see section "Run times, F-
Monitoring times, and response times (Page 455)".
FSW-103
The operating mode of the F-CPU with F_SDS_BO is provided at the SENDMODE output. If the F-
CPU with F_SDS_BO is in deactivated safety mode, the SENDMODE output becomes = 1.
Note
If the data is received from an F_SDS_BO block from older F-libraries, you must assign the
COMMVER_USED input with 0. Otherwise, sequence number errors may occur. Default setting
is "1".
I/Os
*) The CRC_IMP input is automatically supplied when the S7 program is compiled and must not
be changed. The CRC_IMP input is indicated as changed during comparison of safety programs
if changes were made to the connection configuration in NetPro.
Fail-safe values
The fail-safe values active at the SUBBO_xx inputs are output in the following cases:
• A communication error (e.g. CRC error, Timeout) was detected.
• The communication was disabled at the associated F_SDS_BO via EN_SEND = 0.
• An F-startup is present.
The SUBS_ON output is set to 1.
While output SUBS_ON = 1, the SENDMODE output is not updated.
If the output of the fail-safe value is caused by a communication error, output ERROR = 1 is
additionally set.
A "Timeout" communication error is detected for the first time when the communication
between the F_SDS_BO and F_RDS_BO connection partners has already been established once.
If communication cannot be established after startup of the sending and receiving F-systems,
check the configuration of the safety-related CPU-CPU communication, the parameter
assignment of F_SDS_BO and F_RDS_BO and the bus connection. You can also obtain
information on possible error causes by evaluating the RETVAL outputs of F_SDS_BO and
F_RDS_BO. In general, always evaluate RETVAL of F_SDS_BO and F_RDS_BO as it may be that
only one of the two outputs contains error information.
Reintegration
After a communication error, the data active at the SD_BO_xx inputs of the associated F_SDS_BO
are only output again at the RD_BO_xx outputs when a communication error is no longer
detected and acknowledgment is made with a positive edge at the ACK_REI input.
Output ACK_REQ = 1 is used to signal that a user acknowledgment at the ACK_REI input is
required for the acknowledgment.
WARNING
User acknowledgment is always required for communication errors
For this, you must interconnect the ACK_REI input with a signal generated by an operator input.
An interconnection with an automatically generated signal is not permitted.
FSW-104
Startup characteristics
After start-up of the sending and receiving F-systems, the communication between the
connection partners F_SDS_BO and F_RDS_BO must be established for the first time. The fail-
safe values active at the SUBBO_xx inputs are output during this time period. The SUBS_ON
output is set to 1.
The SENDMODE output is preset with 0 and is not updated as long as output SUBS_ON = 1.
RETVAL output
Non fail-safe information about the nature of the communication error that occurred is made
available at the RETVAL output for service purposes. You can read out this information on your
ES/OS or evaluate it in your standard user program if necessary. The DIAG bits remain stored until
you acknowledge at the ACK_REI input.
Structure of RETVAL
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostic buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.3 F-Blocks for comparing two input values of the same type
Overview
Function
This F-Block compares two inputs of data type F_REAL and sets outputs GT, GE, EQ, LT or LE to
"1", whatever the comparator result:
• GT = 1 if IN1 > IN2
• GE = 1 if IN1 ≥ IN2
• EQ = 1 if IN1 = IN2
• LT = 1 if IN1 < IN2
• LE = 1 if IN1 ≤ IN2
Inputs/outputs
Error handling
• If one of the inputs IN1 or IN2 is an invalid floating point number (NaN), outputs GT and LT
are set to 1.
• An F-STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-Block monitors the input variable U for limit violation (U_HL). A hysteresis can also be
specified at the HYS input to avoid fluttering of the QH output in the event of fluctuations in the
input value.
• U ≥ U_HL: If the upper limit is exceeded, output QH = 1.
• (U_HL – HYS) ≤ U < U_HL: QH remains unchanged in this range.
• U < (U_HL – HYS): If the limit value hysteresis is fallen below, output QH = 0.
The QHN output corresponds to the negated QH output.
The limit value and hysteresis are also available as non-fail-safe data at the U_HL_O and HYS_O
outputs for further processing in the standard user program.
Inputs/outputs
Error handling
• If one of the inputs U, U_HL or HYS is an invalid floating point number (NaN) or if invalid
floating-point numbers (NaN) arise due to calculations in the F-Block, the fail-safe value at
the input SUBS_IN is output at output QH.
If invalid floating-point numbers (NaNs) arise due to calculations in the F-Block, the following
diagnostic event is then entered in the diagnostic buffer of the F-CPU:
– "Safety program: invalid REAL number in DB" (Event ID 16#75D9)
• An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-Block monitors the input variable U for lower limit violation
(U_LL). A hysteresis can also be specified at the HYS input to avoid fluttering of the QL output in
the event of fluctuations in the input value.
• U ≤ U_LL: If the lower limit is violated, output QL = 1.
• U_LL < U ≤ (U_LL + HYS): QL remains unchanged in this range.
• U > (U_LL + HYS): If the upper limit is exceeded violated + hysteresis, output QL = 0.
Output QLN corresponds to the negated QL output.
The limit value and hysteresis are also available as non-fail-safe data at the U_LL_O and HYS_O
outputs for evaluation in the standard user program.
Inputs/outputs
Error handling
• If one of the inputs U, U_LL or HYS is an invalid floating point number (NaN) or if invalid
floating-point numbers (NaNs) arise due to calculations in the F-Block, the fail-safe value at
the input SUBS_IN is output at output QL.
If invalid floating-point numbers (NaNs) arise due to calculations in the F-Block, the following
diagnostic event is then entered in the diagnostic buffer of the F-CPU:
– "Safety program: invalid REAL number in DB" (Event ID 16#75D9)
• An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.4 Voter blocks for inputs of data type REAL and BOOL
Overview
A.2.4.1 F_2oo3DI: 2oo3 evaluation of inputs of data type BOOL with discrepancy analysis
Function
This F-block monitors three binary inputs for signal state 1. The OUT output is 1 when at least
two INx inputs are 1. Otherwise, the OUT output is 0. The OUTN output corresponds to the
negated OUT output.
If input DIS_ON = 1 is set, a discrepancy analysis is performed. If one INx input differs from the
other two INy inputs longer than the assigned discrepancy time DIS_TIME, a discrepancy error
is detected and saved with 1 in the DIS and DIS_D outputs.
If a discrepancy is no longer detected, the discrepancy error is acknowledged according to the
parameter assignment of ACK_NEC:
• When ACK_NEC = 0, an automatic acknowledgment is carried out.
• When ACK_NEC = 1, you must acknowledge the discrepancy error with a positive edge at the
ACK input.
Output ACK_REQ = 1 is used to signal that user acknowledgment at the ACK input is required for
acknowledging the discrepancy error.
I/Os
WARNING
Fail-safe user times
When determining your response times when using an F-block with time monitoring, take into
account the following timing uncertainties:
• The timing uncertainty familiar from the standard program that arises due to the cyclic
processing
• The tolerance of the internal monitoring of the times in the F-CPU
– For time values from 10 ms to 50 s: 5 ms
– For time values from > n × 50 s to (n+1) × 50 s: ± (n+1) × 5 ms
FSW-105
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.4.2 F_2oo3AI: 2oo3 evaluation of inputs of the REAL data type with discrepancy analysis
Function
This F-block performs a 2oo3 evaluation of REAL values with discrepancy analysis.
This block is generally intended for detecting the failure or discrepancy of a sensor.
If a REAL value is invalid, a 1oo2 evaluation is performed. It calculates the average and median
or the maximum and minimum of the INx inputs, depending on the QBADx inputs:
• If all INx inputs are valid (QBAD1, QBAD2 and QBAD3 = 0) and no discrepancy error was saved
(DIS1CH = 0, DISALL = 0), the average [(IN1+IN2+IN3)/3] is provided at the OUT_AVG output
and the median of IN1, IN2 and IN3 is provided at the MED_MAX und MED_MIN outputs.
• If all INx inputs are valid (QBAD1, QBAD2 and QBAD3 = 0) and the assigned tolerance DELTA
is exceeded at all INx inputs (DIS1CH = 0, DISALL = 1), the average [(IN1+IN2+IN3)/3] is
provided at the OUT_AVG output and the median of IN1, IN2 and IN3 is provided at the
MED_MAX und MED_MIN outputs.
• If all INx inputs are valid (QBAD1, QBAD2 and QBAD3 = 0), the assigned tolerance DELTA is
exceeded at all INx inputs and a discrepancy error was saved (DIS1CH = 1, DISALL = 1), then
the outputs behave as follows:
– MODE = 0
OUT_AVG = Average of the INx inputs that were previously discrepancy-free. i.e. when
DIS1CH = 1 and DISALL = 0.
MED_MAX = MED_MIN = Median of IN1, IN2 and IN3
– MODE = 1
OUT_AVG = Average of the INx inputs that were previously discrepancy-free. i.e. when
DIS1CH = 1 and DISALL = 0.
MED_MAX = MED_MIN = Median of IN1, IN2 and IN3
– MODE = 3
OUT_AVG = Average of the INx inputs that were previously discrepancy-free. i.e. when
DIS1CH = 1 and DISALL = 0.
MED_MAX = Maximum of the INx inputs that were previously discrepancy-free
MED_MIN = Minimum of the INx inputs that were previously discrepancy-free
• If all INx inputs are valid (QBAD1, QBAD2 and QBAD3 = 0) and a discrepancy error was saved
(DIS1CH = 1, DISALL = 0), then the outputs behave as follows:
– MODE = 0
OUT_AVG = Average of the INx inputs that were previously discrepancy-free
MED_MAX = MED_MIN = Median of IN1, IN2 and IN3
– MODE = 1
OUT_AVG = Average of the discrepancy-free INx inputs
MED_MAX = MED_MIN = Median of IN1, IN2 and IN3
– MODE = 3
OUT_AVG = Average of the discrepancy-free INx inputs
MED_MAX = Maximum of the discrepancy-free INx inputs
MED_MIN = Minimum of the discrepancy-free INx inputs
Note
Change of the MODE parameter
Changes to the MODE parameter are only possible by carrying out a cold restart of the CPU.
An online change is not permitted.
A cold restart of the CPU is not allowed under PCS 7. For this reason, the MODE parameter can
be changed in PCS 7 by means of a full download with changed parameters.
• If only two inputs INx are valid (QBADx = 0 und QBADy = 1), the average of the valid INx inputs
is provided at the OUT_AVG output, the maximum and minimum of the valid INx inputs are
provided at the MED_MAX and MED_MIN outputs, respectively, and QBAD_1CH = 1 is set.
• If only one INx input is valid (QBADx = 0 and QBADy = 1), INx is provided at the OUT_AVG,
MED_MAX and MED_MIN outputs and QBAD_2CH = 1 is set.
• If no INx input is valid (QBAD1, QBAD2 and QBAD3 = 1), the fail-safe value SUBS_V is provided
at the OUT_AVG, MED_MAX and MED_MIN outputs and QBAD_ALL = 1 is set.
Note
If the process signals at the inputs fluctuate strongly, you must set the DELTA und DIS_TIME
parameters in such a way that regular fluctuations between the process values are not detected
as errors.
If the inputs fall within the assigned tolerance again, the discrepancy error is acknowledged
depending on the parameter assignment of ACK_NEC:
• When ACK_NEC = 0, an automatic acknowledgment is carried out.
• When ACK_NEC = 1, you must acknowledge the discrepancy error with a positive edge at the
ACK input.
Output ACK_REQ = 1 is used to signal that user acknowledgment at the ACK input is required for
acknowledging the discrepancy error.
Note
If you want to implement a trigger of your safety function when a limit is exceeded (e.g. with F-
block F_LIM_HL), you must use the MED_MAX output for the limit monitoring. If you want to
implement a trigger of your safety function when a limit is fallen below (e.g. with F-block
F_LIM_LL), you must use the MED_MIN output for the limit monitoring.
You may only then use the OUT_AVG output if it flows into an evaluation in which – dependent
on the process situation – the safe direction is represented once by the maximum and once by
the minimum. In this case, output DISALL = 1 should also trigger the safety function.
I/Os
WARNING
Fail-safe user times
When determining your response times when using an F-block with time monitoring, take into
account the following timing uncertainties:
• The timing uncertainty familiar from the standard program that arises due to the cyclic
processing
• The tolerance of the internal monitoring of times in the F‑CPU
– For time values from 10 ms to 50 s: 5 ms
– For time values from > n × 50 s to (n+1) × 50 s: ± (n+1) × 5 ms
FSW-105
Error handling
• If an INx input is an invalid floating-point number (NaN), it is handled as an invalid INx input
with QBAD = 1.
• If the DELTA input is an invalid floating-point number (NaN), DIS1CH, DISALL, DIS1CH_D and
DISALL_D are set to 1.
• If calculations result in invalid floating-point numbers (NaN) in the F-block, the fail-safe value
SUBS_V is provided at the OUT_AVG, MED_MAX and MED_MIN outputs, QBAD_1CH,
QBAD_2CH and QBAD_ALL = 1 is set, and the following diagnostics event is entered in the
diagnostics buffer of the F-CPU:
– "Safety program: Invalid REAL number in DB" (Event ID 16#75D9).
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.4.3 F_1oo2AI: 1oo2 evaluation of inputs of data type REAL with discrepancy analysis
Function
This F-block performs a 1oo2 evaluation of REAL values with discrepancy analysis. It calculates
the mean value, the maximum and minimum of the IN1 and IN2 inputs, depending on the
QBADx inputs:
• If both INx inputs are valid (QBAD1 and QBAD2 = 0), the mean value of IN1 and IN2
[(IN1+IN2)/2] is provided at output OUT_AVG, the maximum at output OUT_MAX, and the
minimum at output OUT_MIN.
• If only the INx input is valid (QBADx = 0 and QBADy = 1), INx is provided at the OUT_AVG,
OUT_MAX, and OUT_MIN outputs and QBAD_1CH = 1 is set.
• If no INx input is valid (QBAD1 and QBAD2 = 1), the substitute value SUBS_V is provided at the
OUT_AVG, OUT_MAX, and OUT_MIN outputs and QBAD_ALL = 1 is set.
If both INx inputs are valid (QBAD1 und QBAD2 = 0), a discrepancy analysis is performed:
If the two INx inputs differ by more than the assigned tolerance DELTA and for longer than the
assigned discrepancy time DIS_TIME, a discrepancy error is detected and saved with 1 in the DIS
and DIS_D outputs. The absolute value is always used in this case for the DELTA und DIS_TIME
inputs.
If the inputs fall within the assigned tolerance again, the discrepancy error is acknowledged
depending on the parameter assignment of ACK_NEC:
• When ACK_NEC = 0, an automatic acknowledgment is performed.
• When ACK_NEC = 1, you must acknowledge the discrepancy error with a positive edge at the
ACK input.
Output ACK_REQ = 1 is used to signal that user acknowledgment at the ACK input is required for
acknowledging the discrepancy error.
Note
If you want to implement a trigger of your safety function when a limit is exceeded (e.g. with F-
block F_LIM_HL), you must use the OUT_MAX output for the limit monitoring. If you want to
implement a trigger of your safety function when a limit has fallen below (e.g. with F-block
F_LIM_LL), you must use the OUT_MIN output for the limit monitoring.
You may only use the OUT_AVG output if it flows into an evaluation in which – depending on the
process situation – the safe direction is represented once by the maximum and once by the
minimum. In this case, output DIS = 1 should also trigger the safety function.
I/Os
WARNING
Fail-safe user times
When determining your response times when using an F-block with time monitoring, take into
account the following timing uncertainties:
• The timing uncertainty familiar from the standard program that arises due to the cyclic
processing
• The tolerance of the internal monitoring of the times in the F-CPU
– For time values from 10 ms to 50 s: 5 ms
– For time values from > n × 50 s to (n+1) × 50 s: ± (n+1) × 5 ms
FSW-105
Error handling
• If an INx input is an invalid floating-point number (NaN), it is handled as an invalid INx input
with QBADx = 1.
• If the DELTA input is an invalid floating-point number (NaN), DIS and DIS_D are set to 1.
• If calculations result in invalid floating-point numbers (NaN) in the F-block, the substitute
value SUBS_V is provided at the OUT_AVG, OUT_MAX, and OUT_MIN outputs, QBAD_1CH
and QBAD_ALL = 1 is set, and the following diagnostics event is entered in the diagnostics
buffer of the F‑CPU:
– "Safety program: Invalid REAL number in DB" (Event ID 16#75D9).
• An F_STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostic buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.5.1 Blocks and F-blocks for data conversion and operator control functions
Overview
F-blocks
Blocks
Validity check
WARNING
Validity check
The F-blocks F_BO_FBO, F_I_FI, F_TI_FTI and F_R_FR only convert data. For this reason, you
must program additional measures for validity checks in the safety program.
FSW-120
The simplest type of validity check is a range specification with fixed high limit and low limit, e.g.
with F_LIM_R.
Not all input parameters can be checked for validity in a sufficiently easy manner.
A.2.5.2 F_SWC_CB: Processing of a parameter of data format F-BOOL for operator input via
the OS
Function
The F-block F_SWC_CB enables changes to be made to F-parameters of data type F_BOOL in the
safety program of the F-CPU from an OS (Change process values).
The OUT output is interconnected in the safety program with the I/O whose value is to be
changed.
If a change was made on the faceplate in the required operator sequence within the time
assigned for MAX_TIME of the F_SWC_P, the value entered on the faceplate is made available at
the OUT output.
WARNING
The "Secure Write Command++" functionality allows changes to the safety program to be
made during RUN mode
As a result, the following additional safety measures are required:
• Ensure that changes that may compromise plant safety cannot be made. You can use the
EN_SWC input of the F-block F_SWC_P for this purpose, for example, by controlling it with
a keyswitch or on a process-dependent basis via the safety program.
• Ensure that only authorized persons can make changes.
Examples:
• Control the EN_SWC input of the F-block F_SWC_P with a keyswitch.
• Set up access protection for the operator stations where the "Secure Write Command++"
function can be performed.
FSW-121
When input CS_MODE = 1, the value made available at the OUT output is applied to the CS_VAL
input, and output CHANGED = 1 is set.
WARNING
The CHANGED output cannot be evaluated in the safety program
CHANGED = 1 merely indicates that a change at the OUT output has been transferred to the
CS_VAL input.
If the value changed using the "Secure Write Command++" function is to be in effect after a cold
restart, you must manually correct the value at the CS_VAL input in the offline program and load
memory.
FSW-122
I/Os
Note
The interconnection of the AKT_VAL output establishes the connection to the OS.
WARNING
Interconnection input CS_VAL
Interconnection of the CS_VAL input is not permitted.
FSW-123
Startup behavior
After an F-startup, the F-block behaves as follows:
• After a CPU STOP followed by a cold restart of the F-CPU or during initial run:
In the first cycle after a cold restart or during the initial run, the value assigned at the CS_VAL
input is made available at the OUT output. The CS_USED output is set to 1. CS_USED is reset
to 0 as soon as "Secure Write Command++" has been successfully completed for the first time.
• After a CPU STOP followed by a warm restart of the F-CPU or after an F-STOP followed by a
positive edge at the RESTART input of the F-block F_SHUTDN:
In the first cycle after a warm restart or after a positive edge at the RESTART input of the F-
block F_SHUTDN, the last valid value of OUT is made available at the OUT output when input
WS_MODE = 1. The CS_USED output retains its default value (0). When input WS_MODE = 0,
the F-block behaves the same as after a cold restart.
Note
Prior to the initial processing of the F-block after an F-startup, the default value is at the OUT and
CS_USED outputs.
WARNING
F-startup
After an F-startup, plant safety must not be compromised due to either the presence of the
CS_VAL value at the OUT output or the presence of the last valid value at the OUT output.
If necessary, evaluate the CS_USED output to determine whether the CS_VAL value or the last
valid value was made available at the OUT output after an F-startup. You are not permitted to
change the default value "0" of CS_USED. If a warm restart is performed after a cold restart,
CS_USED is reset to the default value "0", even if the CS_VAL value is currently present at the
OUT output.
FSW-124
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the F-
CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
See also
SWC_CHG: Operator function for Change process values (Page 295)
A.2.5.3 F_SWC_CR: Processing of a parameter of data format F-REAL for operator input via
the OS
Function
The F-block F_SWC_CR enables changes to be made to F-parameters of data type F_REAL in the
safety program of the F-CPU from an OS (Change process values).
The OUT output is interconnected in the safety program with the I/O whose value is to be
changed.
The limits for the change are specified using the MIN and MAX inputs.
The maximum increment of the change is specified at the MAXDELTA input.
If a change was made on the faceplate in the required operator sequence within the time
assigned for MAX_TIME of the F_SWC_P, the value entered on the faceplate is made available at
the OUT output, provided it meets the following conditions:
• The value is within the limits assigned for the MIN and MAX inputs.
• The maximum increment of the change assigned for the MAXDELTA input is not exceeded.
WARNING
The "Secure Write Command++" functionality allows changes to the safety program to be
made during RUN mode.
As a result, the following additional safety measures are required:
• Ensure that changes that may compromise plant safety cannot be made. You can use the
EN_SWC input of the F-block F_SWC_P for this purpose, for example, by controlling it with
a keyswitch or on a process-dependent basis via the safety program.
• Ensure that only authorized persons can make changes.
Examples:
• Control the EN_SWC input of the F-block F_SWC_P with a keyswitch.
• Set up access protection for the operator stations where the "Secure Write Command++"
function can be performed.
FSW-121
As an alternative to the measures above, select the MIN and MAX inputs in such a way that values
that could compromise plant safety cannot be specified using the "Change process data"
function.
When input CS_MODE = 1, the value made available at the OUT output is applied to the CS_VAL
input, and output CHANGED = 1 is set.
WARNING
The CHANGED output cannot be evaluated in the safety program.
CHANGED = 1 merely indicates that a change at the OUT output has been transferred to the
CS_VAL input.
If the value changed using the "Secure Write Command++" function is to be in effect after a cold
restart, you must manually correct the value at the CS_VAL input in the offline program and load
memory.
FSW-126
I/Os
Note
The interconnection of the AKT_VAL output establishes the connection to the OS.
WARNING
Interconnection inputs CS_VAL, MIN, MAX and MAXDELTA
The CS_VAL, MIN, MAX and MAXDELTA inputs must not be interconnected.
FSW-127
Startup behavior
After an F-startup, the F-block behaves as follows:
• After a CPU STOP followed by a cold restart of the F-CPU or during initial run:
In the first cycle after a cold restart or during the initial run, the value assigned at the CS_VAL
input is made available at the OUT output. The CS_USED output is set to 1. CS_USED is reset
to 0 as soon as "Secure Write Command++" has been successfully completed for the first time.
• After a CPU STOP followed by a restart (warm restart) of the F-CPU or after an F-STOP followed
by a positive edge at the RESTART input of the F_SHUTDN F-block:
In the first cycle after a warm restart or after a positive edge at the RESTART input of the F-
block F_SHUTDN, the last valid value of OUT is made available at the OUT output when input
WS_MODE = 1. The CS_USED output retains its default value ("0"). When input WS_MODE =
0, the F-block behaves the same as after a cold restart.
• During startup, OUT and ACT_VAL are initialized with the cold restart value CS_VAL if this
value is within the MIN and MAX limits. If CS_VAL < MIN, OUT and AKT_VAL are initialized
with the MIN value. If CS_VAL > MAX, OUT and AKT_VAL are initialized with the MAX value.
Note
Prior to the initial processing of the F-block after an F-startup, the default value is at the OUT and
CS_USED outputs.
WARNING
F-startup
After an F-startup, plant safety must not be compromised due to either the presence of the
CS_VAL value at the OUT output or the presence of the last valid value at the OUT output.
If necessary, evaluate the CS_USED output to determine whether the CS_VAL value or the last
valid value was made available at the OUT output after an F-startup. You are not permitted to
change the default value "0" of CS_USED. If a warm restart is performed after a cold restart,
CS_USED is reset to the default value "0", even if the CS_VAL value is currently present at the
OUT output.
FSW-124
Principle
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the F-
CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
See also
SWC_CHG: Operator function for Change process values (Page 295)
Function
This F-block performs the protocol handling with the OS for controlling the F_BOOL and F_REAL
parameters. For this purpose, it implements a special safety protocol and monitors the required
operator sequence. It has no dependency on the function behind the operator input. At least one
F_SWC_P must be placed for each F-shutdown group so that one or more operator control
functions (SWC_CHG, SWC_MOS, SWC_QOS) can be controlled.
For the "Change process values", "Maintenance Override", and "Fail-safe acknowledgment"
functions, you must assign an identifier for the utilized F-CPU that is unique from all others in the
system. There are two ways of doing this:
• Assign the IDENT input for the F-block F_SWC_P
• Assign the identifier to the HID of the F-CPU
The identifier at the IDENT input has precedence. If you assign the identifier to the HID of the F-
CPU and you do not use the IDENT input, the IDENT input remains empty when the program is
compiled.
Use of a keyswitch
To ensure that only authorized persons perform operator inputs via the OS, you can connect the
EN_SWC input of the F-block F_SWC_P to a keyswitch.
Input EN_SWC = 'true' must be set during an operator input. If EN_SWC = 'false' is reset after an
operator input, all existing bypasses will be deactivated. However, set fail-safe values are
retained.
WARNING
The "Secure Write Command++" functionality allows changes to the safety program to be
made during RUN mode
As a result, the following additional safety measures are required:
• Identification of the F-CPU must be unique system-wide. S7 F Systems uses the IDENT
parameter of F_SWC_P or the HID of the F-CPU.
• Ensure that changes that may compromise plant safety cannot be made. You can use the
EN_SWC input of the F-block F_SWC_P for this purpose, for example, by controlling it with
a keyswitch or on a process-dependent basis via the safety program.
• Ensure that only authorized persons can make changes.
Examples:
• Control the EN_SWC input of the F-block F_SWC_P with a keyswitch.
• Set up access protection for the operator stations where the "Secure Write Command++"
function can be executed.
FSW-125
I/Os
A.2.5.5 F_SWC_BO: Processing of a parameter of data type F_BOOL for operator input via the
OS
Function
The F-block F_SWC_BO enables changes to be made to F-parameters of data type F_BOOL in the
safety program of the F-CPU from an OS using "Maintenance Override" or "Fail-safe
acknowledgment".
The OUT output is interconnected in the safety program with the I/O whose value is to be
changed.
If a change was made on the faceplate in the required operator sequence within the time
assigned for MAX_TIME of the F_SWC_P, the value entered on the faceplate is made available at
the OUT output.
• Interconnection with SWC_MOS ("Maintenance Override"):
The S and R inputs can be used to set or reset the OUT and AKT_VAL outputs independent of
an operator input. OUT and AKT_VAL are set using the positive edge at S. Resetting has
priority, so the resetting occurs as long as R = 1. The setting of OUT and AKT_VAL is also
possible when the keyswitch is not active because this is relevant only for a bypass by the
operator input (soft bypass).
S and R can be used as a hard bypass for connection of a sensor. This always has precedence
over the soft bypass controlled via the OS. For this reason, an active operator input is
cancelled when the hard bypass is active.
• Interconnection with SWC_QOS ("Fail-safe acknowledgment"):
Operator control of the S and R inputs is only possible via the OS. Setting and resetting by the
running program is not supported.
WARNING
The "Secure Write Command++" functionality allows changes to the safety program to be
made during RUN mode.
As a result, the following additional safety measures are required:
• Ensure that changes that may compromise plant safety cannot be made. You can use the
EN_SWC input of the F-block F_SWC_P for this purpose, for example, by controlling it with
a keyswitch or on a process-dependent basis via the safety program.
• Ensure that only authorized persons can make changes.
Examples:
• Control the EN_SWC input of the F-block F_SWC_P with a keyswitch.
• Set up access protection for the operator stations where the "Secure Write Command++"
function can be performed.
FSW-121
I/Os
Note
The interconnection of the AKT_VAL output establishes the connection to the OS.
WARNING
Interconnection input CS_VAL
Interconnection of the CS_VAL input is not permitted.
FSW-131
Startup behavior
During startup, OUT and ACT_VAL are initialized with the value of CS_VAL at a cold restart.
WARNING
F-startup
After an F-startup, plant safety must not be compromised due to the presence of the CS_VAL
value at the OUT and AKT_VAL outputs.
FSW-132
Error handling
• An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
See also
SWC_MOS: Command function for Maintenance Override (Page 296)
A.2.5.6 F_SWC_R: Processing of a parameter of data type F_REAL for operator input via the OS
Function
The F-block F_SWC_CR enables changes to be made to F-parameters of data type F_REAL in the
safety program of the F-CPU from an OS using "Maintenance Override".
The OUT output is interconnected in the safety program with the I/O whose value is to be
changed.
The limits for the change are specified using the MIN and MAX inputs.
If a change was made on the faceplate in the required operator sequence within the time
assigned for MAX_TIME of the F_SWC_P, the value entered on the faceplate is made available at
the OUT output, provided it meets the following conditions:
• The value is within the limits assigned for the MIN and MAX inputs.
WARNING
The "Secure Write Command++" functionality allows changes to the safety program to be
made during RUN mode.
As a result, the following additional safety measures are required:
• Ensure that changes that may compromise plant safety cannot be made. You can use the
EN_SWC input of the F-block F_SWC_P for this purpose, for example, by controlling it with
a keyswitch or on a process-dependent basis via the safety program.
• Ensure that only authorized persons can make changes.
Examples:
• Control the EN_SWC input of the F-block F_SWC_P with a keyswitch.
• Set up access protection for the operator stations where the "Secure Write Command++"
function can be performed.
FSW-121
As an alternative to the measures above, select the MIN and MAX inputs in such a way that values
that could compromise plant safety cannot be specified using the "Maintenance Override"
function.
I/Os
WARNING
Interconnection inputs CS_VAL, MIN and MAX
The CS_VAL, MIN and MAX inputs must not be interconnected.
FSW-134
Note
The interconnection of the AKT_VAL output establishes the connection to the OS.
Startup behavior
During startup, OUT and ACT_VAL are initialized with the cold restart value CS_VAL if this value
is within the MIN and MAX limits. If CS_VAL < MIN, OUT and AKT_VAL are initialized with the MIN
value. If CS_VAL > MAX, OUT and AKT_VAL are initialized with the MAX value.
WARNING
F-startup
After an F-startup, plant safety must not be compromised due to the presence of the CS_VAL
value at the OUT and AKT_VAL outputs.
FSW-135
Error handling
• An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
See also
SWC_MOS: Command function for Maintenance Override (Page 296)
Function
This F-Block converts the F_REAL F-Data type at the IN input to the F_DINT F-Data type at the OUT
output.
Following the conversion of F_REAL to F_DINT, if the value at the IN input exceeds the upper limit
that can be portrayed by the F_INT data type, 2,147,483,647 is output at the OUT output and
output OUTU is set to 1. At F_DINT values greater than (>) 2,147,483,583, the range is already
exceeded.
If the range is undershot (IN is less than (<) the F_DINT value that can be portrayed), the smallest
F_DINT value of -2,147,483,648 is output at output OUT, and output OUTL is set to 1.
Inaccuracies/rounding
If the value at input IN is located outside the range -16777216,0 to 16777215,0, it is possible for
the output value to be rounded in F_DINT format, as values in the F_REAL format require 8 bits
of the 32-bit real value to represent the exponent.
Inputs/outputs
Error handling
• If the IN input is an invalid floating point number (NaN), 0 is output at the OUT output and
OUTU and OUTL are set to 1.
• An F-STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-Block converts the F_DINT F-Data type at the IN input to the F_REAL F-Data type at the OUT
output.
Inaccuracies/rounding
If the value at input IN is greater than (>) 16,777,215 or less than (<) -16,777,216, this can result
in an inaccuracy in the output value of 127, maximum, compared to the input value. That is, the
value in F_DINT format is rounded up or rounded off for representation in F_REAL format, as 8
bits of the 32-bit real value are required to represent the exponent. If the value is rounded off,
RND_OFF = 1 is set. If the value is rounded up, RND_UP = 1 is set.
If values at input IN are greater than or equal to (>=) 2,147,483,584, the output value of data
type F_REAL is always rounded up. In this case, RND_UP =1 is always set.
Inputs/outputs
Error handling
An F-STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA).
Function
This F-Block converts the BOOL data type at the IN input to the corresponding F_BOOL F-Data
type at the OUT output.
This enables signals formed in the standard user program to be evaluated in the safety program
following a validity check.
Inputs/outputs
Error handling
None
Function
This F-Block converts the REAL data type at the IN input to the corresponding F_REAL F-Data type
at the OUT output.
This enables signals formed in the standard user program to be evaluated in the safety program
following a validity check (using F-Block F_LIM_R, for example).
Inputs/outputs
Error handling
None
Function
This F-Block converts the TIME data type at the IN input to the corresponding F_TIME F-Data type
at the OUT output.
This enables signals formed in the standard user program to be evaluated in the safety program
following a validity check (using F-Block F_LIM_TI, for example).
Inputs/outputs
Error handling
None
Function
This F-Block converts the INT data type at the IN input to the corresponding F_INT F-Data type
at the OUT output.
This enables signals formed in the standard user program to be evaluated in the safety program
following a validity check (using F-Block F_LIM_I, for example).
Inputs/outputs
Error handling
None
Function
This F-Block converts the F_INT F-Data type at the IN input to the F_REAL F-Data type at the OUT
output.
Inputs/outputs
Error handling
None
Function
This F-Block converts the F_REAL F-Data type at the IN input to the F_INT F-Data type at the OUT
output.
If the value at the IN input exceeds the upper limit which can be portrayed by the INT data type
(range: -32768 to +32767), +32767 is output at the OUT output and output OUTU is set to 1. If
the value lower range is violated, -32768 is output and the OUTL output is set to 1.
Inputs/outputs
Error handling
• If the IN input is an invalid floating point number (NaN), 0 is output at the OUT output and
OUTU and OUTL are set to 1.
• An F-STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This block converts F-Data type F_BOOL at input IN to the elementary data type BOOL at output
OUT.
This enables you to evaluate signals that were generated in the safety program in the standard
user program, as well.
This block must be placed in the standard user program.
Inputs/outputs
Error handling
None
Function
This block converts F-Data type F_REAL at input IN to the elementary data type REAL at output
OUT.
This enables you to evaluate signals that were generated in the safety program in the standard
user program, as well.
This block must be placed in the standard user program.
Inputs/outputs
Error handling
None
Function
This block converts F-Data type F_INT at input IN to the elementary data type INT at output OUT.
This enables you to evaluate signals that were generated in the safety program in the standard
user program, as well.
This block must be placed in the standard user program.
Inputs/outputs
Error handling
None
Function
This block converts F-Data type F_TIME at input IN to the elementary data type TIME at output
OUT.
This enables you to evaluate signals that were generated in the safety program in the standard
user program, as well.
This block must be placed in the standard user program.
Inputs/outputs
Error handling
None
Function
This block is a standard block that establishes the connection to the faceplate. In addition, it
provides all values for the display or handling of the protocol to the block icon and faceplate on
the OS and generates messages for PCS 7 using the ALARM_8P.
Depending on the operator function, a SWC_CHG must be placed and inserted in the plant
hierarchy.
Note
When used with PCS 7, one PO license is used for each instance of the SWC_CHG block in the
safety program.
The following ALARM_8P messages are generated by this block for the alarm system:
• End-of-operator-input status
• "Confirmation request is active"
Note
When assigning the block name, note that the following illegal characters will be automatically
replaced by the "$" character during the transfer to the OS:
Space ? * ' :
Avoid these characters because an operator input is otherwise not possible.
Note
The creation of F-block types based on the "Secure Write Command++" function is not supported.
I/Os
SWC_MOS
This block is a standard block that establishes the connection to the faceplate. It also provides
the block icon and faceplate on the OS with all values for displaying or processing the protocol,
and generates messages for PCS 7 via ALARM_8P.
Depending on the operator function, a SWC_MOS must be placed and inserted in the plant
hierarchy.
With the SWC_MOS block, only operator control of a fail-safe value is possible.
Note
When used with PCS 7, one PO license is used for each instance of the SWC_MOS block in the
safety program.
The following ALARM_8P messages are generated by this block for the alarm system:
• Prewarning message for expiration of bypass time
• End-of-operator-input status
• Bypass active/not active
• "Confirmation request is active"
Note
When assigning the block name, note that the following illegal characters will be automatically
replaced by the $ character during the transfer to the OS:
Space ? * ' :
Avoid these characters because an operator input is otherwise not possible.
Note
The creation of F-block types based on the "Secure Write Command++" function is not supported.
I/Os
Function
This block is a standard block that establishes the connection to the faceplate. In addition, it
provides all values for the display or handling of the protocol to the block icon and faceplate on
the OS and generates messages for PCS 7 using the ALARM_8P.
Depending on the operator function, a SWC_QOS must be placed and inserted in the plant
hierarchy.
Note
When used with PCS 7, one PO license is used for each instance of the SWC_QOS block in the
safety program.
The following ALARM_8P messages are generated by this block for the alarm system:
• End-of-operator-input status
• "Confirmation request is active"
• "Acknowledgment required"
Note
When assigning the block name, note that the following illegal characters will be automatically
replaced by the "$" character during the transfer to the OS:
Space ? * ' :
Avoid these characters because an operator input is otherwise not possible.
Note
The creation of F-block types based on the "Secure Write Command++" function is not supported.
I/Os
Introduction
This block is a standard block that establishes the connection to the diagnostic faceplate for the
maintenance signals of the F-channel block.
The diagnostic symbol in the diagnostic faceplate represents the maintenance status of the
object.
When the S7 program is compiled, the block is automatically inserted into an automatically
generated F-system chart and an automatically generated F-runtime group with the ID "@F_" or
"@SDW_", and is interconnected in order to generate an executable safety program from the
user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Overview
A.2.6.1 F_CH_BI: F-Channel driver for inputs of data type BOOL of fail-safe DP standard slaves
and fail-safe standard I/O devices
Function
The F-block is used for signal processing of an input value of data type BOOL of fail-safe DP
standard slaves and fail-safe IO standard devices.
The F-block cyclically reads the input value of the data type BOOL of a fail-safe DP standard slave/
IO standard device from the associated F-module driver, which communicates with the fail-safe
DP standard slave/IO standard device via a safety message frame in accordance with the
PROFIsafe bus profile. The F-module driver is automatically positioned and interconnected with
the CFC function "Generate module drivers".
If the digital input value is valid, it is made available at the Q output.
A quality code (QUALITY output) that can have the following states is generated for the result
value at the Q output:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Note
Forcing the VALUE input
Forcing of the VALUE input is not possible because VALUE is not the value itself but rather a
pointer for the address of the digital input channel.
Addressing
Link the symbol generated with HW Config in the symbol table for the input value of the BOOL
data type with the VALUE input.
Note
An inversion of the VALUE input in the CFC editor is ineffective. Use the QN output instead.
Normal value
If the input value received from the fail-safe DP standard slave/IO standard device is valid, it is
output at the Q output with quality code (QUALITY) 16#80.
Simulation
A simulation value can be output at the Q output instead of the normal value that is received
from the fail-safe DP standard slave/IO standard device.
When input SIM_ON = 1, the value of the SIM_I input with quality code (QUALITY) 16#60 is
output. Simulation has the highest priority. QBAD is always set to "0". QSIM = 1 is set if the block
is in simulation state.
When simulation is switched on, the input value received from the fail-safe DP standard slave/IO
standard device is output at the Q_MOD output. If no communication is possible with the fail-
safe DP standard slave/IO standard device or if there is still no user acknowledgment after an
error, 0 is output.
When simulation is switched off, Q_DATA is output.
Fail-safe value
The fail-safe value 0 is output at the Q output in the following cases:
• The digital input value is invalid due to a communication error (PROFIsafe).
• The digital input value is invalid due to a module fault or a fail-safe value is received from the
module.
• A passivation with PASS_ON = 1 is present.
• An F-startup is present.
• FV_ACTIVATED is signaled by the module.
The quality code (QUALITY) is set to 16#48 and QBAD = 1 is set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
The IPAR_EN input corresponds to the iPar_EN_C variable and the IPAR_OK output corresponds
to the iPar_OK_S variable in the PROFIsafe bus profile as of PROFIsafe Specification V1.30. To
find out when you must set/reset the IPAR_EN input following parameter reassignment of a fail-
safe DP standard slave/IO standard device and how you can evaluate the IPAR_OK output, refer
to the PROFIsafe Specification V1.30 or higher and the documentation for the fail-safe standard
DP slave/IO standard device.
If more than one F-channel driver is placed for a fail-safe DP standard slave/IO standard device,
iPar_EN_C is formed from an OR logic operation of all IPAR_EN of the F-channel driver belonging
to the fail-safe DP standard slave/IO standard device.
If passivation is to be carried out when IPAR_EN = 1, you must additionally set variable PASS_ON
= 1.
WARNING
Parameter assignment input ACK_NEC
Parameter assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is
permissible under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave / IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slaves/IO standard devices
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe DP standard slave/IO standard device that lasts
longer than the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO
standard device, the F-system detects a communication error.
FSW-147
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe DP standard slave/IO standard device. During this time, the substitute value 0 with
quality code (QUALITY output) 16#48 is output and outputs QBAD = 1 and PASS_OUT = 1 are
additionally set.
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.2 F_CH_QBI: F-channel driver for inputs of data type BOOL (with value status) of fail-
safe DP standard slaves and fail-safe standard I/O devices
Function
The F-block is used for signal processing of an input value of data type BOOL (with value status)
of fail-safe DP standard slaves and fail-safe standard I/O devices.
The F-block cyclically reads the input value of the data type BOOL of a fail-safe DP standard slave/
IO standard device from the associated F-module driver, which communicates with the fail-safe
DP standard slave/IO standard device via a safety message frame in accordance with the
PROFIsafe bus profile. The F-module driver is automatically positioned and interconnected with
the CFC function "Generate module drivers".
If the digital input value is valid, it is made available at the Q output.
A quality code (QUALITY output) that can have the following states is generated for the result
value at the Q output:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Note
Forcing the VALUE input
Forcing of the VALUE input is not possible because VALUE is not the value itself but rather a
pointer for the address of the digital input channel.
Addressing
Link the symbol generated with HW Config in the symbol table for the input value of the BOOL
data type with the VALUE input.
Note
An inversion of the VALUE input in the CFC editor is ineffective. Use the QN output instead.
Normal value
If the input value received from the fail-safe DP standard slave/IO standard device is valid, it is
output at the Q output with quality code (QUALITY) 16#80.
Simulation
A simulation value can be output at the Q output instead of the normal value that is received
from the fail-safe DP standard slave/IO standard device.
When input SIM_ON = 1, the value of the SIM_I input with quality code (QUALITY) 16#60 is
output. Simulation has the highest priority. QBAD is always set to "0". QSIM = 1 is set if the block
is in simulation state.
When simulation is switched on, the input value received from the fail-safe DP standard slave/IO
standard device is output at the Q_MOD output. If no communication is possible with the fail-
safe DP standard slave/IO standard device or if there is still no user acknowledgment after an
error, 0 is output.
When simulation is switched off, Q_DATA is output.
Fail-safe value
The fail-safe value 0 is output at the Q output in the following cases:
• The digital input value is invalid due to a communication error (PROFIsafe).
• The digital input value is invalid due to a module fault or a fail-safe value is received from the
module.
• A passivation with PASS_ON = 1 is present.
• An F-startup is present.
• FV_ACTIVATED is signaled by the module.
The quality code (QUALITY) is set to 16#48 and QBAD = 1 is set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
No user acknowledgment is required for reintegration after PASS_ON = 1. For reintegration after
an F-startup following a CPU STOP, no user acknowledgment is required if the fail-safe DP
standard slave/IO standard device starts up using the Slave State (20) "system start" according
to the PROFIsafe Specification V1.30 and higher. Otherwise, a communication error (PROFIsafe)
is detected.
Note
• Parameter assignment input ACK_NEC
Ensure that the parameter assignment of the ACK_NEC input is identical for all F-channel
drivers of a fail-safe DP standard slave/IO standard device.
• Parameter assignment input ACK_REI
Ensure that the ACK_REI input of all F-channel drivers of a fail-safe DP standard slave/IO
standard device is connected with the same signal for the user acknowledgment.
WARNING
Parameter assignment input ACK_NEC
Parameter assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is
permissible under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave / IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slaves/IO standard devices
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe DP standard slave/IO standard device that lasts
longer than the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO
standard device, the F-system detects a communication error.
FSW-147
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe DP standard slave/IO standard device. During this time, the substitute value 0 with
quality code (QUALITY output) 16#48 is output and outputs QBAD = 1 and PASS_OUT = 1 are
additionally set.
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.3 F_CH_BO: F-Channel driver for outputs of data type BOOL of fail-safe DP standard
slaves and fail-safe standard I/O devices
Function
The F-block is used for signal processing of an output value of data type BOOL of fail-safe DP
standard slaves and fail-safe IO standard devices.
The F-block cyclically writes the output value of the BOOL data type for the output of a fail-safe
DP standard slave/IO standard device addressed at the VALUE output to the associated F-module
driver, which uses a safety message frame in accordance with the PROFIsafe bus profile to
communicate with the fail-safe DP standard slave/IO standard device. The F-module driver is
automatically positioned and interconnected with the CFC function "Generate module drivers".
A quality code, which can take the following states, is generated for the output value that is
written to the fail-safe DP standard slave/IO standard device:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE output.
Addressing
Link the symbol generated with HW Config in the symbol table for the output value of the BOOL
data type with the VALUE output.
Normal value
The process value active at the I input is written to the fail-safe DP standard slave/IO standard
device. The quality code (QUALITY) is set to 16#80.
Simulation
A simulation value can also be written to the fail-safe DP standard slave/IO standard device
instead of the process value active at the I input.
When input SIM_ON = 1 and input SIM_MOD = 0, the value of the SIM_I input is written to the
fail-safe DP standard slave/IO standard device and output at the VALUE output, if no
communication error (PROFIsafe), no module or channel fault (e.g. wire break) and no F-startup
is present. The quality code (QUALITY) is set to 16#60.
When input SIM_ON = 1 and input SIM_MOD = 1, the value of the SIM_I input is output at the
VALUE output even when a communication error (PROFIsafe), module or channel fault (e.g. wire
break) or F-startup is present, in order to simulate an "error-free" operation without the presence
of a real fail-safe DP standard slave/IO standard device.
In both cases, the quality code (QUALITY) is set to 16#60 and QSIM = 1.
Note
If you have placed more than one F-channel driver for outputs for a fail-safe DP standard slave/
IO standard device, a simulation value is not written if the PASS_ON input of another F-channel
driver for outputs of the fail-safe DP standard slave/IO standard device is "1" and the SIM_ON
input is 0.
Fail-safe value
The fail-safe value 0 is written to the fail-safe DP standard slave/IO standard device when any of
the following occurs:
• A communication error (PROFIsafe)
• A module or channel fault (e.g. wire break)
• An F-startup
• Passivation with PASS_ON = 1
The quality code (QUALITY) is set to 16#48 and QBAD = 1 is set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
Note
With fail-safe DP standard slaves/IO standard devices, channel-specific passivation via PASS_ON
is not possible. If you have placed more than one F-channel driver for outputs for a fail-safe DP
standard slave/IO standard device, the fail-safe value 0 is written for all outputs of the fail-safe
DP standard slave/IO standard device following a passivation with PASS_ON = 1 at one of the F-
channel drivers. If you want to evaluate the QBAD and QUALITY outputs of the other F-channel
drivers in case of PASS_ON = 1 at one of the F-channel drivers, you must address the PASS_ON
inputs of all F-channel drivers at the same time.
If more than one F-channel driver is placed for a fail-safe DP standard slave/IO standard device,
iPar_EN_C is formed from an OR logic operation of all IPAR_EN of the F-channel driver belonging
to the fail-safe DP standard slave/IO standard device.
If passivation is to be carried out when IPAR_EN = 1, you must additionally set variable PASS_ON
= 1.
Note
With fail-safe DP standard slaves/IO standard devices, channel-specific reintegration is not
possible for outputs. When you place more than one F-channel driver for outputs for a fail-safe
DP standard slave/IO standard device, you mut address the ACK_REI inputs of all F-channel
drivers for outputs of the fail-safe DP standard slave/IO standard device at the same time.
WARNING
Parameter assignment input ACK_NEC
Parameter assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is
permissible under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave / IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slaves/IO standard devices
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe DP standard slave/IO standard device that lasts
longer than the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO
standard device, the F-system detects a communication error.
FSW-147
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe DP standard slave/IO standard device. During this time, the fail-safe value 0 is
written to the fail-safe DP standard slave/IO standard device. The quality code (QUALITY) is set
to 16#48 and outputs QBAD = 1 and PASS_OUT = 1 are set.
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.4 F_CH_QBO: F-channel driver for outputs of data type BOOL (with value status) of fail-
safe DP standard slaves and fail-safe standard I/O devices
Function
The F-block is used for signal processing of an output value of data type BOOL (with value status)
of fail-safe DP standard slaves and fail-safe standard I/O devices.
The F-block cyclically writes the output value of the BOOL data type for the output of a fail-safe
DP standard slave/IO standard device addressed at the VALUE output to the associated F-module
driver, which uses a safety message frame in accordance with the PROFIsafe bus profile to
communicate with the fail-safe DP standard slave/IO standard device. The F-module driver is
automatically positioned and interconnected with the CFC function "Generate module drivers".
A quality code, which can take the following states, is generated for the output value that is
written to the fail-safe DP standard slave/IO standard device:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE output.
Addressing
Link the symbol generated with HW Config in the symbol table for the output value of the BOOL
data type with the VALUE output.
Normal value
The process value active at the I input is written to the fail-safe DP standard slave/IO standard
device. The quality code (QUALITY) is set to 16#80.
Simulation
A simulation value can also be written to the fail-safe DP standard slave/IO standard device
instead of the process value active at the I input.
When input SIM_ON = 1 and input SIM_MOD = 0, the value of the SIM_I input is written to the
fail-safe DP standard slave/IO standard device and output at the VALUE output, if no
communication error (PROFIsafe), no module or channel fault (e.g. wire break) and no F-startup
is present. The quality code (QUALITY) is set to 16#60.
When input SIM_ON = 1 and input SIM_MOD = 1, the value of the SIM_I input is output at the
VALUE output even when a communication error (PROFIsafe), module or channel fault (e.g. wire
break) or F-startup is present, in order to simulate an "error-free" operation without the presence
of a real fail-safe DP standard slave/IO standard device.
In both cases, the quality code (QUALITY) is set to 16#60 and QSIM = 1.
Note
If you have placed more than one F-channel driver for outputs for a fail-safe DP standard slave/
IO standard device, a simulation value is not written if the PASS_ON input of another F-channel
driver for outputs of the fail-safe DP standard slave/IO standard device is "1" and the SIM_ON
input is 0.
Fail-safe value
The fail-safe value 0 is written to the fail-safe DP standard slave/IO standard device when any of
the following occurs:
• A communication error (PROFIsafe)
• F-startup
• Passivation with PASS_ON = 1
The quality code (QUALITY) is set to 16#48 and QBAD = 1 is set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
Regardless of the diagnostics enables, each value status provides information about the validity
of the corresponding process value at the output channel.
• Value status (output QBIT) = 1: Valid process value is output
The value status is set to "1" when the process value (from the program logic) can be output
without errors at the output channel.
• Value status (output QBIT) = 0: Substitute value is output
The value status is set to "0" in the following cases:
– The process value (from the program logic) cannot be output at the output channel due
to an error.
to the PROFIsafe Specification V1.30 and higher. Otherwise, a communication error (PROFIsafe)
is detected.
Note
• Parameter assignment input ACK_NEC
Ensure that the parameter assignment of the ACK_NEC input is identical for all F-channel
drivers of a fail-safe DP standard slave/IO standard device.
• Parameter assignment input ACK_REI
Ensure that the ACK_REI input of all F-channel drivers of a fail-safe DP standard slave/IO
standard device is connected with the same signal for the user acknowledgment.
WARNING
Parameter assignment input ACK_NEC
Parameter assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is
permissible under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave / IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slaves/IO standard devices
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe DP standard slave/IO standard device that lasts
longer than the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO
standard device, the F-system detects a communication error.
FSW-147
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe DP standard slave/IO standard device. During this time, the fail-safe value 0 is
written to the fail-safe DP standard slave/IO standard device. The quality code (QUALITY) is set
to 16#48 and outputs QBAD = 1 and PASS_OUT = 1 are set.
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.5 F_PA_AI: Fail-safe channel driver for fail-safe "Transmitter" PA field device
Function
The block is used for signal processing of an analog input value from a fail-safe slot (F-slot) of a
"Transmitter" fail-safe PA field device.
The F-block cyclically reads the process value addressed at the VALUE input with status byte
(quality code) of the fail-safe PA field device from the associated F-module driver that
communicates with the F-slot of a fail-safe PA field device via a safety message frame according
to the PROFIsafe bus profile. The F-module driver is automatically positioned and interconnected
with the CFC function "Generate module drivers".
If the process value exists as a physical quantity, it is made available at the V output. The status
byte (quality code) is made available at the STATUS output and contains information about the
status of the fail-safe PA field device.
A quality code (QUALITY output) that can have the following states is generated for the result
value at the V output:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Addressing
Link the symbol generated with HW Config in the symbol table for the analog input channel with
the VALUE input.
Normal value
If the analog input value received from the fail-safe PA field device is valid, it is output at the V
output. The quality code (QUALITY) is set to 16#80, 16#54, 16#60, 16#68, 16#78 or 16#A4
depending on the quality code received from the fail-safe PA field device.
Simulation
A simulation value can be output at the V output instead of the normal value that is received
from the fail-safe PA field device.
When input SIM_ON = 1, the value of the SIM_V input with quality code (QUALITY) 16#60 is
output. Simulation has the highest priority. QBAD and QSUBS are always set = 0. If the block is
in simulation state due to SIM_ON = 1, then QSIM = 1 is set.
Note
Quality code (QUALITY) 16#60 is also output, if a simulation was started on the fail-safe PA field
device and there is no event for the output of a fail-safe value or last valid value.
The analog input value received from the fail-safe PA field device is output at the V_MOD output
when simulation is switched on. If no communication is possible with the fail-safe PA field device
or if there is still no user acknowledgment after an error, 0.0 is output.
When simulation is switched off, V_DATA is output.
Fail-safe value
When input SUBS_ON = 1, the fail-safe value SUBS_V is output at the V output in the following
cases:
• The analog input value is invalid due to a communication error (PROFIsafe).
• The analog input value is invalid due to a module fault or a fail-safe value is received from the
module.
• A passivation with PASS_ON = 1 is present.
• An F-startup is present.
• FV_ACTIVATED is signaled by the module.
The quality code (QUALITY) is set to 16#48 and QSUBS = 1 and QBAD = 1 are set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
WARNING
Parameter assignment input ACK_NEC
Parameter assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is
permissible under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe PA field device
After power failure of the fail-safe PA field device, which is shorter than the F-monitoring time
set in HW Config for the fail-safe PA field device (see chapter "Run times, F-Monitoring times,
and response times (Page 455)"), automatic reintegration may occur independent of your
parameterization of the ACK_NEC input, as described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe PA field device that lasts longer than the F-
monitoring time set in HW Config for the fail-safe PA field device, the F-system detects a
communication error.
FSW-148
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe PA field device. During this time, the fail-safe value SUBS_V with quality code
(QUALITY output) 16#48 is output irrespective of the parameter assignment at the SUBS_ON
input and outputs QSUBS = 1, QBAD = 1 and PASS_OUT = 1 are additionally set.
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY and STATUS outputs and QBAD.DATA = 1
is set. All other variables are frozen.
A.2.6.6 F_PA_DI: Fail-safe channel driver for fail-safe "Discrete Input" PA field device
Function
The F-block is used for signal processing of a digital input value from a fail-safe slot (F-slot) of a
"Discrete Input" fail-safe PA field device.
The F-block cyclically reads the process value addressed at the I_OUT_D input with status byte
(quality code) of the fail-safe PA field device from the associated F-module drive that
communicates with the F-slot of a fail-safe PA field device via a safety message frame according
to the PROFIsafe bus profile. The F-module driver is automatically positioned and interconnected
with the CFC function "Generate module drivers".
If the process value is valid, the bit (0 to 7) assigned at the BIT_NR input is made available by the
process value (byte) at the Q output. The status byte (quality code) is made available at the
STATUS output and contains information about the status of the fail-safe PA field device.
A quality code (QUALITY output) that can have the following states is generated for the result
value at the Q output:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the I_OUT_D input.
Addressing
Link the symbol generated with HW Config in the symbol table for the process value with the
I_OUT_D input.
Note
If the symbol for the process value that was generated using HW Config in the symbol table was
not generated with the data type "BYTE", but rather with the data type "BOOL", you have to add
a symbol with the data type BYTE yourself to the symbol table.
Normal value
If the digital input value received from the fail-safe PA field device is valid, it is output at the Q
output. The quality code (QUALITY) is set to 16#80, 16#54, 16#60, 16#68, 16#78 or 16#A4
depending on the quality code received from the fail-safe PA field device.
Simulation
A simulation value can be output at the Q output instead of the normal value that is received
from the fail-safe PA field device.
When input SIM_ON = 1, the value of the SIM_I input with quality code (QUALITY) 16#60 is
output. Simulation has the highest priority. QBAD is always set to "0". If the F-block is in
simulation state due to SIM_ON = 1, then QSIM = 1 is set.
Note
Quality code (QUALITY) 16#60 is also output, if a simulation was started on the fail-safe PA field
device and there is no event for the output of a fail-safe value.
When simulation is switched on, the digital input value received from the fail-safe PA field device
is output at the Q_MOD output. If no communication is possible with the fail-safe PA field device
or if there is still no user acknowledgment after an error, 0 is output.
When simulation is switched off, Q_DATA is output.
Fail-safe value
The fail-safe value 0 is output at the Q output in the following cases:
• The digital input value is invalid due to a communication error (PROFIsafe).
• The digital input value is invalid due to a module fault or a fail-safe value is received from the
module.
• A passivation with PASS_ON = 1 is present.
• An F-startup is present.
• FV_ACTIVATED is signaled by the module.
The quality code (QUALITY) is set to 16#48 and QBAD = 1 is set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
WARNING
Parameter assignment input ACK_NEC
Parameter assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is
permissible under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe PA field device
After power failure of the fail-safe PA field device, which is shorter than the F-monitoring time
set in HW Config for the fail-safe PA field device (see chapter "Run times, F-Monitoring times,
and response times (Page 455)"), automatic reintegration may occur independent of your
parameterization of the ACK_NEC input, as described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe PA field device that lasts longer than the F-
monitoring time set in HW Config for the fail-safe PA field device, the F-system detects a
communication error.
FSW-148
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe PA field device. During this time, the substitute value 0 with quality code (QUALITY
output) 16#48 is output and outputs QBAD = 1 and PASS_OUT = 1 are additionally set.
Error handling
• If the BIT_NR input is assigned a value <> 0…7, the fail-safe value 0 is output at the Q output.
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY and STATUS outputs and QBAD.DATA = 1
is set. All other variables are frozen.
See also
Configuring fail-safe PA field devices (Page 65)
A.2.6.7 F_CH_DI: F-channel driver for digital inputs of F-I/O (except fail-safe DP standard
slaves and fail-safe IO standard devices)
Function
The F-block is used for signal processing of a digital input value of an F-I/O (except fail-safe DP
standard slaves and fail-safe IO standard devices). It supports channel-specific passivation and
redundantly configured F-I/O.
The F-block cyclically reads the digital input value of an I/O device addressed at the VALUE input
from the associated F-module driver, which communicates with the F-I/O via a safety message
frame in accordance with the PROFIsafe bus profile. The F-module driver is automatically
positioned and interconnected with the CFC function "Generate module drivers".
If the digital input value is valid, it is made available at the Q output.
For redundantly configured F-I/O, the digital input value of the corresponding channel of the
redundantly configured F-I/O is additionally read.
A quality code (QUALITY output) that can have the following states is generated for the result
value at the Q output:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Note
Forcing the VALUE input
Forcing of the VALUE input is not possible because VALUE is not the value itself but rather a
pointer for the address of the digital input channel.
Addressing
Link the symbol generated with HW Config in the symbol table for the input channel with the
VALUE input.
Note
An inversion of the VALUE input in the CFC editor is ineffective. Use the QN output instead.
Normal value
If the digital input value received from the F-I/O is valid, it is output at the Q output with quality
code (QUALITY) 16#80.
Simulation
A simulation value can be output at the Q output instead of the normal value that is received
from the F-I/O.
When input SIM_ON = 1, the value of the SIM_I input with quality code (QUALITY) 16#60 is
output. Simulation has the highest priority. QBAD is always set to "0". If the F-block is in
simulation state, QSIM = 1 is set.
When simulation is switched on, the digital input value received from the F-I/O is output at the
Q_MOD output. If no communication is possible with the F-I/O or if there is still no user
acknowledgment after an error, 0 is output. When simulation is switched off, Q_DATA is output.
Fail-safe value
The fail-safe value 0 is output at the Q output in the following cases:
• The digital input value is invalid due to a communication error (PROFIsafe).
• The digital input value is invalid due to a module or channel fault (e.g. wire break) or a fail-
safe value is received from the module.
• For redundantly configured F-I/O: Both digital input values are invalid due to a
communication error (PROFIsafe) or a module or channel fault (e.g. wire break).
WARNING
Parameter assignment input ACK_NEC
Parameter assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is
permissible under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the F-I/O
After power failure of the fail-safe I/O, which is shorter than the F-monitoring time set in HW
Config for the fail-safe I/O (see chapter "Run times, F-Monitoring times, and response times
(Page 455)"), automatic reintegration may occur independent of your parameterization of the
ACK_NEC input, as described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe I/O that lasts longer than the F-monitoring time
set in HW Config for the fail-safe I/O, the F-system detects a communication error.
FSW-149
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the F-I/O. During this time, the substitute value 0 with quality code (QUALITY output) 16#48 is
output and outputs QBAD = 1 and PASS_OUT = 1 are additionally set. For redundantly
configured F-I/O, the fail-safe value 0 is output until communication with one of the redundant
F-I/O is established.
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.8 F_CH_DO: F-channel driver for digital outputs of F-I/O (except fail-safe DP standard
slaves and fail-safe IO standard devices)
Function
The F-block is used for signal processing of a digital output value of an F-I/O (except fail-safe DP
standard slaves and fail-safe IO standard devices). It supports channel-specific passivation and
redundantly configured F-I/O.
The F-block cyclically writes the digital output value of a, F-I/O addressed at the VALUE output
to the associated F-module driver, which communicates with the F-I/O via a safety message
frame in accordance with the PROFIsafe bus profile. The F-module driver is automatically
positioned and interconnected with the CFC function "Generate module drivers".
For redundantly configured F-I/O, the digital output value is additionally written to the F-module
driver of the redundantly configured F-I/O.
A quality code that can have the following states is generated for the digital output value that
is written to the F-I/O:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE output.
Addressing
Link the symbol generated with HW Config in the symbol table for the digital output channel
with the VALUE output.
Normal value
The process value active at the I input is written to the F-I/O. The quality code (QUALITY) is set
to 16#80.
Simulation
A simulation value can also be written to the F-I/O instead of the process value active at the I
input.
When input SIM_ON = 1 and input SIM_MOD = 0, the value of the SIM_I input is written to the
F-I/O and output at the VALUE output, if no communication error (PROFIsafe), no module or
channel fault (e.g. wire break) and no F-stop is present.
When input SIM_ON = 1 and input SIM_MOD = 1, the value of the SIM_I input is output at the
VALUE output even when a communication error (PROFIsafe), module or channel fault (e.g. wire
break) or F-startup is present, in order to simulate an "error-free" operation without the presence
of a real F-I/O.
In both cases, the quality code (QUALITY) is set to 16#60 and QSIM = 1 is set.
Fail-safe value
The fail-safe value 0 is written to the F-I/O when any of the following occurs:
• A communication error (PROFIsafe)
• A module or channel fault (e.g. wire break)
• An F-startup
• For redundantly configured F-I/O: a communication error (PROFIsafe), a module or channel
fault (e.g. wire break) or an F-startup on both F-I/O
• Passivation with PASS_ON = 1
The quality code (QUALITY) is set to 16#48 and QBAD = 1 is set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
WARNING
Parameter assignment input ACK_NEC
Parameter assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is
permissible under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the F-I/O
After power failure of the fail-safe I/O, which is shorter than the F-monitoring time set in HW
Config for the fail-safe I/O (see chapter "Run times, F-Monitoring times, and response times
(Page 455)"), automatic reintegration may occur independent of your parameterization of the
ACK_NEC input, as described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe I/O that lasts longer than the F-monitoring time
set in HW Config for the fail-safe I/O, the F-system detects a communication error.
FSW-149
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the F-I/O. During this time, the fail-safe value 0 is written to the F-I/O. The quality code (QUALITY)
is set to 16#48 and outputs QBAD = 1 and PASS_OUT = 1 are set. For redundantly configured F-
I/O, the quality code (QUALITY) is set to 16#80 and outputs QBAD = 0 and PASS_OUT = 0 are set
as soon as the communication with an F-I/O is established.
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.9 F_CH_AI: F-channel driver for analog inputs of F-I/O (except fail-safe DP standard
slaves and fail-safe IO standard devices)
Function
The F-block is used for signal processing of an analog input value of an F-I/O (except fail-safe DP
standard slaves and fail-safe IO standard devices). It supports channel-specific passivation and
redundantly configured I/O.
The F-block cyclically reads the analog input value (raw value) of an F-I/O device addressed at the
VALUE input from the associated F-module driver, which communicates with the F-I/O via a
safety message frame in accordance with the PROFIsafe bus profile. The F-module driver is
automatically positioned and interconnected with the CFC function "Generate module drivers".
If the analog input value is valid, it is adjusted to its physical quantity and made available at the
V output.
For redundantly configured F-I/O, the analog input value of the corresponding channel of the
redundantly configured F-I/O is additionally read.
A quality code (QUALITY output) that can have the following states is generated for the result
value at the V output:
I/Os
*) The inputs ADR_CODE and MODE are automatically supplied when the S7 program is
compiled, and must not be changed. The ADR_CODE input is displayed as changed during the
comparison of safety programs if changes were made to the address or the symbol of the signal
at the VALUE input. The MODE input is displayed as changed if changes in the configuration of
the F-I/O have occurred.
**) These inputs/outputs are not visible. If you use this F-channel driver with an F-module with
HART function, you may make these inputs/outputs visible and use them.
Note
Forcing the VALUE input
Forcing of the VALUE input is not possible because VALUE is not the value itself but rather a
pointer for the address of the digital input channel.
Addressing
Link the symbol generated with HW Config in the symbol table for the analog input channel with
the VALUE input.
Note
The selectable limits must lie below the high limit of the overrange and above the low limit of
the underrange of the F-I/O with analog inputs. Values outside the NAMUR range are thus also
possible, if the F-I/O with analog inputs does not automatically limit the measured values to
these.
Normal value
If the raw value received from the F-I/O is valid, it is adjusted to its physical quantity based on the
VLRANGE and VHRANGE inputs and the measuring range coding and output at the V output with
quality code (QUALITY) = 16#80.
In order for the settings of VLRANGE and VHRANGE to be interconnected with other block
parameters, these settings are written to the OVLRANGE and OVHRANGE outputs.
The calculation algorithm assumes that the input signal is linear.
When VLRANGE = 0.0 and VHRANGE = 100.0, a percentage is output.
If VHRANGE = VLRANGE is set, the input signal of the F-I/O with analog inputs (e.g. mA value) is
output according to the measuring range coding.
A parameter assignment of VHRANGE < VLRANGE is not permitted and results in invalid outputs.
Note
Note on warning "The MODE parameter at F_CH_AI could not be automatically adjusted" in
the compilation log
This message can occur during compilation of the F-program.
Set the "MODE" input of the associated F_CH_AI to 16#303 for measuring range of 4...20 mA and
to 16#202 for a measuring range of 0...20 mA. The MODE input is invisible by default. If you have
not supplied the "MODE" input, the F-Tool sets it to the default measuring range of 4...20 mA
(16#303).
Simulation
A simulation value can be output at the V output instead of the normal value that is received
from the F-I/O.
When input SIM_ON = 1, the value of the SIM_V input with quality code (QUALITY) 16#60 is
output. Simulation has the highest priority. QSIM = 1 is set if the block is in simulation state.
Note
Ensure for the simulation that no invalid floating-point number (NaN) is present when there is
an interconnected SIM_V input. This can be achieved, for example, by using the F-block F_LIM_R.
When VLRANGE = 0.0 and VHRANGE = 100.0, the value at the SIM_V input must be a percentage
value.
So that the states of the QCHF_LL and QCHF_HL outputs can also be simulated, the simulation
value is converted to a raw value based on the VHRANGE und VLRANGE inputs and the
measuring range coding and checked like a raw value received from the F-I/O.
In the case of overflow/underflow or overshoot/undershoot of the active channel error limits
(with measuring range 4-20 mA), the simulation value SIM_V will not be displayed. Instead,
depending on the parameterization at the SUBS_ON input, the substitute value SUBS_V or the
last valid value is output at the V output with quality code (QUALITY) 16#60. QBAD = 1 is set.
When simulation is switched on, the analog input value received from the F-I/O is output as the
process value at the V_MOD output. If no communication is possible with the F-I/O or if there is
still no user acknowledgment after an error, 0.0 is output.
When simulation is switched off, V_DATA is output.
Fail-safe value
When input SUBS_ON = 1, the fail-safe value SUBS_V is output at the V output in the following
cases:
• The analog input value is invalid due to a communication error (PROFIsafe).
• The analog input value is invalid due to a module or channel fault (e.g. wire break) or a fail-
safe value is received from the module.
• The analog input value is invalid due to overflow or underflow.
• The analog input value is invalid due to exceeding or falling below the active channel error
limits (with measuring range 4-20 mA).
• For redundantly configured F-I/O: Both analog input values are invalid due to a
communication error (PROFIsafe) caused by a module or channel error (e.g. wire break), over/
underflow, or exceeding/undershooting of active channel limits (for measuring range 4-20
mA).
• A passivation with PASS_ON = 1 is present.
• An F-startup is present.
The quality code (QUALITY) is set to 16#48 and QSUBS = 1 and QBAD = 1 are set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
WARNING
Parameter assignment input ACK_NEC
Parameter assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is
permissible under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the F-I/O
After power failure of the fail-safe I/O, which is shorter than the F-monitoring time set in HW
Config for the fail-safe I/O (see chapter "Run times, F-Monitoring times, and response times
(Page 455)"), automatic reintegration may occur independent of your parameterization of the
ACK_NEC input, as described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe I/O that lasts longer than the F-monitoring time
set in HW Config for the fail-safe I/O, the F-system detects a communication error.
FSW-149
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the F-I/O. During this time, the fail-safe value SUBS_V with quality code (QUALITY output) 16#48
is output irrespective of the parameter assignment at the SUBS_ON input and outputs QSUBS =
1, QBAD = 1 and PASS_OUT = 1 are additionally set. For redundantly configured F-I/O, the fail-
safe value SUBS_V is output until communication with one of the redundant F-I/O is established.
Error handling
• If measuring range coding at the MODE input is not supported, an invalid raw value is
assumed.
• If an invalid floating-point number (NaN) is present at one of the inputs below or if invalid
floating point numbers (NaN) have resulted from the calculation in the F-block, the
substitute value SUBS_V or the last valid value is output at output V, depending on the state
of QSUBS. If SUBS_V = NaN, the last valid value is output.
– VHRANGE
– VLRANGE
– CH_F_HL, CH_F_LL, with CH_F_ON = 1
– SIM_V, with SIM_ON = 1
– SUBS_V, with SUBS_ON = 1
The QBAD, QCHF_LL and QCHF_HL outputs are set to 1. Quality code (QUALITY) and QSUBS
are formed appropriately for this.
For the SIM_V input, note the information under "Simulation".
For the case that invalid floating-point numbers (NaN) result from the calculation in the F-
block, the following diagnostics event is entered in the diagnostics buffer of the CPU:
– "Safety program: Invalid REAL number in DB" (Event ID 16#75D9).
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.10 F_CH_II: F-Channel driver for inputs of data type INT of fail-safe DP standard slaves
and fail-safe standard I/O devices
Function
The F-block is used for signal processing of an input value of data type INT of fail-safe DP standard
slaves/fail-safe IO standard devices.
The F-block cyclically reads the input value of the data type INT of a fail-safe DP standard slave/
IO standard device from the associated F-module driver, which communicates with the fail-safe
DP standard slave/IO standard device via a safety message frame in accordance with the
PROFIsafe bus profile. The F-module driver is automatically placed and interconnected with the
CFC function "Generate module drivers".
If the input value is valid, it is made available at the V output as F_Real and at the V_INT output
as Integer.
A quality code (QUALITY output) that can have the following states is generated for the result
value at the V output:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Note
Forcing the VALUE input
Forcing of the VALUE input is not possible because VALUE is not the value itself but rather a
pointer for the address of the digital input channel.
Addressing
Link the symbol generated with HW Config in the symbol table for the input value of the INT data
type with the VALUE input.
Normal value
If the input value received from the fail-safe DP standard slave/IO standard device is valid, it is
output at the V and V_INT output with quality code (QUALITY) 16#80.
Simulation
A simulation value can be output at the V and V_INT output instead of the normal value that is
received from the fail-safe DP standard slave/IO standard device.
When input SIM_ON = 1, the value of the SIM_V input with quality code (QUALITY) 16#60 is
output. Simulation has the highest priority. QBAD is always set to "0". QSIM = 1 is set if the block
is in simulation state.
When simulation is switched on, the input value received from the fail-safe DP standard slave/IO
standard device is output at the V_MOD output. If no communication is possible with the fail-
safe DP standard slave/IO standard device or if there is still no user acknowledgment after an
error, 0 is output.
When simulation is switched off, V_DATA is output.
Fail-safe value
When input SUBS_ON = 1, the fail-safe value SUBS_V is output at the V and V_INT output in the
following cases:
• The input value is invalid due to a communication error (PROFIsafe).
• The input value is invalid due to a module fault or a fail-safe value is received from the
module.
• A passivation with PASS_ON = 1 is present.
• An F-startup is present.
• FV_ACTIVATED is reported by the module.
The quality code (QUALITY) is set to 16#48 and QSUBS = 1 and QBAD = 1 are set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
Reintegration
After elimination of an error, the input value received from the fail-safe DP standard slave/IO
standard device can be reintegrated automatically or only after user acknowledgment.
With parameter assignment ACK_NEC = 1, a user acknowledgment is required at the ACK_REI
input after error elimination. With parameter assignment ACK_NEC = 0, reintegration occurs
automatically.
Output ACK_REQ = 1 is used to signal that the error is eliminated and a user acknowledgment
at the ACK_REI input is required for reintegration.
No user acknowledgment is required for reintegration after PASS_ON = 1. For reintegration after
an F-startup following a CPU STOP, no user acknowledgment is required if the F-I/O starts up
using the Slave State (20) "system start" according to the PROFIsafe Specification V1.30 and
higher. Otherwise, a communication error (PROFIsafe) is detected.
WARNING
Parameterization of input ACK_NEC
Assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is permissible
under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave/IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO standard device
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe I/O that lasts longer than the F-monitoring time
set in HW Config for the fail-safe I/O, the F-system detects a communication error.
FSW-147
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe DP standard slave/IO standard device. During this time, the fail-safe value SUBS_V
with quality code (QUALITY output) 16#48 is output irrespective of the parameter assignment
at the SUBS_ON input and outputs QSUBS = 1, QBAD = 1 and PASS_OUT = 1 are additionally set.
Error handling
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.11 F_CH_QII: F-channel driver for inputs of data type INT (with value status) of fail-safe
DP standard slaves and fail-safe standard I/O devices
Function
The F-block is used for signal processing of an input value of the data type INT (with value status)
of fail-safe DP standard slaves/ fail-safe IO standard devices.
The F-block cyclically reads the input value of the data type INT of a fail-safe DP standard slave/
IO standard device from the associated F-module driver, which communicates with the fail-safe
DP standard slave/IO standard device via a safety message frame in accordance with the
PROFIsafe bus profile. The F-module driver is automatically placed and interconnected with the
CFC function "Generate module drivers".
If the input value is valid, it is made available at the V output as F_Real and at the V_INT output
as Integer.
A quality code (QUALITY output) that can have the following states is generated for the result
value at the V output:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Note
Forcing the VALUE input
Forcing of the VALUE input is not possible because VALUE is not the value itself but rather a
pointer for the address of the digital input channel.
Addressing
Link the symbol generated with HW Config in the symbol table for the input value of the INT data
type with the VALUE input.
Normal value
If the input value received from the fail-safe DP standard slave/IO standard device is valid, it is
output at the V and V_INT output with quality code (QUALITY) 16#80.
Simulation
A simulation value can be output at the V and V_INT output instead of the normal value that is
received from the fail-safe DP standard slave/IO standard device.
When input SIM_ON = 1, the value of the SIM_V input with quality code (QUALITY) 16#60 is
output. Simulation has the highest priority. QBAD is always set to "0". QSIM = 1 is set if the block
is in simulation state.
When simulation is switched on, the input value received from the fail-safe DP standard slave/IO
standard device is output at the V_MOD output. If no communication is possible with the fail-
safe DP standard slave/IO standard device or if there is still no user acknowledgment after an
error, 0 is output.
When simulation is switched off, V_DATA is output.
Fail-safe value
When input SUBS_ON = 1, the fail-safe value SUBS_V is output at the V and V_INT output in the
following cases:
• The input value is invalid due to a communication error (PROFIsafe).
• The input value is invalid due to a module fault or a fail-safe value is received from the
module.
• A passivation with PASS_ON = 1 is present.
• An F-startup is present.
• FV_ACTIVATED is reported by the module.
The quality code (QUALITY) is set to 16#48 and QSUBS = 1 and QBAD = 1 are set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
Reintegration
After elimination of an error, the input value received from the fail-safe DP standard slave/IO
standard device can be reintegrated automatically or only after user acknowledgment.
With parameter assignment ACK_NEC = 1, a user acknowledgment is required at the ACK_REI
input after error elimination. With parameter assignment ACK_NEC = 0, reintegration occurs
automatically.
Output ACK_REQ = 1 is used to signal that the error is eliminated and a user acknowledgment
at the ACK_REI input is required for reintegration.
No user acknowledgment is required for reintegration after PASS_ON = 1. For reintegration after
an F-startup following a CPU STOP, no user acknowledgment is required if the F-I/O starts up
using the Slave State (20) "system start" according to the PROFIsafe Specification V1.30 and
higher. Otherwise, a communication error (PROFIsafe) is detected.
Note
• Parameter assignment input ACK_NEC
Ensure that the parameter assignment of the ACK_NEC input is identical for all F-channel
drivers of a fail-safe DP standard slave/IO standard device.
• Parameter assignment input ACK_REI
Ensure that the ACK_REI input of all F-channel drivers of a fail-safe DP standard slave/IO
standard device is connected with the same signal for the user acknowledgment.
WARNING
Parameter assignment input ACK_NEC
Assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is permissible
under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave/IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO standard device
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe I/O that lasts longer than the F-monitoring time
set in HW Config for the fail-safe I/O, the F-system detects a communication error.
FSW-147
to the PROFIsafe Specification V1.30 or higher and the documentation for the fail-safe standard
DP slave/IO standard device.
If more than one F-channel driver is placed for a fail-safe DP standard slave/IO standard device,
iPar_EN_C is formed from an OR logic operation of all IPAR_EN of the F-channel drivers belonging
to the fail-safe DP standard slave/IO standard device.
If passivation is to be carried out when IPAR_EN = 1, you must additionally set variable PASS_ON
= 1.
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe DP standard slave/IO standard device. During this time, the fail-safe value SUBS_V
with quality code (QUALITY output) 16#48 is output irrespective of the parameter assignment
at the SUBS_ON input and outputs QSUBS = 1, QBAD = 1 and PASS_OUT = 1 are additionally set.
Error handling
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.12 F_CH_IO: F-Channel driver for outputs of data type INT of fail-safe DP standard slaves
and fail-safe standard I/O devices
Function
The F-block is used for signal processing of an output value of data type INT of fail-safe DP
standard slaves/fail-safe IO standard devices.
The block cyclically writes the output value of the INT data type for the output of a fail-safe DP
standard slave/IO standard device addressed at the VALUE output to the associated F-module
driver, which uses a safety message frame to communicate with the fail-safe DP standard slave/
IO standard device in accordance with the PROFIsafe bus profile. The F-module driver is
automatically placed and interconnected with the CFC function "Generate module drivers".
A quality code that can have the following states is generated for the output value that is written
to the fail-safe DP standard slave/IO standard device:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Addressing
Link the symbol generated with HW Config in the symbol table for the input value of the INT data
type with the VALUE input.
Normal value
The process value active at the I input is written to the fail-safe DP standard slave/IO standard
device. The quality code (QUALITY) is set to 16#80.
Fail-safe value
The fail-safe value 0 is written to the fail-safe DP standard slave/IO standard device when any of
the following occurs:
• A communication error (PROFIsafe)
• A module fault or a channel fault (such as wire break)
• F-startup
• Passivation with PASS_ON = 1
The quality code (QUALITY) is set to 16#48 and QBAD = 1 is set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
Note
For fail-safe DP standard slaves/IO standard devices, channel-specific passivation is not possible
for outputs using PASS_ON. If you have placed more than one F-channel driver for outputs for
a fail-safe DP standard slave/IO standard device, the fail-safe value 0 is written for all outputs of
the fail-safe DP standard slave/IO standard device following a passivation with PASS_ON = 1 at
one of the F-channel drivers. If you want to evaluate the QBAD and QUALITY outputs of the other
F-channel drivers when PASS_ON = 1 at one of the F-channel drivers, you must control the
PASS_ON inputs of all F-channel drivers synchronously.
Simulation
A simulation value can also be written to the fail-safe DP standard slave/IO standard device
instead of the process value active at the I input.
If the input SIM_ON = 1 and SIM_MOD = 0, the value of the input SIM_I is written to the fail-safe
DP standard slave/IO standard device and output at the VALUE output, if there is no
communication error (PROFIsafe), no module or channel error (such as wire break), and no F-
startup.
If the input SIM_ON = 1 and SIM_MOD = 1, the value of the input SIM_I is output at the VALUE
output even in the event of a communication error (PROFIsafe), a module or channel error (e.g.
wire break), or an F-startup, so that an "error-free" operation can be simulated even without fail-
safe DP standard slave/IO standard device being present.
In both cases, the quality code (QUALITY) is set to 16#60 and QSIM = 1 is set.
Note
If you have placed more than one F-channel driver for outputs for a fail-safe DP standard slave/
IO standard device, a simulation value is not written if the PASS_ON input of another F-channel
driver for outputs of the fail-safe DP standard slave/IO standard device is 1 and the SIM_ON input
is 0.
Reintegration
After elimination of an error, the fail-safe DP standard slave/IO standard device can be
reintegrated automatically or only after user acknowledgment.
With parameter assignment ACK_NEC = 1, a user acknowledgment is required at the ACK_REI
input after error elimination. With parameter assignment ACK_NEC = 0, reintegration occurs
automatically.
Output ACK_REQ = 1 is used to signal that the error is eliminated and a user acknowledgment
at the ACK_REI input is required for reintegration.
No user acknowledgment is required for reintegration after PASS_ON = 1. For reintegration after
an F-startup following a CPU STOP, no user acknowledgment is required if the fail-safe DP
standard slave/IO standard device starts up using the Slave State (20) "system start" according
to the PROFIsafe Specification V1.30 and higher. Otherwise, a communication error (PROFIsafe)
is detected.
Note
For fail-safe DP standard slaves/IO standard devices, channel-specific reintegration is not
possible for outputs using PASS_ON. If you have placed more than one F-channel driver for
outputs for a fail-safe DP standard slave/IO standard device, you must synchronously control the
ACK_REI inputs of all F-channel drivers for outputs of the fail-safe DP standard slave/IO standard
device.
WARNING
Parameter assignment input ACK_NEC
Assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is permissible
under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave/IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO standard device
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe I/O that lasts longer than the F-monitoring time
set in HW Config for the fail-safe I/O, the F-system detects a communication error.
FSW-147
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe DP standard slave/IO standard device. During this time, the fail-safe value 0 is
written to the fail-safe DP standard slave/IO standard device. The quality code (QUALITY) is set
to 16#48 and outputs QBAD = 1 and PASS_OUT = 1 are set.
Error handling
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.13 F_CH_QIO: F-channel driver for outputs of data type INT (with value status) of fail-
safe DP standard slaves and fail-safe standard I/O devices
Function
The F-block is used for signal processing of an output value of the data type INT (with value
status) of fail-safe DP standard slaves/ fail-safe IO standard devices.
The block cyclically writes the output value of the INT data type for the output of a fail-safe DP
standard slave/IO standard device addressed at the VALUE output to the associated F-module
driver, which uses a safety message frame to communicate with the fail-safe DP standard slave/
IO standard device in accordance with the PROFIsafe bus profile. The F-module driver is
automatically placed and interconnected with the CFC function "Generate module drivers".
A quality code that can have the following states is generated for the output value that is written
to the fail-safe DP standard slave/IO standard device:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Addressing
Link the symbol generated with HW Config in the symbol table for the input value of the INT data
type with the VALUE input.
Normal value
The process value active at the I input is written to the fail-safe DP standard slave/IO standard
device. The quality code (QUALITY) is set to 16#80.
Fail-safe value
The fail-safe value 0 is written to the fail-safe DP standard slave/IO standard device when any of
the following occurs:
• A communication error (PROFIsafe)
• F-startup
• Passivation with PASS_ON = 1
The quality code (QUALITY) is set to 16#48 and QBAD = 1 is set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
Simulation
A simulation value can also be written to the fail-safe DP standard slave/IO standard device
instead of the process value active at the I input.
If the input SIM_ON = 1 and SIM_MOD = 0, the value of the input SIM_I is written to the fail-safe
DP standard slave/IO standard device and output at the VALUE output, if there is no
communication error (PROFIsafe), no module or channel error (such as wire break), and no F-
startup.
If the input SIM_ON = 1 and SIM_MOD = 1, the value of the input SIM_I is output at the VALUE
output even in the event of a communication error (PROFIsafe), a module or channel fault (e.g.
wire break), or an F-startup, so that an "error-free" operation can be simulated even without a
real fail-safe DP standard slave/IO standard device being present.
In both cases, the quality code (QUALITY) is set to 16#60 and QSIM = 1 is set.
Note
If you have placed more than one F-channel driver for outputs for a fail-safe DP standard slave/
IO standard device, a simulation value is not written if the PASS_ON input of another F-channel
driver for outputs of the fail-safe DP standard slave/IO standard device is 1 and the SIM_ON input
is 0.
Reintegration
After elimination of an error, the fail-safe DP standard slave/IO standard device can be
reintegrated automatically or only after user acknowledgment.
With parameter assignment ACK_NEC = 1, a user acknowledgment is required at the ACK_REI
input after error elimination. With parameter assignment ACK_NEC = 0, reintegration occurs
automatically.
Output ACK_REQ = 1 is used to signal that the error is eliminated and a user acknowledgment
at the ACK_REI input is required for reintegration.
No user acknowledgment is required for reintegration after PASS_ON = 1. For reintegration after
an F-startup following a CPU STOP, no user acknowledgment is required if the fail-safe DP
standard slave/IO standard device starts up using the Slave State (20) "system start" according
to the PROFIsafe Specification V1.30 and higher. Otherwise, a communication error (PROFIsafe)
is detected.
Note
• Parameter assignment input ACK_NEC
Ensure that the parameter assignment of the ACK_NEC input is identical for all F-channel
drivers of a fail-safe DP standard slave/IO standard device.
• Parameter assignment input ACK_REI
Ensure that the ACK_REI input of all F-channel drivers of a fail-safe DP standard slave/IO
standard device is connected with the same signal for the user acknowledgment.
WARNING
Parameter assignment input ACK_NEC
Assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is permissible
under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave/IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO standard device
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe I/O that lasts longer than the F-monitoring time
set in HW Config for the fail-safe I/O, the F-system detects a communication error.
FSW-147
to the PROFIsafe Specification V1.30 or higher and the documentation for the fail-safe standard
DP slave/IO standard device.
If more than one F-channel driver is placed for a fail-safe DP standard slave/IO standard device,
iPar_EN_C is formed from an OR logic operation of all IPAR_EN of the F-channel drivers belonging
to the fail-safe DP standard slave/IO standard device.
If passivation is to be carried out when IPAR_EN = 1, you must additionally set variable PASS_ON
= 1.
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe DP standard slave/IO standard device. During this time, the fail-safe value 0 is
written to the fail-safe DP standard slave/IO standard device. The quality code (QUALITY) is set
to 16#48 and outputs QBAD = 1 and PASS_OUT = 1 are set.
Error handling
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.14 F_CH_DII: F-Channel driver for inputs of data type DINT of fail-safe DP standard slaves
and fail-safe standard I/O devices
Function
The F-block is used for signal processing of an input value of data type DINT of fail-safe DP
standard slaves/fail-safe IO standard devices.
The F-block cyclically reads the input value of the data type DINT of a fail-safe DP standard slave/
IO standard device from the associated F-module driver, which communicates with the fail-safe
DP standard slave/IO standard device via a safety message frame in accordance with the
PROFIsafe bus profile. The F-module driver is automatically placed and interconnected with the
CFC function "Generate module drivers".
If the input value is valid, it is made available at the V output as F_Real and at the V_DINT output
of data type F_DINT.
Note
When converting values from F_DINT to F_REAL, an inaccuracy of up to 127 results for values >
+16.777.215 or <-16.777.216. That is, the value in F_DINT format is rounded up or down to be
displayed in F_REAL format, since 8 bits of the 32-bit real value are needed to display the
exponent.
A quality code (QUALITY output) that can have the following states is generated for the result
value at the V output:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Note
Forcing the VALUE input
Forcing of the VALUE input is not possible because VALUE is not the value itself but rather a
pointer for the address of the digital input channel.
Addressing
Link the symbol generated with HW Config in the symbol table for the input value of the DINT
data type with the VALUE input.
Normal value
If the input value received from the fail-safe DP standard slave/IO standard device is valid, it is
output at the V and V_INT output with quality code (QUALITY) 16#80.
Simulation
A simulation value can be output at the V and V_DINT output instead of the normal value that
is received from the fail-safe DP standard slave/IO standard device.
When input SIM_ON = 1, the value of the SIM_V input with quality code (QUALITY) 16#60 is
output. Simulation has the highest priority. QBAD is always set to "0". QSIM = 1 is set if the block
is in simulation state.
When simulation is switched on, the input value received from the fail-safe DP standard slave/IO
standard device is output at the V_MOD output. If no communication is possible with the fail-
safe DP standard slave/IO standard device or if there is still no user acknowledgment after an
error, 0 is output.
When simulation is switched off, V_DATA is output.
Fail-safe value
When input SUBS_ON = 1, the fail-safe value SUBS_V is output at the V and V_DINT output in the
following cases:
• The input value is invalid due to a communication error (PROFIsafe).
• The input value is invalid due to a module fault or a fail-safe value is received from the
module.
• A passivation with PASS_ON = 1 is present.
• An F-startup is present.
• FV_ACTIVATED is reported by the module.
The quality code (QUALITY) is set to 16#48 and QSUBS = 1 and QBAD = 1 are set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
Reintegration
After elimination of an error, the input value received from the fail-safe DP standard slave/IO
standard device can be reintegrated automatically or only after user acknowledgment.
With parameter assignment ACK_NEC = 1, a user acknowledgment is required at the ACK_REI
input after error elimination. With parameter assignment ACK_NEC = 0, reintegration occurs
automatically.
Output ACK_REQ = 1 is used to signal that the error is eliminated and a user acknowledgment
at the ACK_REI input is required for reintegration.
No user acknowledgment is required for reintegration after PASS_ON = 1. For reintegration after
an F-startup following a CPU STOP, no user acknowledgment is required if the F-I/O starts up
using the Slave State (20) "system start" according to the PROFIsafe Specification V1.30 and
higher. Otherwise, a communication error (PROFIsafe) is detected.
WARNING
Parameter assignment input ACK_NEC
Assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is permissible
under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave/IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO standard device
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe I/O that lasts longer than the F-monitoring time
set in HW Config for the fail-safe I/O, the F-system detects a communication error.
FSW-147
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe DP standard slave/IO standard device. During this time, the fail-safe value SUBS_V
with quality code (QUALITY output) 16#48 is output irrespective of the parameter assignment
at the SUBS_ON input and outputs QSUBS = 1, QBAD = 1 and PASS_OUT = 1 are additionally set.
Error handling
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.15 F_CH_DIO: F-Channel driver for outputs of data type DINT of fail-safe DP standard
slaves and fail-safe standard I/O devices
Function
The F-block is used for signal processing of an output value of data type DINT of fail-safe DP
standard slaves/fail-safe IO standard devices.
The block cyclically writes the output value of the DINT data type for the output of a fail-safe DP
standard slave/IO standard device addressed at the VALUE output to the associated F-module
driver, which uses a safety message frame to communicate with the fail-safe DP standard slave/
IO standard device in accordance with the PROFIsafe bus profile. The F-module driver is
automatically placed and interconnected with the CFC function "Generate module drivers".
A quality code that can have the following states is generated for the output value that is written
to the fail-safe DP standard slave/IO standard device:
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Addressing
Link the symbol generated with HW Config in the symbol table for the output value of the DINT
data type with the VALUE output.
Normal value
The process value active at the I input is written to the fail-safe DP standard slave/IO standard
device. The quality code (QUALITY) is set to 16#80.
Simulation
A simulation value can also be written to the fail-safe DP standard slave/IO standard device
instead of the process value active at the I input.
If the input SIM_ON = 1 and SIM_MOD = 0, the value of the input SIM_I is written to the fail-safe
DP standard slave/IO standard device and output at the VALUE output, if there is no
communication error (PROFIsafe), no module or channel error (such as wire break), and no F-
startup.
If the input SIM_ON = 1 and SIM_MOD = 1, the value of the input SIM_I is output at the VALUE
output even in the event of a communication error (PROFIsafe), a module or channel error (e.g.
wire break), or an F-startup, so that an "error-free" operation can be simulated even without fail-
safe DP standard slave/IO standard device being present.
In both cases, the quality code (QUALITY) is set to 16#60 and QSIM = 1 is set.
Note
If you have placed more than one F-channel driver for outputs for a fail-safe DP standard slave/
IO standard device, a simulation value is not written if the PASS_ON input of another F-channel
driver for outputs of the fail-safe DP standard slave/IO standard device is 1 and the SIM_ON input
is 0.
Fail-safe value
The fail-safe value 0 is written to the fail-safe DP standard slave/IO standard device when any of
the following occurs:
• A communication error (PROFIsafe)
• A module fault or a channel fault (such as wire break)
• F-startup
• Passivation with PASS_ON = 1
The quality code (QUALITY) is set to 16#48 and QBAD = 1 is set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
Note
For fail-safe DP standard slaves/IO standard devices, channel-specific passivation is not possible
for outputs using PASS_ON. If you have placed more than one F-channel driver for outputs for
a fail-safe DP standard slave/IO standard device, the fail-safe value 0 is written for all outputs of
the fail-safe DP standard slave/IO standard device following a passivation with PASS_ON = 1 at
one of the F-channel drivers. If you want to evaluate the QBAD and QUALITY outputs of the other
F-channel drivers when PASS_ON = 1 at one of the F-channel drivers, you must control the
PASS_ON inputs of all F-channel drivers synchronously.
Reintegration
After elimination of an error, the fail-safe DP standard slave/IO standard device can be
reintegrated automatically or only after user acknowledgment.
Note
For fail-safe DP standard slaves/IO standard devices, channel-specific reintegration is not
possible for outputs using PASS_ON. If you have placed more than one F-channel driver for
outputs for a fail-safe DP standard slave/IO standard device, you must synchronously control the
ACK_REI inputs of all F-channel drivers for outputs of the fail-safe DP standard slave/IO standard
device.
WARNING
Parameter assignment input ACK_NEC
Assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is permissible
under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave/IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO standard device
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe I/O that lasts longer than the F-monitoring time
set in HW Config for the fail-safe I/O, the F-system detects a communication error.
FSW-147
Startup behavior
After an F-startup, communication must first be established between the F-module driver and
the fail-safe DP standard slave/IO standard device. During this time, the fail-safe value 0 is
written to the fail-safe DP standard slave/IO standard device. The quality code (QUALITY) is set
to 16#48 and outputs QBAD = 1 and PASS_OUT = 1 are set.
Error handling
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY output and QBAD.DATA = 1 is set. All other
variables are frozen.
A.2.6.16 F_CH_RI: F-channel driver for inputs of data type "REAL" of fail-safe DP standard slaves
and fail-safe IO standard devices
Function
The F-block is used for signal processing of an input value of data type REAL of fail-safe DP
standard slaves and fail-safe IO standard devices.
The F-block cyclically reads the input value of the data type REAL of a fail-safe DP standard slave/
IO standard device from the associated F-module driver, which communicates with the fail-safe
DP standard slave/IO standard device via a safety message frame in accordance with the
PROFIsafe bus profile. The F-module driver is automatically placed and interconnected with the
CFC function "Generate module drivers".
I/Os
*) The ADR_CODE input is automatically supplied when the S7 program is compiled and must
not be changed. The ADR_CODE input is displayed as changed during the comparison of safety
programs if changes were made to the address or the symbol of the signal at the VALUE input.
Note
Forcing the VALUE input
Forcing of the VALUE input is not possible because VALUE is not the value itself but rather a
pointer for the address of the digital input channel.
Addressing
Link the symbol generated with HW Config in the symbol table for the input value of the REAL
data type with the VALUE input.
Normal value
If the input value received from the fail-safe DP standard slave/IO standard device is valid, it is
output at the Q output with quality code (QUALITY) 16#80.
Simulation
A simulation value is output at the V output instead of the normal value that is received from the
fail-safe DP standard slave/IO standard device.
When input SIM_ON = 1, the value of the SIM_V input with quality code (QUALITY) 16#60 is
output. Simulation has the highest priority. QBAD is always set to "0". QSIM = 1 is set if the block
is in simulation state.
When simulation is switched on, the input value received from the fail-safe DP standard slave/IO
standard device is output at the V_MOD output. If no communication is possible with the fail-
safe DP standard slave/IO standard device or if there is still no user acknowledgment after an
error, 0 is output.
When simulation is switched off, V_DATA is output.
Fail-safe value
When input SUBS_ON = 1, the fail-safe value SUBS_V is output at the V output in the following
cases:
• The analog input value is invalid due to a communication error (PROFIsafe).
• The analog input value is invalid due to a module fault or a fail-safe value is received from the
module.
• A passivation with PASS_ON = 1 is present.
• An F-startup is present.
• FV_ACTIVATED is signaled by the module.
The quality code (QUALITY) is set to 16#48 and QSUBS = 1 and QBAD = 1 are set.
If the output of the fail-safe value is not caused by a passivation, PASS_OUT = 1 is additionally set
for passivation of other channels.
to the PROFIsafe Specification V1.30 and higher. Otherwise, a communication error (PROFIsafe)
is detected.
WARNING
Parameter assignment input ACK_NEC
Parameter assignment of input ACK_NEC = 0 is only allowed if an automatic reintegration is
permissible under safety aspects for the process.
Communication errors (PROFIsafe) must always be acknowledged at the ACK_REI input
independent of ACK_NEC. For this purpose, you must interconnect the ACK_REI input with a
signal generated by an operator input. An interconnection with an automatically generated
signal is not permissible.
FSW-146
WARNING
Startup protection for short-term power failure of the fail-safe DP standard slave/IO
standard device
After power failure of the fail-safe DP standard slave/IO standard device, which is shorter than
the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO standard device
(see chapter "Run times, F-Monitoring times, and response times (Page 455)"), automatic
reintegration may occur independent of your parameterization of the ACK_NEC input, as
described in the parameterization of ACK_NEC = 0.
If automatic reintegration is not permitted for the process involved, you must program a startup
protection for this situation by evaluating the QBAD or PASS_OUT outputs.
In the event of a power failure of the fail-safe DP standard slave/IO standard device that lasts
longer than the F-monitoring time set in HW Config for the fail-safe DP standard slave/IO
standard device, the F-system detects a communication error.
FSW-147
Startup behavior
After an F-startup, the communication between the F-module driver and the fail-safe DP
standard slave/IO standard device must first be established. During this time, the fail-safe value
SUBS_V with quality code (QUALITY output) 16#48 is output irrespective of the parameter
assignment at the SUBS_ON input and outputs QSUBS = 1, QBAD = 1 and PASS_OUT = 1 are
additionally set.
Error handling
An F-STOP is triggered when there is an error in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Response to F-STOP
Following an F-STOP, 16#00 is output at the QUALITY and STATUS outputs and QBAD.DATA = 1
is set. All other variables are frozen.
Overview
A.2.7.1 F_S_BO: Sending of 10 data elements of data type F_BOOL in a fail-safe manner to
another F-Shutdown group.
Function
The F-block sends the data of the data type F_BOOL, that is present at the SD_BO_xx inputs, with
to another F-shutdown group in a fail-safe operation. The data must be received there with the
F-block F_R_BO.
You must interconnect output S_DB with the input of the corresponding F_R_BO that has the
same name.
Note
Initialization
You must not initialize the S_DB output with values <> 0.
I/Os
Error handling
None
A.2.7.2 F_R_BO: Receiving of 10 data elements of data type F_BOOL in a fail-safe manner
from another F-Shutdown group
Function
In a fail-safe operation, the F-block receives 10 data elements of the F_BOOL data type from
another F-switch-off group, and provides them to RD_BO_xx outputs. The data must be sent
from the other F-shutdown group with the F-block F_S_BO. Interconnect the data received at the
RD_BO_xx outputs with other F-blocks for further processing.
You must interconnect the S_DB input with the output of the corresponding F_R_BO that has the
same name.
You must assign the desired F-monitoring time at the TIMEOUT input. For information regarding
the calculation of the F-monitoring time, see section "Run times, F-Monitoring times, and
response times (Page 455)".
I/Os
Substitute values
In the following cases, the substitute values configured at the SUBBO_xx inputs are output at the
RD_BO_xx outputs:
• The associated F_S_BO does not receive updated data within the F-monitoring time
configured at the TIMEOUT input, for example, because there is a partial shutdown for the F-
shutdown group with the associated F_S_BO.
• An F-startup is present.
The SUBS_ON output is set to 1.
Startup behavior
After an F-startup, the data exchange with the associated F_S_BO must first be established.
During this time, the substitute values configured at the SUBBO_xx inputs are output at the
RD_BO_xx outputs, and the SUBS_ON output is set to 1.
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostics event is then entered in the diagnostic buffer of the
F‑CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.7.3 F_S_R: Sending of 5 data elements of data type F_REAL in a fail-safe manner to
another F-Shutdown group
Function
In a fail-safe operation, this F-block sends the data of the data type F_REAL, which is present at
the SD_R_xx inputs, to another F-shutdown group. The data must be received there with the F-
block F_R_R.
You must interconnect the S_DB output with the input of the corresponding F_R_R that has the
same name.
Note
Initialization
You must not initialize the S_DB output with values <> 0.
I/Os
Error handling
None
A.2.7.4 F_R_R: Receiving of 5 data elements of data type F_REAL in a fail-safe manner from
another F-Shutdown group.
Function
In a fail-safe operation, this F-block receives 5 data elements of data type F_REAL from another
F-switch-off group, and provides them to RD_BO_xx outputs. The data must be sent by the other
F-shutdown group with the F-block F_S_R.
You must interconnect the S_DB input with the output of the corresponding F_S_R that has the
same name.
You must assign the desired F-monitoring time at the TIMEOUT input. For information regarding
the calculation of the F-monitoring time, see section "Run times, F-Monitoring times, and
response times (Page 455)".
I/Os
Substitute values
In the following cases, the substitute values configured at the SUBR_xx inputs are output at the
RD_R_xx outputs:
• The associated F_S_R does not receive updated data within the F-monitoring time
configured at the TIMEOUT input, for example, because there is a partial shutdown for the F-
shutdown group with the associated F_S_R.
• An F-startup is present.
The SUBS_ON output is set to 1.
Startup behavior
After an F-startup, the data exchange with the associated F_S_R must first be established. During
this time, the substitute values configured at the SUBR_xx inputs are output at the RD_R_xx
outputs, and the SUBS_ON output is set to 1.
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostics event is then entered in the diagnostic buffer of the
F‑CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
In the first cycle after an F-Startup or a initial run, the F-Block signals with 1 at output COLDSTRT
that an F-Startup was executed. COLDSTRT remains present until the next call of F_START.
The F_START must be called before the evaluating F-Blocks.
Inputs/outputs
Error handling
None
Function
With the F_PSG_M block you have the possibility to split an F-Shutdown group into two F-
Shutdown groups.
In the sequence editor of the CFC editor, place the block F_PSG_M in the last F-Runtime group,
which should belong to the first F-Shutdown group. Any following F-Runtime groups then form
the second F-Shutdown group. The F_PSG_M block is not an F-Block. However, you are still
permitted to place it in F-Runtime groups.
Inputs/outputs:
None
Error handling:
None
See also
F-Shutdown groups (Page 88)
Overview
Function
This F-Block executes the function of an RS Flip-Flops (resetting dominant). The output Q is set
when input R = 0 and input S = 1. The output Q is reset when input R = 1 and input S = 0. Output
Q is reset if 1 is at both inputs. The QN output corresponds to the negated Q output.
Truth table
R S Qn QNn
0 0 Qn-1 QNn-1
0 1 1 0
1 0 0 1
1 1 0 1
Inputs/outputs
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
The F-Block executes the function of an SR Flip-Flop (setting dominant). The output Q is set
when input R = 0 and input S = 1. The output Q is reset when input R = 1 and input S = 0. Output
Q is set if 1 is at both inputs. The QN output corresponds to the negated Q output.
Truth table
R S Qn QNn
0 0 Qn-1 QNn-1
0 1 1 0
1 0 0 1
1 1 1 0
Inputs/outputs
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID16#75DA).
Overview
Function
This F-Block is an edge-controlled up/down counter.
The CV count value responds to rising edges of the CU and CD inputs as well as to the level of the
LOAD and R inputs:
• Rising edge at CU: CV is increased by 1.
When the counter value reaches the upper limit (32.767), it no longer counts up.
• Rising edge at CD: CV is decreased by 1.
When the counter value reaches the lower limit (-32.768), it no longer counts down.
• LOAD = 1: CV is preset with the value of the PV input.
The values at inputs CU and CD are ignored.
• R = 1: CV is reset to 0.
The values at inputs CU, CD, and LOAD are ignored.
If a rising edge is available at both the CU input and the CD input during a cycle, the counter keeps
its current value.
The QU output is set if the count value is greater than or equal to the preset value PV. The QD
output is set if the count value is less than or equal to zero.
Inputs/outputs
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
The F-block generates a pulse with the duration PT at the Q output.
A positive edge at the IN input starts the pulse. Output Q remains set for the time PT, regardless
of the subsequent course of the input signal (in other words even if input IN changes again from
0 to 1 before the time PT has elapsed).
The output ET indicates for how long the output Q has already been set. The maximum value of
the ET output is the value of the PT input. ET output is reset when input IN changes to 0, however,
not before the time PT has expired.
If PT < 0, the outputs Q and ET are reset.
I/Os
Time diagram
User times
WARNING
Fail-safe user times
When determining your response times when using an F-block with time monitoring, take into
account the following timing uncertainties:
• The timing uncertainty familiar from the standard program that arises due to the cyclic
processing
• The tolerance of the internal monitoring of the times in the F‑CPU
– For time values from 10 ms to 50 s: 5 ms
– For time values from > n × 50 s to (n+1) × 50 s: ± (n+1) × 5 ms
FSW-170
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostics event is then entered in the diagnostic buffer of the
F‑CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
The F-block delays a positive edge by the time PT.
A positive edge at the IN input causes a positive edge at output Q after the time PT has expired.
Q then remains set until the IN input changes to 0 again.
If the IN input changes again to 0 before time PT has elapsed, output Q remains set to 0.
The ET output supplies the time that has elapsed since the last positive edge at the IN input. Its
maximum value is the value of the PT input. ET is reset when the IN input changes to 0.
If PT < 0, the outputs Q and ET are reset.
I/Os
Time diagram
User times
WARNING
Fail-safe user times
When determining your response times when using an F-block with time monitoring, take into
account the following timing uncertainties:
• The timing uncertainty familiar from the standard program that arises due to the cyclic
processing
• The tolerance of the internal monitoring of the times in the F‑CPU
– For time values from 10 ms to 50 s: 5 ms
– For time values from > n × 50 s to (n+1) × 50 s: ± (n+1) × 5 ms
FSW-170
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostics event is then entered in the diagnostic buffer of the
F‑CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
The F-block delays a negative edge by the time PT.
A positive edge on input IN causes a positive edge on output Q. A negative edge on input IN
causes a negative edge on output Q after the time PT has elapsed.
If the IN input changes again to 1 before time PT has expired, output Q remains set to 1.
The output ET supplies the time that has elapsed since the last negative edge on input IN,
however its maximum value is the value of the PT input. ET is reset when the IN input changes
to 1.
If PT < 0, the ET output is reset and the Q output corresponds to the IN input.
I/Os
Time diagram
User times
WARNING
Fail-safe user times
When determining your response times when using an F-block with time monitoring, take into
account the following timing uncertainties:
• The timing uncertainty familiar from the standard program that arises due to the cyclic
processing
• The tolerance of the internal monitoring of the times in the F‑CPU
– For time values from 10 ms to 50 s: 5 ms
– For time values from > n × 50 s to (n+1) × 50 s: ± (n+1) × 5 ms
FSW-170
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Overview
Function
The F-block implements a clock generator with adjustable cycle duration, pulse duration, and
interpulse period.
A positive edge at the IN input starts the clock generator. Depending on the setting at the START
input, the clock generator at output Q starts with 0 or 1:
• At input START = 0, the clock generator at output Q initially outputs 0 for the interpulse
period, then for the interpulse period 1.
• At input START = 1, the clock generator at output Q initially outputs 1 for the interpulse
period, then for the interpulse period 0.
The cycle is repeated until IN changes to 0. Then Q = 0 is set.
The output ET always returns the time that has elapsed since the start of a new cycle. The output
RT returns the time remaining until the end of the cycle. ET is reset at the end of a cycle or with
IN = 0. RT is reset to the cycle duration at the end of a cycle or with IN = 0.
Cycle duration, pulse duration, and interpulse period depend on the settings on the OFFTIME,
ONTIME, and PCTON inputs (with 0 ≤ PCTON ≤ 100). OFFTIME, ONTIME, and PCTON must be
specified such that the cycle duration does not exceed the maximum value of the TIME data type.
• For OFFTIME > 0 ms the following applies:
Interpulse period = OFFTIME
Pulse duration = PCTON × ONTIME
Cycle duration = OFFTIME + (PCTON × ONTIME)
• For OFFTIME = 0 ms, the following applies:
Interpulse period = ONTIME - (PCTON × ONTIME)
Pulse duration = PCTON × ONTIME
Cycle duration = ONTIME
While the input IN = 1, the time values at the inputs ONTIME and OFFTIME must not be changed.
I/Os
Time diagram
67$57
,1
4 SHULRG SHULRG
SXOVHGXUDWLRQ SXOVHGXUDWLRQ
LQWHUSXOVHSHULRG LQWHUSXOVHSHULRG LQWHUSXOVHSHULRG
(7
SHULRG
57
SHULRG
User times
WARNING
Fail-safe user times
When determining your response times when using an F-block with time monitoring, take into
account the following timing uncertainties:
• The timing uncertainty familiar from the standard program that arises due to the cyclic
processing
• The tolerance of the internal monitoring of the times in the F‑CPU
– For time values from 10 ms to 50 s: 5 ms
– For time values from > n × 50 s to (n+1) × 50 s: ± (n+1) × 5 ms
FSW-170
Error handling
• If the PCTON input is an invalid floating-point number (NaN) or if there is a negative time at
the ONTIME or OFFTIME inputs, the clock generator switches off (it behaves as with IN = 0).
If there is no invalid floating-point number (NaN) or no negative time left and IN = 1, the clock
generator restarts (it behaves as with positive edge at input IN).
• With PCTON < 0.0, ET and RT are formed as with PCTON = 0, and Q is set to 0. With PCTON >
100.0, ET and RT are formed as with PCTON = 100, and Q is set to 1.
• If the cycle duration exceeds the maximum value of the TIME data type, the behavior of the
F-block is not specified.
• An F-STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
The F-block implements a timer with switch-on delay and hold function.
• The timer is enabled with ENABLE = 1 input. If the input IN = 1, the time at the output ET is
incremented, at most up to the value of the input PT. If IN changes to 0, the time is stopped.
Q is set to 1 as soon as ET = PT. NOTQ corresponds to the negated Q.
• The timer is reset with ENABLE = 0 input. The ET output is set to 0 ms, and Q and NOTQ are
set to 0.
I/Os
Time diagram
(1$%/(
,1
4
1274
(7
37
User times
WARNING
Fail-safe user times
When determining your response times when using an F-block with time monitoring, take into
account the following timing uncertainties:
• The timing uncertainty familiar from the standard program that arises due to the cyclic
processing
• The tolerance of the internal monitoring of the times in the F‑CPU
– For time values from 10 ms to 50 s: 5 ms
– For time values from > n × 50 s to (n+1) × 50 s: ± (n+1) × 5 ms
FSW-170
Error handling
• If there is a negative time at input PT, the timer is stopped (behavior as with IN = 0). If there
is no negative time left and IN = 1, the timer continues to run.
• An F-STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-Block checks whether input IN is within or outside the interval between MIN and MAX. If
input IN lies within the interval, it is passed through to output OUT. If it lies outside of the interval
it is limited to MIN or MAX.
• Is IN > MAX, then an upper limit violation exists. MAX is output to output OUT. OUTU is set
to 1 and OUTL to 0.
• If IN < MIN, then a lower limit violation exists. MIN is output to output OUT. OUT is set to 0
and OUTL to 1.
• If input IN lies between MIN and MAX, IN is passed through to output OUT. OUTU and OUTL
are always set to 0.
Inputs/outputs
Error handling
• Is MIN ≥ MAX, MAX is output at output OUT. OUTU and OUTL are always set to 1.
• An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
The F-Block checks input CLK for the occurrence of a rising edge.
At a rising edge of input CLK, output Q is set to 1 until the next call of the block.
Inputs/outputs
Timing diagram
Startup characteristics
If input CLK has a value of 1 during the first cycle after a F-Startup or an initial run 1, no edge is
detected and output Q is set to 0 until the next rising edge on output CLK.
Error handling
None
Function
This F-Block checks input CLK for the occurrence of a falling edge.
At a falling edge of input CLK, output Q is set to 1 until the next call of the block.
Inputs/outputs
Timing diagram
Startup characteristics
During the first cycle after a F-Start or initial run, no edge is detected.
Error handling
None
Overview
Function
This F-Block adds the inputs IN1 and IN2 and outputs the sum at output OUT.
OUT = IN1 + IN2
Inputs/outputs
Error handling
If an invalid floating-point number (NaN) has been created due to the calculation at output OUT,
the following diagnostic event is entered in the diagnostic buffer of the F-CPU:
• "Safety program: invalid REAL number in DB" (Event ID 16#75D9)
Function
This F-Block subtracts the IN2 input from the IN1 input and outputs the difference at the output
OUT.
OUT = IN1 - IN2
Inputs/outputs
Error handling
If an invalid floating-point number (NaN) has been created due to the calculation at output OUT,
the following diagnostic event is entered in the diagnostic buffer of the F-CPU:
• "Safety program: invalid REAL number in DB" (Event ID 16#75D9)
Function
This F-Block multiplies the inputs IN1 and IN2 and outputs the product at output OUT.
OUT = IN1 × IN2
Inputs/Outputs
Error handling
If an invalid floating-point number (NaN) has been created due to the calculation at output OUT,
the following diagnostic event is entered in the diagnostic buffer of the F-CPU:
• "Safety program: invalid REAL number in DB" (Event ID 16#75D9)
Function
This F-Block divides the IN1 input by the IN2 input and outputs the quotient at output OUT.
OUT = IN1 / IN2
Inputs/Outputs
Error handling
If an invalid floating-point number (NaN) has been created due to the calculation at output OUT,
the following diagnostic event is entered in the diagnostic buffer of the F-CPU:
• "Safety program: invalid REAL number in DB" (Event ID 16#75D9)
See also
Behavior of F-Blocks with floating-point operations in the event of a number range overflow
(Page 230)
Function
This F-Block outputs the absolute value (amount) of input IN at the output OUT.
OUT = | IN |
Inputs/Outputs
Error handling
None
Function
This F-Block compares the inputs IN1, IN2 and IN3 and outputs its maximum at output OUT. All
the inputs are preset with a value of -3,402823e+38 (largest negative REAL number), so that
even a maximum value can be formed from only two inputs.
OUT = MAX {IN1, IN2 , IN3}
Inputs/Outputs
Error handling
• If one of the inputs IN1, IN2 and IN3 is an invalid floating-point number (NaN), an invalid
floating-point number (NaN) is output at output OUT.
• An F-STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-block compares inputs IN1, IN2 and IN3 and outputs the median at the OUT output.
• OUT = Median {IN1, IN2, IN3}
I/Os
Error handling
• If one of the inputs IN1, IN2 and IN3 is an invalid floating-point number (NaN), an invalid
floating-point number (NaN) is output at the OUT output.
• An F_STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-Block compares the inputs IN1, IN2 and IN3 and outputs its minimum at output OUT. All
the inputs are preset with a value of 3,402823e+38 (largest positive REAL number), so that even
a minimum value can be formed from only two inputs.
OUT = MIN {IN1, IN2, IN3}
Inputs/Outputs
Error handling
• If one of the inputs IN1, IN2 and IN3 is an invalid floating-point number (NaN), an invalid
floating-point number (NaN) is output at output OUT.
• An F-STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-Block checks whether input IN is within or outside the interval between MIN and MAX. If
input IN lies within the interval, it is passed through to output OUT. If it lies outside of the interval
it is limited to MIN or MAX.
With the F-Block you can also check the result of a floating-point operation for overflow (±
infinity) and invalid floating-point number (NaN).
• Is IN > MAX or "+ infinity", then an upper limit violation exists. MAX is output at output OUT.
OUTU is set to 1 and OUTL to 0.
• Is IN < MIN or "- infinity", then a lower limit violation exists. MIN is output to output OUT. OUT
is set to 0 and OUTL on 1.
• If IN lies between MIN and MAX, input IN is passed through to output OUT. OUTU and OUTL
are always set to 0.
• If IN is an invalid floating-point number (NaN), the fail-safe value SUBS_INis is output at
output OUT. OUTU and OUTL are always set to 1.
Inputs/Outputs
Error handling
• Is MIN ≥ MAX, MAX is output at output OUT. OUTU and OUTL are always set to 1.
• If one of the inputs IN, MIN, MAX or SUBS_IN is an invalid floating-point number (NaN) the
fail-safe value SUBS_IN is output at output OUT. OUTU and OUTL are always set to 1.
• An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-Block calculates the square root of the input IN and then outputs it at the output OUT.
OUT = √( IN )
The IN input must be positive.
Inputs/outputs
Error handling
• If the calculation at output OUT yields an invalid floating-point number (NaN) or a negative
value is pending at IN, NaN is output to OUT and the following diagnostic event is entered in
the diagnostic buffer of the F-CPU:
– "Safety program: invalid REAL number in DB" (Event ID 16#75D9)
• An F-STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is entered in the diagnostic buffer of the F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-Block calculates the mean value from the inputs INx and outputs the result at output OUT.
OUT = ( IN1 + IN2 + ... + IN8 + IN9 ) / 9
Inputs without a set validity bit VALIDINx are not included in the mean value calculation. If at
least MIN inputs are valid, output VALIDOUT = 1 is set. If less than MIN inputs are valid, output
VALIDOUT = 0 is set.
Inputs/Outputs
Error handling
• If an invalid floating-point number (NaN) has been created due to the calculation at output
OUT, the following diagnostic event is entered in the diagnostic buffer of the F-CPU:
– "Safety program: invalid REAL number in DB" (Event ID 16#75D9)
• An F-STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-Block outputs the mean value of the last N input values IN at output OUT.
OUT = ( INk + INk-1 + … + INk-N+1 ) / N
INk is the current input value.
The number N of input values must fulfill the condition 0 < N < 33.
Inputs/Outputs
Startup characteristics
As long as N input values have not been read in after an F-Start or after an initial run, only the
available input values (< N) are taken into account for averaging. Input values saved before the
start are not taken into account.
Error handling
• If the condition 0 < N < 33 is not fulfilled, the current existing value at input IN is output at
output OUT.
• If an invalid floating-point number (NaN) has been created due to the calculation at output
OUT, the following diagnostic event is entered in the diagnostic buffer of the CPU:
– "Safety program: invalid REAL number in DB" (Event ID 16#75D9)
• An F-STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
A.2.11.13 F_2oo3_R: Middle value of three REAL values with 2oo3 evaluation
Function
This F-block compares the three inputs IN1, IN2 and IN3 independent of the QBADx inputs and
then outputs the median at the OUT output:
• OUT = Median {IN1, IN2, IN3}
If two or more INx inputs are invalid (two or more QBADx = 1), the OUT output is also invalid and
the QBAD output is set to 1.
If the value of one INx input differs from the median of the three inputs IN1, IN2 and IN3 by more
than the assigned tolerance DELTA, a discrepancy is detected and the DISx output is set.
So that, in the case of only one invalid INx input, its value is not output as the median at the OUT
output and thus a discrepancy is detected for the invalid INx input, the fail-safe value for an
invalid INx input must differ from the values typically occurring at the INx input during operation
by more than the tolerance window DELTA.
I/Os
Error handling
• If one of the inputs IN1, IN2 and IN3 is an invalid floating-point number (NaN), an invalid
floating-point number (NaN) is output at the OUT output. DIS1, DIS2 and DIS3 are set to 1.
• If the DELTA input is an invalid floating-point number (NaN) or if calculations in the F-block
result in invalid floating-point numbers (NaN), DIS1, DIS2 and DIS3 are set to 1.
For the case that invalid floating-point numbers (NaN) result from the calculations in the F-
block, the following diagnostics event is entered in the diagnostics buffer of the F-CPU:
– "Safety program: Invalid REAL number in DB" (Event ID 16#75D9).
• An F‑STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostic buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F‑block puts out one of the inputs IN1 or IN2 at the OUT output depending on the QBAD1
input:
• QBAD1 = 0: OUT = IN1
• QBAD1 = 1: OUT = IN2
If both inputs, IN1 and IN2, are invalid (QBAD1 and QBAD2 = 1), the output OUT is also invalid
and the output QBAD is set to 1.
If input IN1 and input IN2 differ by more than the configured tolerance DELTA, a discrepancy is
detected and the output
• DIS1 = 1 is set when IN2 is output at the output OUT
• DIS2 = 1 is set when IN1 is output at the output OUT
I/Os
Error handling
• DIS1 and DIS2 are set to 1 if one of the inputs IN1, IN2 or DELTA is an invalid floating-point
number (NaN) or if invalid floating-point numbers (NaN) resulted from calculations in the F-
block.
In case invalid floating-point numbers (NaN) resulted from the calculations in the F-block, the
following diagnostics event is entered in the diagnostics buffer of the F‑CPU:
– "Safety program: Invalid REAL number in DB" (Event ID 16#75D9).
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Overview
Function
This block checks whether input IN is within or outside the interval between MIN and MAX. If
input IN lies within the interval, it is passed through to output OUT. If it lies outside of the interval
it is limited to MIN or MAX.
• Is IN > MAX, then an upper limit violation exists. MAX is output at output OUT. OUTU is set
to 1 and OUTL to 0.
• If IN < MIN, then a lower limit violation exists. MIN is output to output OUT. OUT is set to 0
and OUTL on 1.
• If IN lies between MIN and MAX, input IN is passed through to output OUT. OUTU and OUTL
are always set to 0.
Inputs/Outputs
Error handling
• Is MIN ≥ MAX, MAX is output at output OUT. OUTU and OUTL are always set to 1.
• An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Overview
Function
The F-block copies the inputs INx to the outputs OUTx at input ENABLE = 1. If ENABLE = 0, the
last valid values are retained at the outputs OUTx.
The OENABLE output corresponds to the ENABLE input.
I/Os
Startup behavior
Following an F-startup, the F-block behaves as follows:
• After a CPU STOP followed by a cold restart of the F‑CPU or at an initial run:
If ENABLE = 0, the (configured) default values are provided at the outputs OUTx. The
CS_USED output is set to 1. CS_USED is reset to 0 as soon as ENABLE changes to 1.
If ENABLE = 1, the INx inputs are copied to the OUTx outputs. The CS_USED output is set to
0.
• After a CPU STOP followed by a restart (warm restart) of the F‑CPU or after an F-STOP followed
by a positive edge at the RESTART input of the F_SHUTDN block:
If ENABLE = 0, the last valid values are provided at the OUTx outputs. The CS_USED output
retains its default value (0).
If ENABLE = 1, the INx inputs are copied to the OUTx outputs. The CS_USED output is set to
0.
Note
Before initial processing of the F-block after an F-startup, the default values are applied to the
outputs OUTx and CS_USED.
WARNING
F-startup
After an F-startup, the safety of the system must not be impaired by applying the
(configured) default values to the outputs OUTx, or by applying the last valid values to the
outputs OUTx.
If necessary, evaluate the CS_USED output to determine whether the (configured) default
values or the last valid values have been provided at the outputs OUTx following an F-
startup. In addition, the default value "0" of CS_USED must not be changed.
If a restart (warm restart) is performed after a cold restart, CS_USED is reset to the default
value (0), even if the default values are currently present at outputs OUTx.
FSW-175
Error handling
An F-STOP is triggered when an error occurs in the safety data format in the associated instance
DB. The following diagnostics event is then entered in the diagnostics buffer of the F‑CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This F-Block outputs one of the IN0 or IN1 inputs, depending on selection input K, at output OUT:
• K = 0: OUT = IN0
• K = 1: OUT = IN1
Inputs/Outputs
Error handling
An F_STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-CPU:
• "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Function
This block outputs one of the inputs INx, depending on selection input K, at output OUT:
• 0 ≤ K ≤ 15 OUT = IN[K]
Inputs/Outputs
Error handling
• If K < 0 or K > 15 0.0 is output at output OUT.
• An F-STOP is triggered when an error occurs in the safety data format in the corresponding
instance DB. The following diagnostic event is then entered in the diagnostic buffer of the F-
CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
Overview
Function/mode of operation
The polygon function is used to approach any analog function by means of a specific number of
intervals. These are defined by their X/Y coordinates. Within the limits of the approach, up to 24
X/Y coordinate pairs can be defined. The number of X/Y coordinate pairs must be assigned via
input N.
The F-Block converts input U to output V following the non-linear characteristic defined by
means of the X/Y coordinate pairs, where X is the value of the analog input and Y the value of
the analog output. Linear interpolation is carried out between the Xn/Yn data points.
When R_CONST = "0", extrapolation occurs outside of the end data points based on the first two
and last two data points.
If R_CONST = "1" and U is less than (<) X1, Y1 is written to output V; similarly, if U is greater than
(>) XN, YN is written to output V.
In the event of an invalid parameter assignment of N (2 > N > 24). V = U is output; the same
applies for an invalid sequence of X/Y coordinate pairs (Xn ≥ Xn+1 for n = 1, 2, ... N-1).
The figure below provides a graphical illustration of the functionality of this F-Block.
9
5B&2167
;Q<Q
;Q<Q
;< 5B&2167
8 ;
!9 < 8!;Q
8
8;
If input value U lies between two X/Y points (Xn < U < Xn+1), V is calculated based on the
following formula:
<Q<Q
9 <Q 8;Q
;Q;Q
V Output value
U Input value
Yn/Xn Data point n
Yn+1/Xn+1 Data point n+1
Inputs/outputs
Error handling
The validity of input signal U is read in via input IERR. This input parameter can be connected to
QBAD of the corresponding input channel driver or of a voter block.
Output QERR is set when one of the following conditions is met:
• U = NaN or one Xn/Yn = NaN
NaN is assigned to output V.
• The calculation yields NaN.
NaN is assigned to output V.
• Parameter assignment error Xn >= Xn+1
U is assigned to output V.
• Input IERR = 1
Integration mode
9
9LQWHUQ
9B+/K\VW
9B+/ 9
7, W
9B//
9B//K\VW
7V
9; 9;8;
7,
Ts Scanning time (elapsed time between 2 processing steps of the F-block) in seconds
TI Integration time in seconds
UX Current input value
The following further parameterizations influence the output value V and its calculation:
• HOLD: If HOLD = 1, the last output value is maintained for V.
• RESET: If there is a positive edge at the RESET, the output value V is reset (V = 0.0).
• EN_INC and EN_DEC: The processing of the integration function also depends on the input
parameters EN_INC and EN_DEC.
– EN_INC and EN_DEC = 1
The step response at output V decreases or increases depending on U.
– EN_INC = 0 and EN_DEC = 1:
The output value V does not increase. This means that, with a positive input value at U,
the last output value is maintained for V.
– EN_INC = 1 and EN_DEC = 0:
The output value V does not decrease. This means that, with negative input value at U, the
last output value is maintained for V.
– EN_INC and EN_DEC = 0:
Regardless of the input value U, the last output value is always maintained for V.
In addition to this functionality, threshold value monitoring is also used:
• V_HL limits V upward.
If Vinternal exceeds V_HL, V is limited to V_HL and, in addition, QVHL = 1.
• V_LL limits V downward.
If Vinternal falls below V_LL, V is limited to V_LL and, in addition, QVLL = 1.
9LQWHUQ
9B+/K\VW
9+/
W
9//
9B//K\VW
49+/
W
49//
W
Figure A-2 Limit monitoring of the F_INT_P
Special cases:
• Hysteresis HYS < 0:
HYS is set internally to 1%. HYS = 0.0 is allowed. In this case, Vintern = V if V_HL is exceeded or
V_LL is undershot.
• V_LL > V_HL:
V_HL is set internally to V_LL. In this case, V always corresponds to V_LL.
• TI <= 0:
TI is set internally to Ts. Thus, the ratio of times in the equation is 1.
The validity of the input signal U is read in via the input IERR. This input parameter can be
connected to QBAD of the corresponding input channel driver or a voter.
If U, V_HL, or V_LL = NaN, the value at output V is maintained. If HYS = NaN, this has no effect
on the formation of V, but only on Vinternal. In this case, Vintern = V. The output QERR is set to 1 with
NaN at one of the input parameters.
Note
Denormalized values at U are processed and no error message is output to V.
TRACK mode
In TRACK mode, the input signal VTRACK is applied to output V. This allows using the TRACK
mode to preset the integration function.
The mode is activated with the digital input TRACK = 1.
If the input signal VTRACK = NaN, NaN is output at the output V. The output QERR is then set to
1.
There is threshold value monitoring also in the TRACK mode:
• V_HL limits V upward.
If VTRACK exceeds V_HL, V is limited to V_HL and, in addition, QVHL = 1.
• V_LL limits V downward.
If VTRACK falls below V_LL, V is limited to V_LL and, in addition, QVLL = 1.
Special cases:
• Hysteresis HYS < 0:
HYS is set internally to 1%. HYS = 0.0 is allowed. In this case, Vintern = V if V_HL is exceeded or
V_LL is undershot. HYS has no influence on the formation of V in the track mode.
• V_LL > V_HL:
V_HL is set internally to V_LL. In this case, V always corresponds to V_LL.
I/Os
Error handling
The validity of the input signal U is read in via the input IERR. This input parameter can be
connected to QBAD of the corresponding input channel driver or a voter.
The QERR output is set in the integration mode when one of the following conditions is met:
• The input signal U = NaN
• Input IERR = 1
The output QERR is set in the TRACK mode when the following condition is met:
• VTRACK = NaN
And, regardless of the mode, if:
• The calculation returned NaN: The output V retains the last value.
• NaN is present at one of the input parameters V_LL, V_HL, HYS
Function/mode of operation
Output value V is calculated according to the following formula:
7V
9; 9; 8;9; 7V
70B/$*
70B/$* W
STOP_RES: When STOP_RES = 1, the arithmetic procedure is stopped. The last output value for
V is held. During the changeover from STOP_RES 1 to 0, output V is reset to input value U.
D_OFF: When D_OFF = 1, the delay time is switched off. This means that input value U is applied
at output V.
Note
Denormalized values at U are processed and do not generate an error message.
Inputs/outputs
Startup characteristics
During startup input value U is applied at output V. V does not behave in accordance with PT1
behavior until a change to input value U has been made subsequently.
Error handling
Output QERR is set when one of the following conditions is met:
• Input signal U is NaN.
• The calculation yields NaN: Output V retains the last value.
• Input IERR = 1
Overview
A.2.15.1 F_DEADTM: Monitoring of changes in F_REAL values at the same measuring point
'HOWD
W
'HOWD
9B'HOWD
1 1 2 1
WUXH
+/
IDOVH
WUXH
//
IDOVH
I/Os
Change of DEADTM
If the deadtime is changed, the correspondingly delayed IN values will be output only after this
time expires for the first time. During the transitional period until the new deadtime expires, the
output values relate to the previous and the new time.
Error handling
The following error handling takes place in case of errors at the input parameters DEADTM,
DELTA, and IN:
• DEADTM:
If the input value is DEADTM = NaN, the output values of OUT and V_DELTA also become NaN
and LL, and HL = 1.
• DELTA/V_DELTA:
If the input value is DELTA = NaN, OUT and V_DELTA is still output and LL and HL is set to 1,
since a comparison with DELTA cannot be made.
If an invalid REAL number (NaN) is determined when calculating V_DELTA, the response is the
same as for a NaN on DELTA.
If a denormalized or infinite value is found for V_DELTA, this value is considered valid. There
is no error handling in this case.
• IN:
A NaN at the input parameter IN is initially considered a normal IN value. When the deadtime
has elapsed and the stored NaN IN value is output to the OUT output, the output values of
OUT and V_DELTA become NaN, LL, and HL = 1.
See also
F_CYC_CO: F-Control block "F-Cycle time monitoring" (Page 427)
Overview
When the S7 program is compiled, F-control blocks are automatically inserted into automatically
generated (F-)system charts and automatically generated (F-)runtime groups with the ID "@F_"
or "@SDW_" and interconnected to generate an executable safety program from the safety
program programmed by the user.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated system chart and an automatically generated runtime group with the
ID "@SDW_", and is interconnected in order to generate an executable safety program from the
user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart and an automatically generated F-runtime group with
the ID "@F_", and is interconnected in order to generate an executable safety program from the
user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart "@F_CycCo-OB3x" and an automatically generated F-
runtime group with the ID "@F_", and is interconnected in order to generate an executable safety
program from the user-programmed safety program.
The F‑CPU monitors the F-cycle time for each cyclic interrupt OB 3x which contains F-runtime
groups. When you first compile the S7 program, you will be prompted via a dialog to enter a value
for the maximum cycle time "MAX_CYC" that may pass between two calls to this OB.
If you have to modify the maximum F-cycle time after the initial compilation of the S7 program,
you need to perform the F-cycle time at the MAX_CYC input of the F_CYC_CO-OB3x block in the
@F_CycCo-OB3x F-system chart.
For information regarding the setting of the F-monitoring time, see section "Run times, F-
Monitoring times, and response times (Page 455)".
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
WARNING
Default setting of the maximum MAX_CYC
The default setting for the maximum F-cycle time is 3000 milliseconds. Check whether this
setting is suitable for your process. Change the defaults, if required.
FSW-177
Error handling
• An F-STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
• If a safety-related error is detected, an F-STOP is triggered. The following diagnostics event
is then entered in the diagnostics buffer of the F‑CPU:
– "Safety program: Error detected in the F_CYC_CO" (Event ID 16#75E1)
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart and an automatically generated F-runtime group with
the ID "@F_", and is interconnected in order to generate an executable safety program from the
user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Error handling
• An F-STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
• If a safety-related error is detected, an F-STOP is triggered. The following diagnostics event
is then entered in the diagnostics buffer of the F‑CPU:
– "Safety program: Error detected in the F_PLK" (Event ID 16#75E1)
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart and an automatically generated F-runtime group with
the ID "@F_", and is interconnected in order to generate an executable safety program from the
user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Error handling
• An F-STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
• If a safety-related error is detected, an F-STOP is triggered. The following diagnostics event
is then entered in the diagnostics buffer of the F‑CPU:
– "Safety program: Error detected in the F_PLK_O" (Event ID 16#75E1)
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart and an automatically generated F-runtime group with
the ID "@F_", and is interconnected in order to generate an executable safety program from the
user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Error handling
• An F-STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
• If a safety-related error is detected, an F-STOP is triggered. The following diagnostics event
is then entered in the diagnostics buffer of the F‑CPU:
– "Safety program: Error detected in the F_TEST" (Event ID 16#75E1)
Function
The F-control block is automatically inserted and interconnected in an automatically generated
F-system chart and in an automatically generated F-runtime group with identifier "@F_" when
the S7 program is compiled. This is done in order to generate an executable safety program from
the safety program created the user.
WARNING
Safety note: Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the "@F_" or "@SDW_" identifier are visible after compiling. You must
not delete these or make any changes to them (unless expressly described).
Failure to observe this may result in errors at the next compile operation.
FSW-176
Note
As of S7 F Systems V6.2 with S7 F Systems Library V1.3 SP2, a change of the "Test cycle time"
parameter (see "CPU > Object properties > H-Parameters") in HW Config and subsequent
compiling of the HW configuration and the safety program causes the collective signature of
your safety program to change.
I/Os
Undocumented I/Os are automatically supplied or interconnected when the S7 program is
compiled and must not be changed. Online changes to undocumented I/Os can trigger an F-
STOP. Remove any manipulations to these I/O by compiling the S7 program again.
Error handling
• An F-STOP is triggered when there is an error in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F-CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
• If a safety-related error is detected, an F-STOP is triggered. The following diagnostics event
is then entered in the diagnostics buffer of the F-CPU:
– "Safety program: Error detected in the F_TESTC (Event ID 16#75E1)
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart "@F_TestMode" and an automatically generated F-
runtime group with the ID "@F_", and is interconnected in order to generate an executable safety
program from the user-programmed safety program.
You can evaluate whether the safety mode is deactivated at the TEST output. The TEST output
has the system attribute S7_m_c. It can, therefore, be monitored directly from an OS. System
displays will thus show if the safety mode is deactivated.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Error handling
• An F-STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
• If a safety-related error is detected, an F-STOP is triggered. The following diagnostics event
is then entered in the diagnostics buffer of the F‑CPU:
– "Safety program: Error detected "(Event ID 16#75E1)
A.3.9 F_SHUTDN: F-Control block "Control of shutdown and F-Startup of the safety
program"
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated system chart "@F_ShutDn" and an automatically generated F-runtime
group with the ID "@F_", and is interconnected in order to generate an executable safety
program from the user-programmed safety program.
With the F-control block, you can configure the shutdown behavior and control the shutdown
and the F-startup of the safety program:
If you have set the "Shutdown behavior" dialog for the behavior in an F-STOP "according to the
parameterization on the F_SHUTDN" in the "Safety program" dialog, you can configure how the
safety program should behave in an F-STOP at the SHUTDOWN input:
• SHUTDOWN = full: Complete shutdown
• SHUTDOWN = partial: Partial shutdown
Note
The parameterization at the SHUTDOWN input may only be changed if no shutdown is active.
With input RQ_FULL = 1, you can trigger a complete shutdown of the safety program.
With a positive edge at the RESTART input, you can perform an F-startup after a shutdown of the
safety program (F-STOP) and elimination of the reasons for the shutdown, if you do not want to
restart (warm restart) or cold restart the F‑CPU.
After an F-startup, the safety program starts up automatically with the initial values. After a
partial shutdown of the safety program, only the F-shutdown groups that were in F-STOP
perform an F-startup. The F-startup may take several seconds to complete initialization with the
initial values. The output EN_INIT = 1 during initialization.
Note
After carrying out an F-startup with a positive edge at the RESTART input, a user
acknowledgment at the ACK_REI input of the F-channel driver is required to reintegrate the fail-
safe I/Os affected by the shutdown.
Output FULL_SD indicates whether there is a complete shutdown of the safety program. The
output SD_TYP can be used for reading out the shutdown behavior set in the "Safety program"
dialog > "Shutdown behavior" dialog.
The SAFE_M output indicates whether the safety program is in safety mode (SAFE_M = 1) or
whether safety mode is deactivated (SAFE_M = 0).
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Message behavior
• When the safety program is shut down (an F-STOP was triggered), the F-control block
F_SHUTDN sets the following messages to the OS using SFB 34 "ALARM_8" as "AS process
control message - error, with single acknowledgment":
– "Safety program: partial shutdown", in case of a partial shutdown of one or more F-
shutdown groups
– "Safety program: complete shutdown", in case of a complete shutdown of the safety
program
• In case of an F-startup following a positive edge at the RESTART input, the following message
is sent to the OS using SFB 31 "NOTIFY_8P" as "Operating message - without
acknowledgment":
– "F-startup safety program on F_SHUTDN"
• When deactivating the safety mode, the following message is sent to the OS using SFB 31
"NOTIFY_8P", both as "Operating message - without acknowledgment" and as "AS process
control message - error, with single acknowledgment". The "AS process control message" is
repeated after expiry of the time MSG_TIME if the safety mode is still deactivated. There is no
repetition with MSG_TIME = 0.
– "Safety mode deactivated"
You can switch off the messages by setting the ALARM_EN input to 0 if no suitable signaling
system is available.
See also
F-STOP (Page 97)
F-Startup and reprogramming restart/startup protection (Page 95)
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated system chart and an automatically generated runtime group with the
ID "@F_", and is interconnected in order to generate an executable safety program from the user-
programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Error handling
If you have configured "partial shutdown" for the shutdown behavior and a safety-related error
is detected in an F-shutdown group, the affected F-shutdown group is switched off (an F-STOP
is triggered). The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
• "Safety program: Shut down of a fail-safe runtime group" (Event ID 16#7xDD)
Function
The F-control block F_PS_12 is used for PROFIsafe devices with the profile before V2.6.1 or
V2.6.1 LP (Loop-back Extension Protocol).
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart "@F_(x)" and an automatically generated F-runtime
group with the ID "@F_", and is interconnected in order to generate an executable safety
program from the user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
DIAG output
At the DIAG output, non-fail-safe information about errors in the safety-related communication
(communication error) between the F‑CPU and the fail-safe I/Os is provided by the PROFIsafe
safety protocol for servicing purposes. You can read out this information on your ES/OS or
evaluate it in your standard user program if necessary.
Structure of DIAG
Error handling
• An F-STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
• The safety function requires that when passivating the entire F-I/O or individual channels of
an F-I/O, substitute values are used instead of the process values in the following cases:
– For an F-startup
– When there are errors in safety-related communication (communication errors) between
F‑CPU and F-I/Os via the safety protocol according to PROFIsafe
– When F-I/O or channel faults are detected, for example, wire break, short-circuit, or
discrepancy error
– As long as you activate passivation of fail-safe I/Os on the F-channel driver at PASS_ON
input
The following diagnostic events are then entered in the F‑CPU diagnostic buffer (except for
F-startup):
– "Fail-safe I/O input channel passivated / fail-safe I/O input channel depassivated" (Event ID
16#7xE3)
– "Fail-safe I/O output channel passivated / fail-safe I/O output channel depassivated" (Event
ID 16#7xE4)
– "Fail-safe I/O passivated / fail-safe I/O depassivated" (Event ID 16#7xE5)
Function
The F-control block F_PS_13 is used for PROFIsafe devices with the profile V2.6.1 XP (Expanded
Protocol).
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart "@F_(x)" and an automatically generated F-runtime
group with the ID "@F_", and is interconnected in order to generate an executable safety
program from the user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
DIAG output
At the DIAG output, non-fail-safe information about errors in the safety-related communication
(communication error) between the F‑CPU and the fail-safe I/Os is provided by the PROFIsafe
safety protocol for servicing purposes. You can read out this information on your ES/OS or
evaluate it in your standard user program if necessary.
Structure of DIAG
Error handling
• An F-STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
• The safety function requires that when passivating the entire F-I/O or individual channels of
an F-I/O, substitute values are used instead of the process values in the following cases:
– For an F-startup
– When there are errors in safety-related communication (communication errors) between
F‑CPU and F-I/Os via the safety protocol according to PROFIsafe
– When F-I/O or channel faults are detected, for example, wire break, short-circuit, or
discrepancy error
– As long as you activate passivation of fail-safe I/Os on the F-channel driver at PASS_ON
input
The following diagnostic events are then entered in the F‑CPU diagnostic buffer (except for
F-startup):
– "Fail-safe I/O input channel passivated / fail-safe I/O input channel depassivated" (Event ID
16#7xE3)
– "Fail-safe I/O output channel passivated / fail-safe I/O output channel depassivated" (Event
ID 16#7xE4)
– "Fail-safe I/O passivated / fail-safe I/O depassivated" (Event ID 16#7xE5)
Function
The F-control block F_PS_40 is used for PROFIsafe devices with the profile V2.6.1 XP (Expanded
Protocol).
F_PS_40 is suitable for IO standard devices with more than 13 and a max. of 40 bytes of net data,
e.g. for the connection of ET 200SP HA 8 F-AI HART.
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart "@F_(x)" and an automatically generated F-runtime
group with the ID "@F_", and is interconnected in order to generate an executable safety
program from the user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
DIAG output
At the DIAG output, non-fail-safe information about errors in the safety-related communication
(communication error) between the F‑CPU and the fail-safe I/Os is provided by the PROFIsafe
safety protocol for servicing purposes. You can read out this information on your ES/OS or
evaluate it in your standard user program if necessary.
Structure of DIAG
Error handling
• An F-STOP is triggered when an error occurs in the safety data format in the associated
instance DB. The following diagnostics event is then entered in the diagnostics buffer of the
F‑CPU:
– "Safety program: Error in safety data format in DB" (Event ID 16#75DA)
• The safety function requires that when passivating the entire F-I/O or individual channels of
an F-I/O, substitute values are used instead of the process values in the following cases:
– For an F-startup
– When there are errors in safety-related communication (communication errors) between
F‑CPU and F-I/Os via the safety protocol according to PROFIsafe
– When F-I/O or channel faults are detected (for example, wire break, short-circuit, or
discrepancy error)
– As long as you activate passivation of fail-safe I/Os on the F-channel driver at PASS_ON
input
The following diagnostic events are then entered in the F‑CPU diagnostic buffer (except for
F-startup):
– "Fail-safe I/O input channel passivated / fail-safe I/O input channel depassivated" (Event ID
16#7xE3)
– "Fail-safe I/O output channel passivated / fail-safe I/O output channel depassivated" (Event
ID 16#7xE4)
– "Fail-safe I/O passivated / fail-safe I/O depassivated" (Event ID 16#7xE5)
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated system chart and an automatically generated runtime group with the
ID "@SDW_", and is interconnected in order to generate an executable safety program from the
user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated system chart and an automatically generated runtime group with the
ID "@F_", and is interconnected in order to generate an executable safety program from the user-
programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated system chart and an automatically generated runtime group at the
start of the run sequence in the OB 100 with the ID "@F_", and is interconnected in order to
generate an executable safety program from the user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart and an automatically generated F-runtime group with
the ID "@F_", and is interconnected in order to generate an executable safety program from the
user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Function
When the S7 program is compiled, the F-control block is automatically inserted into the S7
program in order to generate an executable safety program from the user-programmed safety
program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
Function
When the S7 program is compiled, the F-control block is automatically inserted into the S7
program in order to generate an executable safety program from the user-programmed safety
program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated system chart and an automatically generated F-runtime group with the
ID "@F_", and is interconnected in order to generate an executable safety program from the user-
programmed safety program.
WARNING
Safety note: Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
Function
When the S7 program is compiled, the F-control block is automatically inserted into an
automatically generated F-system chart and an automatically generated F-runtime group with
the ID "@F_", and is interconnected in order to generate an executable safety program from the
user-programmed safety program.
WARNING
Safety instruction - Do not change automatically inserted F-control blocks
Automatically inserted F-control blocks and automatically inserted (F-)system charts and
(F-)runtime groups with the ID "@F_" or "@SDW_" are visible after compiling. You must not
delete them or change them (except for expressly described changes).
Failure to do so may result in errors in the next compilation.
FSW-176
I/Os
Undocumented connections are not automatically supplied or interconnected during
compilation of the S7 program and you must not change them. Online changes to
undocumented connections can result in an F-STOP. Remedy manipulations at such connections
by compiling the S7 program again.
A.4.1 Differences between the F-libraries S7 F Systems Library V1.3 and V1.3 SP1
The following section describes the differences between the F-library S7 F Systems Library V1.3
and V1.3 SP1. Only the user-relevant changes of the F-blocks that affect the function, including
start-up behavior and error handling, and the I/Os of the F-block are described.
For information on the runtimes of the F-blocks, refer to section "Run times, F-Monitoring times,
and response times (Page 455)", You can obtain changes in the memory requirement, if needed,
from SIMATIC Manager.
Note the changes of the F-blocks following a migration to a new version of the F-library and
check whether the described changes have any effects on the behavior of your safety program.
Note also section "Acceptance test of safety program changes (Page 221)".
Signatures/initial value signatures for the F-blocks
You can find the signatures/initial value signatures for the F-blocks of the S7 F systems V1.3 SP1
in Annex 1 of the Certificate Report.
Even if "None" is indicated for the change, the signatures/initial value signatures of an F-block
may have changed compared to a previous version of the F-library, e.g. due to code
optimizations, changes in diagnostics buffer entries or changes in the internal interaction of the
F-blocks.
A.4.2 Differences between the F-libraries S7 F Systems Library V1.3 SP1 and SP2
Overview
The following description points out the differences between the F-library S7 F Systems Library
V1.3 SP1 and V1.3 SP2.
Only the user-relevant changes of the F-blocks that affect the function, including start-up
behavior and error handling, and the I/Os of the F-block are described.
For information on the runtimes of the F-blocks, refer to section "Run times, F-Monitoring times,
and response times (Page 455)",
You can obtain changes in the memory requirement, if needed, from SIMATIC Manager.
Note the changes of the F-blocks following a migration to a new version of the F-library and
check whether the described changes have any effects on the behavior of your safety program.
Note also section "Acceptance test of safety program changes (Page 221)".
Note
As of S7 F/FH Systems V6.2 with Lib V1.3 SP2, a change of the "Test cycle time" parameter (CPU
> Object properties > H-Parameters) in HW Config and subsequent compiling of the HW
configuration and safety program causes the collective signature of your safety program to
change.
A.4.3 Differences between the F-libraries S7 F Systems Library V1.3 SP2 and SP3
Overview
The following description points out the differences between the F-library S7 F Systems Library
V1.3 SP2 and V1.3 SP3.
Only the user-relevant changes of the F-blocks that affect the function, including start-up
behavior and error handling, and the I/Os of the F-block are described.
For information on the runtimes of the F-blocks, refer to section "Run times, F-Monitoring times,
and response times (Page 455)",
You can obtain changes in the memory requirement, if needed, from SIMATIC Manager.
Note the changes of the F-blocks following a migration to a new version of the F-library and
check whether the described changes have any effects on the behavior of your safety program.
Note also section "Acceptance test of safety program changes (Page 221)".
Note
As of S7 F/FH Systems V6.2 with Lib V1.3 SP2, a change of the "Test cycle time" parameter (CPU
> Object properties > H-Parameters) in HW Config and subsequent compiling of the HW
configuration and safety program causes the collective signature of your safety program to
change.
A.4.4 Differences between the F-libraries S7 F Systems Library V1.3 SP3 and V1.3 SP4
Overview
The following description points out the differences between the F-library S7 F Systems Library
V1.3 SP3 and V1.3 SP4.
Only the user-relevant changes of the F-blocks that affect the function, including start-up
behavior and error handling, and the I/Os of the F-block are described.
For information on the runtimes of the F-blocks, refer to section "Run times, F-Monitoring times,
and response times (Page 455)",
You can obtain changes in the memory requirement, if needed, from SIMATIC Manager.
Note the changes of the F-blocks following a migration to a new version of the F-library and
check whether the described changes have any effects on the behavior of your safety program.
Note also section "Acceptance test of safety program changes (Page 221)".
Note
As of S7 F/FH Systems V6.2 with Lib V1.3 SP2, a change of the "Test cycle time" parameter (CPU
> Object properties > H-Parameters) in HW Config and subsequent compiling of the HW
configuration and safety program causes the collective signature of your safety program to
change.
F-blocks Delta download- Change of S7 F Systems Library V1.3 SP3 to V1.3 SP4
capable
F_PS_40 Yes New F-block in S7 F Systems Library V1.3 SP4
F_PS_13 Yes Code optimizations
F_CH_AI No Support for F_PS_40
F_PS_MIX Yes Support for F_PS_40
F_SWC_BO No Quality improvements
F_CHG_BO - Block no longer required (SDW is no longer supported)
F_CHG_R - Block no longer required (SDW is no longer supported)
F_QUITES - Block no longer required (SDW is no longer supported)
Standard Delta download- Change of S7 F Systems Library V1.3 SP3 to V1.3 SP4
blocks capable
F_MS_XCH Yes New block in S7 F Systems Library V1.3 SP4
See also
Safety engineering in SIMATIC S7 System Manual (http://support.automation.siemens.com/WW/
view/en/12490443)
Checklist
Key:
• Stand-alone section references refer to this documentation.
• "SM" refers to the "Safety Engineering in SIMATIC S7 (http://
support.automation.siemens.com/WW/view/en/12490443)" system manual.
• "F-SMs manual" refers to the "Automation System S7-300 Fail-Safe Signal Modules (http://
support.automation.siemens.com/WW/view/en/19026151)" manual.
• "ET 200S manual" refers to the "Distributed I/O System ET 200S, Fail-Safe Modules (http://
support.automation.siemens.com/WW/view/en/12490437)" manual.
• "ET 200SP manual" refers to the "SIMATIC ET 200SP Manual Collection (https://
support.industry.siemens.com/cs/ww/en/view/84133942)" manual collection.
• "HB ET 200SP HA" refers to the "ET 200SP HA Distributed I/O system (https://
support.industry.siemens.com/cs/ww/en/view/109781000)" manual.
• "ET 200pro manual" refers to the "ET 200pro Distributed I/O Device - Fail-Safe Modules (http://
support.automation.siemens.com/WW/view/en/22098524)" manual.
• "ET 200eco manual" refers to the "ET 200eco Distributed I/O Station Fail-safe I/O Module
(http://support.automation.siemens.com/WW/view/en/19033850)" manual.
• "ET 200iSP manual" refers to the "ET 200iSP Distributed I/O Device - Fail-safe Modules (http://
support.automation.siemens.com/WW/view/en/47357221)" manual.
Virtual environments
In information technology, a virtual machine refers to the emulation of a real computer system
(hardware) on an abstraction layer which can execute multiple virtual machines at the same
time. The abstraction layer is known as a hypervisor. Well-known manufacturers are Microsoft
(Microsoft Hyper-V), VMware (VMware vSphere Hypervisor (ESXi)) and Citrix (XenServer).
A virtual environment enables, for example, very convenient test environments, simplifies the
transfer of systems and saves space.
Service Pack 4 for STEP 7 V5.5 and higher*1): Industry Online Support, entry ID 93842005 (https://
• VMware vSphere Hypervisor ESX(i) 5.5 support.industry.siemens.com/cs/ww/en/view/93842005)
Note
Siemens provides preconfigured virtualization solutions with its "SIMATIC Virtualization as a
Service".
You can find additional information under the following entry: Industry Online Support, entry ID
3095 (https://support.industry.siemens.com/sc/ww/en/sc/3095)
WARNING
Using virtual environments on ES/OS
Note that a HYPERVISOR or the client software of a HYPERVISOR is not permitted to perform
functions that reproduce recorded frame sequences with correct time behavior on a network
with connected plants.
Ensure that this is the case when using the following functions, for example:
• Reset of captured states (snapshots) of the virtual machine (VM)
• Suspending and resuming the VM (suspend & resume)
• Replay of recorded sequences in the VMs (replay)
• Moving of VMs between hosts in productive operation (e.g. Fault Tolerance (FT))
• Digital twins of VMs in the virtual environment
If in doubt, disable these functions in the settings (HYPERVISOR administrator console).
FSW-301
Note
How do you use VMware vSphere Client to assign operator permissions for a virtual machine?
Industry Online Support, entry ID 90142228 (https://support.industry.siemens.com/cs/ww/en/
view/90142228)
Note
How do you use a controller to load from a VM (VMware Player/Workstation) via a PROFIBUS/MPI
CP connected via PCI or PCIe?
Industry Online Support, entry ID 100450795 (https://support.industry.siemens.com/cs/ww/en/
view/100450795)
Note
Configure Hyper-V for Role-based Access Control
https://technet.microsoft.com/en-us/library/dd283076(v=ws.10).aspx (https://
technet.microsoft.com/en-us/library/dd283076(v=ws.10).aspx)
WARNING
Remote access from higher-level control room and Engineering Center
Make sure that the plants are clearly distinguished from other accessible plants connected on
the network before you start making changes or start operation.
Examples:
• Specify optical distinguishing marks (plant designation) at your operator stations.
• Specify unique descriptions for title and project in the properties of the Safety Matrix for all
the plants connected on the network and check this before starting operation.
• Specify Active Directory access limitations in the corporate directory service and use
SIMATIC Logon for accessing projects and for logging on to operator stations.
FSW-302
WARNING
The "S7 F Systems HMI" and "Safety Matrix Viewer" functionality makes changes in the
safety program during RUN mode.
As a result, the following additional safety measures are required:
• Make sure that operations that could compromise plant safety cannot be carried out. You
can use the EN_SWC input for this purpose, for example, by controlling it with a key-
operated switch or on a process-specific basis via the safety program.
• Make sure that only authorized persons can carry out operations.
Examples:
– Control the EN_SWC input with a key-operated switch.
– Set up access protection at operator stations where process operation can be performed.
FSW-303
Carefully choose the persons who may have remote access to the plant and authorize them
accordingly:
• Locally on the target computer "Remote Desktop User" (Workgroups)
OR
• In the Active Directory, and inherit permissions to the target computer "Remote Desktop
User" (Domain).
As required, make a distinction in the WinCC authorizations between:
• Process control
• Higher process control
• Safety application control (SIF)
The following figure shows a schematic diagram of the engineering station and operator station
in projects with safety applications
5IJO$MJFOU
3FNPUFPQFSBUJPOUFSNJOBM
DPOOFDUFEWJBSFNPUFQSPUPDPM
UP04BOE&44UBUJPO
1SPKFDU 3VOUJNF
8JO$$
'BDFQMBUF
.04
3PVUFS
'JSFXBMM
044UBUJPO
1SPKFDU &OHJOFFSJOH
)BSEXBSFDPOHVSBUJPO
$'$
4UBOEBSEQSPHSBN
4'4ZTUFNT-JCSBSZ 4QSPHSBN
4BGFUZQSPHSBN
4BGFUZQSPHSBN
&44UBUJPO1(
4UBOEBSEQSPHSBN
"4
'*0
4UBOEBSE*0
ES station
OS station
Thin Client
Note
SIMATIC Process Control System PCS 7 - PC Configuration (V9.0 SP1) - Section 5.8.2
Industry Online Support; entry ID 109754983 (https://support.industry.siemens.com/cs/ww/en/
view/109754983)
Note
Whitepaper; Security concept PCS 7 and WinCC - Basic document
Industry Online Support; entry ID 60119725 (https://support.industry.siemens.com/cs/ww/en/
view/60119725)
Note
How do you access WinCC and PCS 7 plants with "RealVNC"?
Industry Online Support, entry ID 55422236 (https://support.industry.siemens.com/cs/ww/en/
view/55422236)
Note
IP-based Remote Networks
Industry Online Support, entry ID 26662448 (https://support.industry.siemens.com/cs/ww/en/
view/26662448)
C.3.1 Example 1
The following figure shows a virtual environment for engineering and plant operation of safety
applications including remote control.
5IJO$MJFOU 5IJO$MJFOU
&OHJOFFSJOH '5PPM 3FNPUF0QFSBUJPO"DDFTT
BOE1MBOU0QFSBUJPO UPQMBOU
.04 FH3FNPUF%FTLUPQ$POOFDUJPO
$PSQPSBUF/FUXPSL $/
'JSFXBMM
4$"-"/$&4
-PDBM$POUSPM3PPN -PDBM1MBOU"
5IJO$MJFOU 5IJO$MJFOU
&OHJOFFSJOH '5PPM 71/5VOOFM
BOE1MBOU0QFSBUJPO PWFS8"/
8JO$$ 45&1
.04
'JSFXBMM
4$"-"/$&4
5FSNJOBMCVT
)ZQFSWJTPS
FH7.XBSFW4QIFSF&49J )PTUXJUI)ZQFSWJTPS
4FUVQPG7JSUVBM&OWJSPONFOU
1MBOUCVT
C.3.2 Example 2
The following figure shows a configuration for remote access for configuration and maintenance
operations as well as plant operation from higher-level control room in real and virtual
environments.
&RUSRUDWH1HWZRUN &1
)LUHZDOO
6&$/$1&(6
/RFDO&RQWURO5RRP
7KLQ&OLHQW 7KLQ&OLHQW
(QJLQHHULQJ )7RRO 9317XQQHO 7R/RFDO3ODQW%
DQG3ODQW2SHUDWLRQ :LQ&& 67(3 RYHU:$1
026
/RFDO3ODQW$
)LUHZDOO
6&$/$1&(6
7HUPLQDOEXV
+\SHUYLVRU
HJ90ZDUHY6SKHUH(6;L +RVWZLWK+\SHUYLVRU
SetupVirtualization Server
of Virtual Environment
3ODQWEXV
$PSQPSBUF/FUXPSL $/
-PDBM$POUSPM3PPN
5P-PDBM1MBOU"
4UBUJPO 04 4UBUJPO &4
71/5VOOFM
:LQ&& 67(3 PWFS8"/ -PDBM1MBOU#
&OHJOFFSJOH '5PPM BOE
1MBOU0QFSBUJPO
.04
Firewall
5FSNJOBMCVT SCALANCE S
C.5 References
1oo1 evaluation
Type of sensor evaluation: For 1oo1 evaluation, a non-redundant sensor is connected via one
channel to the F-I/O.
1oo2 evaluation
Type of sensor evaluation: In the case of 1oo2 evaluation, two input channels are occupied
either by one two-channel sensor or by two single-channel sensors. The input signals are
compared internally for equivalence or non-equivalence.
Access protection
Fail-safe systems must be protected against dangerous, unauthorized access. Access protection
for F‑systems is implemented by assigning two passwords (for the F‑CPU and for the safety
program).
Bypass
Bypass function that is normally used for maintenance purposes (e.g., for checking effect logic,
replacing a sensor).
Category
Category according to ISO 13849-1:2015 or EN ISO 13849-1:2015
S7 F systems can be used in safety mode up to Category 4.
Channel error
Channel-specific fault, such as a wire break or a short-circuit
CMT/CM
A control module type "CMT" is created as a type in a library. Changes to the type can be
transferred to associated instances, the so-called control modules "CM" in the program via
synchronization.
A control module "CM" is the instance of a CMT in the program.
Collective signatures
Collective signatures uniquely identify a specific state of the safety program. They are important
for the preliminary acceptance test of the safety program, e.g., by experts.
CRC
Cyclic Redundancy Check, see CRC signature
CRC signature
The validity of the process values in the safety message frame, the accuracy of the assigned
address references, and the safety-related parameters are validated by means of the CRC
signature in the safety message frame.
Depassivation
See reintegration
Discrepancy time
Assignable time for the discrepancy analysis. If the discrepancy time is set too high, the fault
detection time and fault reaction time are extended unnecessarily. If the discrepancy time is set
too low, availability is decreased unnecessarily because a discrepancy error is detected when, in
reality, no error exists.
ES
Engineering Station (ES): Configuration system that enables convenient, visual adaptation of
the process control system to the task at hand.
Fail-safe modules
ET 200S modules that can be used for safety-related operation (see also safety mode) in the ET
200S or ET 200pro distributed I/O system. These modules are equipped with integrated safety
functions. They behave according to IEC 61784-1:2019 CP 3/1 and CP 3/3 standard and the
PROFIsafe bus profile.
Fail-safe systems
Fail-safe systems (F-systems) are characterized by remaining in a safe state or immediately
assuming another safe state when specific failures occur.
F-block type
F-block types are ready-made program sections that can be used in a CFC chart (e.g., fail-safe
multiplexer F_MUX2_R, etc.). Block instances are generated on insertion. Any number of block
instances can be created by one F-block type.
The F-block type specifies the characteristics (algorithm) for all applications of this type. The
name of the F-block type is specified in the symbol table.
F-blocks
The following blocks are designated as F-blocks:
• Blocks selected by the user from an F‑library.
• Blocks that are automatically added in the safety program.
F-CPU
An F‑CPU is a central processing unit with fail-safe capability that is permitted for use in S7 F
Systems. For S7 F‑systems, the F-runtime license allows the user to operate the central module
as an F-CPU. That is, a safety program can be run on it. A standard user program can also be run
in the F-CPU.
F-Cycle time
Cyclic interrupt time for OBs with F-runtime groups
F-data type
The standard user program and safety program use different data formats. Safety-related F-Data
types are used in the safety program.
F-I/O
Group designation for fail-safe inputs and outputs available in SIMATIC S7 for integration in S7
F Systems, among others.
You can find additional information on the fail-safe I/Os available for S7 F Systems in the section
"Overview of configuration".
F-runtime group
When the safety program is created, the F‑blocks cannot be inserted directly into tasks/OBs;
rather, they must be inserted into F‑runtime groups. The ‑> safety program consists of multiple
F‑Runtime groups.
F-shutdown groups
F-shutdown groups contain one or more F-runtime groups. F-runtime group communication
blocks between the F-blocks in various F-runtime groups, all of which are assigned to one F-
shutdown group, are not required. If an error is detected in an F-shutdown group, this F-
shutdown group is shut down. Additional F-shutdown groups are shut down according to the
configuration of F_SHUTDN.
F-SMs
S7-300 fail-safe signal modules that can be used for safety-related operation (see safety mode)
as centralized modules in an S7-300 or as distributed modules in the ET 200M distributed I/O
system. F-SMs are equipped with integrated safety functions.
F-Startup
An F-Startup is a restart following an F-STOP or an F-CPU STOP. S7 F Systems do not distinguish
between a cold restart and warm restart of the F‑CPU.
F-Systems
Fail-safe systems
Full shutdown
All F-blocks of the entire F-CPU are shut down. Initially, the F-Shutdown group in which the error
was detected is shut down. All other F-Shutdown groups are then shut down within a period of
time equal to twice the F-Monitoring time you assigned for the slowest OB.
Master-reserve switchover
In S7 FH Systems, a master/reserve switchover is triggered when the master goes to F-STOP
mode. That is, the system switches from the master CPU to the reserve CPU.
Module redundancy
The module and a second identical module are operated in redundant mode in order to enhance
availability.
OS
Operator Station (OS): A configurable operator station used to operate and monitor machines
and systems.
Partial shutdown
Only the F-shutdown group in which the error was detected is shut down.
Passivation
Passivation of digital output channels means that the outputs are de-energized.
Digital input channels are passivated when the inputs transmit a value of "0" to the F-CPU (by
means of the fail-safe drivers), irrespective of the current process signal.
Analog input channels are passivated when the inputs transmit a fail-safe value or the last valid
value to the F-CPU (by means of the fail-safe drivers), irrespective of the current process signal.
PROFIsafe
Safety-related bus profile of PROFIBUS DP/PA and PROFINET IO for communication between the
safety program and the F‑I/O in an F‑system.
Proof-test interval
Period after which a component must be forced to fail-safe state, that is, it is either replaced with
an unused component, or is proven faultless.
Redundancy, availability-enhancing
Multiple instances of components with the goal of maintaining component function even in the
event of hardware faults.
Redundancy, safety-enhancing
Multiple availability of components with the focus set on exposing hardware faults based on
comparison; for example, 1oo2 evaluation in fail-safe signal modules.
Reintegration
Switchover from fail‑safe values (0) to process data (reintegration of an F‑I/O module) occurs
automatically or, alternatively, only after user acknowledgment at the F-Channel driver.
The reintegration method depends on the following:
• Cause of passivation of the F‑I/O/the F-I/O channels
• Parameter assignment of the F-channel driver
For an F-I/O with inputs, the process values pending at the fail-safe inputs are provided again at
the output of the F-Channel driver after reintegration. For an F-I/O with outputs, the F-System
again transfers the output values pending at the input of the F-Channel driver to the fail-safe
outputs.
S7 PLCSIM
S7-PLCSIM allows you to execute and test your S7 program on a simulated automation system
on your ES/OS. Because the simulation takes place entirely in STEP 7, you do not require any
hardware (CPU, F-CPU, I/O).
Safe state
The basic principle of the safety concept in a fail-safe system is the existence of a safe state for
all process variables. For the digital F‑I/O, the safe state is always "0".
Safety class
Safety level (Safety Integrity Level) SIL according to IEC 61508. The higher the Safety Integrity
Level, the stricter the measures for prevention of systematic faults and for management of
systematic faults and random hardware failures.
Safety function
Safety function is a mechanism integrated in F‑CPU and F-I/O, which enables them to be used in
fail-safe systems.
According to IEC 61508, the function is implemented by a safety device in order to maintain the
system in a safe state or to place it into a safe state in the event of a particular fault (see also user
safety function).
Safety mode
1. An operating mode for F‑I/Os in which safety-oriented communication using safety message
frames is possible.
2. Operating mode of the safety program. In safety mode of the safety program, all safety
mechanisms for fault detection and fault reaction are activated. In safety mode, the safety
program cannot be modified during operation. Safety mode can be deactivated by the user
(see deactivated safety mode).
Safety program
Safety-related user program
Safety protocol
See safety message frame
Safety-related communication
Communication used to exchange fail-safe data.
SDW
Safe F_MOV_R data for warm restart (SDW).
When the S7 program is compiled, F-control blocks are automatically inserted into automatically
generated (F-)system charts and automatically generated (F-)runtime groups with the ID "@F_"
or "@SDW_" and interconnected to generate an executable safety program from the safety
program programmed by the user.
Sensor evaluation
There are two types of sensor evaluation:
• 1oo1 evaluation – sensor signal is read in once
• 1oo2 evaluation – the sensor signal is read twice by the same F‑I/O and compared internally
Signature
See collective signatures
SIMIT/SIMIT VC
SIMIT enables comprehensive tests of automation projects and virtual commissioning of
systems, machines and processes on one platform. In addition, the simulation platform can be
used for realistic training environments to train the operating personnel.
SIMIT Virtual Controller (VC) enables automation programs to run on virtual controllers.
Standard communication
Communication used to exchange non-safety-related data.
Standard mode
Operating mode of the F‑I/O in which only standard communication, but no safety-oriented
communication via safety message frames is possible.
F_LIM_LL, 265
F_LIM_R, 402
E F_LIM_TI, 395
F_MAX3_R, 400
Exclusive OR logic operation, 234
F_MID3_R, 401
F_MIN3_R, 402
F_MOV_R, 410
F F_MUL_R, 399
F block types F_MUX16R, 412
Creating, 101 F_MUX2_R, 411
fail-safe, 99 F_NOT, 235
F_1oo2_R, 407 F_OR4, 233
F_1oo2AI, 272 F_PA_AI, 318
F_2oo3_R, 405 F_PA_DI, 322
F_2oo3AI, 267 F_PS_12, 437
F_2oo3DI, 266 F_PS_13, 439
F_2OUT3, 235 F_PS_40, 442
F_ABS_R, 400 F_PSG_M, 89, 383
F_ADD_R, 398 F_R_BO, 107
F_AND4, 232 F_R_FR, 109, 110, 290
F_AVEX_R, 404 F_R_R, 107, 381
F_BO_FBO, 109, 110, 289 F_R_TRIG, 396
F_CH_AI, 335 F_RCVBO, 123, 241
F_CH_BI, 300 F_RCVR, 123, 249
F_CH_BO, 309 F_RDS_BO, 123
F_CH_DI, 327 F_REPCYC, 391
F_CH_DII, 364 F_ROT, 393
F_CH_DIO, 369 F_RS_FF, 383
F_CH_DO, 331 F_S_BO, 107, 378
F_CH_QBI, 304 F_S_R, 107, 380
F_CH_QBO, 313 F_SDS_BO, 123
F_CH_QII, 350 F_SENDBO, 123, 238, 254, 258
F_CH_QIO, 360 F_SENDR, 123, 245
F_CH_RI, 373 F_SHUTDN, 433
F_CMP_R, 263 F_SMP_AV, 405
F_CTUD, 385 F_source_address, 51, 54, 55
F_CYC_CO, 85 Assigning, 57
F_cycle time:changing, 85 Changing, 58
F_destination_address, 49, 51, 54 F_SQRT, 403
Assigning, 57 F_SR_FF, 384
Changing, 58 F_START, 382
'Naming' function, 55 F_SUB_R, 398
F_DIV_R, 399 F_SWC_BO, 283
F_F_TRIG, 396 F_SWC_CB, 276
F_FBO_BO, 109, 110, 293 F_SWC_CR, 279
F_FI_FR, 291, 413, 415 F_SWC_P, 282
F_FI_I, 109, 110, 294 F_SWC_R, 285
F_FR_R, 109, 110, 293 F_TI_FTI, 290
F_FTI_TI, 109, 110, 294 F_TOF, 389
F_I_FI, 291 F_TON, 388
F_LIM_HL, 264 F_TP, 386
F_LIM_I, 409 F_XOR2, 234