Sei sulla pagina 1di 24

Introduction to PROFIBUS DP and HMI (1)

HMI = Human Machine Interface

PROFIBUS DP

SIMATIC S7
Siemens AG 2005. All rights reserved.

Date:
File:

14.10.2005
PRO1_09E.1

Contents

SITRAIN Training for


Automation and Industrial Solutions

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

SITRAIN Training for


Automation and Industrial Solutions

Page 1

ST-PRO1
Introduction to HMI and Profibus DP (1)

Objectives
Upon completion of the chapter the participant will ...

have an overview of the use of PROFIBUS DP

...

have an overview of the ProTool/Pro Software

...

be able to set the interface on the TP 170B Touchpanel

...

be able to download a project to the TP170B Touchpanel

...

know the basics of the tag connection

SIMATIC S7
Siemens AG 2005. All rights reserved.

SITRAIN Training for


Automation and Industrial Solutions

Date:
File:

14.10.2005
PRO1_09E.2

Page 2

SITRAIN Training for


Automation and Industrial Solutions

ST-PRO1
Introduction to HMI and Profibus DP (1)

Structure of a PROFIBUS DP System


Master
PS
S7
10A 400

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:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.3

SITRAIN Training for


Automation and Industrial Solutions

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.

SITRAIN Training for


Automation and Industrial Solutions

Page 3

ST-PRO1
Introduction to HMI and Profibus DP (1)

Configuring a PROFIBUS DP Master System

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.4

SITRAIN Training for


Automation and Industrial Solutions

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

As DP master you can install:


S7-CPU with integrated DP master interface (such as CPU 414-2, etc.)
CP in connection with a CPU (such as CP 443-5, etc.)

Setting Up DP Master To configure a master system, proceed as follows:


1. Select the PROFIBUS interface X2 of your CPU and insert a master system
(Menu Insert Master System)
2. The dialog box "Properties - PROFIBUS interface DP" is opened. In this dialog
you can define the following properties:
set up a new PROFIBUS subnet or open an existing one
set the properties of the PROFIBUS subnet (baud rate, etc.).
define the PROFIBUS address of the DP master.
3. Acknowledge the settings with "OK". The following symbol appears:
for the DP master system. This symbol is used as a
"hanger " for the DP slaves.

SITRAIN Training for


Automation and Industrial Solutions

Page 4

ST-PRO1
Introduction to HMI and Profibus DP (1)

Configuring Compact and Modular DP Slaves

DP Slave

Configure rack like central hardware

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

DP Slaves

14.10.2005
PRO1_09E.5

SITRAIN Training for


Automation and Industrial Solutions

Modules with integrated digital/analog inputs and outputs


(compact DP slaves, such as ET200B).
Interface modules with assigned S5 or S7 modules
(modular DP slaves, such as ET200M, ET 200S).
S7-200/300 stations with modules that support the "Intelligent Slave"
function (such as CPU 215-DP, CPU 315-2).

Selecting DP Slaves To configure a DP slave, proceed as follows:


1. From the "Hardware Catalog" select the desired compact DP slave (such as
ET200B) or the interface module (such as IM151-1 Standard for ET200S) for a
modular slave.
2. Drag the symbol (such as IM151-1 Standard for ET200S) onto the symbol for
the master system:
The dialog box "Properties PROFIBUS interface DP" is opened. Here you
can set the following properties:
properties of the PROFIBUS subnet (baud rate, etc.).
the PROFIBUS address of the DP slave.
3. Acknowledge the settings with "OK". A configuration table is attached to
the symbol (icon) that represents the I/O configuration of the compact
slave or the rack of the modular slave.
4. For a modular DP slave, you now insert the desired modules from the
"Hardware Catalog" into the configuration table.
The addressing and parameter assignment of the modules is then handled
similar to the configuration of the centrally inserted modules.

SITRAIN Training for


Automation and Industrial Solutions

Page 5

ST-PRO1
Introduction to HMI and Profibus DP (1)

Exercise 1: Configuring the DP System (ET200 S)

OFF ON
64
32
16
8
4
2
1

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.6

SITRAIN Training for


Automation and Industrial Solutions

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


ET 200S (additional connection possibility for the conveyor model).
2. Verify the preset slave adress. These are the switches on the IM 151-1
interface. In the example, the slave address = 4.
3. Change the addresses of the mixed DI/DO module in the UR0 Universal Rack
to IB 88 and QB 88.
As the input and output addresses in the ET200 S configure IB 8 and QB 8.
4. Connect the ET 200S to the DP interface of the CPU.
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.

OFF ON
64
32
16
8
4
2
1

