Page 1
SINAMICS G: Speed Control of a G120 (Startdrive) with S7-1500 (TO) via PROFINET or PROFIBUS with Safety Integrated (via Terminal) and HMI SINAMICS G120, SIMATIC S7-1500 Application Description September 2013 Applications & Tools Answers for industry.
Internet. For more information, please refer to Entry ID 50203404. http://support.automation.siemens.com/WW/view/en/50203404 Siemens Industry Online Support This entry is taken from Siemens Industry Online Support. The following link takes you directly to the download page of this document: http://support.automation.siemens.com/WW/view/en/78788716 SINAMICS G120 as a Speed Axis on the S7-1500...
G120 and the SIMATIC S7-1500 using the technological functions of the SIMATIC S7-1500. Overview of the automation task The figure below provides an overview of the automation task: Figure 1-1 SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Diagrammatic representation The diagrammatic representation below shows the most important components of the solution: Figure 2-1 Solution with the SINAMICS G120 connected via PROFINET Figure 2-2 Solution with the SINAMICS G120 connected via PROFIBUS Advantages Due to the use of the technological functions of the SIMATIC S7-1500, you no longer need to generate the control word and encode the setpoint to send them to the SINAMICS G120.
2 Solution 2.2 PLCopen Instead, you use the SIMATIC S7-1500 motion control instructions (function blocks) conforming to the PLCopen standard to control the SINAMICS G120. Disadvantages As a new motion control instruction needs to be sent for each speed change, this method is not fully suited for applications with a constantly changing setpoint (e.g.,...
PLCopen standard enable the user to move the Axis technology object and therefore the SINAMICS drive. The current axis status can be read out of the technology DB of the Axis technology object at any time. Figure 2-4 SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
This application is applicable for • STEP 7 V12 SP1 UPD2 or higher • Startdrive V12 SP1 • SIMATIC S7-1500 CPU V1.1 or higher • SINAMICS G120 V4.6 or higher SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
6SL3224-0BE17-5UA0 Motor 1LA7063-4AB12 Alternatively, any other motor suitable for the used SINAMICS G120 converter can be used. In this case, you have to customize the sample program. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 10
6SL3224-0BE17-5UA0 Motor 1LA7063-4AB12 Alternatively, any other motor suitable for the used SINAMICS G120 converter can be used. In this case, you have to customize the sample program. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 11
Each of these zip files contains a STEP 7 V12 SP1 project with 78788716_G120_CU240E2DP_at_S7_1500_TO.ZIP the SINAMICS G120 connected 78788716_G120_CU240E2DPF_at_S7_1500_TO.ZIP via PROFIBUS. 78788716_G120C_DP_at_S7_1500_TO.ZIP 78788716_G120D_CU240D2DP_at_S7_1500_TO.ZIP 78788716_G120D_CU240D2DPF_at_S7_1500_TO.ZIP 78788716_G120P_CU230P2DP_at_S7_1500_TO.ZIP 78788716_G120_at_S7-1500_TO_DOKU_v10.pdf This document. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
DB. Figure 3-1 Data exchange between a TO and multiple motion control instructions Only positioning axes SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
(Busy = TRUE), the Done output (or Error or CommandAborted) will be set to TRUE for only one cycle once the job is complete! Positioning axes only SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
The traversing job via “MC_MoveVelocity” was replaced by the halt job via “MC_Halt” and the halt job completed itself when the axis reached a standstill. If you want to change the velocity at which the SINAMICS G120 is running, Note simply send another job to the axis with the MC_MoveVelocity block.
The tables below describe what you have to do if you do not use the sample code and want to configure the SIMATIC S7-1500 CPU, the SINAMICS G120 and the KTP600 HMI yourself.
Page 16
Create a new project and assign a name (e.g., “G120_at_S7-1500_TO”). Inserting the SIMATIC S7-1500 Double-click on “Add new device”. Select “Controller”. Select the desired CPU. Then click on “OK”. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 17
PN_interface [X1]. Select “Set IP address in the project” and enter the desired IP address. Add a new subnet and select it. Select “Generate PROFINET device name automatically”. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 18
G120 with PROFINET: Drag the mouse to connect the right Ethernet port of the SIMATIC S7 to the one of the SINAMICS G120. (PROFIBUS on the next page) SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 19
When using a SINAMICS G120, G120D or G120P, you have to define the power module: Select “Device view” Select the drive Insert the power module from the catalog. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 20
IP address of the SINAMICS drive. (PROFIBUS on the next page) When using a SINAMICS G120 with PROFIBUS: >PROFIBUS address, check the address of the SINAMICS drive. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 21
To do so, select >Drive_1 [G120…] >Parameter in the Project tree …and click on the “Drive on SIMATIC motion control axis” wizard. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 22
Ramp-function generator ramp-down time: 0.000 s OFF3 ramp-down time: 0.000 s Drive functions: Motor data identification and rotating measurement: [0] Inhibited Automatic calculation motor/control parameters: [1] Complete calculation SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 23
Drag the mouse to create a graphic connection between the Ethernet ports of the KTP600 and the SIMATIC PLC. The screenshot shows the SINAMICS G120 with PROFINET SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 24
IP address 192.168.0.2. When using PROFIBUS: Show the addresses. The KTP600 is automatically assigned the next available IP address 192.168.0.2. Saving the configuration Save the project SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
The “blue” check mark means that default values are sent. The “red” X means that values are missing or invalid. The “green” check mark means that values were entered. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 26
In “Dynamic default values”, you can specify the default values for motion commands. In “Emergency stop”, you can enter the deceleration values for the emergency stop. Save the project. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 27
The new FB opens automatically. From “Instructions > Technology > Motion Control > S71500 Motion Control”, insert the following blocks: • MC_Power • MC_Reset • MV_Halt • MC_MoveVelocity • MC_MoveJog SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 28
Example of the interconnection of the Axis interface. Open the “Main [OB1]” block and in this block, call FB “MotionControl”. Confirm the creation of an instance DB. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 29
4 Configuration and Project Engineering 4.2 Creating the Speed axis technology object Action Picture Save the project. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
The safety commissioning mode is displayed as follows: The function view is not online. The function view is online, safety functions are not activated. Safety commissioning is active. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 31
2. Click on the “STO” safety function (the only one available). Output “STO active” On demand you can interconnect the “STO active” output. However, this is not necessary in this application. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 32
However, this is not necessary in this application. Exit the safety commissioning mode by pressing the button. Save the changed safety parameters in ROM. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 33
Action Picture Terminate the online connection by pressing the button. At the SINAMICS G120 you perform a “POWER ON”. (Keep voltage off until all LEDs are dark.) SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Figure 5-1: Wiring for PROFINET 24 V DC CPU 1516 PN1 PN 2 SINAMICS G120C PN U2 V2 W2 24 V DC M L+ SIMATIC Panel KTP600 SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 35
Figure 5-2: Wiring for PROFIBUS 24 V DC CPU 1516 PN1 PN 2 SINAMICS G120C PN U2 V2 W2 24 V DC M L+ SIMATIC Panel KTP600 SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
CPU 1516-3 PN/DP and click on “Load”. Proceed in the same way to load the SINAMICS G120. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 37
“POWER ON” the SINAMICS G120. (Switch off the voltage until all LEDs are off and then switch it back on.) Proceed in the same way to load the operator panel. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
If you cannot or do not want to use an operator panel, you can also use the “MC Note Watch” watch table created in the sample project. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
6 Operation of the Application 6.2 Operation of the application with a panel Operation of the application with a panel 6.2.1 Screens and screen navigation Figure 6-1 SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
In all operating screens, “Menu” allows you to return to the Function menu. “Language” allows you to change the language between German and English. “Exit” allows you to exit Runtime. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
This FB is used to start an (endless) axis motion at the specified velocity. MoveJog Visualization of MC_MoveJog. This FB allows you to “jog” the axis. Halt Visualization of MC_MoveHalt. This FB is used to stop the axis. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
MC_Power A rising edge at the “Enable” input of “MC_Power” enables the axis. The SINAMICS G120 switches on, the speed setpoint is 0 until a new setpoint is specified using a motion control command. The “StopMode” input allows you to define how the axis responds if the enable is removed from it.
This operating screen displays the status bits of the axis. The footer of this screen includes a hot key that allows you to go directly to the “Error” operating screen. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
MC_Reset allows you to acknowledge pending errors. (See chapter 6.2.2.3) The footer of this screen includes a hot key that allows you to go directly to the “Status” operating screen. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
The footer of this screen includes a hot key that allows you to go directly to the “Halt” operating screen. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
TIA Portal (dynamic default value) will be used. The footer of this screen includes a hot key that allows you to go directly to the “Move_Velocity” operating screen. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
TIA Portal (dynamic default value) will be used. The “InVelocity”, “Busy”, “CommandAborted”, “Error” and “ErrorID” outputs allow you to read the current status of the block. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
A rising edge at “Execute” allows you to restart the axis. Call the “Function menu”. Click on “Status” This is where you see the status bits of the drive. SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
Page 49
SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...
SIMATIC S7-1500 Motion Control Function Manual: http://support.automation.siemens.com/WW/view/en/59381279 SIMATIC S7-1500 CPU 1516-3 PN/DP Manual: http://support.automation.siemens.com/WW/view/en/59191914 http://www.plcopen.org PLCopen History Table 8-1 Version Date Modifications V1.0 09/2013 First version SINAMICS G120 as a Speed Axis on the S7-1500 V1.0a, Entry ID: 78788716...