SlideShare a Scribd company logo
1 of 26
Download to read offline
https://support.industry.siemens.com/cs/ww/en/view/63042779
Library description  12/2015
Library with screens for
Controlling a SINAMICS G120
Drive with a SIMATIC S7-
1200/1500/300/400 Controller
SINAMICS G120 , SIMATIC S7-1200/1500/300/400
Warranty and liability
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 2

Siemens
AG
2015
All
rights
reserved
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.
Security
informa-
tion
Siemens provides products and solutions with industrial security functions that
support the secure operation of plants, solutions, machines, equipment and/or
networks. They are important components in a holistic industrial security
concept. With this in mind, Siemens’ products and solutions undergo continuous
development. Siemens recommends strongly that you regularly check for
product updates.
For the secure operation of Siemens products and solutions, it is necessary to
take suitable preventive action (e.g. cell protection concept) and integrate each
component into a holistic, state-of-the-art industrial security concept. Third-party
products that may be in use should also be considered. For more information
about industrial security, visit http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-
specific newsletter. For more information, visit
https://support.industry.siemens.com.
Table of contents
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 3

Siemens
AG
2015
All
rights
reserved
Table of contents
Warranty and liability................................................................................................... 2
1 Library Overview................................................................................................ 4
1.1 User Scenario....................................................................................... 4
1.2 Block diagram....................................................................................... 5
1.3 Hardware and software requirements .................................................. 6
2 Blocks of the Library......................................................................................... 7
2.1 Block list ............................................................................................... 7
2.2 Explanation of the controller block ....................................................... 7
2.2.1 Calling FB “PZD_G120_Tel_352“ ........................................................ 7
2.2.2 Functionality of FB “PZD_G120_Tel_352“......................................... 10
2.3 Explanation of the operator panel blocks........................................... 10
2.3.1 Toolbar ............................................................................................... 10
2.3.2 Screen “screen_G120_start”.............................................................. 11
2.3.3 Screen “screen_G120_CTW1/STW1“................................................ 14
2.3.4 Screen “ screen_G120_data”............................................................. 16
2.3.5 Screen “ screen_G120_safety” .......................................................... 18
2.3.6 HMI tags “screens_G120_variables“.................................................. 18
2.3.7 VB Script “screens_G120_VBFunction”............................................. 19
3 Working with the library.................................................................................. 20
3.1 Preparation......................................................................................... 20
3.2 Integrating the library into STEP 7 ..................................................... 22
3.3 Integrating the library blocks into STEP 7.......................................... 23
4 Related literature ............................................................................................. 26
5 History............................................................................................................... 26
1 Library Overview
1.1 User Scenario
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 4

Siemens
AG
2015
All
rights
reserved
1 Library Overview
This document describes the “screens_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 “screens_G120” enable fast and
easy operation of a SINAMICS G120 drive.
Figure 1-1: Overview User Scenario
S7-1200/1500/300/400 TP700 Comfort
SINAMICS G120
Motor
PROFINET
PROFINET
PROFIBUS
Apart from a function block for the SIMATIC Controller used, the library includes a
number of screens for integration into a SIMATIC operator panel (HMI). With these
screens the user is able to influence a drive using easy-to-use and clearly designed
user interfaces.
1 Library Overview
1.2 Block diagram
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 5

Siemens
AG
2015
All
rights
reserved
1.2 Block diagram
The block diagram of the “screens_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 “screens_G120” library and will be described in detail in
the following chapters.
DB
Process data
screens
FB
HMI
Operation of the
drive
1 Library Overview
1.3 Hardware and software requirements
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 6

Siemens
AG
2015
All
rights
reserved
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 CPU
S7-1200/1500/400
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-1A.02-.. 1
2 SIMATIC WinCC Professional V12 6AV210.-….2-0.. 1
2 Blocks of the Library
2.1 Block list
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 7

Siemens
AG
2015
All
rights
reserved
2 Blocks of the Library
This chapter lists and explains all “screens_G120” library blocks.
2.1 Block list
The following tables list all blocks that are part of the “screens_G120” library.
Table 2-1: List of STEP 7 blocks
Symbol
PZD_G120_Tel_352
Table 2-2: WinCC blocks list
Symbol
screen_G120_start
screen_G120_CTW1 / STW1
screen_G120_data
screen_G120_safety
screens_G120_variables
screens_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 organisation block (OB1).
2 Blocks of the Library
2.2 Explanation of the controller block
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 8

Siemens
AG
2015
All
rights
reserved
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
enable_RFG Bool Control word 1;Bit 5: Continue ramp-function generator
2 Blocks of the Library
2.2 Explanation of the controller block
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 9

