PRO1 09E Introduction HMI
PRO1 09E Introduction HMI
Contents Page
Objectives .......................................................................................................................................... 2
Structure of a PROFIBUS-DP System ............................................................................................. 3
Configuring a Profibus-DP Master System ........................................................................................ 4
Configuring Compact and Modular DP Slaves ............................................................................... 5
Exercise 1: Configuring the DP System (ET200 S) ......................................................................... 6
Control and Monitoring with SIMATIC HMI ................................................................................... 7
SIMATIC ProTool/Pro Configuring Software .................................................................................. 8
Configuring Phase, Downloading Phase and Process Control Phase ........................................... 9
Communication between SIMATIC S7 and the HMI System ........................................................... 10
Example: Defining an Output Field .................................................................................................. 11
Basics on Editing Tags ................................................................................................................... 12
Introduction to ProTool/Pro Configuring Software ............................................................................ 13
Exercise 2: Copying a ProTool/Pro Project ...................................................................................... 14
Exercise 3: Setting the Touch Panel Interface ................................................................................ 15
Exercise 4: Changing the PG Interface Over to Profibus DP ........................................................... 16
Exercise 5: Preparing the Start-up of the ProTool/Pro Project ......................................................... 17
Exercise 6: Downloading the ProTool Project ................................................................................. 18
Exercise 7: Adapting the S7 Program to the TP Conditions ............................................................ 19
If You Want to Know More ........................................................................................................... 20
PROFIBUS - DP Terminating Resistor ............................................................................................ 21
Segment - Length Depending on the Baud Rate ............................................................................ 22
Profibus Connector ........................................................................................................................... 23
Preparing a Fast Connect Cable ..................................................................................................... 24
Master
PS S7 S7 S7
S7-400 10A 400 PS S7-300 S7-300 S7
S7-300
CPU CPU CP
414- 314 342-
2 DP 5 DP
PROFIBUS -DP
ET 200M
SIMATIC S7-300
PS S7- S7 S7 S7 S7 PS IM S7 S7 S7 S7
Slaves 300 CP STAND.
153
CPU 342- DP
315- 5 DP SLAVE
2 DP
Compact Slaves
Intelligent Slave Modular Slave
STAND.
DP
SLAVE
Overview The units installed in the field for automating technical processes, such as
sensors, actuators, transducers and drives more and more make use of field
bus systems for exchanging information with the higher-level controller units.
PROFIBUS is an established fieldbus system which can be used by all
automation equipment, such as PLCs, PCs, Human-Machine Interfaces as well
as actuators and sensors, for exchanging data.
PROFIBUS-DP PROFIBUS-DP is a protocol optimized for speed which was specially designed
for communication between PLCs (DP masters) and distributed I/Os (DP
slaves).
PROFIBUS-DP is a low-cost, flexible substitute for transmission of signals on
cumbersome parallel 24V and 20mA lines.
PROFIBUS-DP is based on DIN 19245 Part 1 and the user-specific extensions
in DIN 19245 Part 3. In the course of the European fieldbus standardization
process, PROFIBUS-DP was integrated into the European fieldbus standard
EN 50170.
Master Devices PROFIBUS makes a distinction between master and slave devices.
The PROFIBUS masters are in charge of data traffic on the bus. A master can
send messages without being requested to do so, provided it is in possession of
the token that entitles it to access the bus.
Masters are also referred to in the PROFIBUS protocol as active nodes.
Slave Devices PROFIBUS slaves are simple I/O devices, such as actuators, sensors,
transducers, etc. They do not receive the token, that is. they can only
acknowledge the receipt of messages or send messages (data) to a master on
request. Slaves are also referred to as passive nodes.
Distributed I/O All master systems consisting of a DP master and DP slaves that are connected
using a bus cable and that communicate via the PROFIBUS-DP protocol are
designated as distributed I/Os.
DP Slave
OFF ON
64
32
16
8
4
2
1
Task You are to commission the DP system for your training unit so that the conveyor
model can be controlled using the ET 200 S when you have the same
functionality.
What to Do 1. Expand the existing configuration to include the distributed (remote) station
OFF ON ET 200S (additional connection possibility for the conveyor model).
64 2. Verify the preset slave adress. These are the switches on the IM 151-1
32 interface. In the example, the slave address = 4.
16 3. Change the addresses of the mixed DI/DO module in the UR0 Universal Rack
8 to IB 88 and QB 88.
4 As the input and output addresses in the ET200 S configure IB 8 and QB 8.
2 4. Connect the ET 200S to the DP interface of the CPU.
1
5. After "Save and Compile" download the configuration into the CPU.
6. Verify that the configuration is error-free. The error LEDs - Group error (SF)
and bus error BUSF must be dark on the CPU.
7. Test your program.
Notes • For the ET200S, to combine the addresses for the two input or output
modules into one byte, use the "Pack Addresses" button. Remember to
select the two modules first.
• Any changes you make to the Profibus address of a slave only becomes
effective after Power OFF/ON - Transition.
• You will find more information about Profibus DP in advanced courses or in
the self learning media under the topic of Profibus.
Process visualization
system
SIMATIC WinCC
Configuration and
visualization software
SIMATIC ProTool/Pro
SIMATIC Panels
Overview With SIMATIC HMI, there is a field-proven HMI system for user-friendly process
control and monitoring available for the SIMATIC S7. The products range from
simple text display to the process visualization system.
SIMATIC S7 and SIMATIC HMI are completely harmonized and integrated. This
greatly simplifies the use of the SIMATIC HMI control and monitoring system.
• The SIMATIC S7 has already integrated HMI services. The HMI system
requests process data from the SIMATIC S7. Data transmission between
SIMATIC S7 and SIMATIC HMI is handled by the two operating systems
and does not have to be taken care of by the user.
SIMATIC HMI systems can be connected directly to PPI (S7-200) and MPI or
PROFIBUS (S7-300 and S7-400) and Industrial Ethernet (WinCC).
Operation using PROFIBUS or Industrial Ethernet also makes it possible to
handle process operating and monitoring over greater distances.
• Numerous features from the uniform data base and symbols to the same
user-friendly Windows-oriented user interface make it easy to use HMI
systems.
ProTool/Pro
Visualization Software
ProTool/Pro
Runtime
ProTool
TD17,OP3..OP270,TP270,
MP270, MP370,C7-621-626
SIMATIC OP17
S IM A T I C OP 7
SIMATIC OP17
4 x 20 Zeichen
8 x 4 0 Z ei ch e n
b el ie b ig m is c hb a r
ProTool/Lite F1
SI MATI C OP7
-- - -- -- - - -
4 x 20 Zei chen
8MM S ch r if t höhe
F2 F3 F4
F1
K1
6/11MM S c hrifthöh e
F2
K2
F3
K3
F4
K4
F5
K 5
F6
K6
F 7
K 7
F 8
K 8
HELP
K1 K2 K3 K4
H E LP SHIFT
SH IF T K9 K1 0 K 11 K1 2 K 13 K 14 K 15 K 16
7 8 9
D E F ESC
ESC
4 5 6 7 8 9 0
A B C ACK
D E F ACK
1 2 3 4 5 6 .
TD17,OP3..TP170, . 0
INS
SHIFT DEL HELP ENTER
1
A
2
B
3
C
SHIFT
INS
DEL
HELP ENTER
C7-621/623/633/624/634
Overview SIMATIC ProTool/Pro expands the SIMATIC ProTool and ProTool/Lite family of
configuring tools.
SIMATIC ProTool/Pro comprises the entire functionality of SIMATIC ProTool
and ProTool/Lite.
ProTool/Pro can be used for configuring any system, whereas ProTool and
ProTool/Lite are designed for configuring certain systems.
SIMATIC ProTool/Pro Runtime enables the user to operate the process
visualization on a PC-HW basis.
PC/PG
ProTool/Pro RMOS Devices
PC/OP/TP
WinCE
Configuration Configuration
data data PC
Flash Flash
Source file
<Name>.pdb
Link Kopplung
MPI/DP
Introduction You configure your project on a PC or programming device (PG). You then
generate the configuration under ProTool/Pro and download it to the PC/OP/TP.
If the PC/OP/TP is connected to the PLC, the PC/OP/TP displays the current
values in the tags and graphics. The three phases of working with the
configuration data are shown in the slide.
1. Defining the PLC and the type of connection (MPI, Profibus etc.)
2. Making general settings for the PC/OP/TP (defining the current
connections etc.)
3. Generating objects such as tags, screens, messages.
4. Downloading the generated database to the HMI system
Editors ProTool/Pro includes a set of editors (tools) for configuring the different types of
objects. You create each object under a symbolic name. You must specify this
symbolic name time and again, for example, when creating, editing, referencing
or deleting the object.
Bus system
Update
Write tag
Read tag
Tag Process tags are used to make the data exchange between SIMATIC S7 and the
HMI system. Tags are created in the configuration with ProTool/Pro and are
assigned to a CPU data area for this. The HMI system cyclically reads out the tag
values and displays them in an output field, for example.
Data Areas In the configuration of tags, the following CPU data areas - global tags - can be
used:
• Data blocks (DB)
• Bit memories (M)
• Inputs (I) and Outputs (Q)
• Peripheral input (PI) and Peripheral output (PQ)
• Timers (T) and Counters (C)
HMI systems also recognize local tags without process connection. That is, these
tags are processed exclusively internally and do not require any communication
resources.
Communication The operator panels use the MPI or PROFIBUS bus system to communicate
with the PLC. The S7 protocol is used here.
Communication is organized through the S7 CPU and HMI system operating
systems. User programming on the S7 is therefore not necessary.
An operator panel can exchange data with several PLCs simultaneously.
Updating Data transfer between SIMATIC S7 and the HMI system takes place cyclically.
That is, process tags are cyclically read and written depending on the configured
update times.
Output field
Purpose Output fields display current values from the PLC on the operating panel. You
can choose to display the values as numeric, alphanumeric or symbolic. In the
example, the value of the actual quantity is to be displayed in the screen "Belt".
The actual quantity is recorded in the CPU program in the FC 18 block when a
part has passed through the light barrier.
Configuring You configure output fields for numeric and alphanumeric values in the opened
screen in the toolbar "Screen objects" by selecting the symbol or through
"Insert" -> "Output Field".
In the Properties window of the Output Field, you define the Display, Display
Options and the Alignment.
You use the "Value" selection field to select an already existing tag. If it is a new
tag, you use the icon
PLC_1
General In the slide you can see the relationship between the tag MW 20 (Actual_
Quantity) and the tag configuration in ProTool/Pro.
Properties Window After selecting the output field, you right click and select the menu option
Output Field Properties to get to the screen that you see to the left in the slide. In our
example, you use the icon "Edit" to get to the screen "Tag".
Properties Window In the slide to the right, you can see the existing configuration of the tag. It has
Tag the name "Actual_Quantity" and is assigned to Controller_1 (up to 8 different
controllers possible). The value is read every 200ms (acquisition cycle) from the
CPU and displayed as an Integer (type).
Symbols In the tag declaration, the symbols in the S7 program can be accessed. You do
not need to know the absolute addresses from the S7 data management.
Notes - In the property dialogs of the buttons etc., you will find, under the "Functions"
tab, the assigned actions (selected functions in events…).
- Through the "Parameters" button, you can take a closer look with reference
to the assigned S7 symbol table at the selected tag with its properties (Edit
Tag).
D
O
W
N
L
O
A
D
Activate If the ProTool/Pro configuring software is installed as "integrated", you can start
it directly from the SIMATIC Manager with a double-click on the ProTool/Pro
project.
The "integrated" setting has the advantage that the screens for the control and
monitoring device are also stored in the project.
ProTool/Pro Project The slide shows the project that is used for the exercises and which is
downloaded into the touch panel in one of the following exercises.
It contains 4 different screens whereby the start screen is automatically
displayed after the touch panel is powered up.
Before the project can be loaded, the interface for the transfer (download) has to
be correctly set up. Use the menu option File -> Download -> Preferences for
this. For the following exercises, we will use the PROFIBUS interface.
Copy
Task You are to copy a prepared ProTool/Pro object into your own project and in the
following exercises set the interfaces of the TouchPanel and programming
device.
Transfer
Start
PROFIBUS OK X
Control
Panel Panel is the only master on bus
Station Parameters
1
Address:
1s
Time-out:
NetworkParameters
Transmission Rate: 1.5 Mbits\s
Task The interface of the TP170B is to be set up as in the slide, so that the
ProTool/Pro project can then be downloaded from the PG.
Before you can set the interface for the transfer into the TP170B, you must exit
Runtime. The "RT End" button in the Start screen is designed for this. Another
possibility is to power up the TP170B after voltage recovery.
What to Do 1. Exit Runtime on the TouchPanel
2. Press the "Control Panel" button
3. Double-click on the "Transfer" icon
4. Define the settings as shown in the slide
5. With "OK", accept the settings until you get back to the "Control Panel"
6. Double-click on the "OP" icon
7. Press the "Save Registry" button
8. Confirm the settings with "OK", then press ESC until you get back to the
screen with the "Transfer", "Start" and "Control Panel" buttons
9. Press the "Transfer" button. The TP 170B then waits for a connection from
the PG.
Notes Channel: Activate the Transfer Settings Channel (Serial or MPI/Profibus)
and in each case the option Remote Control.
Remote Control: The ProTool project can be loaded without first manually
exiting Runtime.
In addition to the serial transfer channel, you can select a second channel for
downloading the data from the configuration computer to the operating panel.
Advanced: Setting for the transmission parameters for MPI or PROFIBUS-DP
Task So that you can load the prepared ProTool project on the HMI device, you must
change the interface of the programming device over to Profibus - DP.
What to Do 1. Hardware connect the programming device and the HMI device to the
Profibus network.
2. Check that the terminating resistors have been correctly set
3. With the "Set PG/PC Interface" tool in the SIMATIC Manager Æ Options Æ
PG/PC Interface change the interface over to Profibus and check all network-
relevant properties.
4. With the "Diagnostics" tool check the accessible nodes:
Task You are to prepare the project connection to the CPU and the download of the
ProTool/Pro project.
3. In ProTool/Pro, click on Controllers in the left window and then in the right
window, right mouse click on Controllers and select the menu option
Properties
4. Press the "Parameters" button
5. First click on "PROFIBUS" in the upper left window and then click on the "+"
before PROFIBUS in the lower window
6. Select the CPU under PROFIBUS and confirm the settings with "OK"
Actions:
Compile
Download - Save
- Compile
- Download
- Start
PG/PC TP 170 S7
Profibus
0 1 2 Addresses
Download project file Tag exchange
Profibus
Actions You must always carry out the following basic actions / partial steps:
1. Define the PLC and the type of connection (MPI, Profibus etc.)
2. General settings for the PC/OP/TP (define the current connections etc.)
3. If necessary, use the menu options "Edit Æ Restore Symbols" to
restore the symbolic connection to your program.
4. Edit objects of screens, tags, messages etc.
5. Save the configuration (source file <Name>.pdb)
6. Compile the source file
7. Download the compiled database to the HMI system using Profibus
Task The goal of this exercise is that you should be able to operate the conveyor
model with the following functionalities using the Touch Panel:
- Switch the system on and off,
- Selecting and accepting the Manual and Automatic modes
- Jogging left or right in manual mode,
- Defining the setpoint quantity and displaying the actual quantity,
What to Do 1. In the relevant functions FC 15 and FC 16, assign the associated bit
memories from the symbol table shown in the screen to the input addresses.
To do so, use the menu options Edit Æ Find and Replace in the
LAD/FBD/STL Editor or the function “Rewiring“ in the SIMATIC Manager.
Select the Blocks folder and activate the menu option “Options Æ Rewiring“.
2. Download and test your entire program by specifying the operating mode
on the Touch Panel. Also check the functions "Jog left" and "Jog right".
Note The following pages contain either further information or are for reference to
complete a topic.
Resistor On
Resistor Off
Setting the Switch on the terminating resistor on the first and last nodes of a segment.
Terminating To do this, you open the cover of the bus connector and set the switch to the
Resistor ON position.
The PROFIBUS is only correctly terminated if the power supply of the node in
which the terminating resistor is inserted is actually switched on. If this is not
always the case, the PROFIBUS can also be terminated with an active RS485
terminating resistor (6ES7972-0DA00-0AA0). The terminating resistor then
receives a permanent power supply separate from that of the other I/O
components or supplied to it before the I/Os.
Termination of the bus system enables the nodes (for example ET 200L) to be
connected and disconnected at will, without causing malfunctions.
Segment Length
Segment Length In the slide you can see the cable lengths of a segment without a repeater
depending on the transmission speed.
RS 485 Repeater An RS 485 repeater boosts the data signals on the bus cables and connects bus
segments. You will require an RS 485 repeater, if:
• more than 32 stations are connected to the bus,
• bus segments are to be operated ungrounded on the bus or
• the maximum cable length of a segment is exceeded.
If you set up the bus with RS 485 repeaters, only a maximum of 9 RS 485
repeaters may be switched in series. The maximum cable length between two
nodes is 10,000 meters at 9.6 to 187.5 kBaud.
Profibus Connector In the slide you can see the two different versions of Profibus connectors. The
incoming cable is connected to the terminals A1 and B1. If a connection to a
further Profibus partner is required, the connection is then made to terminals A2
and B2.
General Profibus cables can be produced quickly and error-free with Fast Connect. You
require a special stripping tool, cable and connector for Fast Connect.
What to Do 1. Measure the cable length by placing the cable on the template.
2. Place the measured cable ends in the stripping tool. Limit for the
placement depth is the pointer finger of the left hand. Fasten the cable in
the stripping tool. Turn the stripping tool clockwise four times to strip the
cable.
3. Pull the closed stripping tool from the cable end. The residual cable parts
remain in the tool. After opening the tool you can remove the residual parts.
If the white filling did not come off during stripping, you can remove it by
hand. To make it easier to remove the protective foil cut it carefully between
the wires using a screwdriver. Remove the protective foil from the wires.