63042779 Bibliothek Faceplate G120 En

28
Applications & Tools Answers for industry. Cover sheet Library with Faceplates for Controlling a SINAMICS G120 Drive with a SIMATIC S7-1200/300/400 Controller Library “Faceplates_G120” Library Description April 2013

description

face

Transcript of 63042779 Bibliothek Faceplate G120 En

Page 1: 63042779 Bibliothek Faceplate G120 En

Applications & Tools

Answers for industry.

Cover sheet

Library with Faceplates for Controlling a SINAMICS G120 Drive with a SIMATIC S7-1200/300/400 Controller Library “Faceplates_G120”

Library Description April 2013

Page 2: 63042779 Bibliothek Faceplate G120 En

2 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

Siemens Industry Online Support This article is taken from the 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/63042779

Caution The functions and solutions described in this article confine themselves to the realization of the automation task predominantly. Please take into account furthermore that corresponding protective measures have to be taken up in the context of Industrial Security when connecting your equipment to other parts of the plant, the enterprise network or the Internet. Further information can be found under the Entry ID 50203404.

http://support.automation.siemens.com/WW/view/en/50203404

Page 3: 63042779 Bibliothek Faceplate G120 En

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 3

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

s

SIMATIC Faceplates_G120

Library Overview 1

Blocks of the Library 2

Working with the Library 3

Bibliography 4

History 5

Page 4: 63042779 Bibliothek Faceplate G120 En

Warranty and Liability

4 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

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. These application examples do not relieve you of the responsibility to use safe practices in application, installation, operation and maintenance. When using these Application Examples, you recognize that we cannot be made liable for any damage/claims beyond the liability clause described. We reserve the right to make changes to these 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.