Siemens
AG
2015
All
rights
reserved
Parameter Data type Description
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: Warning overtemperature 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
communication_error Bool Communication error or drive does not exist
2 Blocks of the Library
2.3 Explanation of the operator panel blocks
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 10

Siemens
AG
2015
All
rights
reserved
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/1500/300/400
controller and the SINAMICS G120 drive is carried out in the controller with system
functions (SFC). The following system blocks respectively instructions are being
used:
 SFC14 “DPRD_DAT“ for receiving the drive data
 SFC15 “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
2 Blocks of the Library
2.3 Explanation of the operator panel blocks
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 11

Siemens
AG
2015
All
rights
reserved
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 “screen_G120_start”
This screen 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)
2 Blocks of the Library
2.3 Explanation of the operator panel blocks
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 12

Siemens
AG
2015
All
rights
reserved
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 “8”
must be entered as the offset of the message data in screen “screen_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
With using a SIMATIC S7-300/400 controller, for parameter “address” of the
function block “PZD_G120_Tel_325” 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.
In the example shown in the figure below, the value 256 must be entered as the
inverter address.
2 Blocks of the Library
2.3 Explanation of the operator panel blocks
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 13

Siemens
AG
2015
All
rights
reserved
Figure 2-4: Configuration of SINAMICS G120 for S7-300/400
Inverter address when using a SIMATIC S7-1200/1500 controller
With using a SIMATIC S7-1200/1500 controller, for parameter “address” of the
function block “PZD_G120_Tel_325” enter the hardware identifier of Siemens
message 352. 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/1500
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.
2 Blocks of the Library
2.3 Explanation of the operator panel blocks
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 14

Siemens
AG
2015
All
rights
reserved
2.3.3 Screen “screen_G120_CTW1/STW1“
The screen “screen_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
2 Blocks of the Library
2.3 Explanation of the operator panel blocks
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 15

Siemens
AG
2015
All
rights
reserved
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.
2 Blocks of the Library
2.3 Explanation of the operator panel blocks
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 16

Siemens
AG
2015
All
rights
reserved
2.3.4 Screen “ screen_G120_data”
The screen “screen_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“.
2 Blocks of the Library
2.3 Explanation of the operator panel blocks
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 17

Siemens
AG
2015
All
rights
reserved
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.
2 Blocks of the Library
2.3 Explanation of the operator panel blocks
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 18

Siemens
AG
2015
All
rights
reserved
2.3.5 Screen “ screen_G120_safety”
The screen “screen_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 “screen_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 “screens_G120_variables“
The tag table “screens_G_120_variable” contains all tags required for using the
screens. Tags include both internal tags and tags referring to a controller.
Figure 2-11: Excerpt from the tag table
2 Blocks of the Library
2.3 Explanation of the operator panel blocks
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 19

Siemens
AG
2015
All
rights
reserved
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 “screens_G120_variables“ the name of
the connection was chosen to be “screens_G120_contact“.
2.3.7 VB Script “screens_G120_VBFunction”
The VB Script included in the “screens_G120“ library under the name
“screens_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.
3 Working with the library
3.1 Preparation
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 20

Siemens
AG
2015
All
rights
reserved
3 Working with the library
This chapter includes instructions for integrating the “screens_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 “screens_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 “screens_G120” library.
Note The following applications can be taken as examples for creating the required
configuration:
 “Connecting a SINAMICS G120 Drive to an S7300/400 CPU in TIA Portal”
(Entry ID 60140921)
 “SINAMICS G: Speed Control of a G120 (StartDrive) with S7-1200 (TIA
Portal) via PROFINET/PROFIBUS DP with Safety Integrated (via Terminal)
and HMI” (Entry ID 70155469)
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 hardware
configuration and is illustrated in Figure 2-4.
Language settings in WinCC TIV V12
The screens of the “screens_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.
3 Working with the library
3.1 Preparation
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 21

Siemens
AG
2015
All
rights
reserved
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 “screens_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 “screens_G120_variables” tag table. Otherwise there will be no correct
translation of the HMI project.
3 Working with the library
3.2 Integrating the library into STEP 7
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 22

Siemens
AG
2015
All
rights
reserved
3.2 Integrating the library into STEP 7
The table below lists the steps for integrating the “screens_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.
3 Working with the library
3.3 Integrating the library blocks into STEP 7
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 23