Notes

SITRAIN Training for


Automation and Industrial Solutions

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)

Control and Monitoring with SIMATIC HMI


Process Visualization
System
SIMATIC WinCC V6.1

SIMATIC Panels
ProAgent

WinCC flexible 2005


ProTool / Pro V6.02
WinCC V6

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

Overview

14.10.2005
PRO1_09E.7

SITRAIN Training for


Automation and Industrial Solutions

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.

SITRAIN Training for


Automation and Industrial Solutions

Page 7

ST-PRO1
Introduction to HMI and Profibus DP (1)

SIMATIC ProTool/Pro Configuring Software

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:

Siemens AG 2005. All rights reserved.

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

SITRAIN Training for


Automation and Industrial Solutions

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

The following important features at a glance:


Support with configuring the ProTool/Pro target systems SIMATIC Panel PC
and standard PCs
Configuration of ProTool/Pro runtime functions
Internal editor for vector graphics
256 foreground and background colors (max. 16 colors for text)
Archiving
Visual Basic scripts
Re-use of parts of existing ProTool configurations
Library
Simulation of process data
ProTool/Pro Runtime process control on SIMATIC Panel PC or standard
PCs

SITRAIN Training for


Automation and Industrial Solutions

Page 8

ST-PRO1
Introduction to HMI and Profibus DP (1)

Configuring Phase, Downloading Phase and Process Control Phase

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

<Name>.fud for RMOS


<Name>.fwd for WinCE

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

Steuerung
PLC

SITRAIN Training for

14.10.2005
PRO1_09E.9

Automation and Industrial Solutions

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.

Configuring

The configuring process consists of various partial steps:


1. Defining the PLC and the type of connection (MPI, PROFIBUS DP,
Industrial Ethernet 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 via MPI,
PROFIBUS - DP, or Industrial Ethernet
The configuration is stored as a source file - <Name>.pdb in your S7 project
(Directory ... TDOP).
After the compiling phase and downloading, one of the following file types is
created depending on the type of device:
<Name>.fud
for RMOS-based operator panels
<Name>.fwd
for Windows-based HMI systems

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.

SITRAIN Training for


Automation and Industrial Solutions

Page 9

ST-PRO1
Introduction to HMI and Profibus DP (1)

Communication between SIMATIC S7 and the HMI System

MPI
PROFIBUS DP
Industrial Ethernet
Update
Write tag

Read tag

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.10

SITRAIN Training for


Automation and Industrial Solutions

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

SITRAIN Training for


Automation and Industrial Solutions

Page 10

ST-PRO1
Introduction to HMI and Profibus DP (1)

Example: Defining an Output Field

Output field

Property of Act_quantity

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.11

SITRAIN Training for


Automation and Industrial Solutions

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

and to edit you use the icon

SITRAIN Training for


Automation and Industrial Solutions

Page 11

ST-PRO1
Introduction to HMI and Profibus DP (1)

Basics on Editing Tags

PLC_1

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

General
Properties Window
Output Field

14.10.2005
PRO1_09E.12

SITRAIN Training for


Automation and Industrial Solutions

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).

SITRAIN Training for


Automation and Industrial Solutions

Page 12

ST-PRO1
Introduction to HMI and Profibus DP (1)

Introduction to the ProTool/Pro Configuring Software

D
O
W
N
L
O
A
D

Verify Download settings

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.13

SITRAIN Training for


Automation and Industrial Solutions

Activate

If the ProTool/Pro configuring software is installed with the default "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 all configuration data for the
control and monitoring device are stored and managed in the S7 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 - DP interface.

SITRAIN Training for


Automation and Industrial Solutions

Page 13

ST-PRO1
Introduction to HMI and Profibus DP (1)

Exercise 2: Copying a ProTool/Pro Project

Copy

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

SITRAIN Training for

14.10.2005
PRO1_09E.14

Automation and Industrial Solutions

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

1. In the SIMATIC Manager, open the project called TIA_PRO1_Participant


2. Arrange the windows one below the other
3. Copy the ProTool/Pro project called TouchPanel_TP170B into your
current project.
4. Also copy, from the S7 progam file C9_HMI, the OB 100 block into your
current program file and download the block into your CPU. Then perform a
warm restart of the CPU.

Result

The picture shows the result after successfully copying:

SITRAIN Training for


Automation and Industrial Solutions

Page 14

ST-PRO1
Introduction to HMI and Profibus DP (1)

Exercise 3: Setting the Touch Panel Interface


Loader B6.0.2.23
Transfer

Start

OK X

PROFIBUS

Control
Panel

Panel is the only master on bus


