Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PROFIBUS DP
SIMATIC S7
Siemens AG 2005. All rights reserved.
Date:
File:
14.10.2005
PRO1_09E.1
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
Page 1
ST-PRO1
Introduction to HMI and Profibus DP (1)
Objectives
Upon completion of the chapter the participant will ...
...
...
...
...
SIMATIC S7
Siemens AG 2005. All rights reserved.
Date:
File:
14.10.2005
PRO1_09E.2
Page 2
ST-PRO1
Introduction to HMI and Profibus DP (1)
S7-400
S7
S7
PS S7-300 S7-300
CPU
4142 DP
CPU
314
S7
S7-300
CP
3425 DP
PROFIBUS -DP
ET 200M
SIMATIC S7-300
Slaves
PS S7- S7 S7 S7
300
CP
CPU
3423155 DP
2 DP
PS IM S7 S7 S7 S7
153
S7
STAND.
DP
SLAVE
Compact Slaves
Intelligent Slave
Modular Slave
STAND.
DP
SLAVE
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.3
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
Master Devices
Slave Devices
Page 3
ST-PRO1
Introduction to HMI and Profibus DP (1)
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.4
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 Master
Page 4
ST-PRO1
Introduction to HMI and Profibus DP (1)
DP Slave
SIMATIC S7
Date:
File:
DP Slaves
14.10.2005
PRO1_09E.5
Page 5
ST-PRO1
Introduction to HMI and Profibus DP (1)
OFF ON
64
32
16
8
4
2
1
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.6
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
OFF ON
64
32
16
8
4
2
1
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.
Page 6
ST-PRO1
Introduction to HMI and Profibus DP (1)
SIMATIC Panels
ProAgent
SIMATIC S7
Date:
File:
Overview
14.10.2005
PRO1_09E.7
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.
Page 7
ST-PRO1
Introduction to HMI and Profibus DP (1)
ProTool/Pro
Visualization Software
ProTool/Pro
Runtime
ProTool
TD17,OP3..OP270,TP270,
MP270, MP370,C7-621-626
SIMATIC OP17
SIMATIC OP17
4 x 20 Zeichen
S IM A T I C OP 7
ProTool/Lite
8 x 4 0 Z ei ch e n
b el ie b ig m is c hb a r
SI MATI C OP7
-- - -- -- - - 4 x 20 Zei chen
8MM S ch r if t hhe
F1
F2
F3
F4
K1
K2
K3
K4
6/11MM S c hrifthh e
8
D
F1
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.8
K3
K4
K 5
K6
K 7
K 8
K1 0
K 11
K1 2
F4
K 13
F5
K 14
F6
K 15
F 7
K 16
F 8
HELP
SHIFT
ESC
6
B
F3
K2
K9
9
E
TD17,OP3..TP170,
C7-621/623/633/624/634
F2
K1
H E LP
SH IF T
ESC
ACK
4
INS
SHIFT DEL HELP
ENTER
D
A
5
2
E
B
6
3
ACK
C
SHIFT
INS
DEL
HELP
ENTER
Overview
While SIMATIC ProTool/Pro can be used for configuring any system, ProTool
and ProTool/Lite are designed for configuring certain systems.
SIMATIC ProTool/Pro Runtime enables the user to operate the process
visualization on standard PC platforms.
Features
Page 8
ST-PRO1
Introduction to HMI and Profibus DP (1)
Configuring phase
(Offline)
Downloading phase
Prozessfhrungsphase
Process
control phase
PC/PG
RMOS Devices
ProTool/Pro
Configuration
data
Configuration
data
Source file
<Name>.pdb
PC/OP/TP
WinCE
Flash
PC
Ethernet
Flash
MPI
Kopplung
DP
SIMATIC S7
Date:
File:
Steuerung
PLC
14.10.2005
PRO1_09E.9
Introduction
Configuring
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.
Page 9
ST-PRO1
Introduction to HMI and Profibus DP (1)
MPI
PROFIBUS DP
Industrial Ethernet
Update
Write tag
Read tag
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.10
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 can communicate with the PLC using the MPI or PROFIBUS
DP or Industrial Ethernet bus systems. 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.
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.
Updating
Page 10
ST-PRO1
Introduction to HMI and Profibus DP (1)
Output field
Property of Act_quantity
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.11
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
Page 11
ST-PRO1
Introduction to HMI and Profibus DP (1)
PLC_1
SIMATIC S7
Date:
File:
General
Properties Window
Output Field
14.10.2005
PRO1_09E.12
In the slide you can see the relationship between the tag MW 20 (Actual_
Quantity) and the tag configuration in ProTool/Pro.
After selecting the output field, you right click and select the menu option
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
Tag
In the slide to the right, you can see the existing configuration of the tag. It has
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 symbol table at the selected tag with its properties (Edit
Tag).
Page 12
ST-PRO1
Introduction to HMI and Profibus DP (1)
D
O
W
N
L
O
A
D
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.13
Activate
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 - DP interface.
Page 13
ST-PRO1
Introduction to HMI and Profibus DP (1)
Copy
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.14
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.
What to Do
Result
Page 14
ST-PRO1
Introduction to HMI and Profibus DP (1)
Start
OK X
PROFIBUS
Control
Panel
1s
NetworkParameters
Transmission Rate:
1.5 Mbits\s
Highest Station:
126
OK X
Transfer Settings
Channel
Directories
S7-Transfer Settings
OK X
Channel 1:
Serial:
Channel 2:
MPI
Enable Channel
MPI
Remote Control
Profibus
Enable Channel
Remote Control
SIMATIC S7
What to Do
Notes
Advanced
Date:
File:
Task
Properties...
14.10.2005
PRO1_09E.15
Page 15
ST-PRO1
Introduction to HMI and Profibus DP (1)
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.16
Task
So that you can load the prepared ProTool/Pro 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 - DP 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" button you can check the accessible nodes.
Alternatively, you can activate the Accessible Nodes function in the
SIMATIC Manager.
Note
Page 16
ST-PRO1
Introduction to HMI and Profibus DP (1)
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.17
Task
You are to prepare the project connection to the CPU and the download of the
ProTool/Pro project.
What to Do
3. In ProTool/Pro, click on Controllers in the left window and then in the right
window, right mouse click on Controller (PLC_1) 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"
Page 17
ST-PRO1
Introduction to HMI and Profibus DP (1)
Actions:
Compile
Download
PG/PC
- Save
- Compile
- Download
- Start
TP 170
S7
PROFIBUS
Addresses
Tag exchange
Profibus
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.18
Task
Actions
You must always carry out the following basic actions / partial steps:
1. Define the PLC and the type of connection (MPI, PROFIBUS, Industrial
Ethernet 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.
What to Do
Page 18
ST-PRO1
Introduction to HMI and Profibus DP (1)
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.19
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
Page 19
ST-PRO1
Introduction to HMI and Profibus DP (1)
SIMATIC S7
Date:
File:
Note
14.10.2005
PRO1_09E.20
The following pages contain either further information or are for reference to
complete a topic.
Page 20
ST-PRO1
Introduction to HMI and Profibus DP (1)
Master
Slave
Slave
Slave
Slave
Resistor On
Resistor Off
SIMATIC S7
Date:
File:
Setting the
Terminating
Resistor
14.10.2005
PRO1_09E.21
Switch on the terminating resistor on the first and last nodes of a segment.
To do this, you open the cover of the bus connector and set the switch to the
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.
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.
Page 21
ST-PRO1
Introduction to HMI and Profibus DP (1)
Baud Rate
Segment Length
9.6 to 187.5
kBaud
1,000 meters
500
kBaud
400 meters
1.5
kBaud
200 meters
3 to 12
MBaud
100 meters
Master
Slave
Slave
Slave
Segment Length
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.22
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.
Page 22
ST-PRO1
Introduction to HMI and Profibus DP (1)
PROFIBUS Connector
Standard connector
with screw terminal
SIMATIC S7
Siemens AG 2005. All rights reserved.
Plug for
Fast Connect
Date:
File:
14.10.2005
PRO1_09E.23
Page 23
ST-PRO1
Introduction to HMI and Profibus DP (1)
2. Strip
1. Measure
SIMATIC S7
Date:
File:
14.10.2005
PRO1_09E.24
3. Remove
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
Page 24
ST-PRO1
Introduction to HMI and Profibus DP (1)