Siemens
AG
2015
All
rights
reserved
3.3 Integrating the library blocks into STEP 7
The table below lists the steps for integrating the blocks of the “screens_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“ (1) into
the program blocks folder of
your SIMATIC controller (2).
1
2
3 Working with the library
3.3 Integrating the library blocks into STEP 7
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 24

Siemens
AG
2015
All
rights
reserved
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 (1) into
the screens folder (2).
5 Drag the tag table
“screens_G120_variables“ (1)
into the HMI tags folder (2).
1
2
1
2
3 Working with the library
3.3 Integrating the library blocks into STEP 7
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 25

Siemens
AG
2015
All
rights
reserved
No. Action Note
6 Drag the VB Script
“screens_G120_VBFunction“
(1) into the Scripts folder (2).
7 The project can now be loaded
to the controller and the
operator panel.
1
2
4 Related literature
screens for SINAMICS G120
Entry-ID: 63042779, V1.2, 12/2015 26

Siemens
AG
2015
All
rights
reserved
4 Related literature
Table 4-1
Topic Title / Link
1 Siemens Industry
Online Support
https://support.industry.siemens.com
2 Download page of
this entry
https://support.industry.siemens.com/cs/ww/de/view/63042779
3 STEP7
SIMATIC S7-
300/400
Automation with STEP7 in STL and SCL
Author: Hans Berger Publisher: Publicis Publishing
ISBN: 978-3-89578-412-5
4 STEP7
SIMATIC S7-300
Automating with SIMATIC S7-300 inside TIA Portal
Author: Hans Berger Publisher: Publicis Publishing
ISBN: 978-3-89578-382-1
5 STEP7
SIMATIC S7-400
Automating with SIMATIC S7-400 inside TIA Portal
Author: Hans Berger Publisher: Publicis Publishing
ISBN: 978-3-89578-383-8
6 STEP7
SIMATIC S7-1200
Automating with SIMATIC S7-1200
Author: Hans Berger Publisher: Publicis Publishing
ISBN: 978-3-89578-385-2
7 STEP7
SIMATIC S7-1500
Automating with SIMATIC S7-1500
Author: Hans Berger Publisher: Publicis Publishing
ISBN: 978-3-89578-404-0
5 History
Table 5-1
Version Date Modifications
V1.0 04/2013 First version
V1.1 03/2014 Communication error message added
V1.2 12/2015 Change oft the name in the library and added this into the
documentation

More Related Content

Similar to 63042779_Bibliothek_screens_G120_en.pdf

E20001 a239-p280-x-7600[1]
E20001 a239-p280-x-7600[1]E20001 a239-p280-x-7600[1]
E20001 a239-p280-x-7600[1]
Vahid RG-zadeh
 
S71500 ai 8xu_i_hs_manual_en-us_en-us
S71500 ai 8xu_i_hs_manual_en-us_en-usS71500 ai 8xu_i_hs_manual_en-us_en-us
S71500 ai 8xu_i_hs_manual_en-us_en-us
PLCVENTA
 
Manual del sistema del controlador programable S7-200 SMART
Manual del sistema del controlador programable S7-200 SMARTManual del sistema del controlador programable S7-200 SMART
Manual del sistema del controlador programable S7-200 SMART
SANTIAGO PABLO ALBERTO
 
Tài liệu kỹ thuật biến tần Siemens S120
Tài liệu kỹ thuật biến tần Siemens S120Tài liệu kỹ thuật biến tần Siemens S120
Tài liệu kỹ thuật biến tần Siemens S120
Công ty công nghệ tự động hóa Hoàng Gia
 

Similar to 63042779_Bibliothek_screens_G120_en.pdf (20)

Rsg2488 installationguide
Rsg2488 installationguideRsg2488 installationguide
Rsg2488 installationguide
 
E20001 a239-p280-x-7600[1]
E20001 a239-p280-x-7600[1]E20001 a239-p280-x-7600[1]
E20001 a239-p280-x-7600[1]
 
Readme
ReadmeReadme
Readme
 
M2 m ehs6t_hardware
M2 m ehs6t_hardwareM2 m ehs6t_hardware
M2 m ehs6t_hardware
 
equipment modules for PCS7
equipment modules for PCS7equipment modules for PCS7
equipment modules for PCS7
 
S71500 ai 8xu_i_hs_manual_en-us_en-us
S71500 ai 8xu_i_hs_manual_en-us_en-usS71500 ai 8xu_i_hs_manual_en-us_en-us
S71500 ai 8xu_i_hs_manual_en-us_en-us
 
S7-1200 easy_book
S7-1200 easy_bookS7-1200 easy_book
S7-1200 easy_book
 
