Professional Documents
Culture Documents
00_GL-
EN_Software_PLC_part2_CPU319F
Version
50.00
Author
Typographical Conventions
Header – Level 1 List – Main categories
Header – Level 2 List – Subcategories
Header – Level 3 Italics Term is explained in the glossary
Header – Level 4 Bold Highlight
Document Note
Figure / Table [1] Reference to "References”
Update journal
No. Chapter P. Reason for change Change content V. Date Handled by
1 First issue Interga 4th wave 40.00 05.05.11 Müller/Kall
Integra 5. Wave
Version 40.23 adopted and formal
2 All ECM-Release 50.00 04.12.22 Müller
adaption
GL replaced with GL-EN
The current changes are marked in yellow in comparison to the older edition
Contents ................................................................................................................................ 4
Foreword ............................................................................................................................... 8
4. F Programming .........................................................................................................114
Points of detail for which precise information is not given in this project engineering guideline,
or also points that are not covered in the associated electrical or mechanical standard
documentation and in the appropriate software standard must be clarified with the person
responsible at Daimler AG.
Suggestions based on the existing project engineering guidelines, hardware standard
documentation and software standards must be worked out by the supplier and presented to
the person responsible at Daimler AG for approval.
The supplier is under obligation to inform Daimler AG about any improvements, modifications
and supplements that should be implemented in this project engineering guideline.
Approved improvements, modifications and supplements will be integrated into a subsequent
version of this project engineering guideline by Daimler AG when updating the
documentation.
This project engineering guideline does not release the supplier from the
responsibility for proper design of the equipment and documentation to be
supplied, taking into account the laws, regulations, conditions and requirements
that apply at the respective manufacturing site.
1.1. Prerequisites
The valid versions must be taken from the current edition of the file
„000_B3.26.03_Projektierversion-Profinet-Komponenten_V5x.xx.xls“.
specific
The integra PLC program is always based on a Muster program. If there no shop
Master program available, the start with the Basis application.
The table of GSDML files for the integra project can be found in the file
„000_B3.26.03_Projektierversion-Profinet-Komponenten_V5x.xx.xls“.
d) CAD files
RUPLAN hardware plan templates and master data for the system project planning
(including the PROFIBUS and the PROFINET components) can be found on the ECM Server
in Chapter 03. CAD Specifications / 01. CAD – Electrical – Fluid.
Indication:
Name of variables and parameters form
Integra blocks remain in the German language
a.) Before copying parts of the program, the German base project has to be changed to the
English (South Africa) language.
For the programming in FUP respectively LAD in Tuscaloosa, the representation of the
operand field width must be set up with 18 characters.
Rename the basic application using the programmable controller name (e.g.,
ATVM101)
Please have the corresponding programmable controller name assigned by your Daimler
support person. However, it is necessary to note that the S7 project name must be no longer
than eight characters. Normally the system code “Axxx” is obtained from the system
designation. During archiving of the project, the project name is maintained.
Coordinate with your Daimler support person using the specified checklists regarding the
network parameters (e.g. IP address, naming, etc.)
• The container S7 program contains a symbol table and all modules that are
necessary for a system with a PROFINET controller.
The hardware settings described below (parameter settings for the modules) have already
been configured appropriately in the basic application.
Itproject
is necessary to agree with the responsible Daimler AG engineer on whether a
planning specification has to be considered for the module version to be
planned (e.g., firmware version ET200S).
InPLCaddition to the system identification, a PLC number must be entered, too (e.g.
1). There may be systems with one power feed (thus it has one system
identification) and multiple programmable controllers.
Additional screenshots of the individual tabs follow in order to illustrate the CPU properties
completely.
Inapproved
principle, the PROFINET field bus system has to be used; exceptions must be
by the responsible engineering department at Daimler.
In principle, the settings for the PROFINET are described explicitly in the FG-PN diagnostic
module description and in the Project Planning Guidelines “000_B3.26.03_GL-
EN_HWKonfig_PROFINET_...”
With the use of PROFINET, the IP address classification and the device name
from the document “000_B3.26.03_GL-EN_HW_PROFINET” must be considered.
The Ethernet interface integrated in the PN-CPU is used; an additional CP343-1
Advanced may only be used for communication purposes after consultation with
the responsible control engineering project manager.
An additional CP343-1 Advanced for PN-IO connection of field bus components
is not permitted since the I/O data do not lie in the direct process image of the
CPU.
All letters in the network name and device name are written in lower case
The IP addresses, sub-network mask and router IP address must be entered by
the programmer.
Innecessary
order to prevent communication errors and collisions, the IP addresses
for parameterizing must be clarified with the responsible network
administrator of Daimler AG.
IP-Addresses + Subnet
allocation Selection +
Entering of Router
address
In the PROFINET tab, the CBA communication is deactivated in the basic application and,
therefore, no change by the programmer is required.
This name must then be entered in the HW config (PROFINET-IO system object properties).
Example: m<plant code>g<building designation>s<control area>
(Special characters are replaced with “-“)
Plant designation: 050 (Sindelfingen Plant 050)
Building designation: 7-4 (Building 7/4)
Control range: wabl11 (programmable controller project name)
The option “Use name in IO device” is already activated in the basic application so that the
network name goes into the device name (separated by a period).
FC FB DB at 319F
integra from 1 1
integra to 100 100
The standard areas of the symbol list are completely prepared in the basic application.
The inputs and outputs are entered from the hardware plans with symbols and comments.
All signals that are used in the program must be documented:
Bit / I, Q, M, etc.
Byte
Words
Double words
For components that are only used in the overview and installation plans and/or PROFINET
routing for RUPLAN like:
Key-panel
Frequency converter
Motor starter
PN/PN coupler (PROFINET I/O)
Robots
Subsystems
etc.
the I/O addresses must also be entered in the symbol list. The symbols are assigned by the
user according to the specifications of the designation system for integra.
(Visual Enterprise Server: Volume III / 04. Designations and Identifications)
• The absolute address of the FB modules can be freely assigned from FB101 – FB999
• The range FB1 - 100 is reserved for system links, controllers and system-specific
modules
• The assignment occurs using the symbols
FB_XXXNNN T23456789012 K
For the 12-digit comment, it is recommended that the first FG programmed in the FB is
indicated.
Example: first area in console 2 starts with 012RF_005:
Module: FB121
Symbol: “FB_BS_002 012RF_005”
Comment: “Pult 2 Aufruf: 012RF_005”
All the FG called in this FB will be entered with their designations in the first comment field of
the FB.
• The absolute address of the FGDB modules can be freely assigned from DB101 –
DB1999
• The assignment occurs using the symbols
Since several valves are located on one valve terminal, the entire valve terminal can be
combined as FG. However, for the software, the individual valve is required as FG. For this
reason, on the HW designation of the FG, the operating equipment code of the actuator is
appended, in this example –MB2.
For data modules that are not FGDB, instead of FGDB the following abbreviations are used:
Abbreviation Application
FGDB Function Group DB
S7G S7 Graph instance DB
TLG DB for alarms (communication)
TV DB for transport tracking data
IDB Instance DB of a standard FB
DB DB for other data
Abbreviation Application
nnnAAAnnn-ffffff nnnAAAnnn= FG designation
ffff = function of the bit memory
In addition to the system-specific calls for the console areas and function groups in the
console areas, the user must also call additional communication modules like PLUS
communication, etc., if necessary.
3.1.
Basic Application Software Packages
The module supplies S7 CPU basic functions like cycle time measurements, setting and
reading out date/time and formation of flash cycles, pulses and general bit memories. In
addition, with the use of the error organization modules integrated in S7, hardware errors can
be localized and evaluated.
At the FC15 the enabling of the inputs „FEin“ will be released via the input parameters „St_E“
und „St_A“ for the Switching on of the desk areas and the function groups.
For each system area, a cabinet call must occur.
Shut-off mechanisms because of energy efficiency savings will be described in the module
description for the FC297 (FG_PEC_PE).
The error alarms for circuit breakers or the potential supply and/or the general backup will be
assigned to FG Schrank using the FC17.
(24V potential supply, that is linked on the LOCC-Box-fusemodules of the “Lütze company”
will be visualized by calling the block FC4036 (LUETZE-LOCC-Box)).
In the following schematic figure the interaction of the motorized main switches, optional
existing welding motorized main switches and the auxiliary block FC4027 (PEC_PE_HS) for
controlling the motorized switches is shown. For each main switch the FC4027 has to be
called in the application program.
Figure 35 calling of FC4027 depending on the number of main switches and the power
supply concept
•
For these devices the switching has to be planned as shown in section 3.1.3.3.
Block diagram:
Request HNT
Plant ON/OFF FC297 2 FGDB
shut down FG_PEC_PE3 HNT reached
FC15
FG_Schrank
switch on DB-PEC_
DB- Control voltage ON/ OFF
Schaltzeiten
PE_Schalten 3 4
DB29701
I&C 1 FC64 1
000XWS001 Switch group Call 1 x per
Plant ON/OFF 1
- Switch times main switch
OFF time
Switch bit OFF
ON time
Switch bit ON
Interval length
- Switch on FC4027
max 4
Motorized
- Console
max 32 2 5 main switches
- Default e.g. plant main switch
Interval length
1 Switch time: request plant shut-down 1 Switch time: request switch on plant
2 Set request special function HNT = “1” 2 Switch on motorized main switches
complete plant
3 special function HNT reached for complete 3 Switch on control voltage
plant =“1”
4 Switch off control voltage
1 Switch time: request plant shut-down 1 Switch time: request switch on plant
2 Set request special function HNT = “1” 2 Switch on motorized main switches
5 Energy shut-down activated =“1” received from 4 Feedback from robots: Energy shut-down
all robots deactivated
And
6 Switch-off control voltage PROFIenergy Message ready_to_operate from
(activate error suppression) all devices
7 Send PROFIenergy Telegrams Start_Pause 5 Switch on control voltage
to devices with WoL activated
5 Send PROFIenergy Telegrams Start_Pause with 4 Delete error suppression for console areas XX
WOL deactivated to devices in console areas
XX
Using the function block FC297 only switching action with direct voltage shut down is
actually supported.
The basic application includes the complete PROFINET diagnosis with the function group
“FG_PN-DIAGNOSE” (FC98).
The FC98 is called in the FB54 (cyclic program section).
Explanation:
+Installation location = line, station no. / function group abbreviation / terminal box no. –A0
code
1. 2. 3. 4.
1. Installation location, e.g. operator console cabinet, terminal box or X if set up directly in
the field.
2. Device abbreviation (device type identification)
3. Designation from RUPLAN (-FG –classification-code;
For direct field installation = FG designation should be the FG to which the module
belongs functionally.
For cabinet installation = FG designation corresponds to the switchgear cabinet.
For terminal box installation = FG designation should correspond to the FG terminal box.
For console installation = FG designation should correspond to the FG console.
For installation in the KRC cabinet = FG designation should correspond to the FG robot.
4. Function group that can be assigned spatially (normally the function group in which the
module is found)
The owner/operator of a machine must ensure that the safety devices installed in the
machine, as well as their functions, are maintained as long as the machine is operated. In
order to ensure this, the function of the safety elements must be checked using actuation. In
order to reduce the human factor in the inspection of the shutoff function, in the basic
application FC97 is called for this. During actuation of the safety elements as in production,
FC97 handles this control and monitoring function. Application-specifically, the associated
data modules must be adapted according to the shutoff matrix. (For more detailed functional
explanations, see ECM Server Vol. III / Chapter 26. Control Technology / 04. Safety
Technology / Prüfung von Sicherheitsfunktionen xxxxxxx.pdf [Testing of Safety Function
xxxxxxx]/ …Prüfung von Sicherheitseinrichtungen xxxxxxx.pdf [Testing of Safety Equipment
xxxxxxx]).
In the basic application (OB1 NW5), the call of FB (FB97) by FC97 has comments to make
the start-up easier.
The FB44 “FB_ASY000 FW_ISOonTCP” starting from V2.1 is a standard module from
Siemens (starting from the Step 7 package V5.4 SP5 the original standard module is
included in the Siemens standard library “Step7/S7libs/stdlib30/Communication Blocks” and
there it has the module number FB220 / S5FW_IOT, V2.1).
An exact documentation of the parameters of “FB_ASY000 FW_ISOonTCP” starting from
V2.1 can be found in Simatic Step 7 package V5.4 SP5 by selecting the module within the
project and use of the Simatic function “help for the context menu F1.”
The module is called once each time for the fetch and write service and requires a separate
instance data module for each call.
In addition, for storing the connection parameters programmed for the project using the OC
etc.
The parameter “ADDR MODE” is connected with the integer value 0
(0= S7 addressing mode of the parameter set/ 1= S5 addressing mode of the parameter set).
The connection parameter data will be entered in the parameter data module
“DB_TCON_Para_FW_ISOonTCP” with the use of the OC Wizard.
Figure 41 OC Wizard
Ifadapted
a communication channel is eliminated project-specifically, this must be
using the FKT parameter.
The communication with the safety program occurs in FB53. In the first two networks, there
is a routing of operands that are required in the F program but are not supported by the
safety program (system side) (i.e. there is no direct query of data bits from non-safe data
modules).
If other signals are necessary in the F program, these are routed to bit memories in
additional networks to be formed.
Operands supported by the safety program (system side) (E, A, M, etc.) from the non-safe
program section do not have to be routed since these can be queried directly in the F
program.
In the following network, the error alarms from the instance DBs of the safety elements are
entered in the function group FG_F-SE.
The error texts of the safety elements must be entered in the function group and expansion
data modules (DB1140 – DB1147).
The emergency OFF texts must be entered in the function groups and expansion data
modules of the function group NOTHALT [emergency OFF] (DB1134 – DB1138).
For simplified generation of the emergency OFF error tests, the Excel tool
“FGDB_Not-Aus_F-SE” is available. This tool can be found on the Visual
Enterprise Server in Volume III, Chapter 26. Control Technology\10. Software
Libraries\01. Documentation\21. S7 Basic Software (BS) Documentation.
To do this, the user must search in his or her project in the symbol table according to the
symbolic name SEDB_* and then export the filtered table under the file name
SEDB_Symbole.sdf. The macro in the file “FGDB_Not-Aus_F-SE” automatically copies
the emergency OFF and error texts of the SE elements used into the function group and
expansion data modules. Then the macro generates two AWL sources with the FGDB F-SE
(DB1140 – 1147) with assigned comments and the FGDB_NOTHALT (DB1134 – DB1138)
with assigned comments. The user must import these AWL sources into the project, compile
and then supplement with project-specific designations.
Communication with the FC169 is provided for the transmission of larger data
quantities. The exchange of binary signals or a few bytes occurs on the I/O level with
an IO coupler. A detailed description of the interface using the IO coupler is given in the
Project Guideline “000_B3.26.06.00_PRL_Anlagenschnittstellen”
Figure 47 Console area: call example for the console function group
The controlling of console lights (automatic, setup, emergency OFF, error) occurs using the
output parameters of the FC18 and in other downstream project-specific networks must be
connected to the actual digital output signals.
The controlling of a signal column assigned to the console is also implemented in a
downstream project-specific network by using a call of the integra standard module FC21.
The release and/or actual operation of moving images using button bars on the EBF must
occur by calling and connection of the integra standard module FC13 (managing moving
images) project-specifically in a downstream network.
Within the functional modules, the function groups are called as shown in the module
descriptions using the examples.
To this in integra following messages will be suppressed by using the function “release input
(FEin)
The function is divided hierarchically into several levels:
− Switching On level (Department)
the function “FEin” = 0 suppresses following fault messages in the level switch on and
in underlying levels.
− Console level
the function “FEin” = 0 suppresses following fault messages in the console level and
in underlying function groups.
− Function group level
the function “FEin” = 0 suppresses following fault messages in the function group
level.
In the following examples and tables, typical PROFINET nodes are listed and, in addition, in
which level the suppression has to become effective.
Table 3 Conveyor technology field bus node error and associated shutoff level
In the example, field bus device failure of node (21) and node (22) is considered.
With the variable „001BR_010-STOER1“ all safe cases has to be collected, which would
cause following fault messages in the console level.
Figure 52 FT: “ZP_Freigabe_Eingänge” of a function group during node failure (e.g. drive)
Table 4 Mechanization field bus node error and associated shutoff level
Program examples for ME system:
Switching On level release inputs (FEin):
Figure 54 ME: “U_FEin” of an FG during field bus errors of drives and valve terminal
Figure 56 VT: “U_FEin” of the area level during field bus error of the ET200
FG level:
In the example, the node failure of two ET200 (PN-device 21 and PN-device 22) lock the
release inputs (FEin).of the function group drive in a RNV-plant via “ZP_Frei_Eingänge
Additional info:
In VT systems, the function parameters of consoles and switch-on modules are connected
with “10.” If release inputs is missing, the function groups blink in the overview images
between the color of the operating mode (“yellow” for setup, “green” for automatic) and “gray”
in the overview images.
RNV021-M25 Add On parameter release Input signals
Figure 57 VT: “U_FEin” of the function group level during node failure e.g. ET200 terminals
Figure 58 Additional errors, power main switches 230V and fuse openings
Data bits of the additional errors are provided with symbols and comments in the
FGDB. The symbol must be a reasonable abbreviation of the alarm and must be
at least three characters long, whereby the first few characters up to the
underscore (type code) must not be changed. The comment is the plain text that
appears on the display.
Warnings are always only assigned and not programmed with saving. They also do not need
to be acknowledged. Additional warnings can be used for all function groups.
`001BR_010-SF8ABWNFT`
Data bits of the additional warnings are provided with symbols and comments in
the FGDB. The symbol must be a reasonable abbreviation of the alarm and must
be at least three characters long, whereby the first few characters up to the
underscore (type code) must not be changed. The comment is the plain text that
appears on the display in the alarm line.
Data bits of the additional initiators are provided with symbols and comments in
the FGDB. The symbol must be a reasonable abbreviation of the alarm and must
be at least three characters long, whereby the first few characters up to the
underscore (type code) must not be changed. The comment is the plain text that
appears on the visual display in the detail window.
Data bits of the additional warnings are provided with symbols and comments in
the FGDB. The symbol must be a reasonable abbreviation of the alarm and must
be at least three characters long, whereby the first few characters up to the
underscore (type code) must not be changed. The comment is the plain text that
appears on the visual display in the detail window.
Before a function group is called, the alarms are assigned in the FGDB area XM (DBX129.0
– DBX129.7). The comment for the alarm is entered in the data module.
`001BR_010-SF9QUTNFT`
Data bits of the externally logged alarms are provided with symbols and
comments in the FGDB. The symbol must be a reasonable abbreviation of the
alarm and must be at least three characters long, whereby the first few
characters up to the underscore (type code) must not be changed.
The function group goes into the setup operating mode if the assigned console is on setup or
the setup additional parameter is set.
The function group goes into the automatic operating mode if the assigned console is on
automatic and the additional parameter automatic is set.
The release inputs is set if the assigned console release inputs is present and the additional
parameter release inputs is set.
With the use of the additional parameter acknowledgement, a selective acknowledgement of
the function group can occur.
With the additional parameter “ZP_KeinStop_Ausbl,” the alarm KeinStop can be faded out if
required!
3.3.1. Overview
The standard for the sequencer logic is completely embedded in the function group structure.
The controlling of motions and actions occurs using function groups, which in turn can be
triggered by a sequencer.
The sequencer is managed by the function group FG_S7G_Kette and the associated
function group data module (FGDB).
The general function groups from the software standard integra are the basis for the
operating mode formation, error diagnosis, etc. (FG switching on, FG console, FG station,
FG CPU basic functions, FG PROFIBUS diagnosis, FG control technology, FG TCP/IP, clock
pulse generation, safety technology, central management with FC2, etc.).
One step monitors, in automatic, the procedure by means of monitoring logic (default: two
minutes). It serves as an emergency strategy in that an error alarm is triggered at the latest
after two minutes of system shutdown. In normal cases, there should not be such a
sequencer error since the action modules monitor the actuators and sensors in the system.
In this case, it is important to note that all errors that belong to the function groups of a
sequencer should be prevented by appropriate connection of a sequencer interference
suppression. In addition, the actions to be executed for the automatic sequence are triggered
with action bit memories in the step, i.e. the action bit memories indicate start releases for
the function groups belonging to the sequencer, with its sensors and actuators in the system.
Manual operation is implemented in the triggered function groups.
During setup operation, the sequencer is used, with its operating options like step selection
or SmartSyn, for guided execution of the steps in automatic with the goal of being able to set
up as quickly as possible again and start.
Locks are not used in S7-GRAPH. Both for “automatic” and for “setup operation,” these are
programmed on the releases of the corresponding function groups (parameters FAusV,
FAusR, etc.).
A complete function group S7-GRAPH sequencer consists basically of the FC
<FG_S7G_Kette>, a parameterizable FGDB and the S7-GRAPH sequencer in the form of a
FB/DB pair, the control and monitoring of which starts internally from the FC
<FG_S7G_Kette>.
Input parameters
Parameterizing of the function group data module to be used.
FGDB
(Each S7-Graph module requires an integra FGDB)
The function parameters that can be used to activate special functions with their
Fkt
parameterizing.
Group alarm of all emergency OFF related signals that are valid for this area.
Parameters are set here for the signals of emergency OFF button, protective doors,
red lockouts, etc. If the signal is not present at the KeinStop parameter, the
KeinStop
sequencer will be blocked. The sequencer remains in the active step, but the
command output is blocked.
Note: KeinStop =1
OK
Group alarm of all general locks that are valid for this area. If the signal is not
FAusV present on the parameter FAusV, the sequencer is blocked. The sequencer remains
in the active step, but the command output is blocked.
Ketten_DB Parameterizing of the S7-Graph data module to be used.
Only valid in the setup operating mode:
Akt_Aus =1: Switch off actions and/or action variables
=0: Actions and/or action variables remain active
Jogging operating mode (special operation in automatic)
Prerequisite: Automatic active
The sequencer is inactive at first in this operating mode. The last step processed is
Tippen maintained while the command output is set to logical zero. The stepping condition
is inactive. Only after operation of the switch Plus_1 is the step switched to active
and the command output is set to logical one.
The stepping condition is now also active for the actively switched step.
Plus_1 Stepping in jogging operating mode
Grst Selection only active in setup operating mode:
Stoer Group alarm of the errors formed internally in the sequencer organization module.
ZStoer Group alarm of the externally formed errors.
Table 6 Parameter “FG_S7G_Kette”
Using the parameter “Akt_Aus,” a selection can now be made between the
previous behaviors of action variables shut off (depending on setup and
FAus/KeinStop) or action variables not shut off.
The same numbers are used for FB and DB of the S7-GRAPH guide sequencer.
The following call sequence is mandatory:
1. Function group “FG_S7G_Kette”
2. S7-GRAPH guide sequencer
The sequencer module to be created by the user must comply with the following
specifications and instructions:
In the FGDB, no action variables may be deleted and also none may be added.
3.3.8. Handling rules for S7-GRAPH modules (FB, DB)
For handling S7-GRAPH modules, the following must be noted:
Creating, changing and loading the S7-GRAPH modules (FB, DB) only with S7-
GRAPH Editor. In this way the functionality, on one hand, and the offline/online data
consistency, on the other, is supported by notes/user prompts and thus at least a
minimum quality level is ensured. This applies to the functionality:
o Automatically track DB to FB (create)
o Loading the FB and – if required – automatically also loading DB
o Creation language GRAPH and recompiling capability
Other procedures are only recommended if the user knows the handling rules since in this
case no support is given with the use of notes/user prompts.
In principle, the following applies:
During loading of the instance DB in the programmable controller, the sequencer is
reset to the initial step(s).
A change of the sequencer structure, e.g. add/delete step, also requires a change of
the associated instance DB, which can be done automatically in the S7-GRAPH
Editor.
In the programmable controller, FB and DB must fit, otherwise the basic functionality
can no longer be ensured, which is usually reported by the “INTF” LED display on the
CPU and a corresponding alarm to the user on the visual display.
Test mode by observation, sequencer control, etc. can be performed between CPU
data management (online) and S7 project data management (offline) only if there is
data consistency.
A direct change of the S7-GRAPH sequencer in the CPU is not possible, rather it
must occur first in an S7 project offline and only after that can the S7-GRAPH
sequencer (guided FB and guided DB only if necessary) be loaded to the CPU.
The application settings must be made manually once for each S7-GRAPH
installation. This applies above all to the registers “General” and “Editor.”
Always check settings for printing first using print preview in order to save time,
print media, etc.
On all devices that use S7-GRAPH, the application settings must be made once
manually. This must be checked after each installation and/or update of
S7-GRAPH and if necessary performed again once manually.
The sequence granular settings regarding the module settings for execution capability of the
FB/DB pair are stored directly in the module of the module container and also in the GRAPH
source in the source container of the S7 project.
In this way, these settings are available, e.g. in the export file, and thus can also be
transported into other and/or from other S7 projects.
The following module settings and properties must be set:
An IN parameter “Default” (place holder) + no OUT parameter:
Functionalities are implemented by FGFC<S7GRAPH> directly using S7-GRAPH-DB
FB parameters
User defined (starting from V5.0)
Execution capability
Can be executed independently
(optimized min. CPU cycle time)
Warnings
All warnings (even references to blank elements)
Interface description
Individual structures
Load in AS (reason: recompiling capability from AS)
No criteria analysis
No MC7 code storage in S7G-DB
(memory space optimization)
No jumping steps
Step active min. 1 programmable controller cycle
No acknowledgement requirement for errors
S7G-Kette self-acknowledging
Synchronization (starting V4.0)
Select algorithm in application settings for
“Previous transition has been fulfilled”
“SmartSyn” using FGFC<S7GRAPH>
No blocking of the
operating modes
Implemented internally using FGFC<S7GRAPH>
Project: Daimler AG, Standard integra
Document:
Version:
Author: Peter Stocker (Fa. APM) i.A. PWT/ VAS
Page 89 of 159
Reproduction, transmission or use of this document or its contents is not permitted. Offenders will be liable for damages. All rights, including rights created
by patent grant or registration of a utility model or design, are reserved.
Secured switching behavior
(starting V5.1)
Important, e.g. for step selection and structure
checking
Settings for taking over new sequencer modules as default
All functionalities and settings are stored in a sample step sequence that is to be used as the
basis for the project planning.
InDaimler
addition, the other settings are made according to the specifications of your
contact person.
Initial step:
Start of the processing without query of a start transition after sequencer RESET
Initial Step The initial step is the step in a sequencer that becomes active without
(INIT_SQ) and/or jump back to the initial start of the sequencer
previously querying conditions after Sequence Reset (INIT_SQ) or jump back or
first start of the sequence
Step: step no. (no. max. 999) and step name (max. 24 characters, no spaces)
Step Step No. ( No max 999) and Step name max 25 Char. coherently
Transition
A transition
In the transition,is the
the part of the
conditions aresequencer
programmed thatthat
contains the conditions
implement for passing
the transition
from the preceding
control from one step to to
step theits
following stepstep.
successor depending on operating mode.
(mode-dependent)
This logic section is not shown on the visual display in expert mode.
“Downstream continuous operations”
The programming of “downstream continuous operations” requires explicit approval from the
Daimler contact person.
This logic section is not displayed on the visual display in the expert mode.
In addition, the following extensions are available for the signal query and the logical linking:
Bin.Eingang Binary input for extension of the AND/OR box
Bin.Eingang neg. Negate binary input to AND/OR box
Branching Parallel branching structures with AND, OR, CMP
This basic element can be set up so it is linear or parallel, interconnected and differently
connected. In this case, max. 32 signals and/or binary results of a comparison box per logic
section are possible.
For programming the actions in the action list, preferably the binary operations are used.
These can be called directly in the object properties of an action – with operator prompting.
The number of actions for one step is limited to max. 100 actions because of the system. If
there are contradictory actions, the highest priority (lowest) action will be executed.
For the numbering of the steps, the integrated numbering mechanism is used so that this
column is numbered in ascending order while simultaneous branches with this numbering
are rated with a higher priority internally.
No locks can be programmed in the steps. The basic specifications, rules and
instructions must be complied with.
The more detailed action instructions, e.g. arithmetic, must only be used with
approval of the Daimler partner.
* Actionx
example global waiting time
Inrespectively
addition to this higher-level time monitoring, run times for monitoring the
triggered function are implemented decentrally in each function
group. The setting of a local monitoring time especially tuned to one step is
generally not required and should be avoided.
* Actionx / Waiting y
The action variables will be used as a start release for the action modules (FG
modules of the automatic range of the system to be controlled).
To lock the outputs with other function groups, at the FGFCs the parameters
FAusV and/or FAusR are connected. These serve then as crash locks (system
protection).
The release of the controlling is basically programmed in the networks before the
call of the FGFCs in FUP, no matter with or without sequence usage.
Only the signal for the start of the motion in automatic is formed by the guide
sequence S7-GRAPH and is used as a start release at FGFC. If only one action
variable is used, parameters are set for this directly at the FGFC.
If several action variables are used, these are handed off to the FGFC by means
of transfer signals.
For the opening transitions, the differentiation criteria for the alternative
sequence must be programmed.
Note: An empty transition is always a fulfilled transition with all the
consequences for the sequence.
A simultaneous branching is used for parallel processing of procedures that will be started
and ended synchronously. It represents the simplified synchronization of several linear
sequences that are graphically represented contiguously and also synchronized using the
graphical structuring. This includes the synchronous starting of the simultaneous branches at
the so-called opening steps and the synchronous ending of the simultaneous branches at the
so-called closing steps.
In this way, programming is simpler for the user and is limited to the essential, and also the
cycle and memory space performance is improved in comparison to individual linear
sequence steps.
The last steps before simultaneous combination are designed as empty waiting
steps for the synchronization of the adjacent branches.
Other display and operating functionalities are stored in the detail windows of the FG. These
are selectable, e.g. using the FG label from the system view.
In it, other functions can be operated (prerequisite: log into necessary access level)
“SmartSyn”
as in the sequence overview
Monitoring time must not and/or must be acknowledged,
i.e. it is not accepted until the transition is fulfilled
Specified value for global waiting and monitoring times
Step sequence will move to step N
In addition, important information of the FGFCs like e.g. KeinStop, release of the inputs and
outputs and the origin references to the called FGFCs in the programmable controller
program are displayed in the Information tab.
SmartSync
1. Mark - Display activ Stepp
automatcially a - Display executable steps
executable - Sequence stays in active step
step until the user select a new step
2. Steered
activation of the
right step( only a
marked stepp is
possible)
Figure 96 “SmartSync”
The display of executable steps is preselected according to the above criterion, and the two-
step operator prompting is supported for convenient step selection.
After the synchronization, the sequencer remains in the last active step until a new step is
selected.
The user now has the option to set the sequence in the marked step – with
support by the dialog – and/or to leave the sequence in the last active step.
3.4.1. Stations
Execution occurs using the module description FC19 (FG_STATION; see Volume III /
Chapter 26. Control Technology\10. Software Library\01 Documentation\21. Doc S7 Basic
Software (BS)).
For more detailed error diagnosis and better local assignment of function groups, the console
areas are assigned to stations in mechanization systems.
The station module does not form a separate operating mode, rather it only collects status
alarms from the assigned function groups and forms group alarms from them.
The function groups are called from the station FB.
The expansion function group must be given a different identification than the main function
group. In the example, for expansion of the function group 000EK_001, a function group
000EK_001_H02 has been created.
Execution occurs using the module description FC16 (for FG_DUMMY, see Volume III /
Chapter 26. Control Technology\10. Software Libraries\01. Documentation\21. Doc S7 Basic
Software (BS)).
The block can be called per plant area (safety area) or hierarchically superior.
Further user instructions can be found in the module documentation for FC4040 “FG_SOFU-
VAR_KP32“.”
The used special operational functions has to edited before calling the FC4040.
For each interface to a third-party system, FC49 must be called. On the input parameters,
the corresponding signals that are reported by the third-party system by way of the I/O
coupler (standard section) must be parameterized.
The standardizing provides for only one F call in a programmable controller. The
F call must always occur via FC1600.
Only safety-oriented modules (F-FB) released for integra must be used and
loaded. All data modules (instance DB and user DB) are specified and/or have to
be generated in the number ranges provided for them.
The procedure for the F programming of the HW-Konfig can be found in the
document 000_B3.26.03_PRL_HWKonfig_PROFINET_Vxx.xx.pdf.
All programmed elements must be provided with symbol names and symbol
comments.
The addresses in the basic application are “dummy addresses.”
The DBs of the emergency elements are numbered in ascending sequence and
designated according to “VE, B3.26.02.00_PRL_Software_SPS_Teil2_V0x.00”
Chapter 4.3.3 “Setup of emergency OFF and error alarm texts.”
The DBs 3276 to 3291 should only be considered a hardware example in the basic
application and will automatically be generated by the HW configuration of the
programmable controller.
During the programming with the F/FBs, the correct HW assignment must be ensured
(QBAD, ACK_REI, ACK_REQ).
If safe inputs and outputs are not used in the program, these must be deactivated in
the HW configurator.
In addition to the call of F_CALL for the safety program, in OB35 (OB36 for CPU416F), still other
functions are implemented:
• Cycle time measurement for the safety program
• Counting of the OB1 interruptions by the F program
• Provision of “life bit” and “synchronization bit”
start-up.
The call interval for the OB35 (OB36 for CPU416F) must be adapted during the initial
The time value of the interval must be set so that the OB1 cycle is interrupted
maximum one time by the OB35 (OB36 for CPU416F). This means that the call interval
of the OB35 (OB36 for CPU416F) must be somewhat greater than the entire program
running time from OB1 and OB35 (OB36 for CPU416F) together.
Execution time OB35 = run time OB1 + run time OB35 + reserve (min. 10%)
The consequence of calling OB35 is that the total running time of the OB1 is not consistent,
depending on whether the OB1 is interrupted by the safety program or not.
Figure 106 Sequence group FC1601 (the jump destination list of the safety program)
Figure 107 Preparation of routing signals from the non-safe program section
Network 4:
If an automatic emergency OFF acknowledgement to the fail-safe software modules is
desired when the control voltage is switched on, the signal
"Control voltage on” (“F_DB_IFC_000”.K1E) at the input parameters “AuSt” of the fail-safe
function modules must be parameterized.
Network 5:
The edge evaluation of F-K1E is available for automatic emergency OFF acknowledgement
for fail-safe software modules that do not have any internal edge evaluation on the
acknowledgement parameter (e.g. FB1628).
Network 6:
For the automatic reintegration of F modules, the signal “F-QUIT” (“F_DB_IFC”.Quit) that is
available temporally before the signal “Control voltage on” for formation of the trigger signal
is used for the reintegration by FB1591.
If“conveyor
in addition to the signals already programmed, other non-safe signals (e.g.
running” for monitoring a muting function) are needed in the safety
program; these are also programmed in FC1601 in networks to be set up
separately.
For this purpose, the data bits from DB2500 are used. (If necessary, DB2500 can
be lengthened).
Mode of operation
The fail-safe Siemens standard module F_ACK_GL (FB1591/in Siemens original FB219)
generates an acknowledgement for simultaneous reintegration of all F peripherals/channels
of the F peripherals of an F sequence group after communication errors and/or F
peripheral/channel errors.
For the reintegration, a user acknowledgement with positive edge is required at the input
ACK_REI_GLOB. The acknowledgement occurs analogously to the user acknowledgement
using the variable ACK_REI of the F peripheral DB but acts simultaneously on all F
peripherals of the F sequence group in which the F application module is called.
By the use of the F standard module F_ACK_GL, it is not necessary for the user to provide a
user acknowledgement with the variable ACK_REI of the F peripheral DB individually for
each F peripheral of the F sequence group.
Figure 110 Input recording, group alarm variable and output shutoff
The distribution of the safety elements to the various FCs depends on the system
configuration.
Example:
• If a system can reasonably be divided into different safety areas, the division looks as
follows:
The input recording of the safety elements is programmed in FC1700 and FC1701 to
FC1732. For this purpose, various function modules are available in the F library. Preliminary
couplings that may be necessary, e.g. acknowledgement signals, occur before the FB call
and they will be parameterized with the use of data bits on the FB.
The numbers of the instance DBs for safety elements start at DB2600 and are numbered in
ascending sequence.
Allgemeingültige
General
Safety-Elements
Sicherheitselemente
FC1700
Read Safety
Eingangserfassung der
Sicherheitselemente
Elements
SEDB
E- StopTaster
Not-Aus button
BR - E-Stop-button
Nt
Not-Aus
-Aus Taster DB2600
Schutzbereich
Safety-Area 31 31 FB1602
SEDB
FC1731 BR – VI-Switch
VI-Schalter
VI-3St
VI-3posSchalter
Switch
DB2601
Eingangserfassung
Read-safety der FB1612
Sicherheitselemente
Sicherheitselemente
Elements Schutzbereich
Safety-Area 3 3
Emergencyt
Not-Aus
-Aus Taster FC1701
Schutzbereich
Safety-Area 2 2
Eingangserfassung der
FC1701
Schutzbereich
Safety-Area
Sicherheitselemente 1 1
Eingangserfassung der
Schutztür
FC1701
Sicherheitselemente
StopTaster
NtE--Aus
Not-Aus button
SEDB
Not-Aus
Read Taster
Eingangserfassung
safety der DB2602
Pendelklappe Sicherheitselemente
Elements
Axis-range-controle FB1602
Not-Aus Taster
Schutztür SEDB
Emergency-stop-b.
Not-Aus Taster Schutztür mit
Safety-door +VI-Switch
VI-Schlt.
Muting-Lichtgitter
Schutztür DB2603
FB1603
Pendelklappe
Trittmatte
Safety-mat Schutztür
Safety-door SEDB
Pendelklappe Achsbereichsüberw..
Axis-range-control
Muting-Lichtgitter
DB2604
FB1601
Achsbereichüberwachung
Axis range control
Muting-Lichtgitter SEDB
Trittmatte Muting-Lichtgitter
Muting-Light-curtin
Muting-Lichtgitter
Muting-Light-curtin DB2605
FB1615
Trittmatte
SEDB
Trittmatte
Safety-mat Trittmatte
Safety-mat
DB2606
FB1602
Pendelklappe
Swing door SEDB
Pendelklappe
Swing door
DB2607
FB1602
The input recording of the safety elements that cannot be assigned directly to a
protected area can be programmed in FC1700.
In this network, the user-specific formation of an acknowledgement signal occurs that is
formed by a collection of local acknowledgement buttons in the system.
This signal can be used user-specifically for acknowledgement to SE modules (e.g. FB1602)
in the parameter “RSET.”
According to the shown network “group fault emergency stop” the user has to
generate for each safety area a group fault flag , which contains all emergency
buttons, all BS-elements, and the maintenance (VI) switches- of the area.
For the VI maintenance switch on the PP17-I/EBF, the FB1611 is programmed with the type
36. In this application, the module supplies the following signals via its OUT parameters:
Figure 119 Call of FB110 KP32F-LED VI-maintenance switch interlock active RED
For showing the status of the maintenance switch panel-or plant wide via the KP32F-VI-LED
the preceding “and-logic-gate has to be completed as described.
Using interlocks e.g. Buhl-defined connections, the group flags of the safety areas
or plant area (all locks of the SB active) has to control the VI-LED according to the
maintenance switch positions.
If there is no central interlocking (ZV) in use the input signals at the “and-logic-
gate” can be eliminated.
The signal “all locks of the SB active” must be formed with the use of locks, e.g.
Buhl-defined connections. The group signal must contain all locks of the protected
area and must be assigned in the corresponding protected area FC (e.g. FC1801).
The signal “all locks of the system active” must be assigned user-specifically in
the program (FC1800). The group signal must thus include all locks of the system.
The controlling of the safe outputs occurs in FC1801 to FC1832. For this purpose, various
function modules are available. Necessary preliminary links occur before the FB call, and
parameters will be set with the use of data bits on the FB. The instance DBs of the safety
elements are continuously numbered and start at DB2700 and will be continuously numbered
in ascending sequence.
Adocumentation
detailed description of the modules and their connection can be found in the
for the respective function module.
Schutzbereich 1 Schutzbereichzusammenfassung
Schutzbereich
Eingangserfassung 1 Sammelvariablen
z.B. FC 1701 z.B. FC 1800
>=
DB2501 DBX
“NA_ENBL_xx“
& DB2532 DBX
“SM_NA_000SB_001_NOT“
&
Schutztür mit ZH
DB2501 DBX
Sch utztür -Quitt. “BS_ENBL_xx“
Schutzbereich 2
Eingangserfassung
z.B. FC1702
DB2502
DBX“NA_ENBL_xx“
Figure 122 Example stepping interconnection of the input recording – safety modules
Figure 124 Example of user protection signal – symbol and comment in DB2532
The structure of the DB2532 on the basic application is used only for rough orientation
and must be adapted by the user according to the system configuration and expanded
if necessary.
Inmosttheimportant
integra standard fail-safe library, the DB2501 is provided with the areas for the
FB parameters as an application-specific copying format for the creation
of additional protected areas.
Function:
Emergency stop switch of System A was actuated and forwarded to System B.
Basic information:
• In the system in which emergency OFF was triggered, it must also be acknowledged.
• If a motion that could cause hazards will be initiated due to the unacknowledged start-
up, this must also be acknowledged in this system. (Restart lock using e.g. FB1602,
etc.)
• If a photoelectric barrier (safety area separation) between two systems is triggered, this
photoelectric barrier must be acknowledged on site with a view into the areas and after
that each system must be started again on its own.
Care must be taken that the FB1524 (F_RCVDP) is always called in the first network of the
FC1601. As instance DBs for the calls of the FB1524, the data modules DB2560 to DB2579
are used.
The FB1523 (F_SENDDP) must always be called in the last network of the FC1601. As
instance DBs for the calls of the FB1523, the data modules DB2580 to DB2599 are used.
With one communication, 16 safe binary signals and two safe integer values can be
transferred in both directions. If this is not adequate, several safe connections can also be
set up between two controls. This occurs by expansion of the HW configuration and multiple
calls of the FB1523 and FB1524.
The configuration for PROFIBUS DP with the DP/DP coupler for the safe
communication is described in the Project Planning Guideline
“000_B3.26.03_PRL_HWKonfig_PROFIBUS.”
It must be ensured that the FB1524 (F_RCVDP) is always called in the first network of the
FC1601. As instance DBs for the calls of the FB1524, the data modules DB2560 to DB2579
are used.
The FB1523 (F_SENDDP) must always be called in the last network of the FC1601. As
instance DBs for the calls of the FB1523, the data modules DB2580 to DB2599 are used.
With one communication, 16 safe binary signals and two safe integer values can be
transferred in both directions. If this is not adequate, more safe connections can also be set
up between two controls. This occurs by expansion of the HW configuration and multiple
calling of the FB1523 and FB1524.
The configuration for PROFINET IO with the PN/PN coupler for safe
communication is described in the Project Planning Guideline
“000_B3.26.03_PRL_HWKonfig_PROFINET.”
All inputs of the function modules are parameterized. For the fixed parameterizing of FB
inputs with VKE = 0 or VKE = 1, the bit memories M2.0 and M2.1 from the standard program
must not be used.
For VKE0 and VKE1 in the F program, the safe data bits are used from the data module
DB3276 “F_GLOBDB.”
nichtsicheres F-Programm
Programm FC1701
FC 34 DB 95 FB 1600
DB 1134...1138 DB 2601
DB 2601 Status
Typ 1
FC1801
DB 2701 DB2501
Ausgangsparameter
Typ 22 zur Ansteuerung des
sicheren Ausgang
(direkt sicheres
FC 96 Ausgangs-Peripherie-
DB 1140...1148 Signal)
FB 1623 FB 1623
DB 2702
DB 2701 DB 2702
Eingangsparameter Typ 22
„KeinStop“ des
Funktionsgruppen-FC
FC 202 FC 202
DB 501 DB 502
FC82 FC82
FB215
symbolic name of
the Instanz-DB of
the Safety-Elements
Asafety
few FBs have an input parameter Diag_UEB. If this input has the status = 1 and the
element is triggered, in the instance DB of the safety element the bit Farbe_ROT
is not set, rather the bit Farbe_GELB [Color_YELLOW] is set. The consequence of
this is that no entry from the FC96 occurs in the emergency OFF FGDB (and thus also
not in the interrupt line).
symbolic name of
the instanz-DB of the
safety-element
Ifcana hardware error occurs (e.g. passivation of an F_DI module), several error alarms
occur at the same time since several FBs of safety elements access inputs of the
same HW module.
Itcorrespond
is necessary for the symbols and comments from the instance DBs to
precisely to the following convention (including comma):
Symbol Kommentar
SEDB_001BR_010-FN2 NET001=001BR_010-KF021.5, Emergency Stop
SEDB_001WAS001-SF1 NET001=001WAS001-FN029.2, VI-plant
SEDB_010RB_100 NET001=010RB_100-KF080.1, Robot
Figure 134 Symbols and comments of instance DBs of the safety elements
The emergency OFF and error texts generated from this look like the following:
Emergency OFF:
001BR_010-FN2 Emergency OFF (Text for the emergency off button at the EBF)
001WAS001-SF1 maintenance switch plant (Text for the maintenance switch)
010SB_010_PMEF1 PME-F (Text for a PME-F module)
Error:
Element 001BR_010-FN2 NET001=001BR_010-KF021.5 error
Element 001WAS001-SF1 NET001=001WAS001-FN029.2 error
Element 010SB_010-PMEF1 NET001=001EK_111-KF024.1 error
Figure 135 Example emergency OFF and error texts of the safety elements
1. 2. 3. 4.
1. Function group (if a classification identification is required, this is separated using a
“minus” sign/see –FN2)
In the case of a PME-F, following the function group designation there is the module
designation with sequential module number.
InSafetheinput
non-safe program section, safe input signals must not be queried directly.
signals are basically evaluated using safety FBs (e.g. FB1600). In this way,
both their visual display and the correct reintegration of the safe input module is
ensured.
If safe input signals whose correct reintegration is ensured are needed for queries in
the non-safe program section, these safe input signals are routed in the safe program
section to bit memories and/or data bits of the safety area DBs.
DB2501…2549
Figure 136 Interface between non-safe and F program (example: MS-Lenze 16-bit
architecture)
S7-Anwenderprogramm
S7-Anwender-Failsafe-Programm
FC1801 Aufruf Motorstarter-FB
The processing of the drive remains active by this network until the drive reports the signal
“ST_STO” = 1 (drive stops).
With the signal query “Ereig_HW_passiviert” and “Ereig_HW_Fehler,” in the case of an error
a “Kein_stop” will be triggered in the function modules.
Modules from the F program cannot be generated as sources and also cannot be
exported.
Index of Illustrations
Figure 1 Change language to english (South Africa) .......................................................13
Figure 2 Name of variables in the FGDB .........................................................................14
Figure 3 Change language to english (South Africa) .......................................................15
Figure 4 Setting the operand field width ..........................................................................16
Figure 5 setting the PG/PC interface ...............................................................................16
Figure 6 Basic application S7 319F-3PN/DP ...................................................................17
Figure 7 project adjustments within the hardware configuration.......................................18
Figure 8 Setting for Comment Management ....................................................................18
Figure 9 Hardware configuration S7 319F-3PN/DP .........................................................19
Figure 10 Properties S7 319F-3PN/DP, General .............................................................20
Figure 11 Properties S7 319F-3PN/DP, Start-up .............................................................20
Figure 12 Properties S7 319F-3PN/DP, Synchronous cycle interrupts ............................21
Figure 13 Properties S7 319F-3PN/DP, Cycle/clock memory ..........................................22
Figure 14 Properties S7 319F-3PN/DP, Retentive memory .............................................22
Figure 15 Properties S7 319F-3PN/DP, Interrupts ...........................................................23
Figure 16 Properties S7 319F-3PN/DP, Time-of-day interrupts .......................................23
Figure 17 Properties S7 319F-3PN/DP, Cyclic interrupts ................................................24
Figure 18 Properties S7 319F-3PN/DP, Diagnostics/Clock..............................................24
Figure 19 Properties S7 319F-3PN/DP, Protection ..........................................................25
Figure 20 Properties S7 319F-3PN/DP, Communication .................................................26
Figure 21 Properties S7 319F-3PN/DP, F parameters.....................................................26
Figure 22 Properties S7 319F-3PN/DP, Webserver deactivated......................................27
Figure 23 Properties of PN-IO, General...........................................................................29
Figure 24 Properties of PN-IO, Addresses ......................................................................30
Figure 25 Properties of PN-IO, PROFINET .....................................................................30
Figure 26 Properties of PN-IO – Synchronization ............................................................31
Figure 27 Properties of Media Redundancy ....................................................................31
Figure 28 Properties of PN-IO, Time-of-day synchronization ...........................................32
Index of Tables
Table 1 Abbreviation for symbols for DB .........................................................................39
Table 2 Abbreviations for symbols for bit memories ........................................................40
Table 3 Conveyor technology field bus node error and associated shutoff level ..............65
Table 4 Mechanization field bus node error and associated shutoff level ........................67
Table 5 Process technology field bus node error and associated shutoff level ................68
Table 6 Parameter “FG_S7G_Kette” ...............................................................................82
Table 7 Parameter “F program/DB classification suggestion” ........................................116