Nothing Special   »   [go: up one dir, main page]

PRO1 02E TrainingUnits and Addressing

Download as pdf or txt
Download as pdf or txt
You are on page 1of 33

Introduction to PROFIBUS DP and HMI (1)

PROFIBUS DP

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: 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 (ET 200S) ........................................................................... 6
Control and Monitoring with SIMATIC HMI ....................................................................................... 7
Communication between SIMATIC S7 and the HMI System ............................................................. 8
Configuring Phase, Downloading Phase and Process Control Phase ................................................ 9
WinCC flexible ................................................................................................................................. 10
Touchpanel: Setting the Interface for the Project Transfer ................................................................ 11
HW Config: Setting the Runtime Interface ......................................................................................... 12
WinCC flexible – Configuration Tool ................................................................................................. 13
Input and Output Fields .................................................................................................................... 14
Buttons ............................................................................................................................................ 15
Defining the Connection to the Controller ......................................................................................... 16
Transfer Settings in WinCC flexible .................................................................................................. 17
Exercise 2: Copying the Touchpanel Project ..................................................................................... 18
Exercise 3: Setting the Touchpanel Interface for Transfer ................................................................. 19
Exercise 4: Switching the PG Interface to PROFIBUS DP ................................................................ 20
Exercise 5: Checking the PROFIBUS DP ......................................................................................... 21
Exercise 6: Checking the RT Interface of the WinCC flexible Station ................................................ 22
Exercise 7: Checking the Connection to the Controller ...................................................................... 23
Exercise 8: Transferring the WinCC flexible Project into the Touchpanel .......................................... 24
Exercise 9: Testing the WinCC flexible Project ................................................................................. 25
Rewiring using Absolute Addresses .................................................................................................. 26
Exercise 10: Adapting the S7 Program using "Rewiring" ................................................................... 27
If You Want to Know More ................................................................................................................ 28
PROFIBUS – DP Terminating Resistor ............................................................................................ 29
Segment Length Depending on the Baud Rate ................................................................................. 30
PROFIBUS Connector ..................................................................................................................... 31
Preparing a Fast Connect Cable ....................................................................................................... 32
Installing PROFIBUS-DP Slaves Later On ........................................................................................ 33

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 1 Introduction to HMI and PROFIBUS DP (1)
Objectives

Upon completion of the chapter the participant will ...

… be familiar with the use of PROFIBUS DP

... be familiar with the WinCC flexible software

... be able to set the interface of the TP 170B touch panel

... be able to download a project to the TP170B touch panel

... be familiar with the principle of interfacing the touch panel via tags

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.2

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 2 Introduction to HMI and PROFIBUS DP (1)
Structure of a PROFIBUS DP System

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 153
CP STAND.
CPU 342- DP
315- 5 DP SLAVE
2 DP
Compact Slaves
Intelligent Slave Modular Slave

STAND.
DP
SLAVE

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: 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 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 as active
nodes in the PROFIBUS protocol.

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 ST-PRO1


Automation and Industrial Solutions Page 3 Introduction to HMI and PROFIBUS DP (1)
Configuring a PROFIBUS DP Master System

Result

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: 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 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 ST-PRO1


Automation and Industrial Solutions Page 4 Introduction to HMI and PROFIBUS DP (1)
Configuring Compact and Modular DP Slaves

DP Slave

Configure rack like central hardware

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.5

DP Slaves • 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 ST-PRO1


Automation and Industrial Solutions Page 5 Introduction to HMI and PROFIBUS DP (1)
Exercise 1: Configuring the DP System (ET 200S)

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: 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, without having to modify the S7 program.

What to Do 1. Expand the existing configuration to include the distributed (remote) station
ET 200S (additional connection possibility for the conveyor model).
Notes: Insert the PROFIBUS DP master system as follows:
OFF ON Select the DP interface of the CPU Æ Menu Insert Æ Master System Æ
64 New...
32 To connect the ET200S, use the mouse to drag the interface module IM151
16 from the module catalog to the master system (see slide)
8 2. On the IM 151-1‘s address switches, set the Slave Address to 4
4 (see slide left) and check the PROFIBUS cabling
2 Note: Changes to the slave address only take effect after Power ON/OFF!
1
3. Change the addresses of the mixed DI/DO module in the UR0 Universal
Rack to IB 88 and QB 88.
4. For the input and output addresses in the ET200 S, configure the addresses
IB 8 and QB 8.
Note: So that the 8 channels of a module are located in one byte, you have to
pack the addresses. To do so, select both modules and then click on "Pack
Addresses" (see slide)
4. Connect the conveyor model to the interface of the ET200S.
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 the program you have created up until now. Everything should work as
before.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 6 Introduction to HMI and PROFIBUS DP (1)
Control and Monitoring with SIMATIC HMI