Any claims against us – based on whatever legal reason – resulting from the use of the examples, information, programs, engineering and performance data etc., described in this Application Example shall be excluded. Such an exclusion shall not apply in the case of mandatory liability, e.g. under the German Product Liability Act (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life, body or health, guarantee for the quality of a product, fraudulent concealment of a deficiency or breach of a condition which goes to the root of the contract (“wesentliche Vertragspflichten”). The damages for a breach of a substantial contractual obligation are, however, limited to the foreseeable damage, typical for the type of contract, except in the event of intent or gross negligence or injury to life, body or health. The above provisions do not imply a change of the burden of proof to your detriment.

Any form of duplication or distribution of these Application Examples or excerpts hereof is prohibited without the expressed consent of Siemens Industry Sector.

Page 5: 63042779 Bibliothek Faceplate G120 En

Table of Contents

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 5

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

Table of Contents Warranty and Liability ................................................................................................. 4

1 Library Overview ..................................................................................................... 6 1.1 User Scenario ............................................................................................ 6 1.2 Block diagram ............................................................................................ 7 1.3 Hardware and software requirements ....................................................... 8

2 Blocks of the Library .............................................................................................. 9 2.1 Block list ............................................................................................... 9 2.2 Explanation of the controller block ....................................................... 9 2.2.1 Calling FB “PZD_G120_Tel_352“ ........................................................ 9 2.2.2 Functionality of FB “PZD_G120_Tel_352“ ......................................... 12 2.3 Explanation of the operator panel blocks ........................................... 12 2.3.1 Toolbar ............................................................................................... 12 2.3.2 Screen “Faceplate_G120_start” ......................................................... 13 2.3.3 Screen “Faceplate_G120_CTW1/STW1“........................................... 16 2.3.4 Screen “Faceplate_G120_data” ......................................................... 18 2.3.5 Screen “Faceplate_G120_safety” ...................................................... 20 2.3.6 HMI tags “Faceplate_G120_variables“ .............................................. 20 2.3.7 VB Script “Faceplate_G120_VBFunction” .......................................... 21

3 Working with the library ....................................................................................... 22 3.1 Preparation .............................................................................................. 22 3.2 Integrating the library into STEP 7 .......................................................... 24 3.3 Integrating the library blocks into STEP 7 ............................................... 25

4 Related Literature ................................................................................................. 28 4.1 Bibliography ............................................................................................. 28 4.2 Internet Link Specifications ..................................................................... 28

5 History .................................................................................................................... 28

Page 6: 63042779 Bibliothek Faceplate G120 En

1 Library Overview

6 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

1 Library Overview This document describes the “Faceplates_G120” block library. The block library provides you with tested code with clearly defined interfaces. They can be used as a basis for your task to be implemented.

A key concern of the document is to describe

• all blocks of the block library

• the functionality implemented through these blocks

Furthermore, this documentation shows possible fields of application and helps you integrate the library into your STEP 7 project using step-by-step instructions.

1.1 User Scenario The blocks included in the TIA Portal V12 library “Faceplates_G120” enable fast and easy operation of a SINAMICS G120 drive.

Figure 1-1: Overview User Scenario

Apart from a function block for the SIMATIC Controller used, the library includes a number of faceplates for integration into a SIMATIC operator panel (HMI). With these faceplates the user is able to influence a drive using easy-to-use and clearly designed user interfaces.

S7-1200/300/400 TP700 Comfort SINAMICS G120

Motor

PROFINET PROFINET

PROFIBUS

Page 7: 63042779 Bibliothek Faceplate G120 En

1 Library Overview

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 7

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

1.2 Block diagram The block diagram of the “Faceplates_G120“ library is shown below.

Figure 1-2: Block diagram

Process data communication

The SINAMICS drive and the SIMATIC controller communicate through the process data. Process data is transferred cyclically, which means in each bus cycle. In this process the controller used transmits a control word and a setpoint value to the SINAMICS drive and receives a status word and several actual values.

Standard frame 352 should be used on the drive side in order to enable maximum exchange of information between controller and drive.

When using the free frame configuration, make sure that the first six words of the process data correspond to the structure of standard frame 352.

Note For information on process data communication and structure of the standard frames, please refer to the documentation of the SINAMICS G120 drive used.

Blocks for controller and operating panel The function block (FB) and the user interfaces for the operating panel used in the controller are part of the “Faceplates_G120” library and will be described in detail in the following chapters.

DB

Process data

Faceplates

FB

HMI Operation of the drive

Page 8: 63042779 Bibliothek Faceplate G120 En

1 Library Overview

8 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

1.3 Hardware and software requirements

Requirements for this library

The following hardware and software requirements must be met in order to use the functionality of the library described in this document:

Hardware Table 1-1: Required hardware

No. Component Order number Qty. Alternative

1 SIMATIC S7-300 CPU 6ES731… 1 SIMATIC S7-1200/400 CPU 2 SIMATIC TP700

Comfort Panel 6AV2124-0GC01-0AX0 1 Larger Comfort Panels with

image adaptation 3 SINAMICS CU240E-2

PN-F 6SL3244-0BB13-1FA0 1 similar control unit

4 SINAMICS PM240 6SL3224-0BE22-2UA0 1 similar power module

Software Table 1-2: Required software

No. Component Order number Qty.

1 SIMATIC STEP 7 Professional V12 6ES7882-1AA02-0YA5 1 2 SIMATIC WinCC Professional V12 6AV2103-0AA02-0AA7 1

Page 9: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 9

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

2 Blocks of the Library This chapter lists and explains all “Faceplates_G120” library blocks.

2.1 Block list

The following tables list all blocks that are part of the “Faceplates_G120” library.

Table 2-1: List of STEP 7 blocks

Symbol

PZD_G120_Tel_352

Table 2-2: WinCC blocks list

Symbol

Faceplate_G120_start Faceplate_G120_CTW1 / STW1 Faceplate_G120_data Faceplate_G120_safety Faceplate_G120_variables Faceplate_G120_VBFunction

2.2 Explanation of the controller block

2.2.1 Calling FB “PZD_G120_Tel_352“

Function block “PZD_G120_Tel_352“ sets up the communication to the SINAMICS G120 (SINAMICS G120D) drive and prepares the data received and the data to transmit. This block is called at cyclic intervals in operation block (OB) 1.

Page 10: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

10 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

Figure 2-1: Call of function block

Input parameters Table 2-3: Input parameters

Parameter Data type Description

address Int Address of SINAMICS G120 ON_OFF1 Bool Control word 1;Bit 0: Switching the drive on/off OFF2 Bool Control word 1;Bit 1: Electronic stop of the drive OFF3 Bool Control word 1;Bit 2: Drive fast stop enable_operation Bool Control word 1;Bit 3: Enable operation release_RFG Bool Control word 1;Bit 4: Release ramp-function generator

Page 11: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 11

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

Parameter Data type Description

enable_RFG Bool Control word 1;Bit 5: Continue ramp-function generator enable_setpoint Bool Control word 1;Bit 6: Enable setpoint speed value acknowledge Bool Control word 1;Bit 7: Acknowledge malfunction CTW_bit_08 Bool Control word 1;Bit 8 CTW_bit_09 Bool Control word/ 1;Bit 9 PLC_is_master Bool Control word 1;Bit 10: Master control by PLC direction_reversal Bool Control word 1;Bit 11: Direction reversal (setpoint) CTW_bit_12 Bool Control word 1;Bit 12 MOP_up Bool Control word 1;Bit 13: Motor potentiometer higher MOP_down Bool Control word 1;Bit 14: Motor potentiometer lower CTW_bit_15 Bool Control word 1;Bit 15 activate_manual_mode Bool Switching the operating mode speed_setpoint Real Setpoint speed value of the drive reference_speed_P2000 Real Reference speed / reference frequency reference_current_P2002 Real Reference current reference_torque_P2003 Real Reference torque

Output parameters Table 2-4: Output parameters

Parameter Data type Description

ready_for_switching_on Bool Status word 1;Bit 0: Drive ready for switching on ready_for_operation Bool Status word 1;Bit 1: Drive is ready for operation operation_enabled Bool Status word 1;Bit 2: Operation enabled fault_active Bool Status word 1;Bit 3: Fault is active OFF2_inactive Bool Status word 1;Bit 4: Coast-down active (OFF2) OFF3_inactive Bool Status word 1;Bit 5: Fast stop active (OFF3) closing_lockout_active Bool Status word 1;Bit 6: On inhibit active alarm_active Bool Status word 1;Bit 7: Alarm active speed_deviation_in_tol Bool Status word 1;Bit 8: Deviation setpoint / actual speed PLC_control_requested Bool Status word 1;Bit 9: Control through PLC required comp_speed_reached Bool Status word 1;Bit 10: Maximum speed reached limit_reached Bool Status word 1;Bit 11: I, M, P limit reached holding_brake_open Bool Status word 1;Bit 12: Holding brake open alarm_motor_overtemp Bool Status word 1;Bit 13: Overtemperature warning alert

Motor rotating_right Bool Status word 1;Bit 14: Motor clockwise rotation no_thermal_overload Bool Status word 1;Bit 15: Converter overload warning actual_speed Real Current speed of the motor actual_current Real Current electrical current actual_torque Real Current torque actual_alarm Word Current alarm of the drive actual_fault Word Current fault of the drive

Page 12: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

12 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

2.2.2 Functionality of FB “PZD_G120_Tel_352“

Function block “PZD_G120_Tel_352“ performs two tasks:

• Establishing the communication between controller and drive

• Processing the received data and preparing data to be sent

Establishing the communication between controller and drive

The process data communication between the SIMATIC S7-1200/300/400 controller and the SINAMICS G120 drive is carried out in the controller with standard functions (SFC), the following blocks being used:

• SFC 14 “DPRD_DAT“ for receiving the drive data

• SFC 15 “DPWR_DAT“ for sending data to the drive

Note For more information on the communication with DP standard slaves please refer to the STEP 7 Online help (TIA Portal) V12.

Processing the received data and preparing data to be sent The data received from the drive is supplied to the function block interface. The interface or an operator panel receives the data to be sent to the drive and forwards the data to the drive.

2.3 Explanation of the operator panel blocks

2.3.1 Toolbar

The following table lists all the buttons of the HMI operator display toolbar.

Table 2-5: Icons used

Icon Description

Switch to the start screen

Finish runtime of the operator panel

Switch language between: • German (Germany) • English (USA)

Switch to the next image

Page 13: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 13

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

Icon Description

Switch to the previous image

Switch to the display of the safety control word and the safety status word

Switch mode between: • Manual (input via HMI possible) • Automatic (controlling via block interface)

Display the message text of the current warning

Display the message text of the current fault

2.3.2 Screen “Faceplate_G120_start”

This faceplate has been defined as the start screen. This means that after the project has been loaded into the operator panel, this screen will be the first to be displayed.

Figure 2-2: Start screen with activated safety data exchange

Input parameters

The following parameters must be entered in the start screen:

• Number of the instance data block

• Offset of the message (telegram) data

• I/O address of the inverter

• I/O address of the safety message frame (optional)

Page 14: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

14 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

Number of the instance data block

The number of the instance data block to be entered ist the number of the data block that contains the data of the “PZD_G120_Tel_352“ function block.

Offset of the message data The offset of the message data is the number of bytes, after which, in an instance or multi-instance data block, the interface data of the “PZD_G120_Tel_352” starts.

If a separate instance data block is used for every call of function block “PZD_G120_Tel_352“, the offset will be zero.

Multi-instance is an option to reduce the number of required instance data blocks in case several calls of function block “PZD_G120_Tel_352“ are used. In this case function block “PZD_G120_Tel_352“ is called in a different function block, the interface of which includes the entire data of the “PZD_G120_Tel_352“ function blocks called.

Figure 2-3: Calling the “PZD_G120_Tel_352“ als multi-instance

The above figure shows the calling of function block “PZD_G120_Tel_352“ in a function block with the name “call_PZD_G120_Tel_352”. In its instance data block, the “PZD_G120_Tel_352“ block data starts from byte 8. In this case the number eight must be entered as the offset of the message data in screen “Faceplate_G120_start“.

Note For more information on multi-instance, please refer to the STEP 7 Online help (TIA Portal) V12.

Inverter address when using a SIMATIC S7-300/400 controller If you are using a SIMATIC S7-300/400 controller, enter the start of the I/O address range that was assigned during the configuration of the Siemens message 352 of the SINAMICS G 120 drive in STEP 7 as the inverter address.

In the example shown in the figure below, the value 256 must be entered as the inverter address.

Page 15: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 15

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

Figure 2-4: Configuration of SINAMICS G120 for S7-300/400

Inverter address when using a SIMATIC S7-1200 controller If you are using a SIMATIC S7-1200 controller, enter the hardware identifier of Siemens message 352 as the inverter address. This can be found in the system constants.

In the example shown in the figure below, the value 279 must be entered as the inverter address.

Figure 2-5: Configuration of SINAMICS G120 for S7-1200

I/O address of the safety message frame (optional, only for S7-300/400)) Enter the start of the I/O address range that was assigned during the configuration of PROFISafe message 30 of the SINAMICS G 120 drive in STEP 7 as the I/O address.

