SINAMICS G120 with CU240S PN (FW3.2) Control via PROFINET Application y July 2010 Applikationen & Tools Answers for industry.
Industry Automation and Drives Technologies Service & Support Portal This article is taken from the Service Portal of Siemens AG, Industry Automation and Drives Technologies. The following link takes you directly to the download page of this document. http://support.automation.siemens.com/WW/view/en/45287261 If you have any questions concerning this document please e-mail us to the following address: Copyright © Siemens AG 2010 All rights reserved online-support.automation@siemens.
Warranty and Liability Warranty and Liability Note The Application Examples are not binding and do not claim to be complete regarding the circuits shown, equipping and any eventuality. The Application Examples do not represent customer-specific solutions. They are only intended to provide support for typical applications. You are responsible for ensuring that the described products are used correctly.
Table of Contents Table of Contents Warranty and Liability ................................................................................................. 3 1 Automation function.......................................................................................... 5 1.1 2 Functionality of the function example............................................................. 6 2.1.1 2.1.2 2.2 3 Copyright © Siemens AG 2010 All rights reserved Hardware components .......................................
1 Automation function 1 Automation function 1.1 Description of the functionality The SINAMICS G120 drive inverter is a modular inverter system with degree of protection IP20. It comprises the two function units Control Unit (CU) and Power Module (PM). Copyright © Siemens AG 2010 All rights reserved When using the Control Unit CU240S PN, you have the possibility to use the PROFINET IO interface.
2 Functionality of the function example 2 Functionality of the function example 2.1.1 Task description The SINAMICS G120 is to be controlled from an S7-300 CPU via Profinet. 2.1.2 Solution In this function example, the control of a SINAMICS G120 (control word and frequency setpoint) will be demonstrated using an S7-300 CPU and a specific program example. This program example comprises an S7 program to control the SINAMICS G120 and the appropriate configuration in the SINAMICS G120.
3 Components that are required 3 Components that are required An overview of the hardware and software components required for the function example is provided in the Chapter. 3.1 Hardware components Component Type Order No.
4 Configuration and wiring 4 Configuration and wiring The hardware configuration and connecting-up the function example are described in this Chapter. Please carefully observe the following safety information & instructions when using the SINAMICS G120: The SINAMICS G120 has hazardous voltages and controls rotating mechanical parts that can also be potentially hazardous.
4 Configuration and wiring Connecting-up the hardware components 4.2.1 S7-300 control and CU240S PN Copyright © Siemens AG 2010 All rights reserved 4.2 SINAMICS G120 (CU240S PN), Control via PROFINET V1.
4 Configuration and wiring 4.2.2 PM240 and motor L1 L2 L3 PE Copyright © Siemens AG 2010 All rights reserved SINAMICS G120 PM240 PE L U1 L1 N V1 L2 W1 L3 U2 V2 W2 PE For more detailed information regarding the installation please refer to the SINAMICS G120 Hardware Installation Manual Power Module PM240. Download from: http://support.automation.siemens.com/WW/view/en/22339653/133300 10 SINAMICS G120 (CU240S PN), Control via PROFINET V1.
4 Configuration and wiring 4.3 Fault 395 (acceptance test / acknowledgement present) Fault F395 is output when powering-up for the first time and after replacing the Control Unit (CU) or the Power Module (PM). This fault does not represent an incorrect drive inverter function. The reason for this fault message is to monitor the individual drive inverter components (CU and PM) to prevent them from being replaced by unauthorized personnel.
4 Configuration and wiring Overview of inputs and outputs 4.5.1 Simulation module SM374 Copyright © Siemens AG 2010 All rights reserved 4.5 Address Function Symbolic address Default Explanation O 0.0 Indicator lamp error error 0 faults are signaled via this output I 0.0 SINAMICS G120 start Start_G120 0 The motor connected to SINAMICS G120 is started by activating the input I 0.
4 Configuration and wiring 4.5.2 SINAMICS G120 The SINAMICS G120 is controlled and the feedback signals read-in via the I/O addresses listed below.
5 Download 5 Download 5.1 S7 program To download the S7 program, you will require a connection between the MPI interface of your PG/PC and the MPI interface of the S7 CPU. Start the SIMATIC Manager. • De-archive the function example supplied. • Open the G120_STD_APP2 project. • Select the MPI interface parameterization using Options > Select PG/PC interface… . • Open HW-Config and download this into the control. After the download reclose HW-Config.
5 Download 5.2 Setting the SINAMICS G120 IP adresse and device name Different than for Profibus, for PROFINET, the node addresses are not set in the hardware, but in the software. To do this, a connection is required between the PG/PC and the PROFINET interface of the SINAMICS G120 via TCP/IP. To do this, connect the PROFINET cable from the SINAMICS G120, interface X01 P2 to the Ethernet interface (port) of your PG/PC (refer to Chapter 4.1).
Copyright © Siemens AG 2010 All rights reserved 5 Download • Using Options > Set PG/PC Interface…. select the TCP/IP interface parameterization. You can carry out all additional steps via this interface during the course of the function example. • Then, using PLC > Edit Ethernet Node…, open the dialog box Edit Ethernet Node. 16 SINAMICS G120 (CU240S PN), Control via PROFINET V1.
Copyright © Siemens AG 2010 All rights reserved 5 Download • Press the Browse… button • In the dialog box that then opens, select the node with the SINAMICS device type and then press the OK button. SINAMICS G120 (CU240S PN), Control via PROFINET V1.
Copyright © Siemens AG 2010 All rights reserved 5 Download • (1.) Now, enter under IP-adresse: 192.168.0.2 and under Subnetmask: 255.255.255.0. (2.) Then press the Assign IP Configuration button. • (3.) After completing the IP configuration assignment, enter the device name assigned in HW Config - under Device name: (in this particular function example, G120). (4.) This is then assigned to the SINAMICS G120 by pressing the Assign Name button. • Close the mask by pressing the Close button.
5 Download 5.3 SINAMICS G120 configuration When this has been completed, download the SINAMICS G120 configuration using the STARTER parameterizing tool. • Starting from the main path of the SIMATIC Manager, start the STARTER parameterizing software by selecting the SINAMICS_G120 icon and double click on the Inbetriebnahme icon. • Then, in the Project Navigator of the STARTER parameterizing software select Copyright © Siemens AG 2010 All rights reserved the object "G120" (1.
5 Download 5.4 Exiting the STARTER parameterizing software • If you don't wish to set any additional parameters, then you can now exit the STARTER commissioning tool. • In the tree select SINAMICS G120 and transfer all of the parameter changes into the ROM memory of the SINAMICS G120 by pressing the • button Then transfer all of the parameters into your offline a project by pressing the button.
6 Key performance data of the SIMATIC CPU 6 Key performance data of the SIMATIC CPU Load memory and working memory Total Load memory Approx. 6 k Working memory Approx. 2 k Cycle time Approx. 1ms Copyright © Siemens AG 2010 All rights reserved Total cycle time (typical) SINAMICS G120 (CU240S PN), Control via PROFINET V1.
7 Background information 7 Background information The individual functions of the example code are explained in the following Chapters so that you will then be in a position to implement your own project. For this function example, the settings described no longer have to be made. Settings in the hardware configuration Copyright © Siemens AG 2010 All rights reserved 7.1 22 SINAMICS G120 (CU240S PN), Control via PROFINET V1.
7 Background information 7.1.1 Properties of the SINAMICS G120 Copyright © Siemens AG 2010 All rights reserved The window of the SINAMICS G120 PROFINET properties (2.) is displayed by clicking once on the SINAMICS G120 icon (1.). The PROFINET telegram (2.) between the CPU and the SINAMICS G120 is the Standard Telegram, in this particular example, Standard Telegram 352 for the communications of the SINAMICS G120 (control signals, status signals, frequency setpoint, frequency actual value etc.
7 Background information button. Copyright © Siemens AG 2010 All rights reserved The telegram is selected in the Catalog after pressing the You can download the GSDML files for the SINAMICS G120 under the following link: http://support.automation.siemens.com/WW/view/en/26641490 GSD files are required to operate a node (e.g. the SINAMICS G120) on PROFINET – and to register (log-on) the device to the engineering tool. 24 SINAMICS G120 (CU240S PN), Control via PROFINET V1.
7 Background information Copyright © Siemens AG 2010 All rights reserved 7.1.1.1 Standard Telegram Various pre-assigned telegrams are available for this communication; these can be selected from the hardware catalog (refer to 6.1.3). The Standard Telegram 352 is used in this function example. It contains a length of 6 words sending (output) and receiving (input) – beginning from starting address 256. SINAMICS G120 (CU240S PN), Control via PROFINET V1.
Copyright © Siemens AG 2010 All rights reserved 7 Background information 7.2 Functions of the Step 7 program 7.2.1 Program overview The Step 7 program essentially comprises blocks FB10, FC100 and DB1 that are called in the cyclic program (OB1). 26 SINAMICS G120 (CU240S PN), Control via PROFINET V1.
7 Background information 7.2.2 DB1, Axis_DB The Axis_DB represents the interface between the S7 program and the SINAMICS G120 via FC100. Axis_DB is generated from UDT 1 (Axis_DB_G120) Principal structure of Axis_DB: Address Symbolic name Type Function Internal data DBW0 Basic_Data.Moduleadress INT I/O start address of the SINAMICS G120 (refer to HW Config) DBB3 Basic_Data.
7 Background information 7.2.3 FB10, Organization This block is called-up in absolute terms in OB1 and in turn calls up FC100. Principle of the FB10 Network Function 1 Calls the FB11 to generate the frequency setpoint Controls the SINAMICS G120 via the axis-DB, DB1. Calls the SINAMICS G120 control block FC100. 2 Provides the feedback signals – incl. error and alarm number This network can be used as template for additional SINAMICS G120 control functions. 3 7.2.
Copyright © Siemens AG 2010 All rights reserved 7 Background information 7.3 SINAMICS G120 parameterization 7.3.1 SIMATIC Manager - inserting SINAMICS G120 , • In SIMATIC Manager select the tree G120_STD_App2 and using Insert > Program > SINAMICS select a SINAMICS G120 type object. • Make the following settings and press the OK button. SINAMICS G120 (CU240S PN), Control via PROFINET V1.
7 Background information 7.3.2 Calling the STARTER parameterization tool • Starting from the main path of the SIMATIC Manager, start the STARTER parameterization software by selecting SINAMICS_G120 and double click on Inbetriebnahme. • Then, in the Project Navigator of the STARTER (2.) Copyright © Siemens AG 2010 All rights reserved parameterization software select the object G120 (1.) and press button to establish an online connection to the drive inverter. 7.3.
7 Background information Copyright © Siemens AG 2010 All rights reserved 7.3.4 STARTER - carrying out a motor identification routine • After completing the quick commissioning, alarm A0541 (Motor dataidentification active) is displayed. Please carefully note that when starting the motor identification routine current flows in the motor. For hanging (suspended) axes the load must always be supported.
7 Background information Copyright © Siemens AG 2010 All rights reserved 7.3.5 STARTER - setting the Profinet communications • Communications between the CPU and the SINAMICS G120 must then be parameterized. To do this, open the screen for the communication settings using Communication -> Profinet. Select the tab Transmit direction. • To start, select the Standard-Telegram 350 (350) from Message frame: (1.). This pre-assigns the telegram.
7 Background information • Finally, you only have to save the SINAMICS G120 configured software in the ROM memory of the drive inverter. To do this in the Project Navigator select the menu item SINAMICS_G120 • In the function bar press the • Please wait until the download operation has been completed. Copyright © Siemens AG 2010 All rights reserved button. SINAMICS G120 (CU240S PN), Control via PROFINET V1.
8 Appendix 8 Appendix 8.1 Internet link data Subject area Link to safety items http://support.automation.siemens.com/WW/view/ en/20810941 SINAMICS G120 Documentation http://support.automation.siemens.com/WW/view/ en/22339653/133300 Siemens customer support homepage Customer Support SINAMICS G120 Homepage http://www.automation.siemens.com/mcms/standa rd-drives/en/low-voltage-inverter/sinamicsg120/Pages/sinamics-g120.aspx History Version Copyright © Siemens AG 2010 All rights reserved 8.