Process
Visualization System
SIMATIC WinCC

SIMATIC Panels

WinCC flexible

ProTool / Pro

WinCC

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.7

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,
i.e., PROFIBUS (S7-300 and S7-400) and Industrial Ethernet, i.e.,
PROFINET. A networking via PROFIBUS or Industrial Ethernet, i.e.,
PROFINET makes the process control and monitoring possible even over
greater distances and to several controllers.
• 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 ST-PRO1


Automation and Industrial Solutions Page 7 Introduction to HMI and PROFIBUS DP (1)
Communication between SIMATIC S7 and the HMI System

M30.0
1

• MPI
• PROFIBUS DP
• Industrial Ethernet

Update

Press key “set bit“


Let go of key “reset bit“

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.8

Tag Process tags are used to make the data exchange between SIMATIC S7 and the
HMI system. Tags are created in the configuration with WinCC flexible 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.

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.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 8 Introduction to HMI and PROFIBUS DP (1)
Configuring Phase, Downloading Phase and Process Control Phase

Configuring phase Transfer Process control phase


(Offline)

PC/PG
WinCC flexible
PC/OP/TP
Configuration Configuration
data data Flash Flash
Source file
<Name>.hmi
Ethernet MPI
DP

PLC

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.9

Introduction You configure your project on a PC or programming device (PG). You then
generate the configuration under WinCC flexible 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 etc.
4. Downloading (transferring) the generated database to the HMI system via
MPI, PROFIBUS DP, or Industrial Ethernet

The configuration is stored in source files in your S7 project (Directory


…\HmiEs). In the compiling phase, a file of the type fwx is created which is later
transferred to the target device
• <Name>.fwx for Windows-based HMI systems

Editors WinCC flexible 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 ST-PRO1


Automation and Industrial Solutions Page 9 Introduction to HMI and PROFIBUS DP (1)
WinCC flexible

Advanced
Advanced Demo
- Complete functional scope
Standard - Limited to a max. 30 days

Compact
*) Options *) Options *) Options
Micro

E n g i n e e r i n g (ES)

SIMATIC PANEL SIMATIC PANEL SIMATIC PANEL PC - based


Micro 70 / 170 270 / 370 Windows 2000
Windows XP

R u n t i m e (RT)

RT Options
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.10

WinCC flexible The Engineering System (ES) is the software with which you carry out all the
Engineering System necessary configuring tasks in order to create an interface for controlling and monitoring
machines and systems.

Editions The Engineering System of WinCC flexible is modularly graded into different editions.
The edition determines which operator panels of the SIMATIC HMI spectrum can be
configured.
With each higher edition, a wider range of target devices and functions is supported. The
configuration data is compatible.
Micro: Configuring the micro panels
Compact: Configuring the micro panels and panels of the 70 and 170 series
Standard: Configuring all panels (micro panels, panels of the 70/170/270 and 370
series)
Advanced: Configuring the PC-based and all other panels (micro panels, panels of the
70/170/270/370 series and PC Runtime)
Advanced Demo:Test version limited to 30 days

Changing the With the WinCC flexible Compact edition and above, you can change to a higher
WinCC flexible Edition WinCC flexible edition with a "Powerpack".

Runtime WinCC flexible Runtime (RT) is the software for process visualization on the operator
panel. With Runtime, you execute the project during process operation.
The various panels already come delivered with operating system and the appropriate
Rutime version. Possible, additionally required Runtime components are loaded along
with the project onto the panel.

Options Both components can be expanded through Options (licenses).


The options depend on the target system used. An operator panel that doesn‘t support a
specific functionality also cannot use the associated option.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 10 Introduction to HMI and PROFIBUS DP (1)
Touchpanel: Setting the Interface for the Project Transfer
Loader V07.01.01.00_01.34

Transfer PROFIBUS OK X
Panel is the only master on bus
Start
Station Parameters
Address: 1
Control
Panel Time-out: 1s

NetworkParameters
Transmission Rate: 1,5 Mbits/s

Highest Station: 126

Profile: DP

Bus Parameters…