In the example shown in figure 2-4, the value 100 must be entered as the I/O address of the safety message frame.

Page 16: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

16 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

2.3.3 Screen “Faceplate_G120_CTW1/STW1“

The screen “Faceplate_G120_CTW1/STW1“ shows control word 1 and status word 1 of the SINAMICS G120 drive. A distinction must be made between manual and automatic mode.

Manual mode

In manual mode the individual parameters of the control word can be switched via the operator panel. During this process, a control word created internally in function block “PZD_G120_Tel_352“ will be sent to the drive.

Figure 2-6: Display of the control word and status word in manual mode

Page 17: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 17

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

Automatic mode

In automatic mode, control word 1 is merely displayed. These are the values that are applied as input parameters at the interface of function block “PTD_G120_Tel_352“ as Bool variables. Influencing these values via the operator panel is not possible in automatic mode.

Figure 2-7: Display of the control word and status word in automatic mode

In both modes, status word 1 is merely displayed and corresponds to the output parameters in function block “PZD_G120_Tel_352“of the BOOL data type.

CAUTION Switching between manual and automatic mode is done without checking the operating state of the drive.

Page 18: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

18 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

2.3.4 Screen “Faceplate_G120_data”

The screen “Faceplate_G120_data“ shows the following information:

• Display or input of the setpoint speed of the drive