Siemens win cc manual pcs 7 runtime
Siemens win cc manual pcs 7 runtimeSiemens win cc manual pcs 7 runtime
Siemens win cc manual pcs 7 runtime
 
33412955_Func_Spec_Temperature_V30_en.pdf
33412955_Func_Spec_Temperature_V30_en.pdf33412955_Func_Spec_Temperature_V30_en.pdf
33412955_Func_Spec_Temperature_V30_en.pdf
 
logo8 access_control_en
logo8 access_control_enlogo8 access_control_en
logo8 access_control_en
 
Manual del sistema del controlador programable S7-200 SMART
Manual del sistema del controlador programable S7-200 SMARTManual del sistema del controlador programable S7-200 SMART
Manual del sistema del controlador programable S7-200 SMART
 
828 d da_v27
828 d da_v27828 d da_v27
828 d da_v27
 
Tài liệu kỹ thuật biến tần Siemens S120
Tài liệu kỹ thuật biến tần Siemens S120Tài liệu kỹ thuật biến tần Siemens S120
Tài liệu kỹ thuật biến tần Siemens S120
 
23588559 logo set18_opto_v2_0_en
23588559 logo set18_opto_v2_0_en23588559 logo set18_opto_v2_0_en
23588559 logo set18_opto_v2_0_en
 
Systemhandbuch_SIMOCODE_pro_en-US.pdf
Systemhandbuch_SIMOCODE_pro_en-US.pdfSystemhandbuch_SIMOCODE_pro_en-US.pdf
Systemhandbuch_SIMOCODE_pro_en-US.pdf
 
Truyen thong
Truyen thongTruyen thong
Truyen thong
 
Siemens catalog hmi-tp070 touch panel
Siemens catalog hmi-tp070 touch panelSiemens catalog hmi-tp070 touch panel
Siemens catalog hmi-tp070 touch panel
 
Siemens catalog hmi-tp070_e
Siemens catalog hmi-tp070_eSiemens catalog hmi-tp070_e
Siemens catalog hmi-tp070_e
 
Siemens win cc manual pcs 7 wincc basic process control
Siemens win cc manual pcs 7 wincc basic process controlSiemens win cc manual pcs 7 wincc basic process control
Siemens win cc manual pcs 7 wincc basic process control
 
ReadMe_STEP7_WinCC_V16_enUS.pdf
ReadMe_STEP7_WinCC_V16_enUS.pdfReadMe_STEP7_WinCC_V16_enUS.pdf
ReadMe_STEP7_WinCC_V16_enUS.pdf
 

Recently uploaded

快速办理澳洲昆士兰科技大学毕业证教育部学历认证书一模一样
快速办理澳洲昆士兰科技大学毕业证教育部学历认证书一模一样快速办理澳洲昆士兰科技大学毕业证教育部学历认证书一模一样
快速办理澳洲昆士兰科技大学毕业证教育部学历认证书一模一样
kthcah
 
一比一原版(Rutgers毕业证书)罗格斯大学毕业证成绩单原件一模一样
一比一原版(Rutgers毕业证书)罗格斯大学毕业证成绩单原件一模一样一比一原版(Rutgers毕业证书)罗格斯大学毕业证成绩单原件一模一样
一比一原版(Rutgers毕业证书)罗格斯大学毕业证成绩单原件一模一样
A
 
一比一原版(Auburn毕业证书)奥本大学毕业证原件一模一样
一比一原版(Auburn毕业证书)奥本大学毕业证原件一模一样一比一原版(Auburn毕业证书)奥本大学毕业证原件一模一样
一比一原版(Auburn毕业证书)奥本大学毕业证原件一模一样
AS
 
一比一原版(CCA毕业证书)加利福尼亚艺术学院毕业证成绩单原件一模一样
一比一原版(CCA毕业证书)加利福尼亚艺术学院毕业证成绩单原件一模一样一比一原版(CCA毕业证书)加利福尼亚艺术学院毕业证成绩单原件一模一样
一比一原版(CCA毕业证书)加利福尼亚艺术学院毕业证成绩单原件一模一样
zovambe
 
John Deere 990 Compact Utility Tractor Shop Manual.pdf
John Deere 990 Compact Utility Tractor Shop Manual.pdfJohn Deere 990 Compact Utility Tractor Shop Manual.pdf
John Deere 990 Compact Utility Tractor Shop Manual.pdf
Excavator
 