S7-Transfer Settings OK X

MPI
Profibus

Properties...

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.11

Transfer Settings The interface of the TP170B must be set up for the project transfer.
These settings are only relevant for downloading the project, not for later
communication between panel and controller during the process control phase.
The interface parameters necessary for this are defined with WinCC flexible
within the project.

Channel: In addition to the serial transfer channel (Channel 1), a


second channel (Channel 2) can be selected for
downloading the project onto the operator panel.
Remote Control: The loading of the WinCC flexible project can be triggered
without first having to manually exit Runtime. The panel
automatically exits Runtime and switches to the Transfer
mode.
Advanced: Setting of transmission parameters for MPI or PROFIBUS
DP.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 11 Introduction to HMI and PROFIBUS DP (1)
HW Config: Setting the Runtime Interface

2xL

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.12

Communication For a WinCC flexible project that is integrated in STEP7, the interface
Settings parameters (address and network) are set up with the HW Config tool – as
shown in the slide. With the parameters set here, the panel will later
communicate with the controller or controllers during Runtime or during the
process control phase.
For WinCC flexible projects not integrated in STEP7, these parameters are
defined with WinCC flexible in the configuration of the "Connections" (see
following pages).

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 12 Introduction to HMI and PROFIBUS DP (1)
WinCC flexible – Configuration Tool

Editor Section
(Work Area)

Properties

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.13

Activating For projects integrated in STEP7, WinCC flexible can be started directly from
the SIMATIC Manager.
After software installation, the engineering tool starts with an initial start screen.
The most important windows are opened.

Project Window The project window is the central switching position for configuration. All
components and all available configuration editors of a project are displayed in
the project window in the form of a tree structure and can be opened from
there. Each Editor has an icon assigned to it through which you can identify the
associated objects. Only elements that are supported by the selected operator
panel are displayed in the project window. In this window, you have access to
the operator panel‘s device settings, the language support and the version
administration.

Work Area The work area is the central configuring area in which the objects of the
operator panel are edited using the editor that has been started. Several editors
can be open at the same time.

Properties Window In the Properties window, you edit the properties of selected objects (such as,
the properties of screens, screen objects, tags). The Properties window is only
available in those editors where object properties have to be set.

Tool Window The Tool window contains all configurable objects that can be configured in
screens and it also enables the access to libraries.

Task Window The Task window displays all engineering system messages that are created
when generating a project, for example.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 13 Introduction to HMI and PROFIBUS DP (1)
Input and Output Fields

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.14

I/O Field Mode Tag values are displayed through output fields. The values of tags can also be
specified through input/output fields using a screen keyboard. The mode can be
set in the Properties window as shown in the slide.

Format Type With Format Type you define in which format the value of the tag is to be
displayed.

Tag In the field Tag you define from which WinCC flexible tag the value in the I/O
Field is to be displayed or specified.
The WinCC flexible tag is, as a rule, linked to a variable of the S7 controller.
However, it can also be an internal tag that is not linked to a variable of the S7
controller and that merely serves to store values within the HMI device.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 14 Introduction to HMI and PROFIBUS DP (1)
Buttons

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.15

Buttons The operator can use buttons to initiate system functions such as the selection
of a screen or the setting of a tag as shown in the slide.
Through the "Events" of a button, you define in which event which system
function is to be executed.

Variable If the selected system function is executed with a WinCC flexible tag, this tag
must be specified.
The WinCC flexible tag is, as a rule, linked to an S7 controller variable. It could,
however, also be an internal tag that is not linked to an S7 controller variable,
but is simply used to store values within the HMI device.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 15 Introduction to HMI and PROFIBUS DP (1)
Defining the Connection to the Controller

2x
L

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.16

Creating With the configuring of the connection(s), the communication partners of the
Connections operating panel are defined with which the Runtime exchanges data in the later
process control phase.
For WinCC flexible projects integrated in STEP7, connections to partners
(controllers) are merely created here. The addresses of the operator panel and
the S7 controller as well as the associated network (MPI, PROFIBUS, Ethernet)
have already been determined in the hardware configuration of the operator
panel and the S7 controller.
For a WinCC flexible project not integrated in STEP7, the connections must be
configured completely here (address of the operator panel and the controller,
network).

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 16 Introduction to HMI and PROFIBUS DP (1)
Transfer Settings in WinCC flexible

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.17