• Current fault and warning message

• Setpoint speed value in [rpm]

• Current actual value in [A]

• Torque actual value in [Nm]

In addition, the motor can be started and pending faults can be acknowledged from this screen.

Figure 2-8: Display of setpoint and actual values during fault-free operation

Entering the setpoint speed value is possible in manual mode only. In automatic mode, only the value of the input parameter “speed_setpoint” of function block “PZD_G120_Tel_352“ is displayed and transmitted to the drive.

Reference parameters for displaying the actual values The data received by the drive must be calculated using reference values in order to be able to display the actual values with the corresponding units. These reference values are provided by the drive in the form of parameter values.

The values of these reference parameters must be provided to the corresponding input parameters of function block “PZD_G120_Tel_352“.

Page 19: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 19

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

Table 2-6: Reference parameters

Drive parameters Input parameters at the FB Starting value

P2000 reference frequency reference_speed_P2000 1500.0 P2002 reference current reference_current_P2002 0.0 P2003 reference torque reference_torque_P2003 0.0

Display of fault and warning messages If a fault or warning is active, the corresponding error code will be displayed.

Figure 2-9: Display of the current fault and warning message

If the corresponding information button is pressed, an information on the current warning or fault will be displayed.

Page 20: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

20 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

2.3.5 Screen “Faceplate_G120_safety”