原版定做(ncl学位证书)英国纽卡斯尔大学毕业证文凭学历证书-国外学历学位认证
原版定做(ncl学位证书)英国纽卡斯尔大学毕业证文凭学历证书-国外学历学位认证原版定做(ncl学位证书)英国纽卡斯尔大学毕业证文凭学历证书-国外学历学位认证
原版定做(ncl学位证书)英国纽卡斯尔大学毕业证文凭学历证书-国外学历学位认证
eehzz
 
一比一原版(Cumbria毕业证书)英国坎布里亚大学毕业证成绩单学位证书
一比一原版(Cumbria毕业证书)英国坎布里亚大学毕业证成绩单学位证书一比一原版(Cumbria毕业证书)英国坎布里亚大学毕业证成绩单学位证书
一比一原版(Cumbria毕业证书)英国坎布里亚大学毕业证成绩单学位证书
AD
 
一比一原版英国哈珀亚当斯大学毕业证如何办理
一比一原版英国哈珀亚当斯大学毕业证如何办理一比一原版英国哈珀亚当斯大学毕业证如何办理
一比一原版英国哈珀亚当斯大学毕业证如何办理
AS
 

Recently uploaded (20)

快速办理澳洲昆士兰科技大学毕业证教育部学历认证书一模一样
快速办理澳洲昆士兰科技大学毕业证教育部学历认证书一模一样快速办理澳洲昆士兰科技大学毕业证教育部学历认证书一模一样
快速办理澳洲昆士兰科技大学毕业证教育部学历认证书一模一样
 
一比一原版(Rutgers毕业证书)罗格斯大学毕业证成绩单原件一模一样
一比一原版(Rutgers毕业证书)罗格斯大学毕业证成绩单原件一模一样一比一原版(Rutgers毕业证书)罗格斯大学毕业证成绩单原件一模一样
一比一原版(Rutgers毕业证书)罗格斯大学毕业证成绩单原件一模一样
 
Preparing for Transportation Electrification: The Electric Coop Perspective
Preparing for Transportation Electrification: The Electric Coop PerspectivePreparing for Transportation Electrification: The Electric Coop Perspective
Preparing for Transportation Electrification: The Electric Coop Perspective
 
AI for Smart Vehicles - A quick overview
AI for Smart Vehicles - A quick overviewAI for Smart Vehicles - A quick overview
AI for Smart Vehicles - A quick overview
 
一比一原版(Auburn毕业证书)奥本大学毕业证原件一模一样
一比一原版(Auburn毕业证书)奥本大学毕业证原件一模一样一比一原版(Auburn毕业证书)奥本大学毕业证原件一模一样
一比一原版(Auburn毕业证书)奥本大学毕业证原件一模一样
 
Microscope of ppt for botany major this is a project
Microscope of ppt for botany major this is a projectMicroscope of ppt for botany major this is a project
Microscope of ppt for botany major this is a project
 
Things that make the new Nissan Z unique
Things that make the new Nissan Z uniqueThings that make the new Nissan Z unique
Things that make the new Nissan Z unique
 
Auto Glass Repair in Redwood City What to Do When Disaster Strikes.pdf
Auto Glass Repair in Redwood City What to Do When Disaster Strikes.pdfAuto Glass Repair in Redwood City What to Do When Disaster Strikes.pdf
Auto Glass Repair in Redwood City What to Do When Disaster Strikes.pdf
 
Exploring the Heart of Alberta: A Journey from Calgary to Edmonton
Exploring the Heart of Alberta: A Journey from Calgary to EdmontonExploring the Heart of Alberta: A Journey from Calgary to Edmonton
Exploring the Heart of Alberta: A Journey from Calgary to Edmonton
 
Toyota Yaris service manual Free.pdf Toyota Yaris Service manual
Toyota Yaris service manual Free.pdf  Toyota Yaris Service manualToyota Yaris service manual Free.pdf  Toyota Yaris Service manual
Toyota Yaris service manual Free.pdf Toyota Yaris Service manual
 
一比一原版(CCA毕业证书)加利福尼亚艺术学院毕业证成绩单原件一模一样
一比一原版(CCA毕业证书)加利福尼亚艺术学院毕业证成绩单原件一模一样一比一原版(CCA毕业证书)加利福尼亚艺术学院毕业证成绩单原件一模一样
一比一原版(CCA毕业证书)加利福尼亚艺术学院毕业证成绩单原件一模一样
 
Charging Forward: Bringing Electric Vehicle Charging Infrastructure to Rural ...
Charging Forward: Bringing Electric Vehicle Charging Infrastructure to Rural ...Charging Forward: Bringing Electric Vehicle Charging Infrastructure to Rural ...
Charging Forward: Bringing Electric Vehicle Charging Infrastructure to Rural ...
 