Transfer Settings Transfer is the transmission of the project onto the operator panel that is to
execute the project. The transfer settings necessary for this are only relevant for
the project transfer, not for the data exchange with the controller later on during
the process control phase.

Transfer Mode For the transfer, the operator panel must be in "Transfer Mode". Depending on
the current interface parameterization, the operator panel must be switched to
the Transfer mode manually or it switches automatically.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 17 Introduction to HMI and PROFIBUS DP (1)
Exercise 2: Copying the Touchpanel Project

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.18

Task From the project "PRO1_B", copy the touchpanel project “Touchpanel" into your
own project.

What to Do 1. Delete the old project "PRO1_B" (if it exists):


File Æ Delete Æ User projects Æ select "PRO1_B" in the list Æ confirm
2. Retrieve the project "PRO1_B.zip":
File Æ Retrieve Æ select "PRO1_B.zip" in the list Æ acknowledge with
"OK"Æ select "S7-Courses“ in the destination directory list Æ acknowledge
the message with "YES"
3. Open the project PRO1_B
4. Copy the touchpanel project "Touchpanel" into your own project

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 18 Introduction to HMI and PROFIBUS DP (1)
Exercise 3: Setting the Touchpanel Interface for Transfer
Loader V07.01.01.00_01.34

Transfer PROFIBUS OK X
Panel is the only master on bus
Start
Station Parameters
Address: 1
Control
Panel Time-out: 1s

NetworkParameters
Transmission Rate: 1,5 Mbits/s

Highest Station: 126

Profile: DP

Bus Parameters…

S7-Transfer Settings OK X

MPI
Profibus

Properties...

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.19

Task The interface of the touchpanel is to be set up as in the slide, so that the WinCC
flexible project can then be downloaded from the PG to the panel.
Before you can parameterize the interface, you must exit Runtime. For this,
there is, as a rule, a button in the Start screen for doing so. After exiting
Runtime, the "Loader" appears through which the "Control Panel" (see slide)
can be activated. The Loader also appears after every voltage recovery.

What to Do 1. Exit the touchpanel‘s Runtime


2. Activate the "Control Panel"
3. Double-click on "Transfer" to select
4. Make the settings as shown in the slide and accept these by pressing the
"OK" button until the "Control Panel" reappears
5. Double-click on the icon "OP"
6. Press the "Save Registry" button
7. Go back to the Loader by closing the Control Panel.
8. Via "Transfer", activate the "Transfer Mode". In this mode, the touchpanel
waits for a connection set up through the PG.
9. Check the PROFIBUS cabling.

Notes Channel: In addition to the serial transfer channel (Channel 1), a


second channel (Channel 2) can be selected for
downloading the project onto the operator panel.
Remote Control: The loading of the WinCC flexible project can be triggered
without first having to manually exit Runtime. The panel
automatically exits Runtime and switches to the Transfer
mode.
Advanced: Setting of transmission parameters for MPI or PROFIBUS
DP.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 19 Introduction to HMI and PROFIBUS DP (1)
Exercise 4: Switching the PG Interface to PROFIBUS DP
SIMATIC Manager
Options

Set PG/PC Interface

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.20

Task So that the WinCC flexible project can be downloaded from the PG onto the
touch panel, the PG‘s interface parameters and the transfer settings of the
touch panel must both be parameterized to PROFIBUS DP.

What to Do 1. Change the PG‘s interface to PROFIBUS DP. Use the parameters shown in
the slide.
Important:
For "Interface Parameter Assignment Used" DO NOT select
"PROFIBUS-DP Slave", since the PG is not used as a PROFIBUS slave.
2. Connect the online cable of the PG with a PROFIBUS DP interface.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 20 Introduction to HMI and PROFIBUS DP (1)
Exercise 5: Checking the PROFIBUS DP
SIMATIC Manager
Options

Set PG/PC Interface

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.21

Task Now connected to the PROFIBUS are:


- the PG (address 0, active)
- the touchpanel (address 1, active)
- the S7 controller (address 2, active)
- the ET200S (address 4, passive)
Using the function "SIMATIC NET Diagnostics" (see slide), check whether all
nodes are accessible via the PROFIBUS DP.

What to Do 1. Start the diagnostic function


SIMATIC Manager Æ Options Æ Set PG/PC Interface Æ Diagnostics...
2. Check the PROFIBUS network using the "Test" button
3. Using the "Read" button, determine which nodes are accessible via the
PROFIBUS.

