hit counter script
Siemens SIMATIC S7 300 Getting Started
Siemens SIMATIC S7 300 Getting Started

Siemens SIMATIC S7 300 Getting Started

Automation systems cpu 317t-3pn/dp: controlling a sinamics s120
Hide thumbs Also See for SIMATIC S7 300:

Advertisement

Quick Links

CPU 317T-3PN/DP: Controlling a
SINAMICS S120
SIMATIC
S7 300 Automation Systems
CPU 317T-3PN/DP: Controlling a
SINAMICS S120
Getting Started
10/2013
A5E00480391-06
___________________
Introduction
___________________
Preparation
___________________
Wiring
___________________
Configuration
___________________
Programming
___________________
Trial run
___________________
Special case - controlling a
virtual axis
1
2
3
4
5
6
7

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC S7 300

  • Page 1 ___________________ CPU 317T-3PN/DP: Controlling a Introduction SINAMICS S120 ___________________ Preparation ___________________ Wiring SIMATIC ___________________ Configuration S7 300 Automation Systems ___________________ CPU 317T-3PN/DP: Controlling a Programming SINAMICS S120 ___________________ Trial run Getting Started ___________________ Special case - controlling a virtual axis 10/2013 A5E00480391-06...
  • 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 ..............................13 Configuration ............................15 Creating a T station ........................15 4.1.1 Creating a T station with station wizard ..................15 4.1.1.1 Creating a T station with station wizard ..................15 4.1.1.2 Configuring CPU 317T-3PN/DP in HW Config ................
  • Page 4 Table of contents CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 5: Introduction

    Introduction This Getting Started is a valuable help in getting started with the basic functions of a CPU 317T-3PN/DP, based on a practical example that takes you through thirteen steps in commissioning a fully functional application in which you execute a traverse motion. It can take you between two and three hours to work through the example, depending on your degree of experience.
  • Page 6 Introduction CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 7: Preparation

    Preparation Requirements Requirements The following requirements must be fulfilled: ● You have an S7-300 station, consisting of: – Power supply (PS), e.g., 6ES7307-1KA02-0AA0 – CPU 317T-3PN/DP with MMC (8 MB or more), e.g., 6ES7317-7TK10-0AB0 V3.2/V4.1.5 – Optional digital input module (DI) with bus connector, for example, 6ES7321-1BH02-0AA0 –...
  • Page 8 Preparation 2.1 Requirements ● The SINAMICS S120 comprises the following modules: – CU320-2DP Control Unit (6SL3040-1MA00-0AA0) with TB30 Terminal Board (6SL3055-0AA00-2TA0) – Smart Line Module 5 kW (6SL3130-6AE15-0AB1) – Single/Double Motor Module 3 A (6SL3120-2TE13-0AA4) – 1 synchronous motor 1FK7022-5AK71-1AG3 with incremental encoder sin/cos 1 Vpp via SMC20 Sensor Module Cabinet (6SL3055-0AA00-5BA1) –...
  • Page 9 Preparation 2.1 Requirements ● The configuration is completely installed and wired. For information, refer to Getting Started CPU 31x: Commissioning ● You provided hardware limit switches and EMERGENCY-OFF switches for safe and reliable operation of the system. WARNING Risk of accident Operation of an S7-300 as part of plants or systems is subject to special rules and regulations, based on its field of application.
  • Page 10: Task

    Preparation 2.2 Task Task Example configuration CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 11 Preparation 2.2 Task Task Configuration of an axis using HW Config and S7T Config. You then operate this axis with the help of a STEP 7 user program. The task is divided into the following learning units: Step Learning unit Chapte Engineering tool Wiring...
  • Page 12 Preparation 2.2 Task CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 13: Wiring

    Wiring WARNING Live wires You may come into contact with live wires when modules are connected to the power supply. Always switch off power before you start wiring the S7-300. Connect only ferrules with insulating collar to the ends of the cable. When you have wired the modules, you must first close all front doors.
  • Page 14 Wiring 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). ① PROFIBUS interface ② PROFIBUS diagnostics LED "DP1" ③...
  • Page 15: Configuration

    Configuration Creating a T station In the following chapters you will configure a CPU 317T-3PN/DP. To do this, you create a T station. You can create the T station with or without station wizard. The station wizard helps you to carry out several steps when configuring a CPU 317T-3PN/DP in one work cycle.
  • Page 16 Configuration 4.1 Creating a T station Step Activity Select the item "CPU317T-3 PN/DP" from the "CPU type" drop-down list. CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 17 Configuration 4.1 Creating a T station Step Activity Make sure that the "Generate technology system data" check box is selected. 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. CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 18 Configuration 4.1 Creating a T station Step Activity Confirm with "OK". If required, press the button "Help" to obtain additional information. Result: The "Properties - Programming device/PC" dialog box opens. Click "Assign" to assign the configured interface to the interface parameter assignment in the programming device/PC.
  • Page 19 Configuration 4.1 Creating a T station See also Configuring a drive in HW Config (Page 30) CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 20: Configuring Cpu 317T-3Pn/Dp In Hw Config

    Configuration 4.1 Creating a T station 4.1.1.2 Configuring CPU 317T-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 21: Configuring A Drive In Hw Config

    Configuration 4.1 Creating a T station 4.1.1.3 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 drive component "SINAMICS S120" from the tree structure of the HW catalog. Drag-and-drop the drive to the DP master system of the The "Properties –...
  • Page 22 Configuration 4.1 Creating a T station 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 23 Configuration 4.1 Creating a T station Step Activity Result Set the "Synchronize drive to equidistant DP cycle" check box and set the time factors as shown below. Click "Align". The following components are aligned to the set values: DP cycle in the DP master system •...
  • Page 24 Configuration 4.1 Creating a T station Step Activity Result Make sure that the devices are configured as shown in the figure below. Complete the network configuration by calling the Network > Save and compile command. Select "Compile and check everything" and confirm with "OK". CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 25: Creating A T Station Without Station Wizard

    Configuration 4.1 Creating a T station Step Activity Result Close the output window with File > Close. Close the NetPro configuration program by calling the Network > Exit command. Finalize your HW configuration by calling the Station > Save The system compiles your project, and adds and compile command.
  • Page 26 Configuration 4.1 Creating a T station Step Activity Result Drag-and-drop the CPU 317T-3PN/DP to the mounting rail. The "Properties - Ethernet Interface" dialog box opens. A dialog box to create an Ethernet interface opens. Click "New" to create an Ethernet interface. Confirm all open Ethernet dialog boxes with "OK".
  • Page 27 Configuration 4.1 Creating a T station Step Activity Result Click "New" to create a new PROFIBUS subnet. The "Properties - PROFIBUS" dialog box opens. In the "Network settings" tab, set the transmission rate of the PROFIBUS network. Enter a rate of 12 Mbps. Maintain the "DP"...
  • Page 28 Configuration 4.1 Creating a T station Step Activity Result Add a digital input module and a digital output module. You now have this configuration: CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 29: Activating Generation Of The Technology System Data

    Configuration 4.1 Creating a T station 4.1.2.2 Activating generation of the technology system data Procedure Step Activity Result Double-click "Technology" on the mounting rail. The "Properties - Technology" dialog box opens. Select the "Technology system data" tab, then set the "Generate technology system data" check box. Confirm with "OK".
  • Page 30: Configuring A Drive In Hw Config

    Configuration 4.1 Creating a T station 4.1.2.3 Configuring a drive in HW Config Procedure Step Activity Result In the HW catalog, open the tree structure SIMATIC Technology > PROFIBUS DP(DRIVE) > Drives > SINAMICS. Select the drive component "SINAMICS S120" from the tree structure of the HW catalog. Drag-and-drop the drive to the PROFIBUS DP master The "Properties –...
  • Page 31 Configuration 4.1 Creating a T station Step Activity Result The "DP slave properties" dialog box opens. Open the "Isochronous Operation" tab. Set the "Synchronize drive to equidistant DP cycle" check box and set the time factors as shown below. Click "Align". The following components are aligned to the set values: DP cycle in the DP master system...
  • Page 32: Configuring The Pg/Pc Interface For Access To The Drive

    Configuration 4.1 Creating a T station 4.1.2.4 Configuring the PG/PC interface for access to the drive Procedure Step Activity Result Start the NetPro network configuration program in HW NetPro is started. Config with Options > Configure network. In the HW catalog, open the tree structure Stations >...
  • Page 33 Configuration 4.1 Creating a T station Step Activity Result Select the "Interfaces" tab in the "Properties – PG/PC" dialog box. Click the "New…" button to open the "New Interface – Type Selection" dialog box. Select "Industrial Ethernet" and confirm your selection with "OK". Result: The "Properties - Ethernet Interface"...
  • Page 34 Configuration 4.1 Creating a T station Step Activity Result Select the "Assignment" tab in the "Properties – PG/PC" dialog box. Assign the Ethernet interface parameter assignment in the PG/PC to the configured interface by clicking "Assign". Complete the configuration by clicking "OK". CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 35 Configuration 4.1 Creating a T station Step Activity Result You have now inserted your PG/PC in the 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 36: Downloading The Hardware Configuration To The Target Hardware

    Configuration 4.2 Downloading the hardware configuration to the target hardware Downloading the hardware configuration to the target hardware Procedure Step Activity Switch back to HW Config. Download the hardware configuration to the CPU using the menu command PLC > Download to Module. Exit HW Config with Station >...
  • Page 37: Configuring A Sinamics Drive In S7T Config

    Configuration 4.3 Configuring a SINAMICS drive in S7T Config Configuring a SINAMICS drive in S7T Config Basic procedure 1. Automatic online configuration of the drives 2. Offline configuration of the Servo 03 drive without complete DRIVE-CLIQ technology 3. Offline configuration of the Servo 02 drive with complete DRIVE-CLIQ technology Automatic online configuration of the drives Step Activity...
  • Page 38 Configuration 4.3 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 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 39 Configuration 4.3 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 40 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Offline configuration of the Servo 03 drive without complete DRIVE-CLIQ technology Configure the drive "Servo_03". Step Activity In the project navigator, open the tree structure SIMATIC 300(1) > Technology > S120_CU320_2_DP > Drives > Servo_03 and double-click "Configuration".
  • Page 41 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Step Activity Click "Configure DDS..." to start the configuration. CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 42 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Step Activity Accept the default settings and click "Next >". CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 43 Configuration 4.3 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 44 Configuration 4.3 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 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 45 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Step Activity The motor without complete DRIVE-CLIQ technology is connected to terminal X2 of the power section. ‘Click "Next >". CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 46 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Step Activity Select the correct motor from the list. To activate the selection option, you must select the "Select standard motor from list" box. The motor used in the SINAMICS training case is the 1FK7022-xAK7x-xxxx. Check this against the supplied documents or the motor type plate (lower motor - blue gear wheel).
  • Page 47 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Step Activity Select "No motor holding brake..." and click "Next >". CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 48 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Step Activity Select "Select standard encoder from list" and select 1FK7xxx-xxxxx-xAxx. Check this against the supplied documents, confirm with "OK" and click "Next >". CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 49 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Step Activity Set the PROFIdrive telegram type to "SIEMENS telegram 105" and click "Next >". CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 50 Configuration 4.3 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 completed. Close the dialog box with "Close". In the project navigator, open the tree structure SIMATIC 300(1) > Technology > S120_CU320_2_DP > Drives > Servo_03.
  • Page 51 Configuration 4.3 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 52 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Offline configuration of the Servo 02 drive with complete 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 53 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Step Activity The motor with complete DRIVE-CLIQ technology is connected to terminal X1 of the power section. The offline configuration of the drives is now complete. In the project navigator, open the tree structure SIMATIC 300(1) > Technology > S120_CU320_2_DP > Communication to start the message frame configuration.
  • Page 54 In the "SINAMICS_S120 – Message frame configuration" dialog box check whether the message frame type has been set to "SIEMENS message frame 105" for both drives and then 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.
  • Page 55 Configuration 4.3 Configuring a SINAMICS drive in S7T Config Step Activity The desired configuration is on the PG/PC. Select the Target system > Load to Target System menu command to transfer the configuration to the drives. If necessary, click "<== Download" in the "Online / Offline comparison" dialog box to transfer the configuration. Confirm the confirmation prompt with "Yes".
  • Page 56: Configuring Axes In S7T Config

    Configuration 4.4 Configuring axes in S7T Config Configuring axes 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 57 Configuration 4.4 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 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 58 Configuration 4.4 Configuring axes 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 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 59 Configuration 4.4 Configuring axes 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 60 Configuration 4.4 Configuring axes 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 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 61 Configuration 4.4 Configuring axes 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 is "512" and the number of data bits is "21". Accept the settings with "Next".
  • Page 62 Configuration 4.4 Configuring axes in S7T Config Step Activity Result Complete the axis configuration with "Finish". Close the message box with "OK". The axis configuration in S7T Config has been completed. Note: Repeat Sequences 1 to 8 in Step number 10 for the second axis if you are using a double-axis module.
  • Page 63 Configuration 4.4 Configuring axes in S7T Config Step Activity Result Repeat sequences 1 to 4. The second drive is equipped with a incremental encoder with encoder PPR 2048. Accept the settings with "Next". CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 64 Configuration 4.4 Configuring axes in S7T Config Step Activity Result Enter the number of encoder pulses 2048 and click "Next" to confirm the settings. Terminate the axis configuration. In S7T Config, select Project > Save and Recompile All The axis configuration will be stored and to save the configuration data.
  • Page 65: Programming

    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 66: Controlling The Axis With The Step 7 User Program Using A Sample Project

    Programming 5.2 Controlling the axis with the STEP 7 user program using a sample project Step Activity Result Create the technology DBs listed below by clicking "Create": The system generates the technology data blocks DB 1 to DB 3, or DB 4. Axis_1 •...
  • Page 67 Programming 5.2 Controlling the axis with the STEP 7 user program using a sample project Step Activity Result Select these settings: You have now opened an extended and clear view for editing the STEP 7 user View > LAD, • program.
  • Page 68 Programming 5.2 Controlling the axis with the STEP 7 user program using a sample project CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 69: Trial Run

    Trial run Procedure Step Activity Result In the "Blocks" folder of your project, double-click the The variable table is opened for monitoring. "AxisData" variable table. Select the Target system > Connect to > Configured CPU The CPU "STOP" status is indicated on the menu command to go online.
  • Page 70 Trial run CPU 317T-3PN/DP: Controlling a SINAMICS S120 Getting Started, 10/2013, A5E00480391-06...
  • Page 71: Special Case - Controlling A Virtual Axis

    Special case - controlling a virtual axis This chapter describes the theoretical procedure and the special points for controlling a virtual axis. Example configuration Task Configuration of an axis using HW Config and S7T Config. You then operate this axis with the help of a STEP 7 user program.
  • Page 72 ● An international bulletin board where users and specialists can 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".

Table of Contents