John Deere 990 Compact Utility Tractor Shop Manual.pdf
John Deere 990 Compact Utility Tractor Shop Manual.pdfJohn Deere 990 Compact Utility Tractor Shop Manual.pdf
John Deere 990 Compact Utility Tractor Shop Manual.pdf
 
What Might Be Behind Your Mercedes' Inoperative Cruise Control
What Might Be Behind Your Mercedes' Inoperative Cruise ControlWhat Might Be Behind Your Mercedes' Inoperative Cruise Control
What Might Be Behind Your Mercedes' Inoperative Cruise Control
 
How Do I Know If My Volvo Has Throttle Position Sensor Problems
How Do I Know If My Volvo Has Throttle Position Sensor ProblemsHow Do I Know If My Volvo Has Throttle Position Sensor Problems
How Do I Know If My Volvo Has Throttle Position Sensor Problems
 
原版定做(ncl学位证书)英国纽卡斯尔大学毕业证文凭学历证书-国外学历学位认证
原版定做(ncl学位证书)英国纽卡斯尔大学毕业证文凭学历证书-国外学历学位认证原版定做(ncl学位证书)英国纽卡斯尔大学毕业证文凭学历证书-国外学历学位认证
原版定做(ncl学位证书)英国纽卡斯尔大学毕业证文凭学历证书-国外学历学位认证
 
What Could Cause Your Audi To Keep Cutting Out
What Could Cause Your Audi To Keep Cutting OutWhat Could Cause Your Audi To Keep Cutting Out
What Could Cause Your Audi To Keep Cutting Out
 
Benefits of Load Planning in Fleet Management
Benefits of Load Planning in Fleet ManagementBenefits of Load Planning in Fleet Management
Benefits of Load Planning in Fleet Management
 
一比一原版(Cumbria毕业证书)英国坎布里亚大学毕业证成绩单学位证书
一比一原版(Cumbria毕业证书)英国坎布里亚大学毕业证成绩单学位证书一比一原版(Cumbria毕业证书)英国坎布里亚大学毕业证成绩单学位证书
一比一原版(Cumbria毕业证书)英国坎布里亚大学毕业证成绩单学位证书
 
一比一原版英国哈珀亚当斯大学毕业证如何办理
一比一原版英国哈珀亚当斯大学毕业证如何办理一比一原版英国哈珀亚当斯大学毕业证如何办理
一比一原版英国哈珀亚当斯大学毕业证如何办理
 