Note The "active" and "passive" node properties indicate whether a node can (active)
or cannot (passive) initiate communication to another node.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 21 Introduction to HMI and PROFIBUS DP (1)
Exercise 6: Checking the RT Interface of the WinCC flexible Station

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.22

Task So that the panel‘s Runtime can communicate with the S7 station during the
process control phase, the panel‘s interface must be parameterized with the
HW Config tool.

What to Do Using the HW Config tool, check the parmeterization of the panel‘s interface. If
necessary (see slide) make the appropriate corrections.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 22 Introduction to HMI and PROFIBUS DP (1)
Exercise 7: Checking the Connection to the Controller

1x
R

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.23

Task Make a connection so that the panel‘s Runtime communicates with your training
unit.

What to Do 1. Start WinCC flexible by opening the WinCC flexible station Touchpanel in
the SIMATIC Manager (see left slide)
2. Open the object "Connections" and check whether your S7 station is
specified as connection partner.
3. Connect the WinCC flexible tags with the controller’s variables
right mouse button on "Connections" Æ Reconnect…
4. Complete the dialog that appears as follows:

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 23 Introduction to HMI and PROFIBUS DP (1)
Exercise 8: Transferring the WinCC flexible Project into the Touchpanel

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.24

Task The given WinCC flexible project “Touchpanel" is to be downloaded into the
panel.

What to Do 1. Activate the Transfer function and make the settings as shown in the slide
2. Start the data transfer to the panel using "Transfer"

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 24 Introduction to HMI and PROFIBUS DP (1)
Exercise 9: Testing the WinCC flexible Project
DI DO SETPOINT Quantity ACTUAL Quantity
I 0.0 T_System_ON
I 0.1 T_System_OFF L_SYSTEM Q 4.1
I 0.2 L_MAN Q 4.2
0 8 1 5
T_Jog_RIGHT
I 0.3 T_Jog_LEFT L_AUTO Q 4.3
I 0.4 S_M/A_ModeSelectl "IW_Thumbw" (IW 2) "QW_DigDisp" (QW 6)
I 0.5 T_M/A_Accept

T_Ackn_Fault L_Conv_Fault

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.25

Task The functioning of the WinCC flexible project "Touchpanel" is to be checked:

What to Do Select the screen "Conveyor" and check whether the following information is
correctly displayed via the output fields:
• States of the proximity sensors of Bays 1 – 3 and the light barrier
• Display of conveyor faults
• Operating states (System ON, Manual and Auto modes)
• ACT quantity

Note What doesn‘t yet work:


Operating the system or the conveyor (System ON/OFF, mode selection,
specifying the SETPOINT Quantity, Jogging RIGHT/LEFT, Acknowledging
conveyor faults) via the input fields is not possible at the moment since your S7
program in the controller has not yet been adapted accordingly. You will do this
in one of the next exercises.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 25 Introduction to HMI and PROFIBUS DP (1)
Rewiring using Absolute Addresses

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.26

Rewiring... Independent of the symbol table, the old addresses (in the example, bits of the
IW 0) are replaced with the new addresses (in the example, bits of the MW 30)
in the existing user program. The original blocks are overwritten with the new,
rewired blocks.
When you rewire using absolute addresses, you must select "Address priority:
Absolute value" in the Blocks folder’s Object Properties.

...in Specific If you are only going to replace the addresses in one or several blocks, you
Blocks have to select these blocks before you start the function.

...in All Blocks If you are going to rewire or replace the addresses in all blocks, you have to
select the Blocks folder of the S7 program before you start the function.

…All Accesses If you check (activate) this option, the individual bits of the specified byte, word
Within the Specified or doubleword addresses are also rewired. In the example shown, all bits of the
"old address" IW0 are rewired to the bits of the "new address" MW30.

What to Do 1. In the SIMATIC Manager select the Blocks folder or the blocks to be rewired
2. Choose the setting "Address priority: Absolute value"
SIMATIC Manager Æ Edit Æ Object Properties Æ Address Priority tab
3. Start the rewiring
SIMATIC Manager Æ Options Æ Rewire...
4. In the Rewire screen, enter the old and the new addresses and, if
necessary, activate "All accesses within the specified addresses"
5. Acknowledge with "OK"

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 26 Introduction to HMI and PROFIBUS DP (1)
Exercise 10: Adapting the S7 Program using "Rewiring"
DI Simulator DO
I 0.0 T_System_ON
I 0.1 T_System_OFF L_SYSTEM Q 4.1
I 0.2 T_Jog_RIGHT L_MAN Q 4.2
I 0.3 T_Jog_LEFT L_AUTO Q 4.3
I 0.4 S_M/A_ModeSelect
I 0.5 T_M/A_Accept

