Professional Documents
Culture Documents
http://support.automation.siemens.com/WW/view/en/50203404
Bibliography
History
SIMATIC
Faceplates_G120
Library Overview
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.
Table of Contents
Table of Contents
Warranty and Liability ................................................................................................. 4
1 Library Overview
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
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
SINAMICS G120
S7-1200/300/400
PROFINET
TP700 Comfort
PROFINET
PROFIBUS
Motor
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.
1 Library Overview
1.2
Block diagram
The block diagram of the Faceplates_G120 library is shown below.
Figure 1-2: Block diagram
HMI
Faceplates
Operation of the
drive
DB
Process data
FB
Note
1 Library Overview
1.3
Component
Order number
Qty.
Alternative
6ES731
SIMATIC TP700
Comfort Panel
6AV2124-0GC01-0AX0
SINAMICS CU240E-2
PN-F
6SL3244-0BB13-1FA0
SINAMICS PM240
6SL3224-0BE22-2UA0
Software
Table 1-2: Required software
No.
Component
Order number
Qty.
6ES7882-1AA02-0YA5
6AV2103-0AA02-0AA7
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
2.2
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.
Input parameters
Table 2-3: Input parameters
Parameter
Data type
Description
address
Int
ON_OFF1
Bool
OFF2
Bool
OFF3
Bool
enable_operation
Bool
release_RFG
Bool
10
Parameter
Data type
Description
enable_RFG
Bool
enable_setpoint
Bool
acknowledge
Bool
CTW_bit_08
Bool
CTW_bit_09
Bool
PLC_is_master
Bool
direction_reversal
Bool
CTW_bit_12
Bool
MOP_up
Bool
MOP_down
Bool
CTW_bit_15
Bool
activate_manual_mode
Bool
speed_setpoint
Real
reference_speed_P2000
Real
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
ready_for_operation
Bool
operation_enabled
Bool
fault_active
Bool
OFF2_inactive
Bool
OFF3_inactive
Bool
closing_lockout_active
Bool
alarm_active
Bool
speed_deviation_in_tol
Bool
PLC_control_requested
Bool
comp_speed_reached
Bool
limit_reached
Bool
holding_brake_open
Bool
alarm_motor_overtemp
Bool
rotating_right
Bool
no_thermal_overload
Bool
actual_speed
Real
actual_current
Real
actual_torque
Real
Current torque
actual_alarm
Word
actual_fault
Word
11
2.2.2
Functionality of FB PZD_G120_Tel_352
Function block PZD_G120_Tel_352 performs two tasks:
Note
2.3
2.3.1
Toolbar
The following table lists all the buttons of the HMI operator display toolbar.
Description
Switch to the start screen
12
Icon
Description
Switch to the previous image
Switch to the display of the safety control word and the safety status word
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:
13
Note
For more information on multi-instance, please refer to the STEP 7 Online help
(TIA Portal) V12.
14
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.
15
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
16
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_352of the BOOL data type.
CAUTION
17
2.3.4
Screen Faceplate_G120_data
The screen Faceplate_G120_data shows the following information:
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.
18
Starting value
reference_speed_P2000
1500.0
reference_current_P2002
0.0
reference_torque_P2003
0.0
19
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.
2.3.6
20
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.
For more information on VB scripts, please refer to the STEP 7 Online help (TIA
Portal) V12.
Note
21
3.1
Preparation
Note
German (Germany)
English (USA)
After the required selection the languages must be activated in the Runtime
settings.
22
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.
23
3.2
Click Open.
The selected global library is opened and
inserted into the palette "Global Libraries.
No.
Note
24
Note
For more information on working with libraries, please refer to the STEP 7 Online
help (TIA Portal) V12.
3.3
Action
Note
25
No.
26
Action
Note
No.
Action
Note
27
4 Related Literature
Related Literature
4.1
Bibliography
This list is not complete and only represents a selection of relevant literature.
Table4-1
Topic
4.2
Title
/1/
STEP7
SIMATIC S7-300/400
/2/
STEP7
SIMATIC S7-300
/3/
STEP7
SIMATIC S7-400
/4/
STEP7
SIMATIC S7-1200
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
History
Table 5-1
Version
V1.0
28
Date
04/2013
Modifications
First version