63042779_Bibliothek_screens_G120_en.pdf

  • 1. https://support.industry.siemens.com/cs/ww/en/view/63042779 Library description  12/2015 Library with screens for Controlling a SINAMICS G120 Drive with a SIMATIC S7- 1200/1500/300/400 Controller SINAMICS G120 , SIMATIC S7-1200/1500/300/400
  • 2. Warranty and liability screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 2  Siemens AG 2015 All rights reserved 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. Security informa- tion Siemens provides products and solutions with industrial security functions that support the secure operation of plants, solutions, machines, equipment and/or networks. They are important components in a holistic industrial security concept. With this in mind, Siemens’ products and solutions undergo continuous development. Siemens recommends strongly that you regularly check for product updates. For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered. For more information about industrial security, visit http://www.siemens.com/industrialsecurity. To stay informed about product updates as they occur, sign up for a product- specific newsletter. For more information, visit https://support.industry.siemens.com.
  • 3. Table of contents screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 3  Siemens AG 2015 All rights reserved Table of contents Warranty and liability................................................................................................... 2 1 Library Overview................................................................................................ 4 1.1 User Scenario....................................................................................... 4 1.2 Block diagram....................................................................................... 5 1.3 Hardware and software requirements .................................................. 6 2 Blocks of the Library......................................................................................... 7 2.1 Block list ............................................................................................... 7 2.2 Explanation of the controller block ....................................................... 7 2.2.1 Calling FB “PZD_G120_Tel_352“ ........................................................ 7 2.2.2 Functionality of FB “PZD_G120_Tel_352“......................................... 10 2.3 Explanation of the operator panel blocks........................................... 10 2.3.1 Toolbar ............................................................................................... 10 2.3.2 Screen “screen_G120_start”.............................................................. 11 2.3.3 Screen “screen_G120_CTW1/STW1“................................................ 14 2.3.4 Screen “ screen_G120_data”............................................................. 16 2.3.5 Screen “ screen_G120_safety” .......................................................... 18 2.3.6 HMI tags “screens_G120_variables“.................................................. 18 2.3.7 VB Script “screens_G120_VBFunction”............................................. 19 3 Working with the library.................................................................................. 20 3.1 Preparation......................................................................................... 20 3.2 Integrating the library into STEP 7 ..................................................... 22 3.3 Integrating the library blocks into STEP 7.......................................... 23 4 Related literature ............................................................................................. 26 5 History............................................................................................................... 26
  • 4. 1 Library Overview 1.1 User Scenario screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 4  Siemens AG 2015 All rights reserved 1 Library Overview This document describes the “screens_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 “screens_G120” enable fast and easy operation of a SINAMICS G120 drive. Figure 1-1: Overview User Scenario S7-1200/1500/300/400 TP700 Comfort SINAMICS G120 Motor PROFINET PROFINET PROFIBUS Apart from a function block for the SIMATIC Controller used, the library includes a number of screens for integration into a SIMATIC operator panel (HMI). With these screens the user is able to influence a drive using easy-to-use and clearly designed user interfaces.
  • 5. 1 Library Overview 1.2 Block diagram screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 5  Siemens AG 2015 All rights reserved 1.2 Block diagram The block diagram of the “screens_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 “screens_G120” library and will be described in detail in the following chapters. DB Process data screens FB HMI Operation of the drive
  • 6. 1 Library Overview 1.3 Hardware and software requirements screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 6  Siemens AG 2015 All rights reserved 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 CPU S7-1200/1500/400 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-1A.02-.. 1 2 SIMATIC WinCC Professional V12 6AV210.-….2-0.. 1
  • 7. 2 Blocks of the Library 2.1 Block list screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 7  Siemens AG 2015 All rights reserved 2 Blocks of the Library This chapter lists and explains all “screens_G120” library blocks. 2.1 Block list The following tables list all blocks that are part of the “screens_G120” library. Table 2-1: List of STEP 7 blocks Symbol PZD_G120_Tel_352 Table 2-2: WinCC blocks list Symbol screen_G120_start screen_G120_CTW1 / STW1 screen_G120_data screen_G120_safety screens_G120_variables screens_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 organisation block (OB1).
  • 8. 2 Blocks of the Library 2.2 Explanation of the controller block screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 8  Siemens AG 2015 All rights reserved 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 enable_RFG Bool Control word 1;Bit 5: Continue ramp-function generator
  • 9. 2 Blocks of the Library 2.2 Explanation of the controller block screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 9  Siemens AG 2015 All rights reserved Parameter Data type Description 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: Warning overtemperature 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 communication_error Bool Communication error or drive does not exist
  • 10. 2 Blocks of the Library 2.3 Explanation of the operator panel blocks screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 10  Siemens AG 2015 All rights reserved 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/1500/300/400 controller and the SINAMICS G120 drive is carried out in the controller with system functions (SFC). The following system blocks respectively instructions are being used:  SFC14 “DPRD_DAT“ for receiving the drive data  SFC15 “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
  • 11. 2 Blocks of the Library 2.3 Explanation of the operator panel blocks screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 11  Siemens AG 2015 All rights reserved 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 “screen_G120_start” This screen 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)
  • 12. 2 Blocks of the Library 2.3 Explanation of the operator panel blocks screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 12  Siemens AG 2015 All rights reserved 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 “8” must be entered as the offset of the message data in screen “screen_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 With using a SIMATIC S7-300/400 controller, for parameter “address” of the function block “PZD_G120_Tel_325” 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. In the example shown in the figure below, the value 256 must be entered as the inverter address.
  • 13. 2 Blocks of the Library 2.3 Explanation of the operator panel blocks screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 13  Siemens AG 2015 All rights reserved Figure 2-4: Configuration of SINAMICS G120 for S7-300/400 Inverter address when using a SIMATIC S7-1200/1500 controller With using a SIMATIC S7-1200/1500 controller, for parameter “address” of the function block “PZD_G120_Tel_325” enter the hardware identifier of Siemens message 352. 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/1500 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.
  • 14. 2 Blocks of the Library 2.3 Explanation of the operator panel blocks screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 14  Siemens AG 2015 All rights reserved 2.3.3 Screen “screen_G120_CTW1/STW1“ The screen “screen_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
  • 15. 2 Blocks of the Library 2.3 Explanation of the operator panel blocks screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 15  Siemens AG 2015 All rights reserved 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.
  • 16. 2 Blocks of the Library 2.3 Explanation of the operator panel blocks screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 16  Siemens AG 2015 All rights reserved 2.3.4 Screen “ screen_G120_data” The screen “screen_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“.
  • 17. 2 Blocks of the Library 2.3 Explanation of the operator panel blocks screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 17  Siemens AG 2015 All rights reserved 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.
  • 18. 2 Blocks of the Library 2.3 Explanation of the operator panel blocks screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 18  Siemens AG 2015 All rights reserved 2.3.5 Screen “ screen_G120_safety” The screen “screen_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 “screen_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 “screens_G120_variables“ The tag table “screens_G_120_variable” contains all tags required for using the screens. Tags include both internal tags and tags referring to a controller. Figure 2-11: Excerpt from the tag table
  • 19. 2 Blocks of the Library 2.3 Explanation of the operator panel blocks screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 19  Siemens AG 2015 All rights reserved 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 “screens_G120_variables“ the name of the connection was chosen to be “screens_G120_contact“. 2.3.7 VB Script “screens_G120_VBFunction” The VB Script included in the “screens_G120“ library under the name “screens_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.
  • 20. 3 Working with the library 3.1 Preparation screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 20  Siemens AG 2015 All rights reserved 3 Working with the library This chapter includes instructions for integrating the “screens_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 “screens_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 “screens_G120” library. Note The following applications can be taken as examples for creating the required configuration:  “Connecting a SINAMICS G120 Drive to an S7300/400 CPU in TIA Portal” (Entry ID 60140921)  “SINAMICS G: Speed Control of a G120 (StartDrive) with S7-1200 (TIA Portal) via PROFINET/PROFIBUS DP with Safety Integrated (via Terminal) and HMI” (Entry ID 70155469) 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 hardware configuration and is illustrated in Figure 2-4. Language settings in WinCC TIV V12 The screens of the “screens_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.
  • 21. 3 Working with the library 3.1 Preparation screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 21  Siemens AG 2015 All rights reserved 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 “screens_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 “screens_G120_variables” tag table. Otherwise there will be no correct translation of the HMI project.
  • 22. 3 Working with the library 3.2 Integrating the library into STEP 7 screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 22  Siemens AG 2015 All rights reserved 3.2 Integrating the library into STEP 7 The table below lists the steps for integrating the “screens_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.
  • 23. 3 Working with the library 3.3 Integrating the library blocks into STEP 7 screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 23  Siemens AG 2015 All rights reserved 3.3 Integrating the library blocks into STEP 7 The table below lists the steps for integrating the blocks of the “screens_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“ (1) into the program blocks folder of your SIMATIC controller (2). 1 2
  • 24. 3 Working with the library 3.3 Integrating the library blocks into STEP 7 screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 24  Siemens AG 2015 All rights reserved 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 (1) into the screens folder (2). 5 Drag the tag table “screens_G120_variables“ (1) into the HMI tags folder (2). 1 2 1 2
  • 25. 3 Working with the library 3.3 Integrating the library blocks into STEP 7 screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 25  Siemens AG 2015 All rights reserved No. Action Note 6 Drag the VB Script “screens_G120_VBFunction“ (1) into the Scripts folder (2). 7 The project can now be loaded to the controller and the operator panel. 1 2
  • 26. 4 Related literature screens for SINAMICS G120 Entry-ID: 63042779, V1.2, 12/2015 26  Siemens AG 2015 All rights reserved 4 Related literature Table 4-1 Topic Title / Link 1 Siemens Industry Online Support https://support.industry.siemens.com 2 Download page of this entry https://support.industry.siemens.com/cs/ww/de/view/63042779 3 STEP7 SIMATIC S7- 300/400 Automation with STEP7 in STL and SCL Author: Hans Berger Publisher: Publicis Publishing ISBN: 978-3-89578-412-5 4 STEP7 SIMATIC S7-300 Automating with SIMATIC S7-300 inside TIA Portal Author: Hans Berger Publisher: Publicis Publishing ISBN: 978-3-89578-382-1 5 STEP7 SIMATIC S7-400 Automating with SIMATIC S7-400 inside TIA Portal Author: Hans Berger Publisher: Publicis Publishing ISBN: 978-3-89578-383-8 6 STEP7 SIMATIC S7-1200 Automating with SIMATIC S7-1200 Author: Hans Berger Publisher: Publicis Publishing ISBN: 978-3-89578-385-2 7 STEP7 SIMATIC S7-1500 Automating with SIMATIC S7-1500 Author: Hans Berger Publisher: Publicis Publishing ISBN: 978-3-89578-404-0 5 History Table 5-1 Version Date Modifications V1.0 04/2013 First version V1.1 03/2014 Communication error message added V1.2 12/2015 Change oft the name in the library and added this into the documentation