Siemens SIMATIC S7-300 Getting Started
Siemens SIMATIC S7-300 Getting Started

Siemens SIMATIC S7-300 Getting Started

Automation system, cpu 317tf-3pn/dp: controlling a sinamics s120 with safety functions
Hide thumbs Also See for SIMATIC S7-300:

Advertisement

CPU 317TF-3PN/DP: Controlling a
SINAMICS S120 with Safety Functions
SIMATIC
Automation System S7-300
CPU 317TF-3PN/DP: Controlling a
SINAMICS S120 with Safety
Functions
Getting Started
10/2013
A5E02982990-04
___________________
Introduction
___________________
Preparation
___________________
Wiring
___________________
Configuration
___________________
Programming
___________________
Trial run
___________________
Further Information
1
2
3
4
5
6
7

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC S7-300

  • Page 1 ___________________ CPU 317TF-3PN/DP: Controlling a Introduction SINAMICS S120 with Safety Functions ___________________ Preparation ___________________ Wiring SIMATIC ___________________ Configuration Automation System S7-300 ___________________ CPU 317TF-3PN/DP: Controlling a Programming SINAMICS S120 with Safety ___________________ Functions Trial run Getting Started ___________________ Further Information 10/2013 A5E02982990-04...
  • 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.
  • Page 3: Table Of Contents

    Table of contents Introduction ..............................5 Preparation ..............................7 Requirements ..........................7 Task ............................. 10 Wiring ..............................15 Configuration ............................19 Setting up the T station with the help of wizards ................. 19 Configuring CPU 317TF-3PN/DP in HW Config ................23 Configuring the F-DI signal module .....................
  • Page 4 Table of contents CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 5: Introduction

    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 traverse motion with additional safety functions. It will help you get acquainted with operating the CPU 317TF-3PN/DP and the SINAMICS S120 drive system.
  • Page 6 Introduction CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 7: Preparation

    (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)
  • Page 8 Preparation 2.1 Requirements ● The programming device is connected via Ethernet interface to the CPU: – Ethernet cable IE TP Cord RJ45/RJ45 TP Cable 4 x 2 with 2 RJ45 plug-in connectors 0.5 m 6XV1 870-3QE50 1 m 6XV1 870-3QH10 2 m 6XV1 870-3QH20 6 m 6XV1 870-3QH60 10 m 6XV1 870-3QN10...
  • 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"...
  • Page 10: Task

    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-3PN/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-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 15: Wiring

    An analog description of the installation and wiring of your CPU 317TF-3PN/DP is found 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-2DP Set the PROFIBUS address of the SINAMICS to PROFIBUS address 4. You set the PROFIBUS address on the CU320-2DP directly on the lower rotary coding switch (L).
  • Page 16 Wiring Wiring standard signal modules Figure 3-1 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-2 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-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 18 Wiring Wiring the F-DO signal module Figure 3-3 Wiring overview for the F-DO signal module ① Safety disabled ② Setup mode active ③ Emergency stop active ④ F acknowledgment required CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 19: Configuration

    Configuration Setting up the T station with the help of wizards The station wizard helps you to carry out several steps when configuring a CPU 317TF-3PN/DP in one work cycle. Procedure Step Activity Set up a new project in the SIMATIC Manager (for example, "GS_317TF_3PN-DP_with_S120"). Select the Insert >...
  • Page 20 Configuration 4.1 Setting up the T station with the help of wizards Step Activity Select the item "CPU 317TF-3 PN/DP" from the "CPU type" drop-down list. Make sure that the "Generate technology system data" check box is selected. CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 21 Configuration 4.1 Setting up the T station with the help of wizards Step Activity Select the "Not networked" option in the "MPI/DP" input area. In the "PROFINET" input area, select the "New" option. In the "PG/PC" input area, select the "New" option and select the "Assign" check box. Confirm with "OK".
  • Page 22 Configuration 4.1 Setting up the T station with the help of wizards Step Activity In the area "Interface parameterizations in the PG/PC", select the interface via which your PG/PC is connected to the CPU. Click the "Assign" button to assign the configured interface to the interface of the PG/PC. Confirm with "OK".
  • Page 23: Configuring Cpu 317Tf-3Pn/Dp In Hw Config

    Configuration 4.2 Configuring CPU 317TF-3PN/DP in HW Config Configuring CPU 317TF-3PN/DP in HW Config Procedure Step Activity Result Open HW Config by selecting the "SIMATIC 300" station and double- HW Config opens. clicking "Hardware". From the hardware catalog, select the "SIMATIC Technology CPU" The "SIMATIC Technology"...
  • Page 24 Configuration 4.2 Configuring CPU 317TF-3PN/DP in HW Config Step Activity Result Add a digital input module and a digital output module using drag-and-drop. Digital input module DI16xDC24V (6ES7321-1BH02-0AA0) • Digital output module DO16xDC24V/0.5A (6ES7322-1BH01-0AA0) • You now have this configuration: Result: A digital input module and a digital output module were created.
  • Page 25: Configuring The F-Di Signal Module

    Configuration 4.3 Configuring the F-DI signal module Configuring the F-DI signal module Use of the fail-safe input channels Configure a fail-safe F-DI signal module. The following table shows which safety elements need to be connected to the individual channels and how the channels need to be configured.
  • Page 26 Configuration 4.3 Configuring the F-DI signal module Procedure Step Activity Insert a SM 326F DI24xDC24V F-DI signal module (6ES7 326-1BK02-0AB0) in slot 6 of the previously created hardware configuration. Double-click the F-DI signal module. The "Properties - FDI24xDC24V" dialog box opens. Open the "Addresses"...
  • Page 27 Configuration 4.3 Configuring the F-DI signal module Step Activity Open the "F-Parameters" folder. Set the module DIP switch to match the value of the "DIP switch setting" parameter. Open the "Module parameters" folder. Select "Channel passivation" as the "Reaction to channel errors". CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 28 Configuration 4.3 Configuring the F-DI signal module Step Activity Open the "Supply module 1VS / 3VS" folder. 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 the channels 3 and 15, select the value "1001(1v1) evaluation"...
  • Page 29 Configuration 4.3 Configuring the F-DI 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" check box. Confirm the entries with OK.
  • Page 30: Configuring The F-Do Signal Module

    Configuration 4.4 Configuring the F-DO signal module Configuring the F-DO signal module Use of the fail-safe output channels Configure a fail-safe F-DO signal module. The table below shows which channels are used and the meaning of the connected lights. Table 4- 2 Use of the output channels Channel DO channel 0...
  • Page 31 Configuration 4.4 Configuring the F-DO signal module Step Activity Enter the value "24" in the "Start" field in the "Inputs" and "Outputs" areas. Open the "Parameters" tab. Select "Safety mode". CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 32 Configuration 4.4 Configuring the F-DO signal module Step Activity Open the "F-Parameters" folder. Set the module DIP switch to match the value of the "DIP switch setting" parameter. CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 33 Configuration 4.4 Configuring the F-DO signal module Step Activity Open the "Module parameters" folder. Deactivate the "Diagnostic interrupt" check box. 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.
  • Page 34: Configuring A Drive In Hw Config

    Configuration 4.5 Configuring a drive in HW Config Configuring a drive in HW Config Procedure Step Activity Result In the HW catalog, open the tree structure PROFIBUS DP(DRIVE) > Drives > SINAMICS. Select the "SINAMICS > SINAMICS S120 CU320-2 DP" drive component from the tree structure of the HW catalog.
  • Page 35 Configuration 4.5 Configuring a drive in HW Config Step Activity Result Enter PROFIBUS address "4", then confirm with "OK". Result: The "Properties - SINAMICS" dialog box opens. Select the appropriate device version that is suitable for your SINAMICS, for example, 4.4 and confirm with "OK".
  • Page 36 Configuration 4.5 Configuring a drive in HW Config 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".
  • Page 37: Downloading The Hardware Configuration To The Target Hardware

    Configuration 4.6 Downloading the hardware configuration to the target hardware Downloading the hardware configuration to the target hardware Requirement To get online access to the SINAMICS S120 drive from the programming device, you need routing between the Ethernet interface and the PROFIBUS DP (DRIVE) by means of the technology CPU.
  • Page 38 Configuration 4.6 Downloading the hardware configuration to the target hardware Configuring the PG/PC assignment in NetPro Step Activity Result Start the NetPro network configuration program in HW NetPro is started. Config with Options > Configure network. Select the PG/PC component and open the "Properties – PG/PC" dialog box with Edit > Object properties….
  • Page 39 Configuration 4.6 Downloading the hardware configuration to the target hardware Step Activity Result Select the "Assignment" tab in the "Properties – PG/PC" dialog box. In the area "Interface parameterizations in the PG/PC", select the interface via which your PG/PC is connected to the CPU.
  • Page 40 Configuration 4.6 Downloading the hardware configuration to the target hardware Step Activity Result You have now inserted your PG/PC in the Industrial Ethernet network and established the requirement to exchange data with the SINAMICS control. Complete the network configuration by calling the Network > Save and compile command. Select "Compile and check everything"...
  • Page 41: Configuring A Sinamics Drive In S7T Config

    Configuration 4.7 Configuring a SINAMICS drive in S7T Config Downloading the hardware configuration to the target hardware Step Activity Download the hardware configuration to the CPU using the menu command PLC > Download to Module. Exit HW Config with Station > Exit. Configuring a SINAMICS drive in S7T Config Requirement Routing is configured between the Ethernet interface and the PROFIBUS DP (DRIVE) by...
  • Page 42 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity Select the "Technology" and "S120_CU320_2_DP" check boxes. Confirm with "OK". The "Online / Offline comparison" dialog box opens. Click "<== Download" to transfer the configuration. The "Download" dialog box opens. CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 43 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity Activate the following check boxes: "Store additional data on the target device", "Including DCC chart data", and "After loading, copy RAM to ROM". Confirm with "Yes". Close the "Online / Offline comparison" dialog box. CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 44 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity In the project navigator, open the tree structure SIMATIC 300(1) > Technology > S120_CU320_2_DP. Double-click "Automatic configuration". In the "Automatic configuration" dialog box, click "Configure". CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 45 Configuration 4.7 Configuring a SINAMICS 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 46 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity 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. CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 47 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Offline configuration of the drive with full DRIVE-CLIQ technology Configure the drive "Servo_02". Step Activity In the project navigator, open the tree structure SIMATIC 300(1) > Technology > S120_CU320_2_DP > Drives > Servo_02 >.
  • Page 48 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity Accept the default settings and click "Next >". CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 49 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity The power section has DRIVE-CLIQ technology and has already been correctly configured. 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 50 Configuration 4.7 Configuring a SINAMICS 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-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 51 Configuration 4.7 Configuring a SINAMICS 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-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 52 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity The motor with complete DRIVE-CLIQ technology has already been correctly configured. Click "Next >". CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 53 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity Select "No motor holding brake..." and click "Next >". CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 54 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity The correct encoder has already been correctly configured by means of DRIVE-CLIQ technology. Click "Next >". CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 55 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity Set the PROFIdrive telegram type to "SIEMENS telegram 105" and click "Next >". CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 56 Configuration 4.7 Configuring a SINAMICS 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. CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 57 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity Open the drive object in the project navigator: SIMATIC 300(1) > Technology > S120_CU320_2_DP > 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. In the project navigator, open the tree structure SIMATIC 300(1) >...
  • Page 58 Configuration 4.7 Configuring a SINAMICS drive in S7T Config Step Activity 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 = 400 V"...
  • Page 59: Message Frame Configuration Of The Drive

    In the project navigator, open the tree structure SIMATIC 300(1) > Technology > S120_CU320_2_DP > Communication. Double-click "Telegram configuration". In the "Telegram configuration" dialog box, verify that the telegram type for the drive is set to "SIEMENS telegram 105". Select the "Servo_02" line and click "Adapt telegram configuration > Add PROFIsafe".
  • Page 60 Configuration 4.8 Message frame configuration of the drive Step Activity 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: Check whether valid addresses are entered for all telegrams and close the dialog box.
  • Page 61: Configuring The Properties Of The Tf-Cpu

    Configuration 4.9 Configuring the properties of the TF-CPU Configuring the properties of the TF-CPU Procedure Step Activity Open the properties of the CPU 317TF-3PN/DP in HW Config. Make the following settings in the "Protection level" section of the "Protection" tab: For protection level "1: Access protection for F-CPU", select the "Can be canceled with password"...
  • Page 62 Configuration 4.10 Configuring safety-related communication between the TF-CPU and drives with safety functions Procedure To configure the master-slave coupling in HW Config, proceed as follows: Step Description In HW Config, double-click the technology (slot 3) and then select the "F-Configuration" tab. Click "Configure". The "Properties - DP Slave"...
  • Page 63 Configuration 4.10 Configuring safety-related communication between the TF-CPU and drives with safety functions Step Description In the "DP Slave - F-Configuration" properties dialog: The "F target address" start address of the drive is displayed in the "DP partner (F-I/O)" folder. •...
  • Page 64 Configuration 4.10 Configuring safety-related communication between the TF-CPU and drives with safety functions 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.
  • Page 65: Interconnecting The Safety Data Block With Sinamics Parameters

    Configuration 4.11 Interconnecting the safety data block with SINAMICS parameters 4.11 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 66 Configuration 4.11 Interconnecting the safety data block with SINAMICS parameters Procedure Step Activity In S7T Config, open the telegram configuration of the drive. Select the created telegram extension and click "Interconnections / Diagnostics". In the "Transmit direction" tab, clear the "Suppress inactive interconnections" check box to display the free interconnections.
  • Page 67 Configuration 4.11 Interconnecting the safety data block with SINAMICS parameters Step Activity To establish the interconnection with r9733[0], click the button in the PZD 12/13 line. Select the "Suppress inactive interconnections" check box. The interconnection then appears as follows: CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 68 Configuration 4.11 Interconnecting the safety data block with SINAMICS parameters Step Activity Open the "Binector connector converter" tab. Click the button to show the status word 4 bit by bit. 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"...
  • Page 69: Configuring Safety Functions On The Drive

    Configuration 4.12 Configuring safety functions on the drive 4.12 Configuring safety functions on the drive Requirement S7T Config is in online mode. Procedure Step Activity In the project navigator, select SIMATIC 300(1) > Technology > S120_CU320_2_DP > Drives > Servo_02 > Functions >...
  • Page 70 Configuration 4.12 Configuring safety functions on the drive Step Activity In the "PROFIsafe address" field, 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 71 Configuration 4.12 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 72: Configuring An Axis In S7T Config

    Configuration 4.13 Configuring an axis in S7T Config 4.13 Configuring an axis in S7T Config Important information In this step, you create your technology objects (e.g., axes) with S7T Config. 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.
  • Page 73 Configuration 4.13 Configuring an axis 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-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 74 Configuration 4.13 Configuring an axis in S7T Config Step Activity Result Accept the "Axis type: Linear, electrical". If required, click "Configure units". Confirm with "Continue". Result: The "Axis configuration - Axis_1 - Drive assignment" dialog box opens. CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 75 Configuration 4.13 Configuring an axis in S7T Config Step Activity Result The drive configuration consisting of drive and message frame can be derived from the hardware configuration and merely has to be confirmed in this dialog box. Enter the normalization speed and the maximum motor speed (see motor type plate).
  • Page 76 Configuration 4.13 Configuring an axis in S7T Config Step Activity Result You can copy the encoder assignment from the drive configuration data. Click "Data transfer from the drive" and apply the settings with "Next". Result: The "Axis Configuration - Axis_1 Encoder Configuration" dialog box opens. CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 77 Configuration 4.13 Configuring an axis in S7T Config Step Activity Result Enter the number of encoder pulses specified on your motor rating plate as well as the number of data bits. In our example, the number of encoder pulses per revolution is "512" and the number of data width of absolute value without fine resolution is "21".
  • Page 78 Configuration 4.13 Configuring an axis in S7T Config Step Activity Result Complete the axis configuration with "Finish". The axis configuration in S7T Config has been completed. In the project navigator, open the tree structure SIMATIC 300(1) > Technology > AXES > Axis_1 > Configuration.
  • Page 79: Programming

    Programming Creating technology data blocks Procedure Step Activity Result Change to "Technology Objects Management". Confirm the first message box with "OK", and the second with "Yes". If you are not running the "Technological Objects Management“ application yet, you can open it by double- clicking "Technological Objects“...
  • Page 80: Creating An S7 User Program

    "\Examples\PROJECT-CPU317TF-3PN". Copy all blocks and symbols to your project. If the sample project is not available in the specified directory, you can download it from the Siemens Industry Online Support (http://support.automation.siemens.com/WW/view/en/80106 694) and open it from your local storage location.
  • Page 81: Editing The Safety Program

    Programming 5.3 Editing the safety program Function block FB 101 This block processes the signals of the emergency stop switch, the key switch and the door contact switch securely with safety blocks. Signals for activation of the safety functions at the drive will be written to the I/O area.
  • Page 82 Programming 5.3 Editing the safety program Procedure Step Activity Result Select CPU 317TF-3PN/DP in SIMATIC Manager and then The "Safety program" dialog box opens. select the Options > Customize safety program menu command. Click "F-runtime groups" to create a fail-safe runtime group. CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 83 Programming 5.3 Editing the safety program Step Activity Result Click "New" to create a new fail-safe runtime group. The "Define new F-runtime group" dialog box opens. Keep the default settings if you have copied the blocks of You return to the "Edit F-runtime groups" the example program into the project.
  • Page 84 Programming 5.3 Editing the safety program Step Activity Result In the "Safety program" dialog box, click "Generate". The safety program is compiled and the results will be displayed in a separate window. Note Because the automatically created blocks have no fixed numbers, errors may occur during compilation of the safety program.
  • Page 85 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 86 Programming 5.3 Editing the safety program CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 87: Trial Run

    Trial run Note 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 88 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 I 8.2 = FALSE (emergency stop) Q 24.2 = TRUE (emergency stop/safety door active) Trigger emergency stop...
  • Page 89 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 90 Trial run CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...
  • Page 91: Further Information

    ● Your appropriate documentation, using our Service & Support search engine ● An international bulletin board where users and specialists share their knowledge ● Your local Siemens partner for Automation & Drives in our Partner database ● Information about local service, repairs, and spare parts. Lots more is available under "Services".
  • Page 92 Further Information CPU 317TF-3PN/DP: Controlling a SINAMICS S120 with Safety Functions Getting Started, 10/2013, A5E02982990-04...

Table of Contents