The screen “Faceplate_G120_safety” shows safety control word 1 and safety status word 1 of the SINAMICS G120 drive. This information is transmitted via PROFIsafe message 30. Figure 2-10: Display of the safety control and status words

In screen “Faceplate_G120_safety“ it is not possible to influence the tags displayed.

This display is optional and can only be achieved with safety data exchange available.

2.3.6 HMI tags “Faceplate_G120_variables“

The tag table “Faceplates_G_120_variable” contains all tags required for using the faceplates. Tags include both internal tags and tags referring to a controller.

Figure 2-11: Excerpt from the tag table

Page 21: 63042779 Bibliothek Faceplate G120 En

2 Blocks of the Library

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 21

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

For tags the storage location of which is in a used controller, the name of the connection must be given. It is the name of the HMI connection between controller and operator panel. In the above tag table “Faceplate_G120_variables“ the name of the connection was chosen to be “Faceplate_G120_contact“.

2.3.7 VB Script “Faceplate_G120_VBFunction”

The VB Script included in the “Faceplates_G120“ library under the name “Faceplate_G120_VBFunction“ is used for calculating the addresses of the tags the storage location of which is on the controller used.

Note For more information on VB scripts, please refer to the STEP 7 Online help (TIA Portal) V12.

Page 22: 63042779 Bibliothek Faceplate G120 En

3 Working with the library

22 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

3 Working with the library This chapter includes instructions for integrating the “Faceplates_G120” library into your STEP 7 project and instructions for using the library blocks.

3.1 Preparation The following conditions must be met in order to use the “Faceplates_G120” library:

• Error-free configuration of the SIMATIC controller and the SINAMICS G120 drive with the associated communication connection

• Identical input and output addresses of the SINAMICS drive

• Activation of the German and English language in WinCC TIA V12

• Correct name assignment of the HMI connection

Configuration of controller and drive

Fault-free configuration of the SIMATIC Controller with a SINAMICS G120 drive is the prerequisite for using the “Faceplates_G120” library.

Note The application “Connecting a SINAMICS G120 Drive to an S7300/400 CPU in TIA Portal” with Entry ID. 60140921 can be taken as an example for creating the required configuration.

Address assignment of the drive With the use of a SIMATIC S7-300/400 controller the input and output addresses of the SINAMICS G120 drive must be identical. This setting is made in the hardeware configuration and is illustrated in figure 2-4.

Language settings in WinCC TIV V12

