Siemens SINAMICS G110M Manual

Siemens SINAMICS G110M Manual

Speed control of a startdrive with tia portal via profibus dp with safety integrated (via terminal) and hmi
Hide thumbs Also See for SINAMICS G110M:

Advertisement

SINAMICS G:
Speed Control of a
G110M/G120
(Startdrive) with
S7-1200 (TIA Portal)
via PROFIBUS DP with
Safety Integrated (via
Terminal) and HMI
SINAMICS G110M, G120 / SIMATIC S7-1200
https://support.industry.siemens.com/cs/ww/en/view/70155469
Siemens
Industry
Online
Support

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SINAMICS G110M

  • Page 1 SINAMICS G: Speed Control of a G110M/G120 (Startdrive) with S7-1200 (TIA Portal) via PROFIBUS DP with Safety Integrated (via Terminal) and HMI Siemens SINAMICS G110M, G120 / SIMATIC S7-1200 Industry Online https://support.industry.siemens.com/cs/ww/en/view/70155469 Support...
  • Page 2: Legal Information

    The foregoing provisions do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens against existing or future claims of third parties in this connection except where Siemens is mandatorily liable.
  • Page 3: Table Of Contents

    Table of contents Table of contents Legal information ......................2 Task ........................4 Solution....................... 5 Solution overview ................. 5 Description of the core functionality ............. 6 2.2.1 Configuring the communication ............6 2.2.2 Data exchange ..................6 Hardware and software components used........... 7 Setting up and commissioning the application ..........
  • Page 4: Task

    1 Task Task With CM 1243-5, the SIMATIC S7-1200 can be operated as a PROFIBUS master. A SINAMICS drive can be used as PROFIBUS slave and be controlled by SIMATIC S7-1200. The application description covers the following drive types (with FW ≥ V4.6): ...
  • Page 5: Solution

    2 Solution 2.1 Solution overview Solution This application description gives an example of a PROFIBUS connection of a SINAMICS G120C to a SIMATIC S7-1212C using SINAMICS Startdrive V13. It uses blocks which can be directly applied to your own application. Solution overview Schematic layout The following scheme shows the most important components of the solution:...
  • Page 6: Description Of The Core Functionality

    The process data to be exchanged by SIMATIC controller and SINAMICS drive is specified by the message frame type to be used (in this example: “SIEMENS Telegram 352”) which you also configure in the hardware configuration under the Properties of the SINAMICS drive 2.2.2...
  • Page 7: Hardware And Software Components Used

    Acyclic data exchange (parameter access) To be able to transfer parameters, message frame types were also defined where additionally four words are provided for a parameter transfer (“SIEMENS Telegram 353 and 354” frames). Since these four words, like the process data, are always transmitted cyclically, a permanent communication load is produced even though the parameters themselves are generally only rarely required.
  • Page 8 2 Solution 2.3 Hardware and software components used Component Article number Note SIMATIC Panel KTP600 6AV6647-0AD11-3AX0 This panel is optional. Basic color PN CSM 1277 COMPACT 6GK7277-1AA00-0AA0 or other switch SWITCH MODULE with connector A → USB cable Mini B SINAMICS IOP 6SL3255-0AA00-4JA0 optional...
  • Page 9: Setting Up And Commissioning The Application

    3 Setting up and commissioning the application 3.1 Wiring Setting up and commissioning the application Wiring The figure below shows the hardware setup of the application. Figure 3-1: Wiring L+ M PE L1 N PE L+ M SIMATIC S7 CPU 1212C 24 V DC SINAMICS G120C DP...
  • Page 10: Ip And Pb Addresses

    3 Setting up and commissioning the application 3.2 IP and PB addresses IP and PB addresses In the example the following IP and PROFIBUS addresses are used. The user can make changes at any time. Table 3-1: IP and PB addresses Component Device name IP address...
  • Page 11: Setting The Profibus Address At The G120 Dp

    3 Setting up and commissioning the application 3.4 Setting the PROFIBUS address at the G120 DP Setting the PROFIBUS address at the G120 DP For this application example, use the DIP switch at the SINAMICS G120 to adjust the bus address 3. Figure 3-2: Setting the PROFIBUS address at the SINAMICS G120 DP For the settings to become effective, perform a “POWER ON”...
  • Page 12 3 Setting up and commissioning the application 3.5 Loading the software Table 3-3: Loading the software Action Remarks Network the example components according to one of the two pictures, for example. SINAMICS G120C DP S7-1212C KTP 600 SIMATIC S7-1200 SINAMICS G120 S7-1212C SIMATIC S7-1200...
  • Page 13 3 Setting up and commissioning the application 3.5 Loading the software Action Remarks Loading the STEP 7 program into the SIMATIC controller Load the program into the SIMATIC controller. If the “Extended download” window appears, proceed as follows: Select the used PG/PC interface to connect with the Ethernet subnet.
  • Page 14 3 Setting up and commissioning the application 3.5 Loading the software Action Remarks Downloading the drive configuration into the SINAMICS G120 Navigate to the Commissioning option of the SINAMICS drive An online connection with the SINAMICS drive is established. Select “Save/Reset”. In “Restore factory setting”...
  • Page 15 3 Setting up and commissioning the application 3.5 Loading the software Action Remarks If the used SINAMICS drive has a safety configuration, please also All Safety parameters will be reset reset it. In “Restore factory setting” you choose the “Safety parameters will be reset”...
  • Page 16 3 Setting up and commissioning the application 3.5 Loading the software Action Remarks If the “Extended download” window appears, proceed as follows: Select “S7USB” as the type of the PG/PC interface and “USB” as the PG/PC interface to connect the SINAMICS drive to the PG/PC via USB cable.
  • Page 17 3 Setting up and commissioning the application 3.5 Loading the software Action Remarks Start the simulation of the HMI control panel. Preparation of the HMI KTP600 (not applicable for simulation at the PG/PC) Connect the HMI KTP600 to the supply voltage. Open the Control Panel.
  • Page 18 3 Setting up and commissioning the application 3.5 Loading the software Action Remarks Exit the PROFINET settings with OK. Exit the Control Panel. Prepare the loading process by clicking the “Transfer” button. Unless already performed, connect the HMI KTP600 with an Ethernet patch cable to the PG/PC directly or via a switch and start the data transfer.
  • Page 19: Operating The Application

    4 Operating the Application 4.1 Preconditions Operating the Application Preconditions To be able to switch on the SINAMICS drive via the HMI panel or the watch table, the following points must be fulfilled:  “Safe torque off (STO)” (see If you have configured the safety function chapter 6.2), the yellow “SAFE”...
  • Page 20: Operation Via Digital Inputs

    4 Operating the Application 4.2 Operation via digital inputs Operation via digital inputs For security reasons, the SINAMICS drives in this application example are exclusively moved via digital inputs, the HMI is only used for monitoring Table 4-1: Digital inputs Terminal Name Function...
  • Page 21: Monitoring And Parameter Access Via Operator Panel

    4 Operating the Application 4.3 Monitoring and parameter access via operator panel Monitoring and parameter access via operator panel 4.3.1 Screens and screen navigation Figure 4-1: Screen navigation From all subordinate screens From all Application example Support subordinate screens Process data exchange Parameter access Next Back...
  • Page 22: Process Data Exchange

    4 Operating the Application 4.3 Monitoring and parameter access via operator panel 4.3.2 Process data exchange Both screens for the process data exchange access the instance idb_Process_Data data block (DB11). Control and status word Figure 4-2: Control and status word The displayed control or status word is identical with that in the Process_Data tag table (see chapter 4.4).
  • Page 23 4 Operating the Application 4.3 Monitoring and parameter access via operator panel Setpoint and actual values Figure 4-3: Setpoint and actual values The control tags contained in the above screen are identical with those in the respective Process_Data tag table (see chapter Setpoint speed value In the yellow field on the top left, the setpoint speed value is displayed which is set via the digital inputs I 0.5, I 0.6 and I 0.7 (see...
  • Page 24 4 Operating the Application 4.3 Monitoring and parameter access via operator panel Figure 4-4: Current messages as message numbers Tap or click on the message number to display the respective message text. Figure 4-5: Current messages in plain text The message text is displayed for as long as the message number is pressed. SINAMICS G120 DP at S7-1200 Entry-ID: 70155469, V1.4,...
  • Page 25: Parameter Access

    4 Operating the Application 4.3 Monitoring and parameter access via operator panel 4.3.3 Parameter access Reading/writing parameters Figure 4-6: Reading/writing parameters Table 4-3: Instructions – writing/reading parameters Action Remark Select the access type with the The selected access type is displayed via “Read parameters”...
  • Page 26 4 Operating the Application 4.3 Monitoring and parameter access via operator panel Action Remark Start the write or read job with the The job status specifies how the job was “Start Transfer” button. completed: Note: Transmission active busy After a write job the new data is done Job completed successfully adopted as read parameters in the...
  • Page 27: Operator Control And Monitoring Via Monitoring Table

    4 Operating the Application 4.4 Operator Control and Monitoring via monitoring table Figure 4-8: Display of fault buffer message in plain text The message text is displayed for as long as the message number is pressed. Operator Control and Monitoring via monitoring table You can also use the application without HMI panel.
  • Page 28 4 Operating the Application 4.4 Operator Control and Monitoring via monitoring table Action Remarks Go online. For changing a value, you enter it in the “Control value” column in the respective line and tick the checkbox on the right and start the process with in the header.
  • Page 29: Functional Mechanisms Of This Application

    5 Functional Mechanisms of this Application Functional Mechanisms of this Application Program overview Figure 5-1: Program overview FB11 FC11 “Process_Data “ “Denormalization“ “Main“ Instruction FC12 “DPRD_DAT“ “Normalization“ Instruction “DPWR_DAT“ DB11 “idb_Process_Data “ FB20 “Parameters“ DB100 “write_drive_parameters“ Instruction “WRREC“ DB101 “read_drive_parameters“ DB103 Instruction “answer_from_drive“...
  • Page 30: Functionality Of Process Data Exchange

    Selecting the message frame type specifies the exact length and structure. The “Siemens Telegram 352, PZD 6/6” message frame type used in the example exchanges 6 words in both directions.
  • Page 31: Standardizing The Setpoint And Actual Values

    5 Functional Mechanisms of this Application 5.1 Functionality of process data exchange 5.1.2 Standardizing the setpoint and actual values The setpoint and actual values are transferred as standards. The standardization and reference values are stored in parameters P2000 to P2006 of the SINAMICS G120.
  • Page 32: Control Word (Stw1) And Status Word (Zsw1)

    5 Functional Mechanisms of this Application 5.1 Functionality of process data exchange 5.1.4 Control word (STW1) and status word (ZSW1) Control and status word are predefined. They are exchanged in all message frame types in the first respective process data word (PDZ01). Figure 5-3: STW1 Note A control word for which all bits are 0 is rejected as invalid by the SINAMICS...
  • Page 33 5 Functional Mechanisms of this Application 5.1 Functionality of process data exchange Figure 5-4: ZSW1 SINAMICS G120 DP at S7-1200 Entry-ID: 70155469, V1.4, 07/2018...
  • Page 34: Fb 11 "Process_Data

    5 Functional Mechanisms of this Application 5.1 Functionality of process data exchange FB 11 “Process_Data” 5.1.5 This FB shows the access to the process data with the use of the “DPRD_DAT” / “DPWR_DAT” instructions. It is called up cyclically in OB1. Figure 5-5: FB “Process_Data”...
  • Page 35 5 Functional Mechanisms of this Application 5.1 Functionality of process data exchange Start Parameter Data type Description value The initial value sets the bits - Bit 01 OFF2 - Bit 02 OFF3 - Bit 03 Operation block - Bit 04 HLG block - Bit 05 HLG stopping...
  • Page 36 5 Functional Mechanisms of this Application 5.1 Functionality of process data exchange Networks Table 5-2: Networks of the “Process_Data” FB Network Function The temporary data area #InData is initialized with 0. The process data is copied from the I/O area into the temporary #InData data area using the “DPRD_Dat”...
  • Page 37 5 Functional Mechanisms of this Application 5.1 Functionality of process data exchange Parameterization The program supplies and removes the FB largely by directly accessing its instance DB, so that many formal parameters can remain unconnected. Only the following entries are assigned with actual parameters: ...
  • Page 38: Parameter Access Functionality

    5 Functional Mechanisms of this Application 5.2 Parameter access functionality Parameter access functionality Figure 5-7: Parameter access functionality Acyclic parameter access occurs parallel to the cyclic process data exchange. This saves resources, since the data is only established on demand, i.e. when a parameter is to be transferred.
  • Page 39: The Dbs "Read/Write_Drive_Parameters" And "Answer_From_Drive

    5 Functional Mechanisms of this Application 5.2 Parameter access functionality The DBs “read/write_drive_parameters” and “answer_from_drive” 5.2.2 The job to access a parameter consists of at least 10 words. Therefore, the job should be assembled in a DB or in the temporary data of a code block. In this example, this is performed using DB 101 “read_drive_parameters”...
  • Page 40 5 Functional Mechanisms of this Application 5.2 Parameter access functionality Figure 5-9: DB101 “read_drive_parameters” Run-up time parameter no. Ramp-down time parameter no. SINAMICS G120 DP at S7-1200 Entry-ID: 70155469, V1.4, 07/2018...
  • Page 41: Fb 20 "Parameters

    5 Functional Mechanisms of this Application 5.2 Parameter access functionality Figure 5-10 DB103 “answer_from_drive” Ramp-up time [s] Ramp-down time [s] Actual alarms Acknowledged alarms FB 20 “Parameters” 5.2.3 In the example, the parameter access occurs in FB “Parameters”. It is called cyclically by OB Main.
  • Page 42 5 Functional Mechanisms of this Application 5.2 Parameter access functionality Table 5-3: Interface assignment of FB “Parameter” Start Parameter Data type Description value Input parameters HW-ID HW_SUBMODULE - Decisive hardware identifier for reading/writing parameters from/to a DP standard slave / PROFINET IO device.
  • Page 43 5 Functional Mechanisms of this Application 5.2 Parameter access functionality Structure FB “Parameter” consists of two parts:  A step sequence which controls the sequence of the parameter access (networks 1 to 22).  The calls of the system functions “Write data set” or “Read data set”...
  • Page 44 5 Functional Mechanisms of this Application 5.2 Parameter access functionality The “REQ” signal of the “WRREC” instruction is set, the Start WRREC parameter values to be written are entered in DB “write_drive_parameters” and step 2 is activated. If the “BUSY” signal of the “WRREC” instruction goes to 0 Wait for end of WRREC again, step 3 is activated.
  • Page 45: Configuration And Settings

    6 Configuration and Settings 6.1 Creating the project configuration Configuration and Settings Creating the project configuration  If you only wish to download and commission the example program, Note please follow the instructions in chapter ‎ 3 “Setting up and commissioning application”...
  • Page 46 6 Configuration and Settings 6.1 Creating the project configuration Action Remarks Create a new project and assign a name (e.g.“G120_at_S7-1200”) Inserting the SIMATIC S7-1200 Double-click on “Add new device”. Select “Controller”. Select the desired SIMATIC CPU. Then click on “OK”. In the “Devices &...
  • Page 47 6 Configuration and Settings 6.1 Creating the project configuration Action Remarks Configuring the SIMATIC S7-1200 In the device configuration you go to the SIMATIC CPU. Configure the PROFINET interface: In the device configuration you open the “Properties” of the SIMATIC CPU. Go to “Ethernet addresses”...
  • Page 48 6 Configuration and Settings 6.1 Creating the project configuration Action Remarks Add and network the SINAMICS G120 Select the desired SINAMICS drive: In the “Devices & networks” editor, go to the “Network view”. Then drag the required SINAMICS G120 DP from the catalog into the graphic area.
  • Page 49 >Actual values you configure the cyclic data reception. Select the message frame type (in the example: SIEMENS telegram 352) Specify the I/O start address of the inputs. (in the example: 256 Select the I/O addresses which otherwise are not used in the program. As a standard, STEP 7 enters the next so far unused addresses.
  • Page 50 6 Configuration and Settings 6.1 Creating the project configuration Action Remarks >Cyclic data exchange >Setpoint value you configure the cyclic data transfer. The message frame type entered in step automatically adopted (no action). Specify the I/O start address of the outputs. (in the example: 256 >Module parameter you configure the channel...
  • Page 51 6 Configuration and Settings 6.1 Creating the project configuration Action Remarks The wizard is self- explanatory. A summary is displayed before you complete the parameterization with “Finish”. This summary can be backed up using copy and paste. The parameterization in the application example is shown below: Data sets:...
  • Page 52 6 Configuration and Settings 6.1 Creating the project configuration Action Remarks Add and network the HMI KTP600 Select the desired HMI operator panel: In the “Devices & networks” editor, go to the “Network view”. Then drag the required HMI KTP600 from the catalog into the graphic area.
  • Page 53: Change Device Of Sinamics G120

    6 Configuration and Settings 6.1 Creating the project configuration Action Remarks The device and network configuration is now completed. Successively compile the configurations of SIMATIC CPU and HMI device for control purposes. The compilation results can be seen in the inspection window.
  • Page 54: Safe Torque Off (Sto) With Safety Integrated

    6 Configuration and Settings 6.2 Safe Torque Off (STO) with Safety Integrated Safe Torque Off (STO) with Safety Integrated This function is not implemented in the STEP 7 sample project. Furthermore, it is not available for the SINAMICS G120P. Preconditions ...
  • Page 55 6 Configuration and Settings 6.2 Safe Torque Off (STO) with Safety Integrated Action Remarks Enter the current password. Change the default password “0” of a factory new SINAMICS G120. Note: When resetting the safety parameters to factory settings, the assigned password remains.
  • Page 56 6 Configuration and Settings 6.2 Safe Torque Off (STO) with Safety Integrated Action Remarks Test stop On demand you can... 1. change the time for the test stops. 2. interconnect the “Test of the shutdown paths required” output. However, this is not necessary in this application.
  • Page 57 6 Configuration and Settings 6.2 Safe Torque Off (STO) with Safety Integrated Action Remarks Save the changed safety parameters in ROM. Terminate the online connection by pressing the button. For the SINAMICS G120 you perform a “POWER ON”. (Keep voltage off until all LEDs are dark.) SINAMICS G120 DP at S7-1200 Entry-ID: 70155469, V1.4,...
  • Page 58: Comments On Programming The Simatic S7-1200

    6 Configuration and Settings 6.3 Comments on programming the SIMATIC S7-1200 Comments on programming the SIMATIC S7-1200 This chapter discusses particular points of programming. The instructions and their formal parameters discussed below are described in the online help of the TIA Portal and can be easily found in the information system via the search function.
  • Page 59 6 Configuration and Settings 6.3 Comments on programming the SIMATIC S7-1200 Parameter Explanation (In the application, the system constant is transferred via the tags RD_HW- ID and WR_HW-ID to the instructions DPRD_DAT and DPWR_DAT. RD_HW-ID and WR_HW-ID are input parameters of the calling block “Process_Data”, which in the Main [OB1] was supplied with “Transfer_area_1[DI]”...
  • Page 60: Configuring The Rdrec/Wrrec Instruction

    6 Configuration and Settings 6.3 Comments on programming the SIMATIC S7-1200 6.3.2 Configuring the RDREC/WRREC instruction Table 6-4: RDREC/WRREC – Configuration of the instruction Parameter Explanation ID has the same function as the LADDR parameter for DPRD_DAT/DPWR_DAT (see Table 6-3). For RDREC as well as for WRREC the formal parameter ID must be supplied with the smaller of both system constants, i.e.
  • Page 61: Related Literature

    Commissioning tool for SINAMICS drives as option SINAMICS package for SIMATIC STEP 7 V13 Startdrive http://support.automation.siemens.com/WW/view/en/68034568 Operating instructions (V4.7): http://support.automation.siemens.com/WW/view/en/102316337 List manual (V4.7) (parameters and error list): SINAMICS G110M http://support.automation.siemens.com/WW/view/en/99684082 Manuals Function manual Safety Integrated (V4.7): http://support.automation.siemens.com/WW/view/en/94003326 Function manual Fieldbus systems (V4.7): http://support.automation.siemens.com/WW/view/en/99685159 Operating instructions (V4.7): http://support.automation.siemens.com/WW/view/en/94020562...
  • Page 62: History

    SINAMICS G120P List manual (V4.7) (parameters and error list): Manuals http://support.automation.siemens.com/WW/view/en/99683691 Function manual Fieldbus systems (V4.7): http://support.automation.siemens.com/WW/view/en/99685159 https://support.industry.siemens.com/cs/ww/en/view/7015 5469 http://support.automation.siemens.com/WW/view/en/70155 This entry http://support.automation.siemens.com Siemens Industry Online Support History Table 8-1: History Version Date Modifications V1.0 07/2013 First version  V1.2...

Table of Contents