Siemens SINAMICS G Series Manual

Siemens SINAMICS G Series Manual

Controlling a speed axis with the “sina_speed” block
Hide thumbs Also See for SINAMICS G Series:

Advertisement

Quick Links

SINAMICS G:
Controlling a speed
axis with the
"SINA_SPEED" block
SINAMICS G120 / SIMATIC S7-1200
https://support.industry.siemens.com/cs/ww/en/view/109485727
Siemens
Industry
Online
Support

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SINAMICS G Series

  • Page 1 SINAMICS G: Controlling a speed axis with the “SINA_SPEED” block Siemens SINAMICS G120 / SIMATIC S7-1200 Industry Online https://support.industry.siemens.com/cs/ww/en/view/109485727 Support...
  • Page 2: Warranty And Liability

    Application Examples at any time without prior notice. If there are any deviations between the recommendations provided in these Application Examples and other Siemens publications – e.g. Catalogs – the contents of the other documents have priority. We do not accept any liability for the information contained in this document.
  • Page 3: Table Of Contents

    Table of contents Table of contents Warranty and Liability ....................2 Introduction ......................4 Overview....................4 Requirements of the application example ..........4 Engineering ......................5 Overview....................5 Description of the core functionality ............. 6 Hardware and software components ........... 6 Function Principle of the Application Example ..........
  • Page 4: Introduction

    1 Introduction Introduction Overview The SIMATIC S7-1200 can be operated as a PROFINET controller. For this, the PROFINET-capable SINAMICS G120 drive can be used as PROFINET device and be controlled by SIMATIC S7-1200. This application example specifies a setpoint speed for a SINAMICS G120 drive. The drive is controlled using the control word.
  • Page 5: Engineering

    2 Engineering Engineering This application description shows the PROFINET connection of a SINAMICS G120 to a SIMATIC S7-1215C with SINAMICS Startdrive. The drive is controlled with the “SINA_SPEED” block which can be downloaded directly from a standard library in the TIA Portal. Overview Schematic layout The figure below shows a schematic overview of the most important components of...
  • Page 6: Description Of The Core Functionality

    2 Engineering Description of the core functionality Configuring the communication Both the SIMATIC controller and the SINAMICS converter are configured and programmed in the TIA Portal. To do this, the following data are generated in the hardware configuration:  IP addresses ...
  • Page 7 2 Engineering Software components Table 2-2: Software components Component Qty. Article number Note STEP 7 6ES7822-1..04-.. Professional V14 Update 2 WinCC Advanced 6AV210.-….4-0 V14 Update 2 SINAMICS Startdrive 6SL3072-4EA02-0XG0 V14 Update 2 Example files and projects The following list contains all files and projects that are used in this application example.
  • Page 8: Function Principle Of The Application Example

    3 Function Principle of the Application Example Function Principle of the Application Example Program overview Figure 3-1: Program overview InstSina SINA_SPEED Main [OB1] Speed [FB 285] [DB 285] DPWR_DAT DPRD_DAT User program Instructions Data blocks Data exchange to the SINAMICS drive Commands DPWR_DAT and DPRD_DAT The “SINA_SPEED”...
  • Page 9 3 Function Principle of the Application Example Control word (STW1) and status word (ZSW1) The “SINA_SPEED” function block is used to cyclically control a SINAMICS G120 drive with the standard telegram 1. Table 3-1: Transmission telegram to the drive Address Name Content PZD 1...
  • Page 10: Sina_Speed" Function Block

    More information on the SINAMICS G120 drives can be found in the manuals \3\. “SINA_SPEED” function block The “SINA_SPEED” block is contained in the “DriveLib” library. Note https://support.industry.siemens.com/cs/ww/en/view/109475044 Block call The “SINA_SPEED” block can be called in the following organization blocks (OBs): ...
  • Page 11 3 Function Principle of the Application Example Name Type Start value Function ConfigAxis WORD 16#003F Assignment of the drive control word (drive parameter r2090). The start value 16#003F sets bits 1 to 6 to TRUE: Bit 1: OFF2 Bit 2: OFF3 Bit 3: Enable operation Bit 4: Enable ramp-function generator Bit 5: Continue ramp-function generator...
  • Page 12 For more information on the “SINA_SPEED” block refer to the Online Help of the Note TIA Portal or to the “DriveLib” documentation. https://support.industry.siemens.com/cs/ww/en/view/109475044 Instance data block The “SINA_SPEED” block interface is restricted to few inputs and outputs. All signals of standard telegram 1 are available via the instance data block at all times.
  • Page 13: Safe Torque Off Sto

    “SINAMICS G: Speed Control of a G110M / G120 (Startdrive) with S7-1500 (TO) via PROFINET or PROFIBUS with Safety Integrated (via Terminal) and HMI”. https://support.industry.siemens.com/cs/ww/en/view/78788716 3.3.2 STO as per SIL 3 with power module PM240-2 The PM240-2 power modules in sizes FSD, FSE and FSF can be used to realize the “Safe Torque Off”...
  • Page 14: Configuration And Settings

    4 Configuration and Settings Configuration and Settings The step tables below describe how to configure the S7-1200 and the SINAMICS S120 drive. The configuration of the operator panel is not described in this chapter. A requirement is that the software listed in Table 2-2 is installed on your PC/PG.
  • Page 15 4 Configuration and Settings Action Remark Open the device configuration of the CPU and configure the PROFINET interface. Open the “Properties” of the CPU. Select “Ethernet addresses”. Add a new subnet. Enter the desired IP address and subnet mask. You can also specify the PROFINET device name in this mask.
  • Page 16 4 Configuration and Settings Action Remark Configure the PROFINET interface of the drive: Open the “Properties” of the drive. You can set the IP address and the device name in the “PROFINET interface” settings. For data exchange between CPU and drive, leave the setting at standard telegram 1 unchanged.
  • Page 17: Commissioning The Sinamics Drive

    4 Configuration and Settings Commissioning the SINAMICS drive After generating the project configuration, you have to commission the SINAMICS G120 drive. When doing so, the commissioning wizard in Startdrive is followed. Note Information on the configuration and commissioning of drives can be found in the TIA Portal online help.
  • Page 18 4 Configuration and Settings Action Remark The Commissioning Wizard can be found in the drive folder under “Commissioning”. Follow the Commissioning Wizard. Useful support can be found in the TIA Portal online help. It is particularly important to configure standard telegram 1 to control the communication.
  • Page 19: Configuring The S7 Program

    4 Configuration and Settings Configuring the S7 program The following step table shows how to configure a S7 program with the “SINA_SPEED” function block. Table 4-5: Configuring the S7 program Action Remark Select the S7-1200 CPU in the project tree. Open the libraries and select the “SINA_SPEED”...
  • Page 20 4 Configuration and Settings Action Remark Connect the inputs and outputs of the block as described in chapter It is recommended to copy the inputs and outputs of the block "SINA_SPEED" into a control panel. (see chapter 6.2) Save the project and load the program into the controller.
  • Page 21: Installation And Commissioning

    5 Installation and commissioning Installation and commissioning Installing the hardware The figure below shows the hardware setup of the application. Figure 5-1: Hardware setup 3AC 400V DC 24V SINAMICS PM 240-2 M L+ SIMATIC S7 CPU 1215C SINAMICS PN PN CU 240E-2 PN-F DC 24V M L+...
  • Page 22: Ip Addresses And Device Names

    5 Installation and commissioning IP addresses and device names The following IP addresses and device names are used in the application example. Subsequent changes can be made at any time. Table 5-1: IP addresses and device names Components Device name IP address SIMATIC S7-1200 SIMATIC_CPU1215C...
  • Page 23 5 Installation and commissioning Action Remark Load the program of the SIMATIC controller. Select the S7 controller in the project tree. Load the project into the controller. As soon as the “Extended download to device” dialog box opens, proceed as follows: Select the settings required for your online connection.
  • Page 24 5 Installation and commissioning Action Remark Load the configuration of the HMI. You have to set the correct IP address in the SIMATIC HMI in order to load successfully. Information on how to enter the network settings of the HMI can be found in the user manual \7\. Drehzahlachse mit SINA_SPEED Entry-ID: 109485727, V1.0,...
  • Page 25: Operating The Application Example

    6 Operating the application example Operating the application example Make sure that no persons or system components are endangered by the moving drive. WARNING Take appropriate measures to prevent the drive from exceeding technical or mechanical limits. Operation via HMI The following operating screens are available in the HMI project for operating the application example.
  • Page 26: Start Screen

    6 Operating the application example Figure 6-2: Starting simulation mode 6.1.1 Start screen When activating the SIMATIC HMI or the simulation, the start screen is first displayed. Figure 6-3: Start screen A navigation bar is located on the right side of the screen. It is used to go to more operator screens.
  • Page 27: Operating The "Sina_Speed" Block

    6 Operating the application example Operating the “SINA_SPEED” block 6.1.2 The schematic call of the block is shown in the “SINA_SPEED” operator screen. Figure 6-4: “SINA_SPEED” operator screen Table 6-2: Input tags Type Operation EnableAxis BOOL These inputs are supplied with buttons. The names in green indicate the inputs are enabled.
  • Page 28: System Functions

    Terminate runtime (Runtime Stop) Transfer Start the program transfer to the HMI 6.1.4 Support information The “Support” button contains information on the service range of the Siemens Industry Online Support. Figure 6-6: Support information Drehzahlachse mit SINA_SPEED Entry-ID: 109485727, V1.0,...
  • Page 29: Operating Via The Control Board

    6 Operating the application example Table 6-5: Buttons in the support information Operation Action Activating the start screen Activating the previous screen Switch language to German Switch language to English Operating via the control board You can also use the application example without an HMI. The watch table “ControlSinaSpeed”...
  • Page 30: Appendix

    Industry Online Support Do you have any questions or need assistance? Siemens Industry Online Support offers round the clock access to our entire service and support know-how and portfolio. The Industry Online Support is the central address for information about our products, solutions and services.
  • Page 31: Links And Literature

    7 Appendix Links and literature Table 7-1 Topic Siemens Industry Online Support https://support.industry.siemens.com Link to the entry page of the application example https://support.industry.siemens.com/cs/ww/en/view/109485727 SINAMICS G120 with CU240B/E-2 Operating instructions https://support.industry.siemens.com/cs/ww/en/view/109744796 List manual https://support.industry.siemens.com/cs/ww/en/view/109482961 SINAMICS G120 with CU250S-2 Operating instructions https://support.industry.siemens.com/cs/ww/en/view/109482997 List manual https://support.industry.siemens.com/cs/ww/en/view/109482981...

This manual is also suitable for:

Sinamics g120Simatic s7-1200

Table of Contents