The faceplates of the “Faceplates_G120” library are bilingual. Therefore the following languages must be set as project languages:

• German (Germany)

• English (USA)

After the required selection the languages must be activated in the Runtime settings.

Page 23: 63042779 Bibliothek Faceplate G120 En

3 Working with the library

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 23

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

Figure 3-1: Activation of the languages in Runtime

Name assignment of the HMI connection

As described in chapter 2.2.7, the name of the HMI connection has been assigned to be “Faceplate_G120_contact” in the tag table.

Figure 3-2: Name assignment of the HMI connection

In case a different name is to be used for the HMI connection, it must be corrected in the “Faceplate_G120_variables” tag table. Otherwise there will be no correct translation of the HMI project.

Page 24: 63042779 Bibliothek Faceplate G120 En

3 Working with the library

24 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

3.2 Integrating the library into STEP 7 The table below lists the steps for integrating the “Faceplates_G120“ library into your STEP 7 project.

Table 3-1: Instructions for integrating a global library

No. Action Note

1 In the “Global Libraries” palette, click on “Open global library” in the toolbar or select “Global libraries > open library...” in the “Options” menu.

2 The dialog “Open global library” opens. 3 Select the global library that you wish to open.

4 Click “Open”.

The selected global library is opened and inserted into the palette "Global Libraries”.

Note For more information on working with libraries, please refer to the STEP 7 Online help (TIA Portal) V12.

Page 25: 63042779 Bibliothek Faceplate G120 En

3 Working with the library

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 25

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

3.3 Integrating the library blocks into STEP 7 The table below lists the steps for integrating the blocks of the “Faceplates_G120“ library into your STEP 7 program.

Table 3-2: Integrating the library blocks

No. Action Note

1 Open the copy templates in the library.

2 Drag function block

“PZD_G120_Tel_352“ into the program blocks folder of your SIMATIC controller.

Page 26: 63042779 Bibliothek Faceplate G120 En

3 Working with the library

26 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

No. Action Note

3 Now the function block “PZD_G120_Tel_352“ can be called in organization block 1, for example.

4 Open the project of the operator

panel and drag the screen objects from the library into the screens folder.

5 Drag the tag table

“Faceplate_G120_variables“ into the HMI tags folder.

Page 27: 63042779 Bibliothek Faceplate G120 En

3 Working with the library

Faceplates für SINAMICS G120 V 1.0, Entry ID: 63042779 27

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

No. Action Note

6 Drag the VB Script “Faceplate_G120_VBFunction“ into the Scripts folder.

7 The project can now be loaded

to the controller and the operator panel.

Page 28: 63042779 Bibliothek Faceplate G120 En

4 Related Literature

28 Faceplates für SINAMICS G120

V 1.0, Entry ID: 63042779

Cop

yrig

ht

Sie

men

s AG

Cop

yrig

ht-2

012

All r

ight

s re

serv

ed

4 Related Literature 4.1 Bibliography

This list is not complete and only represents a selection of relevant literature.

Table4-1

Topic Title

/1/ STEP7 SIMATIC S7-300/400

Automation with STEP7 in STL and SCL Author: Hans Berger Publicis Publishing ISBN: 978-3-89578-412-5

/2/ STEP7 SIMATIC S7-300

Automating with SIMATIC S7-300 inside TIA Portal Author: Hans Berger Publicis Publishing ISBN: 978-3-89578-382-1

/3/ STEP7 SIMATIC S7-400

Automating with SIMATIC S7-400 inside TIA Portal Author: Hans Berger Publicis Publishing ISBN: 978-3-89578-383-8

/4/ STEP7 SIMATIC S7-1200

Automating with SIMATIC S7-1200 Author: Hans Berger Publicis Publishing ISBN: 978-3-89578-385-2

4.2 Internet Link Specifications This list is not complete and only represents a selection of relevant information.

Table4-2

Topic Title

\1\ Link to this document

http://support.automation.siemens.com/WW/view/en/63042779

\2\ Siemens Industry Online Support

http://support.automation.siemens.com

5 History Table 5-1

Version Date Modifications

V1.0 04/2013 First version