Summary of Contents for Siemens SIMATIC 317TF-2 DP
Page 1
___________________ CPU 317TF-2 DP: Controlling a Introduction SINAMICS S120 with Safety Functions ___________________ Preparation ___________________ Wiring SIMATIC ___________________ Configuration Automation System S7-300 ___________________ CPU 317TF-2 DP: Controlling a Programming SINAMICS S120 with Safety ___________________ Functions Trial run Getting Started ___________________ Further Information 07/2010 A5E02982990-01...
Page 2
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.
Table of contents Introduction..............................5 Preparation ..............................7 Requirements..........................7 Task .............................10 Wiring ..............................15 Configuration ............................19 Setting up the T station with the help of a wizard ................19 Configuring the F-DI signal module .....................20 Configuring the F-DO signal module ...................23 Configuring a drive in HW Config....................25 Downloading the hardware configuration to the target hardware ..........26 Configuring a drive in S7T Config ....................27...
Page 4
Table of contents CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Introduction These instructions provide a practical example guiding you through the commissioning tasks required to create a fully functional application, and showing you how to perform a motion with additional safety functions. It will help you get acquainted with operating CPU 317TF-2 DP and the SINAMICS S120 drive system.
Page 6
Introduction CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
● For operating the safety functions, you need: – Emergency stop, 2-channel - see the Configurator for pushbuttons and SIRIUS 3SB3/3SF5 indicator lamp in the Internet (https://mall.automation.siemens.com) – Key switch, 2-channel - see the Configurator for pushbuttons and SIRIUS 3SB3/3SF5 indicator lamp in the Internet (https://mall.automation.siemens.com)
Page 8
Preparation 2.1 Requirements ● A PG with MPI interface and properly installed software packages and commissioning tools as listed below: – STEP 7 as of V5.4 SP5 – S7 Technology as of V4.2 – Distributed Safety as of V5.4 SP5 with F Configuration Pack as of V5.5 SP7 ●...
Page 9
Preparation 2.1 Requirements ● 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"...
Preparation 2.2 Task 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) ●...
Page 11
Preparation 2.2 Task Safety elements The following figure shows the safety elements in the protection zone. Signal lamps for indicating the operating status Safety door with 2 position switches Emergency stop switch Key switch for setup mode Acknowledgment button for safety-related events and reintegration of the F-I/O Figure 2-1 Production area with access protection CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions...
Page 12
Preparation 2.2 Task 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: Figure 2-2...
Page 13
Preparation 2.2 Task 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.
Page 14
Preparation 2.2 Task CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
You can find a similar description of the installation and wiring of the CPU 317T(F)-2 DP in Getting Started Collection S7-300 PLC: CPU 31x: Commissioning in the Internet (http://support.automation.siemens.com/WW/view/en/15390497). Setting the PROFIBUS address on the CU320 Set the PROFIBUS address of the SINAMICS to PROFIBUS address 4. You set the...
Page 16
Wiring Wiring standard signal modules Figure 3-2 Wiring overview for the standard signal modules ① ⑦ Drive enable MC_Reset_Done ② Reset ⑧ MC_Halt_Done ③ ⑨ Stop MC_MoveAbsolut1_Done ④ ⑩ Start Position 1 MC_MoveAbsolut2_Done ⑤ ⑪ Start Position 2 MC_MoveAbsolut1_SLS_Done ⑥ ⑫...
Page 17
Wiring Wiring the F-DI signal module Figure 3-3 Wiring overview for the F-DI signal module ① Safety door contact top ② Safety door contact bottom ③ Emergency stop switch ④ Key switch for setup mode ⑤ Safety acknowledgment button CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 18
Wiring Wiring the F-DO signal module Figure 3-4 Wiring overview for the F-DO signal module ① Safety disabled ② Setup mode active ③ Emergency stop active ④ F acknowledgment required CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Configuration Setting up the T station with the help of a wizard The station wizard helps you to carry out several steps when configuring a CPU 31xT(F) in one work session. Procedure Step Activity Create a new project in the SIMATIC Manager (e.g. "Getting Started CPU 317TF"). Select the Insert >...
Configuration 4.2 Configuring the F-DI signal module Step Activity 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"...
Page 21
Configuration 4.2 Configuring the F-DI signal module Procedure Step Activity In slot 6 of the previously created hardware configuration, add an SM 326F DI24xDC24V F-DI signal module (6ES7 326-1BK02-0AB0). Open the "Parameters" tab in properties of the F-DI signal module. There you change the following parameters: Operating mode ...
Page 22
Configuration 4.2 Configuring the F-DI signal module Step Activity 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: CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Configuration 4.3 Configuring the F-DO signal module Step Activity 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. Enter a password for the safety program.
Page 24
Configuration 4.3 Configuring the F-DO signal module Procedure Step Activity In slot 7 of the hardware configuration, add an SM 326F DO10xDC24V F-DO signal module (6ES7 326- 2BF10-0AB0). Open the "Parameters" tab in properties of the F-DO signal module. Enter a password for the safety program, if prompted. Select "Safety mode".
Configuration 4.4 Configuring a drive in HW Config Configuring a drive in HW Config Note The procedure is described in detail in Step 6 of the Getting Started "CPU 317T-2 DP: Controlling a SINAMICS S120". Procedure Step Activity Result In the HW catalog, open the tree structure SIMATIC Technology >...
Configuration 4.5 Downloading the hardware configuration to the target hardware Step Activity Result Click "Align". The following components are aligned to the set values: DP cycle in the DP master system All drive components of the same family (here SINAMICS) Confirm with "OK".
Configuration 4.6 Configuring a drive in S7T Config Configuring a drive in S7T Config 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 Requirement Routing is configured between the X1-MPI/DP interface and the PROFIBUS-DP (DRIVE) through the TF-CPU in NetPro.
Page 28
Configuration 4.6 Configuring a drive in S7T Config Step Activity Open the SIMATIC 300(1) > Technology > SINAMICS_S120 tree in the project navigator. Double-click "Automatic configuration". In the "Automatic configuration" dialog box, click "Configure". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 29
Configuration 4.6 Configuring a drive in S7T Config Step Activity 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.
Page 30
Configuration 4.6 Configuring a drive in S7T Config 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. Offline configuration of the drive with full DRIVE-CLIQ technology Configure the drive "Servo_02".
Page 31
Configuration 4.6 Configuring a drive in S7T Config Step Activity Accept the default settings and click "Next >". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 32
Configuration 4.6 Configuring a drive in S7T Config Step Activity The motor module has DRIVE-CLIQ technology and has already been configured correctly. Check the order number and click "Next >". 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".
Page 33
Configuration 4.6 Configuring a drive in S7T Config Step Activity 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 >". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 34
Configuration 4.6 Configuring a drive in S7T Config Step Activity The motor with full DRIVE-CLIQ technology is connected to the X1 terminal of the motor module. Click "Next >". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 35
Configuration 4.6 Configuring a drive in S7T Config Step Activity The motor with complete DRIVE-CLIQ technology has already been correctly configured. Click "Next >". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 36
Configuration 4.6 Configuring a drive in S7T Config Step Activity Select "No motor holding brake..." and click "Next >". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 37
Configuration 4.6 Configuring a drive in S7T Config Step Activity The correct encoder has already been correctly configured by means of DRIVE-CLIQ technology. Click "Next >". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 38
Configuration 4.6 Configuring a drive in S7T Config Step Activity Set the PROFIdrive message frame type to "SIEMENS telegram 105" and click "Next >". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 39
Configuration 4.6 Configuring a drive in S7T Config Step Activity 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". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 40
Configuration 4.6 Configuring a drive in S7T Config Step Activity Open the drive object in the project navigator: SIMATIC 300(1) > Technology > SINAMICS_S120 > 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". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 41
Configuration 4.6 Configuring a drive in S7T Config Step Activity In the project navigator, open the tree structure SIMATIC 300(1) > Technology > SINAMICS_S120 > Drives > Servo_02. Select the Expert > Expert list command from the shortcut menu. 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.
Double-click "Message frame configuration". In the "Message frame configuration" dialog box, verify that the message frame type for the drive is set to "SIEMENS message frame 105". Select the "Servo_02" line and click "Insert line > PROFIsafe". Result: A new line for a PROFIsafe message frame (30) is inserted before the standard message frame 105.
Page 43
Configuration 4.7 Message frame configuration of the drive Step Activity Click "Transfer to HW Config" to have the message frame address set in the "Input data" and "Output data" columns. The message frame configuration should then appear as follows: Check whether valid addresses are entered for all message frames and close the dialog box. Select the Project >...
Configuration 4.8 Configuring safety-related communication between the TF-CPU and drives with safety functions Configuring safety-related communication between the TF-CPU and drives with safety functions To access a drive with safety functions from the F-program via PROFIsafe, you need to configure a master-slave coupling in HW Config. Requirement ●...
Page 45
Configuration 4.8 Configuring safety-related communication between the TF-CPU and drives with safety functions Step Description Click "Configure" again. The "F-Configuration" tab is now visible in the "Properties - DP Slave" dialog box. 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).
Configuration 4.9 Configuring the properties of the TF-CPU Step Description 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. Click OK to close all dialogs.
Configuration 4.10 Interconnecting the safety data block with SINAMICS parameters 4.10 Interconnecting the safety data block with SINAMICS parameters Structure of the safety data block The safety data block is used to extend the TO DB, through which the drive can send process data (PCD) to the technology CPU.
Page 48
Configuration 4.10 Interconnecting the safety data block with SINAMICS parameters Procedure Step Activity In S7T Config, open the message frame configuration of the drive. Select the created message frame extension and click "Configure message frame". In the "Transmit direction" tab, disable the "Suppress inactive interconnections" option so that the free interconnections will be displayed.
Page 49
Configuration 4.10 Interconnecting the safety data block with SINAMICS parameters Step Activity 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: CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 50
Configuration 4.10 Interconnecting the safety data block with SINAMICS parameters Step Activity 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.
Configuration 4.11 Configuring safety functions on the drive 4.11 Configuring safety functions on the drive Requirement S7T Config is in online mode. Procedure Step Activity Select "Functions > Safety Integrated" under your drive in the project navigator. Click "Change settings" in the "Safety integrated" dialog. Select "Motion monitoring using PROFISafe"...
Page 52
Configuration 4.11 Configuring safety functions on the drive Step Activity 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.
Page 53
Configuration 4.11 Configuring safety functions on the drive Step Activity Click on "Safe stops". Enter 5 mm in the "Standstill tolerance SOS" dialog box. Click "Close" to confirm the entries and close the "Configuration" dialog. CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 54
Configuration 4.11 Configuring safety functions on the drive Step Activity Click "Acceleration monitoring". Enter 120,000.0 mm/min in the "Velocity tolerance" dialog box. Click "Close" to confirm the entries and close the "Configuration" dialog. CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 55
Configuration 4.11 Configuring safety functions on the drive Step Activity Click "Safely limited speed (SLS)". CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 56
Configuration 4.11 Configuring safety functions on the drive Step Activity In the "Safely limited speed" dialog, enter 500 ms under "Delay time between sel. SLS --> SLS active". Change the velocity value Vmax for Stage 1 to 1200 mm/min. Click "Close" to confirm the entries and close the "Safely limited speed" dialog. Click "Copy parameters"...
Page 57
Configuration 4.11 Configuring safety functions on the drive Step Activity Click "Activate settings". You are prompted to change the safety password for the drive. Enter a safety password for the drive. CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 58
Configuration 4.11 Configuring safety functions on the drive Step Activity You are prompted to save the safety parameters in the ROM. Click "Entire project". Switch to offline mode in S7T Config by selecting the Project > Disconnect from target system menu command. Switch off the SINAMICS S120 drive system (de-energize) and switch it on again.
Configuration 4.12 Configuring axes in S7T Config 4.12 Configuring axes in S7T Config Creating and configuring an axis technology object using S7T Config Procedure Step Activity Result In the project navigator, open the tree structure SIMATIC 300(1) > Technology > AXES. Double-click "Insert axis"...
Page 60
Configuration 4.12 Configuring axes in S7T Config Step Activity Result Confirm the default technology selection (speed control, positioning) with "OK". Result: The "Axis Configuration - Axis_1 – Axis Type" dialog box opens. CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 61
Configuration 4.12 Configuring axes in S7T Config Step Activity Result Accept the "Axis type: Linear, electrical" and "Motor type: standard motor". Confirm with "Continue". Result: The "Axis configuration - Axis_1 - Units" dialog box opens. CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 62
Configuration 4.12 Configuring axes in S7T Config Step Activity Result Confirm with "Continue". Result: The "Axis configuration Axis_1 - Modulo" dialog box opens. CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 63
Configuration 4.12 Configuring axes in S7T Config Step Activity Result Confirm with "Continue". Result: The "Axis Configuration - Axis_1 Drive Assignment" dialog box opens. CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 64
Configuration 4.12 Configuring axes in S7T Config Step Activity Result The drive configuration, consisting of the drive and message frame, can be taken from the configuration of the drive and only has to be confirmed in this dialog box. Click "Data transfer from the drive" and apply the settings with "Next".
Page 65
Configuration 4.12 Configuring axes in S7T Config Step Activity Result You can take the encoder assignment from the configuration of the drive. Click "Data transfer from the drive" and apply the settings with "Next". Result: The "Axis Configuration - Axis_1 - Encoder - Data" dialog box opens. CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 66
Configuration 4.12 Configuring axes in S7T Config Step Activity Result Enter the resolution specified on your motor rating plate as well as the number of data bits. In our example, the number of encoder pulses is "512" and the number of data bits is "21". Accept the settings with "Continue".
Page 67
Configuration 4.12 Configuring axes in S7T Config Step Activity Result Complete the axis configuration with "Finish". Close the message box with "OK". You completed the axis configuration in S7T Config. CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Page 68
Configuration 4.12 Configuring axes in S7T Config Step Activity Result In the project navigator, open the tree SIMATIC 300(1) > Technology > AXES > Axis_1 > Configuration. "Yes" is shown in the "SINAMICS Safety Integrated Extended Functions" box. Select Project > Save and recompile all to save the The axis configuration will be stored and configuration in S7T Config.
Programming Creating technology data blocks Use "Technology Objects Management“ to generate a technology DB for each TO. Do not copy the technology DBs in order to ensure a defined assignment between the technology DB and its TO. Procedure Step Activity Result Change to "Technology Objects Management".
Programming 5.2 Creating an S7 user program Step Activity Result Close the "Technological Objects Management" via the Technological objects > Exit menu command. Select Station > Save and compile menu command in HW The configuration data will be saved and Config.
Programming 5.3 Editing the safety program 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". Editing the safety program Requirement The hardware configuration is complete, saved and compiled.
Page 72
Programming 5.3 Editing the safety program Procedure Step Activity Result Select CPU 317TF-2 DP in SIMATIC Manager and then The "Safety program" dialog box appears. select the Options > Customize safety program menu command. Click "F-runtime groups" to create a fail-safe runtime group. Click "New"...
Page 73
Programming 5.3 Editing the safety program Step Activity Result Keep the default settings if you have copied the blocks of You return to the "Edit fail-safe runtime the example program into the project. groups" dialog box. If you have programmed your own blocks, select them from the drop-down lists.
Page 74
Programming 5.3 Editing the safety program Step Activity Result Note Because the automatically created blocks have no fixed numbers, errors may occur during compilation of the safety program. In this case, you need to check the addresses of the accesses to the F-I/O in the function blocks of the program and adapt them if necessary.
Page 75
Programming 5.3 Editing the safety program Step Activity Result In the "Safety program" dialog box, open the "Offline" and If they match, then the download has been "Online" tabs one after the other and verify that the successful. collective signatures of all F-blocks with the F-attribute in the If they do not match, repeat the download block container match online and offline.
Page 76
Programming 5.3 Editing the safety program CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
Trial run NOTICE You start the drive with the next steps. To stop the drive again: Set input I0.2 (Stop) to "1" Switch the CPU to STOP. Operating the emergency stop switch The following is a description of trial runs for the control of safety functions on the SINAMICS drive.
Page 78
Trial run Action Reaction Explanation Emergency stop actuated while positioning Drive is slowed to a standstill according to SS1 and STO will is running. OFF3 ramp and the drive is set to zero torque. become active I8.2 = FALSE (emergency stop) Q24.2 = TRUE (emergency stop/safety door active) Trigger emergency stop...
Page 79
Trial run Safely-Limited Speed (SLS) trial run If you operate the commissioning key switch and then open the safety door, then the drive will only travel at a safety-limited speed. If you exceed the speed, then the drive will switch to a safe operating mode.
Page 80
Trial run CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...
● A bulletin board in which users and specialists worldwide exchange their know-how ● Your local Siemens partner for Automation & Drives in our Partner database ● Information about local service, repairs, and spare parts. You will find much more under "Services".
Page 82
Further Information CPU 317TF-2 DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 07/2010, A5E02982990-01...