Station Parameters
Address:
Time-out:

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:

Siemens AG 2005. All rights reserved.

Task

Properties...

14.10.2005
PRO1_09E.15

SITRAIN Training for


Automation and Industrial Solutions

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 "Exit RT" button in the Start screen is designed for this. Another
possibility is to power up the TP170B after voltage recovery.
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.
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

SITRAIN Training for


Automation and Industrial Solutions

Page 15

ST-PRO1
Introduction to HMI and Profibus DP (1)

Exercise 4: Changing the PG Interface Over to PROFIBUS DP

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

SITRAIN Training for

14.10.2005
PRO1_09E.16

Automation and Industrial Solutions

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

The following PROFIBUS addresses are already assigned:


Address 1: Touch Panel TP 170B
Address 2: DP Master
Address 4: DP Slave ET 200 S
Address 6: Micromaster MM 420 (see next chapter)

SITRAIN Training for


Automation and Industrial Solutions

Page 16

ST-PRO1
Introduction to HMI and Profibus DP (1)

Exercise 5: Preparing the Start-up of the ProTool Project

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.17

SITRAIN Training for


Automation and Industrial Solutions

Task

You are to prepare the project connection to the CPU and the download of the
ProTool/Pro project.

What to Do

1. Double-click the ProTool/Pro project called "TouchPanel_TP170B"


2. Open the menu option File Download Preferences and define the
following settings:

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"

SITRAIN Training for


Automation and Industrial Solutions

Page 17

ST-PRO1
Introduction to HMI and Profibus DP (1)

Exercise 6: Downloading a ProTool/Pro Project

Actions:

Compile
Download

PG/PC

- Save
- Compile
- Download
- Start

TP 170

S7

PROFIBUS
Addresses

Tag exchange

Download project file

Profibus

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.18

SITRAIN Training for


Automation and Industrial Solutions

Task

You are to download the ProTool/Pro project to the TP170B.

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

The following actions / operating steps must always be carried out:


1. Save and Compile the existing configuration
2. Click on the "Download" icon
3. Acknowledge, if necessary, the messages that follow
4. Exit ProTool/Pro.
5. Monitor the Restart / Start RunTime on your HMI system

SITRAIN Training for


Automation and Industrial Solutions

Page 18

ST-PRO1
Introduction to HMI and Profibus DP (1)

Exercise 7: Adapting the S7 Program to the TP Conditions

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.19

SITRAIN Training for


Automation and Industrial Solutions

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.

Then enter the corresponding assignments "Old Address" and "New


Address" and confirm with "OK".
2. In FC 18 delete the network with the BCD converter that converts the
setpoint quantity.
3. Download and test your entire program by specifying the operating mode
on the Touch Panel. Also check the functions "Jog left" and "Jog right".
SITRAIN Training for
Automation and Industrial Solutions

Page 19

ST-PRO1
Introduction to HMI and Profibus DP (1)

If You Want to Know More

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

Note

14.10.2005
PRO1_09E.20

SITRAIN Training for


Automation and Industrial Solutions

The following pages contain either further information or are for reference to
complete a topic.

SITRAIN Training for


Automation and Industrial Solutions

Page 20

ST-PRO1
Introduction to HMI and Profibus DP (1)

PROFIBUS DP Terminating Resistor

Master

The terminating resistor must


be switched on at the beginning
and at the end of the segment

Slave

Slave

Slave

Slave

Resistor On
Resistor Off

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

Setting the
Terminating
Resistor

14.10.2005
PRO1_09E.21

SITRAIN Training for


Automation and Industrial Solutions

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.

SITRAIN Training for


Automation and Industrial Solutions

Page 21

ST-PRO1
Introduction to HMI and Profibus DP (1)

Segment Length Depending on the Baud Rate

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:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.22

SITRAIN Training for


Automation and Industrial Solutions

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.

SITRAIN Training for


Automation and Industrial Solutions

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

SITRAIN Training for


Automation and Industrial Solutions

PROFIBUS ConnectorThe 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.

SITRAIN Training for


Automation and Industrial Solutions

Page 23

ST-PRO1
Introduction to HMI and Profibus DP (1)

Preparing a Fast Connect Cable

2. Strip

1. Measure

SIMATIC S7

Date:
File:

Siemens AG 2005. All rights reserved.

14.10.2005
PRO1_09E.24

3. Remove

SITRAIN Training for


Automation and Industrial Solutions

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.

SITRAIN Training for


Automation and Industrial Solutions

Page 24

ST-PRO1
Introduction to HMI and Profibus DP (1)

Potrebbero piacerti anche