Simatic Automation System S7-300 CPU 317TF-2 DP: Controlling A SINAMICS S120 With Safety Functions
Simatic Automation System S7-300 CPU 317TF-2 DP: Controlling A SINAMICS S120 With Safety Functions
Simatic Automation System S7-300 CPU 317TF-2 DP: Controlling A SINAMICS S120 With Safety Functions
___________________
Introduction
___________________
Preparation 2
___________________
Wiring 3
SIMATIC
___________________
Configuration 4
Automation System S7-300
CPU 317TF-2 DP: ___________________
Programming 5
Controlling a SINAMICS S120
with Safety Functions ___________________
Trial run 6
Getting Started
___________________
Further Information 7
10/2012
A5E02982990-03
Legal information
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
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
CAUTION
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
NOTICE
indicates that an unintended result or situation can occur if the relevant information is not taken into account.
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 Introduction................................................................................................................................................ 5
2 Preparation ................................................................................................................................................ 7
2.1 Requirements.................................................................................................................................7
2.2 Task ...............................................................................................................................................9
3 Wiring ...................................................................................................................................................... 13
4 Configuration ........................................................................................................................................... 17
4.1 Setting up the T station with the help of wizards .........................................................................17
4.2 Configuring the F-DI signal module .............................................................................................20
4.3 Configuring the F-DO signal module ...........................................................................................23
4.4 Configuring a drive in HW Config.................................................................................................25
4.5 Downloading the hardware configuration to the target hardware ................................................26
4.6 Configuring a drive in S7T Config ................................................................................................27
4.7 Message frame configuration of the drive....................................................................................42
4.8 Configuring safety-related communication between the TF-CPU and drives with safety
functions.......................................................................................................................................43
4.9 Configuring the properties of the TF-CPU ...................................................................................46
4.10 Interconnecting the safety data block with SINAMICS parameters .............................................47
4.11 Configuring safety functions on the drive.....................................................................................51
4.12 Configuring an axis in S7T Config ...............................................................................................54
5 Programming ........................................................................................................................................... 61
5.1 Creating technology data blocks..................................................................................................61
5.2 Creating an S7 user program.......................................................................................................63
5.3 Editing the safety program ...........................................................................................................64
6 Trial run ................................................................................................................................................... 69
7 Further Information .................................................................................................................................. 73
Validity
The manual is valid for the following components:
● CPU 317TF-2 DP as of V 2.7/4.1.5
● SINAMICS S120 as of V 2.6.2
● S7 Technology as of V 4.2 SP1
● S7 Distributed Safety as of V 5.4 SP5 and S7 F Configuration Pack as of V 5.5 SP7
Requirementss
This document presumes that you have connected a SINAMICS S120 drive system
to the DP(DRIVE) interface of the CPU 317TF-2 DP.
We recommend the following manuals as preparation:
● Getting Started "CPU 317T-2 DP: Controlling an SINAMICS S120"
● Getting Started "S7 Distributed Safety"
● System manual "Safety Engineering in SIMATIC S7"
Requirements
The following requirements must be fulfilled:
● You have an S7-300 station, consisting of:
– Power supply (PS), e.g. 6ES7307-1KA00-0AA0
– CPU 317TF-2 DP with Memory Card (8 MB or more),
6ES7317-6TF14-0AB0 V 2.7/V 4.1.5.
– Digital input module, safety-related (F-DI) with bus connector,
for example, 6ES7326-1BK02-0AB0
– Digital output module, safety-related (F-DO) with bus connector,
for example, 6ES7326-2BF10-0AB0
– Safety protector, 6ES7195-7KF00-0XA0
– Digital input module (DI) with bus connector, for example, 6ES7321-1BH02-0AA0
– Digital output module (DO) with bus connector, for example, 6ES7322-1BH01-0AA0
– Two optional front connectors for the digital modules
● For operating the safety functions, you need:
– Emergency stop switch, dual channel - see the Configurator for pushbuttons and
SIRIUS 3SB3/3SF5 indicator lamp in the Internet
(http://www.siemens.com/industrymall)
– Key switch, dual channel - see the Configurator for pushbuttons and SIRIUS
3SB3/3SF5 indicator lamp in the Internet (http://www.siemens.com/industrymall)
– 2 hinge position switches, dual channel, to monitor the protected zone door -
see the Configurator for position switches in the Internet
(http://www.siemens.com/industrymall)
● A PG with MPI interface and properly installed software packages and commissioning
tools as listed below:
– STEP 7 as of V5.5 SP1
– S7 Technology as of V 4.2 SP1
– Distributed Safety as of V 5.4 SP5 with F Configuration Pack as of V 5.5 SP7
● The PG is connected to the CPU via the MPI/DP interface
(transmission rate up to 12 Mbps; default 187.5 kbps):
– PROFIBUS cable 6ES7901-4BD00-0XA0 (for transmission rates up to 12 Mbps)
● A SINAMICS S120 drive system with the following components is connected to the
CPU 317TF-2 DP via the DP(DRIVE) interface:
– CU320 Control Unit with TB30 Terminal Board (6SL3040-0MA00-0AA1)
– Smart Line Module 5 kW (6SL3130-6AE15-0AA0)
– Single/Double Motor Module 3 A (6SL3120-2TE13-0AA3)
– 1 synchronous motor 1FK7022-5AK71-1AG3 with incremental encoder sin/cos 1 Vpp
via sensor module cabinet SMC20 (6SL3055-0AA00-5BA1) - optional
– 1 synchronous motor 1FK7022-5AK71-1LG3 with DRIVE-CLiQ interface:
Absolute encoder EnDat 512 pulses/revolution
– Reference loops for position monitoring
– Control box for setpoint/actual-value linkage via terminals
● SINAMICS S120 has the factory settings.
● You know the firmware version of your SINAMICS S120.
If you do not know the firmware version, you can find the version listed in the supplied
documents. Alternatively, you can open the "content.txt" file on the CF card. The firmware
version is in the "Internal Version" entry. You can find more detailed information on
reading the firmware version in the SINAMICS S120 product information.
Note
We have used a SINAMICS S120 training case as an example of a drive for this
Getting Started. The training case is available under the following order number:
• Single-axis version with 1FK7 motor
6ZB2480-0AA00
• 2-axis version with 1FK7 motors
6ZB2480-0BA00
WARNING
Non-compliance with the regulations can result in serious injuries and damage to
machines and equipment.
Operation of an S7-300 as part of plants or systems is subject to special rules and
regulations, based on its field of application. Please note the current safety regulations
for the prevention of accidents, e.g. IEC 204 (EMERGENCY-OFF equipment).
2.2 Task
The example includes a technology task (positioning) with safety functions.
The axis moves in a production area with access control.
Technology task
The positioning requests are performed via two inputs:
● Start position at position 1 (0 mm)
● Start position at position 2 (5000 mm)
3RVLWLRQ 3RVLWLRQ
$[LV
Safety elements
The following figure shows the safety elements in the protection zone.
Actuation of safety elements triggers the following safety functions on the drive:
Safety element Safety function on the drive
Emergency stop switch Safe Stop1 (SS1)
Position switch on safety door Safe Stop2 (SS2)
Key switch Safe Limiting Speed (SLS)
Example configuration
The tasks in the example result in the following hardware assembly:
)DLOVDIH7HFKQRORJ\&38
&387)'3
VDIHW\SURWHFWRU
)',
)'2
36 &38
', '2
352),%86
'3'5,9(
3*3&SURJUDPPLQJGHYLFH 6,1$0,&66
'5,9(&/,4
352),%8603,
1R'5,9(
; ;
&/,4
; ;
LQWHUIDFH
; ;
3URJUDPPLQJ ; ;
GHYLFH3*ZLWK
6'LVWULEXWHG6DIHW\
67(3
67HFKQRORJ\
&8
;
;
6PDUW/LQH 'RXEOH0RWRU
0RGXOH 0RGXOH 60&
0
0
Motor M2 is a component of the SINAMICS S120 training case but is not used in the
example at hand.
Basic procedure
Configure the TF-CPU, drive and an axis using HW Config and S7T Config. Configure the
safety functions on the drive with S7T Config. Then operate the configured axis with the user
program. The technology functions are included in the standard component of the user
program. The safety functions are controlled by the safety program. The status of the safety
functions on the drive is evaluated in the safety program.
The task is divided into the following learning units:
Example program
The program blocks for the described example can be found in STEP 7 in the sample
project, PROJECT-CPU317TF. You can open the project in SIMATIC Manager with
File > Open > Sample Projects, copy the program blocks into your own project and adapt
them to your hardware assembly.
Procedure
You can find a similar description of the installation and wiring of the CPU 317T(F)-2 DP in
the Getting Started Collection S7-300 PLC: CPU 31x: Commissioning in the Internet
(http://support.automation.siemens.com/WW/view/en/15390497).
352),%86
LQWHUIDFH
$GGUHVV
9
0
',['&9
0
'2['&9$
/
0
/
0
② Reset ⑧ MC_Halt_Done
③ Stop ⑨ MC_MoveAbsolut1_Done
⑥ MC_Power_Status ⑫ MC_MoveAbsolut2_SLS_Done
9
)',
'&9
/ /
0 0
9V 9V
9V 9V
9
)'2['&9$
/
0
/
/
/ /
0 0
0 0
① Safety disabled
④ F acknowledgment required
Procedure
Step Activity
1 Create a new project in the SIMATIC Manager (e.g. "Getting Started CPU 317TF").
2 Select the Insert > Station > SIMATIC T Station menu command.
Step Activity
3 Select the following settings in the fields:
CPU type: CPU317TF-2 DP
"Generate Technology System Data" option activated
"MPI/DP": New, type "MPI", transmission rate 1.5 Mbit/s or higher
"PG/PC": New, "Assign" option activated
If required, press the button "Help" to obtain additional information. Confirm with "OK".
Result: A new SIMATIC 300 station is created in the project with a CPU 317TF-2 DP (latest version).
4 Open the hardware configuration and add the following modules, as specified in the section
Requirements (Page 7):
• Digital input module DI16xDC24V, e.g. 6ES7321-1BH02-0AA0
• Digital output module DO16xDC24V/0.5A, e.g. 6ES7322-1BH01-0AA0
5 Save and compile the hardware configuration.
The system compiles your project, and adds the "Technology Objects" object to the project window in
SIMATIC Manager.
6 Download the hardware configuration to the target system.
Note
You must set a password to provide access permission for the safety program.
Procedure
Step Activity
1 In slot 6 of the previously created hardware configuration, add an SM 326F DI24xDC24V F-DI
signal module (6ES7 326-1BK02-0AB0).
2 Open the "Parameters" tab in properties of the F-DI signal module.
There you change the following parameters:
• Operating mode
• F-Parameters
• Module parameters
3 Select "Safety mode".
4 Open the "F-Parameters" folder.
Note the DIP switch setting and set the DIP switch of the module to match.
5 Open the "Module parameters" folder.
Select "Channel passivation" as the "Reaction to channel errors".
Step Activity
6 Assign the parameters of the channels used as shown in the "Configuration of the input channels" table:
Keep the default settings for channels 0 and 12, 1 and 13, 2 and 14:
For channels 3 and 15, select the parameters as shown in the following figure:
Step Activity
7 Deactivate the remaining channels of the 1Vs / 3VS supply group and all channels of the 2VS / 4VS supply
group by clearing the check marks of the "Activated" option.
Confirm the entries with OK.
8 Enter a password for the safety program.
Result
The configuration of the F-DI signal module is complete.
Channel Use
DO channel 0 Safety mode deactivated
DO channel 1 Setup mode activated (safety door open and key switch on "Setup")
DO channel 2 Emergency off active (emergency stop button is pressed or safety door
open without setup mode)
DO channel 3 Acknowledgment required (at least one F-I/O has a fault requiring
acknowledgment or needs to be reintegrated)
Note
You have to enter the password for the safety program to configure the fail-safe module.
The names and order of the parameters may differ from the following description if you are
using a different fail-safe module. You can find information on the parameters in the online
help.
Procedure
Step Activity
1 In slot 7 of the hardware configuration, add an SM 326F DO10xDC24V F-DO signal module
(6ES7 326-2BF10-0AB0).
2 Open the "Parameters" tab in properties of the F-DO signal module.
Enter a password for the safety program, if prompted.
3 Select "Safety mode".
4 Open the "F-Parameters" folder.
Note the value of the "DIP switch setting" parameter and set the DIP switch of the module to match this
value.
5 Open the "Module parameters" folder.
Deactivate the "Diagnostics interrupt" option.
Select "Channel passivation" as the "Reaction to channel errors".
Activate the used channels 0 to 3 ("Use of the output channels" table).
Deactivate all other channels.
6 Confirm the entries with OK.
Result
The configuration of the F-DO signal module is complete.
Note
The procedure is described in detail in Step 6 of the Getting Started "CPU 317T-2 DP:
Controlling a SINAMICS S120".
Procedure
Requirements
To get online access to the SINAMICS S120 drive from the programming device, you need
routing between the X1-MPI/DP interface and the PROFIBUS-DP (DRIVE) through the
technology CPU.
Ensure that the appropriate PG/PC assignment has been made. If required, configure a
PG/PC assignment in NetPro.
Note
The procedure is described in detail in Step 7 of the Getting Started "CPU 317T-2 DP:
Controlling a SINAMICS S120".
Procedure
Step Activity
1 Download the hardware configuration to the CPU using the menu command PLC > Download to Module.
2 Close HW Config with Station > Exit.
Basic procedure
The drive is configured in two steps:
1. Automatic online configuration of the drive
2. Offline configuration of the drive with full DRIVE-CLIQ technology
Requirements
Routing is configured between the X1-MPI/DP interface and the PROFIBUS-DP (DRIVE)
through the TF-CPU in NetPro.
The factory settings are set on the drive.
Step Activity
1 Open S7T Config. To do this, select "Technological objects" and the Options > Configure technology menu
command in the SIMATIC Manager.
Result: S7T Config opens.
2 Save the current project data using the Project > Save and Recompile All command.
3 Switch to online mode by selecting the Project > Connect to target system menu command.
Step Activity
4 In the project navigator, open the tree structure SIMATIC 300(1) > Technology > S120_CU320.
Double-click "Automatic configuration".
Step Activity
6 Set the drive object type for both motors to "Servo" and confirm with "Create".
The two drive objects will be created and preconfigured automatically. The configuration data will be loaded to
the programming device.
Note:
The SINAMICS training case on which this document is based has two different motor types. One of the two
motor types uses DRIVE-CLIQ technology. The second encoder is connected via SMC20, which is why
DRIVE-CLiQ recognizes that a second encoder is present and creates it. However, the second motor cannot
be configured automatically.
7 Click "Go OFFLINE" to change to offline mode.
Note
For the application example, you only need the "Servo_02" drive with full DRIVE CLIQ
technology. "Servo_03" drive is configured automatically, but it is not necessary.
Step Activity
1 In the project navigator, open the SIMATIC 300(1) > Technology > S120_CU320 > Drives > Servo_02 >
tree structure. Double-click "Configuration" to open the offline drive configuration.
2 Click "Configure DDS..." to start the configuration.
The motor module features full DRIVE-CLIQ technology and has already been preconfigured correctly.
The correct motor and encoder have already been set.
Step Activity
3 Accept the default settings and click "Next >".
Step Activity
4 The motor module has DRIVE-CLIQ technology and has already been configured correctly.
Check the order number and click "Next >".
5 The SINAMICS training case on which this document is based does not have an active infeed module.
Confirm the warning about wiring of the operating signal with "Close".
Step Activity
6 Click the blue button and in the TB30_04 context menu, select digital input 0, which corresponds to parameter
r4022, bit 0. Then click "Next >".
Step Activity
7 The motor with full DRIVE-CLIQ technology is connected to the X1 terminal of the motor module. Click "Next >".
Step Activity
8 The motor with complete DRIVE-CLIQ technology has already been correctly configured. Click "Next >".
Step Activity
9 Select "No motor holding brake..." and click "Next >".
Step Activity
10 The correct encoder has already been correctly configured by means of DRIVE-CLIQ technology. Click "Next >".
Step Activity
11 Set the PROFIdrive telegram type to "SIEMENS telegram 105" and click "Next >".
Step Activity
12 Click the "Finish" button to exit the offline configuration of the drive.
The offline configuration of the drive is complete. Close the dialog box with "Close".
Step Activity
13 Open the drive object in the project navigator: SIMATIC 300(1) > Technology > S120_CU320 > Drives >
Servo_02. Select Open-loop/closed-loop control > Setpoint addition and click "Deceleration ramp".
Enter 3 s in the "OFF3 ramp-down time" box and close the dialog box with "Close".
Step Activity
14 In the project navigator, open the tree structure SIMATIC 300(1) > Technology > SINAMICS_S120 > Drives >
Servo_02.
Select the Expert list command from the shortcut menu.
15 Select parameter "p210" and enter "400".
The Smart Line Module and the Motor Module of the SINAMICS S120 training case have been especially
equipped for operation on a 230 V system. For this reason, "Parameter p210" of the connected drives must be
set to the following value, which differs from the factory settings:
p210 = 400 V device connection voltage SERVO/VECTOR
The setting of "parameter p210 = 400V" cannot be calculated by the SINAMICS operating system and is preset
for a 230 V power supply for the error-free operation of the SINAMICS S120 training case.
Select the "p1248" parameter (DC link voltage threshold, lower) and enter "244" V.
Result
This completes configuration of the drive in S7T Config.
You now can configure the PROFIdrive telegrams of the drive.
Requirements
The offline configuration of the drive is complete.
Procedure
Step Activity
1 In the project navigator, open the tree structure SIMATIC 300(1) > Technology > S120_CU320 > Communication.
Double-click "Telegram configuration".
2 In the "Telegram configuration" dialog box, verify that the telegram type for the drive is set to
"SIEMENS telegram 105".
3 Select the "Servo_02" line and click "Adapt telegram configuration > Add PROFIsafe".
Result: A new line for a PROFIsafe telegram (30) is inserted before the standard telegram 105.
4 Select standard telegram 105 and add an additional telegram extension for the safety data block:
3 words of input data, 0 words of output data (from master view).
5 Click "Align message frame with HW Config: Set up addresses" to have the message frame address set in the
"Input data" and "Output data" columns.
The telegram configuration should then appear as follows:
Step Activity
6 Check whether valid addresses are entered for all telegrams and close the dialog box.
7 Select the Project > Save and Recompile All menu command to save and compile the entire technology project.
8 Select the Project > Connect to target system menu command to switch to online mode.
9 The desired configuration is on the PG/PC.
In the project navigator, select the SIMATIC 300(1) > Technology > S120_CU320 tree structure. To transfer the
configuration to the drive, select the Target system > Download menu command. If necessary, click
"<== Download" in the "Online / Offline comparison" dialog box to transfer the configuration.
10 At the security prompt for the download, select the "After loading, copy RAM to ROM" option and click "Yes".
11 Close the dialog box with "Close".
12 In S7T Config, select the Project > Disconnect from target system menu command to switch to offline mode.
Requirements
● The TF-CPU is configured in HW Config.
● The drive with safety functions is configured on the DP (DRIVE).
Note
Any changes to the hardware configuration at a later time require a new configuration of
the drive in S7T Config.
Procedure
To configure the master-slave coupling in HW Config, proceed as follows:
Step Description
1. In HW Config, double-click the technology (slot 3) and then select the "F-Configuration" tab. Click "Configure".
The "Properties - DP Slave" dialog box opens.
2. Select the "Technology" line in the "Coupling" tab and click "Connect".
The ID of the technology as an internal DP slave appears in the "Active Connection" box.
Confirm with "OK".
3. Click "Configure" again. The "F-Configuration" tab is now visible in the "Properties - DP Slave" dialog box.
4 Open the "F-Configuration" tab and click "New" to configure a safety-related communication link between the
TF-CPU and a drive, PROFIsafe module on the DP (DRIVE).
Step Description
5
IMPORTANT: Note the fail-safe target address, because you will need it for the safety configuration
of the drive in S7T Config.
• In the "Local" folder: Keep the suggested local start address in the I-slave or enter a free address > 63.
• In the "Master (Safety Program" folder, enter the start address "Address (LADDR)" through which the drive
should be accessed from the safety program of the F-CPU of the DP master. The address must be within
the process image, for example, 100.
Step Description
6 Follow the instructions in the online help if necessary.
Confirm the entries with OK.
Result
The configured safety-related communication link between Integrated Technology (I-slave) and the drive
(PROFIsafe module) is now displayed.
Procedure
Step Activity
1 Open the properties of the CPU 317TF-2 DP in HW Config.
2 Make the following settings in the "Protection level" section of the "Protection" tab:
Select the "Can be bypassed with password" option under "1: Access protection for F-CPU".
In the "Password" box, enter a password for the F-CPU (max. 8 characters) and repeat your entry in the
"Enter again" box.
Select the "CPU contains safety program" option.
3 Confirm the entries with OK.
4 Save and compile the hardware configuration.
5 Download the hardware configuration to the CPU using the menu command PLC > Download to Module.
Interconnect the individual bits of the safety data block in the telegram configuration of the
drive using a binector connector converter.
Procedure
Step Activity
1 In S7T Config, open the telegram configuration of the drive.
2 Select the created telegram extension and click "Interconnections / Diagnostics".
3 In the "Transmit direction" tab, disable the "Suppress inactive interconnections" option so that the free
interconnections will be displayed.
4 In the "Transmit direction" tab, assign the interconnected binector connector converter and the r9733 parameter
to the telegram extension.
In the PCD 11 line, click the left blue box to create the interconnection with r2089[3].
Step Activity
5 In the PCD 12/13 line, click the left blue box to create the interconnection with r9733[0].
Select the "Suppress inactive interconnections" option.
The interconnection then appears as follows:
Step Activity
6 Open the "Binector connector converter" tab.
Make sure that the p2051[10] parameter is interconnected in "Status word 4 sources".
Make the required interconnections according to "Interconnection of the safety data block" table,
as shown in the figure below.
Requirements
S7T Config is in online mode.
Procedure
Step Activity
1 Select "Functions > Safety Integrated" under your drive in the project navigator.
Click "Change settings" in the "Safety integrated" dialog.
2 Select "Extended functions via PROFISafe" in the "Safety function selection" box.
3
Step Activity
4 In the "PROFIsafe address" dialog box, enter the hexadecimal value of the "F target address" of the master-slave
coupling for the drive from HW Config. In this case, the address 1022 (3FE hex) was automatically assigned in
HW Config.
5 Click "Close" to confirm the entries and close the "Configuration" dialog.
6 Click "Safe stop functions" in the "Safety integrated" dialog.
Enter 5 mm in the "Safe stop functions" dialog, "Standstill tolerance SOS" dialog box.
Click "Close" to confirm the entries and close the "Safe stop functions" dialog.
7 Click "Safe limited speed (SLS)" in the "Safety integrated" dialog.
Step Activity
8 In the "Safely limited speed" dialog, enter 500 ms under "Delay time between sel. SLS --> SLS active".
Procedure
Result: The "Axis Configuration - Axis_1 - Axis Type" dialog box opens.
Result: The "Axis Configuration - Axis_1 Drive Assignment" dialog box opens.
Result: The "Axis configuration - Axis_1 - Encoder assignment" dialog box opens.
Procedure
Edit the DB numbers as shown in the figure in order to adapt these for use in our example.
2 Create the technology DBs listed below by clicking "Create": The system generates the technology data
blocks DB 1 to DB3, or DB4.
• Axis_1
• Axis_2 (if this exists)
• Trace
• MCDevice
3 Close the "Technological Objects Management" via the
Technological objects > Exit menu command.
4 Select Station > Save and compile menu command in HW The configuration data will be saved and
Config. compiled.
5 Download the hardware configuration to the TF-CPU using The configuration data will be downloaded to
the menu command PLC > Download to Module. the TF-CPU.
6 In the SIMATIC Manager select the block folder of the All blocks will be downloaded to the
station and select the menu command PLC > Download. TF-CPU.
Procedure
Advanced procedure
You create and generate the blocks of the safety program.
CAUTION
For more detailed information on creating the safety program, refer to the manual
"S7 Distributed Safety - Configuring and Programming".
Requirements
The hardware configuration is complete, saved and compiled.
A fail-safe data block of type F-Global DB with the symbolic name F_GLOBDB is available in
the block folder of the S7 program. The F-Global DB is automatically inserted in HW Config
during saving and compiling of the hardware configuration when the "CPU contains safety
program" option is enabled in the properties of the CPU.
A fail-safe module of the type F_CALL is in the block folder of the S7 program.
Note
The "PROJECT_CPU317TF" sample project contains an FC1 block of the type F_CALL.
Note
When the hardware configuration is compiled, S7 Distributed Safety automatically creates
fail-safe blocks that are required in the safety program. These blocks may not be deleted
and not be changed.
Procedure
If the specified blocks do not yet exist, they will be created after confirmation of the entries.
Therefore, confirm any questions with "Yes".
6 In the SIMATIC Manager, open OB 1 and check whether the call of FB100 (F_SimplePositioning) is
consistent (it is not red).
7 Open OB 35 and check whether the call of FC 1 (F_CALL) is consistent (it is not red).
The collective signature of all F-blocks with the F-attribute in the block container and the collective
signature of the safety program are identical (as highlighted in the picture). In other words, there is now a
consistent safety program ready for an acceptance procedure.
10 Click "Download" to load the safety program to the CPU.
A prompt appears offering you the option of downloading the standard user program along with the safety
program.
11 Confirm with "Yes".
Note: If you only download the F-blocks, the block in which the F-CALL block is called (cyclic interrupt
OB 35 in the example here) will not be loaded. You will then have to download the OB separately as in the
standard.
Note: You can only download the complete safety program in STOP mode.
Result
You successfully created the safety program in accordance with the task objective of the
example.
The following is a description of trial runs for the control of safety functions on the
SINAMICS drive.
Note
The trial run for the technology task without safety functionality is described in detail in the
Getting Started "CPU 317T-2 DP: Controlling a SINAMICS S120".