Rewire

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.27

Task 1 The S7 program is to be adapted in such a way that operating the system or the conveyor
model (System ON/OFF, operating mode selection, specifying the SETPOINT quantity,
jogging RIGHT/LEFT) is no longer done via the simulator but is done via the touchpanel.
You are now to make the appropriate adjustments to the S7 program with the function
"Rewire".

What to Do 1. In the S7 program called "My_Program" select the property "Address priority:
Absolute value".
SIMATIC Manager Æ select the Blocks folder of the S7 program Æ Edit Æ Object
Properties Æ Address priority tab
2. Activate the "Rewire" function.
SIMATIC Manager Æ select the Blocks folder of the S7 program Æ Options Æ
Rewire…
3. In the table of the Rewire dialog, enter the old and the new addresses and activate
(check) the option "All accesses within the specified addresses" (see slide).
4. In FC 17, the input "T_Ackn_Fault" (I 1.0) has been replaced with the memory bit
M31.0. Modify the block in such a way that you can acknowledge a conveyor fault
(M17.0) either via the touchpanel (M 31.0) or, as before, via the simulator momentary
contact "T_Ackn_Fault" (I 1.0).
5. Download all blocks into the CPU and test the functions
6. The (hardware) NC contact "T_System_OFF" (I 0.1) has been replaced with the (NO
contact) memory bit "M_System_OFF_HMI" (M 30.1). Modify FC 15 so that the
system can be switched on again (see slide).

Result With the exception of specifying the setpoint quantity, you can operate the system
completely via the touchpanel.
Task 2 Modify the program of the FC 19 block in such a way that the setpoint quantity no longer
has to be specified via the BCD thumbwheel buttons on the simulator but can be made via
the corresponding input field on the touchpanel.
Solution tip: The touchpanel transfers the setpoint quantity specified in the "Parts
Setpoint" input field into the variable "MW_SETP" (MW 22).

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 27 Introduction to HMI and PROFIBUS DP (1)
If You Want to Know More

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.28

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

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 28 Introduction to HMI and PROFIBUS DP (1)
PROFIBUS – DP Terminating Resistor

Master Slave Slave

The terminating resistor must


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

Resistor On
Resistor Off

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.29

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 is then
either permanently supplied with power separately from the other modules or is
supplied with voltage from the peripheral modules.
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 ST-PRO1


Automation and Industrial Solutions Page 29 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 MBaud 200 meters
3 to 12 MBaud 100 meters

Master Slave Slave Slave

Segment Length

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.30

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 ST-PRO1


Automation and Industrial Solutions Page 30 Introduction to HMI and PROFIBUS DP (1)
PROFIBUS Connector

Standard connector Connector for


with screw terminal Fast Connect

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.31

PROFIBUS ConnectorIn the slide you can see two different versions of the 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.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 31 Introduction to HMI and PROFIBUS DP (1)
Preparing a Fast Connect Cable

1. Measure 2. Strip 3. Remove

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.32

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 ST-PRO1


Automation and Industrial Solutions Page 32 Introduction to HMI and PROFIBUS DP (1)
Installing PROFIBUS-DP Slaves Later On

Example of a Type File

SIMATIC S7 Date: 18.09.2009 SITRAIN Training for


Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO1_09E.33

Type Files STEP 7 requires a GSD or a type file for every DP slave, so that you can select
the DP slave from the Hardware Catalog in the HW-Configuration tool.
All properties of a DP slave are stored in a GSD file and they conform to the
PROFIBUS standard. Type files conform to the Siemens specification.
For SIEMENS AG DP slaves, there is a type file for every DP slave type.
DP slaves from other manufacturers are supplied with a GSD or a type file.

Integrating DP Slaves A new DP slave can be integrated into the Hardware Catalog as follows:
1. Select the menu options Options Æ Install New GSD ....
2. In the dialog field that then appears open the drive/directory with the
appropriate GSD file.
The slave is entered in the window "Hardware Catalog" (only in the catalog
profile "Standard"!) under "Additional Field Devices" and is then available
for the configuration.

SITRAIN Training for ST-PRO1


Automation and Industrial Solutions Page 33 Introduction to HMI and PROFIBUS DP (1)

You might also like