Sie sind auf Seite 1von 23

Automation and Drives

HMI Panels and PROFIBUS DP

PROFIBUS DP

SITRAIN
IK-PBSYS / HMI Devices Page 1 03/2007
Siemens AG 2007 - Subject to change without prior notice

Contents Page
HMI devices: TP 170B panel .............................................................................................................. 2
Interfaces on TP170B ........................................................................................................................ 3
WinCC flexible ................................................................................................................................... 4
Basic activities ................................................................................................................................... 5
Touch panel: Setting the interface for project transfer ....................................................................... 6
Hardware configuration: Runtime interface ...................................................................................... 7
WinCC flexible configuring interface .................................................................................................. 8
Defining the connection to the PLC .................................................................................................... 9
Requirements for HMI transfer ........................................................................................................... 10
Transfer settings in WinCC flexible ................................................................................................... 11
Exercise 1: Copy a touch panel project TP170B .............................................................................. 12
Exercise 2: Prepare the touch panel interface ................................................................................. 13
Exercise 3: Set a PG interface ......................................................................................................... 14
Exercise 4: Test the PROFIBUS DP ................................................................................................. 15
Exercise 5: Test the runtime interface ........................................................................................... 16
Exercise 6: Test the connection to the PLC ...................................................................................... 17
Exercise 7: Transfer a WinCC flexible project .................................................................................. 18
Exercise 8: Test a WinCC flexible project ........................................................................................ 19
Direct key functionality (DP slave) .................................................................................................... 20
Exercise 9: Configure an HMI device as a DP slave ........................................................................ 21
Exercise 10: Configure direct key functions ..................................................................................... 22
Exercise 11: Programmed access .................................................................................................... 23

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 1 HMI Panels and PROFIBUS DP
Automation and Drives

HMI devices: TP 170B panel

SITRAIN
IK-PBSYS / HMI Devices Page 2 03/2007
Siemens AG 2007 - Subject to change without prior notice

Introduction An HMI device such as the TP170B Colour used in the training rack can
communicate with the CPU via a range of different data transfer media (bus
systems). The CPU data, i.e. its program run, can be visualized and monitored.

PROFIBUS In most cases, the PROFIBUS is used as the data transfer medium. The
transmission protocol used internally is the S7 protocol, i.e. the same one used by
STEP7 as an online protocol. Accordingly, the HMI device itself is not configured
as a DP slave, but merely as a bus node in the PROFIBUS subnet.
The disadvantage of the S7 protocol, however, is that it is slower than the
PROFIBUS DP protocol. If the HMI application includes time-critical functions
which require a faster protocol than the S7, it is now possible to configure the HMI
device as a DP slave.

Direct keys "Direct keys" allow a number of input and output signals (quantity depends on the
type of HMI device) to be exchanged in a high-speed cycle between the HMI
device (DP slave) and the DP master. The HMI device then communicates with
the CPU using two different methods:
1.Conventionally via HMI variables: Non-time-critical S7 protocol
2.Additionally via IO areas: High-speed DP protocol

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 2 HMI Panels and PROFIBUS DP
Automation and Drives

Interfaces on TP170B

SITRAIN
IK-PBSYS / HMI Devices Page 3 03/2007
Siemens AG 2007 - Subject to change without prior notice

Interfaces The TP170B is provided with three different interfaces for connection to the PLC
or PC. Interface (3) IF1B is the most important of the three for the SIMATIC S7
environment. This is an RS485 interface which is used for both MPI and
PROFIBUS. The difference between the two is solely determined by the protocol
used.
For applications which require the TP170B to function as a DP slave, it is
connected to the PROFIBUS via this interface.
The firmware of the HMI device uses the RS485 interface in combination with the
PROFIBUS protocol to perform the following functions:

1. Data exchange with the S7-CPU:


In this case, the S7 protocol is embedded in the PROFIBUS protocol
(SDA/SDN message frames).
2. Data exchange with the DP master:
DP protocol (SRD message frame)
3. S7 online functions:
The RS485 interface of the PG or PC is switched over from MPI to PROFIBUS.
The PG or PC can then be connected to the PROFIBUS which means that it
has online access to the DP master CPU, the I slaves as well the HMI device.

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 3 HMI Panels and PROFIBUS DP
Automation and Drives

WinCC flexible
Advanced
Advanced demo
- Full scope of functions
Standard - Limited to max. 30 days

Compact
*) Option
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
SITRAIN
IK-PBSYS / HMI Devices Page 4 03/2007
Siemens AG 2007 - Subject to change without prior notice

WinCC flexible The Engineering System (ES) is the software you use to configure
Engineering System an interface for operating and monitoring machines and plant.

Editions The Engineering System of WinCC flexible is of modular design, graded in


different editions. The edition determines which operator panels in the SIMATIC
HMI spectrum can be configured.
With each higher edition you expand the spectrum of supported devices and
WinCC flexible functionality. The configuration data are compatible.
Micro: For configuring Micro panels
Compact: For configuring Micro panels and series 70 and 170 panels
Standard: For configuring all panels (Micro panels, series 70/170/270 and 370
panels)
Advanced: For configuring PC-based and all other panels (Micro panels, series
70/170/270/370 and PC Runtime panels)
Advanced Demo:Test version limited to 30 days

Change WinCC flexible


With WinCC flexible Compact edition and higher, you can use a "PowerPack" to
edition upgrade to a higher version of WinCC flexible edition.

Runtime WinCC flexible Runtime (RT) is the software for process visualization on the
operator panel. You execute the project in process mode in WinCC Runtime.
The different panels are shipped with an operating system and the appropriate
Runtime version. Any additionally required Runtime components are installed with
the project on the panel.

Options Options (licenses) can be added on to both components.


These options are dependent on the PLC used. An operator panel which does not
support a particular functionality cannot use the corresponding option either.

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 4 HMI Panels and PROFIBUS DP
Automation and Drives

Basic activities

Configuring phase Transfer Process control phase


(offline)

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

PLC
PLC

SITRAIN
IK-PBSYS / HMI Devices Page 5 03/2007
Siemens AG 2007 - Subject to change without prior notice

Introduction The network is configured on a PC or a programming device (PG). The


configuration must then be generated under WinCC flexible and downloaded to
the PC/OP/TP.
If there is a link to the PLC, the PC/OP/TP displays the current values in the
variables and graphics. The diagram shows the different phases in which the
configuration data are used.

Configuration Configuration is performed in stages:

1.Specification of the PLC and type of link (MPI, PROFIBUS-DP,


Industrial Ethernet) etc.
2.General settings for the PC/OP/TP (defines the current connections, etc.)
3.Generation of objects such as variables, displays, messages, etc.
4.Transfer of the generated database via MPI to the HMI system,
PROFIBUS DP or Industrial Ethernet.

The configuration data are stored in source files in your S7 project (directory
\HmiEs). The generation process produces a file of type "fwx" which is later
transferred to the target device
<Name>.fwx for Windows-based HMI systems

Editors Several editors (tools) with which individual object types can be configured have
been integrated into WinCC flexible. Each object is created using a symbolic
name. This symbolic name must always be entered when the object is created,
edited, referenced or deleted.

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 5 HMI Panels and PROFIBUS DP
Automation and Drives

Touch panel: Setting the interface for


project transfer
Loader V07.01.01.00_01.34
PROFIBUS OK X
Transfer
Panel is the only master on bus
Station Parameters
Start Address: 1

Timeout: 1 sec
Control
panel
Network Parameters
Transmission Rate: 1.5 Mbits/s

Highest Station: 126

Profile: DP

Bus parameters...

Transfer settings OK X
Channel Directories
S7 transfer settings OK X
Channel 1:
Enable Channel MPI
Serial:
Remote control PROFIBUS
Channel 2:
MPI / Enable Channel
Properties...
PROFIBUS
Remote control Advanced

SITRAIN
IK-PBSYS / HMI Devices Page 6 03/2007
Siemens AG 2007 - Subject to change without prior notice

Transfer The TP170B must be parameterized for project transfer.


settings These settings are only relevant for loading the project, but not for subsequent
communication between the panel and PLC during process control. The interface
parameters required to make these settings are assigned internally in the project
with WinCC flexible.

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


channel (channel 2) for loading the project to the operator
panel can be selected.
Remote Control: The Runtime application need not be ended manually before
the WinCC flexible project loading process is started. The
panel automatically terminates Runtime and switches over to
transfer mode.
Advanced: Transmission parameter settings for MPI or PROFIBUS DP

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 6 HMI Panels and PROFIBUS DP
Automation and Drives

Hardware configuration: Runtime interface

Configuration

Properties of the
interface Properties of the
PROFIBUS
interface

SITRAIN
IK-PBSYS / HMI Devices Page 7 03/2007
Siemens AG 2007 - Subject to change without prior notice

Communication The interface parameters (address and network) for a WinCC flexible project
settings integrated in STEP7 are assigned with the tool HW Config, as illustrated in the
screenshots above. The panel will later use these parameter settings to
communicate with the PLC or PLCs when Runtime is active or during process
control.
In the case of WinCC flexible projects which are not integrated in STEP7, these
parameters are defined with WinCC flexible when the "Connections" are
configured (see below).

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 7 HMI Panels and PROFIBUS DP
Automation and Drives

WinCC flexible configuring interface

Tools
Project
Editor area
Work area

Properties

Edition

SITRAIN
IK-PBSYS / HMI Devices Page 8 03/2007
Siemens AG 2007 - Subject to change without prior notice

Call WinCC flexible can be called directly from the SIMATIC Manager for projects
integrated in STEP7.
Following the software installation, the engineering interface is launched with a
basic setting. The key windows are opened.

Project window The Project window is the central control point for configuration. All components
and all available configuration editors of a project appear in a tree structure in the
Project window, and can be opened from there. Each editor is assigned a symbol
which you can use to identify the corresponding objects. Only those elements
which are supported by the selected operator panel are displayed in the project
window. In the project window you have access to the operator panel settings,
language settings and version management.

Work area The central configuration area in which the objects of the operator panel can be
processed using the active editor. Several editors can be open simultaneously.

Properties window The Properties window is used to edit the properties of selected objects (e.g.
displays, display objects, variables). The Properties window is only available in
editors where object properties have to be set.

Tool window The tool window contains all objects which can be configured in displays, and
permits access to libraries.

Output window The Output window displays all engineering system alarms produced, for
example, when generating a project.

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 8 HMI Panels and PROFIBUS DP
Automation and Drives

Defining the connection to the PLC

Properties can be
edited only via
NETPRO

SITRAIN
IK-PBSYS / HMI Devices Page 9 03/2007
Siemens AG 2007 - Subject to change without prior notice

Creating The purpose of configuring a connection or connections is to define the


connections communication partners of the operator panel with which the Runtime application
will later exchange data during process control.
In the case of WinCC flexible projects integrated in STEP7, this merely involves
setting up connections to partners (PLCs). The addresses of the operator panel
and S7 PLC as well as the assigned network (MPI, PROFIBUS, Ethernet) have
already been defined in the hardware configuration for the operator panel and the
S7 PLC.
All the connection parameters (address of operator panel and PLC, network
connections) for WinCC flexible projects which are not integrated in STEP7 must
be assigned in this screen.

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 9 HMI Panels and PROFIBUS DP
Automation and Drives

Requirements for HMI transfer

Configured device type identical to type of target device

Configured device version matches image version on target device

Connection exists to target device (transfer interface settings)

Direct connection within a bus segment


Connection through routing

Target device in transfer readiness (transfer mode active)

Project can be generated without errors

File (*.FWX) is generated


Contains generated configuration data for the target device

Transfer settings in WinCC flexible match the connection

SITRAIN
IK-PBSYS / HMI Devices Page 10 03/2007
Siemens AG 2007 - Subject to change without prior notice

Notes

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 10 HMI Panels and PROFIBUS DP
Automation and Drives

Transfer settings in WinCC flexible

Transfer to panel

Check transfer
settings

SITRAIN
IK-PBSYS / HMI Devices Page 11 03/2007
Siemens AG 2007 - Subject to change without prior notice

Transfer Transfer is the transmission of the project to the operator panel on which
settings the project will run. The transfer settings entered here are relevant only for
transferring the project, but not for the subsequent exchange of data with the PLC
during process control.

Transfer mode The operator panel must be in "transfer mode" for the transfer operation.
Depending on how the interface parameters are set, the operator panel must
either be switched manually over to transfer mode or it will switch over
automatically.

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 11 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 1 : Copy a touch panel project TP170B

Copy the TP project to


your own S7 project

SITRAIN
IK-PBSYS / HMI Devices Page 12 03/2007
Siemens AG 2007 - Subject to change without prior notice

Task description Copy the touch panel project "TP170B_Color" from project 08_HMI-Panels_DP"
into your own project.
The project contains a basic visualization application for the TP 170B and an
executable S7 program which is operated via the panel.

Procedure 1. Extract the S7 archive "08_HMI-Panels_DP_TN.zip".


2.Open the project 08_HMI-Panels_DP"
3.Copy the touch panel project "TP170B_Color" to your own project

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 12 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 2 : Prepare a touch panel interface


Loader V07.01.01.00_01.34
PROFIBUS OK X
Transfer
Panel is the only master on bus
Station Parameters
Start Address: 1

Timeout: 1 sec
Control
panel
Network Parameters
Transmission Rate: 1.5 Mbits/s

Highest Station: 126

Profile: DP

Bus parameters...

Transfer settings OK X
Channel Directories
S7 transfer settings OK X
Channel 1:
Enable Channel MPI
Serial:
Remote control PROFIBUS
Channel 2:
MPI / Enable Channel
Properties...
PROFIBUS
Remote control Advanced

SITRAIN
IK-PBSYS / HMI Devices Page 13 03/2007
Siemens AG 2007 - Subject to change without prior notice

Task description The interface of the TP170B must be set as shown above so that the WinCC
flexible project can then be downloaded from the PG to the panel.
Before the interface can be parameterized, the Runtime application must be
terminated. A button for ending Runtime is generally displayed in the start screen.
When Runtime has been terminated, the "Loader" is displayed and this can be
used to activate the "Control panel" (see figure above). The Loader also appears
every time the voltage supply is restored.

Procedure 1.Close the Runtime application on the touch panel


2.Activate the "Control panel"
3.Double click on "Transfer"
4.Make the settings illustrated in the figure and keep accepting them with "OK"
until the "Control panel" is displayed again
5.Double click on the "OP" icon
6. Click on the button "Save Registry
7.Return to the loader by closing the control panel.
8.Activate "Transfer" by selecting the "Transfer" button. The TP 170B waits
for the PG to set up a connection in this mode.

Notes Channel: In addition to the serial transfer channel (channel 1), a second
channel (channel 2) for loading the project to the operator
panel can be selected.
Remote Control: The Runtime application need not be ended manually before
the WinCC flexible project loading process is started. The
panel automatically terminates Runtime and switches over to
transfer mode.
Advanced: Transmission parameter settings for MPI or PROFIBUS DP

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 13 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 3 : Set a PG interface

Set PG/PC interface


on PROFIBUS-DP

SITRAIN
IK-PBSYS / HMI Devices Page 14 03/2007
Siemens AG 2007 - Subject to change without prior notice

Task description In order to ensure that the WinCC flexible project can be downloaded from the
PG to the touch panel, the PG interface parameters must be parameterized on
the PROFIBUS DP to match the transfer settings of the touch panel.

Procedure 1.Reconfigure the interface of your PG for PROFIBUS. Use the parameters
shown in the figure above.
Caution:
Do not select "PROFIBUS DP slave" in the "Applied interface
parameters" box
2.Connect the online cable of the PG to a PROFIBUS DP interface.

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 14 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 4 : Test the PROFIBUS DP

Test the
PROFIBUS DP interface

SITRAIN
IK-PBSYS / HMI Devices Page 15 03/2007
Siemens AG 2007 - Subject to change without prior notice

Task description The following are now connected to PROFIBUS:


- The PG: (address 0, active)
- The touch panel: (address 1, active)
- The S7 control: (address 2, active)
- The ET200S: (address 4, passive)
- Possibly a Micromaster MM420: (address 6, passive)

Use the "SIMATIC NET diagnosis" function (see figure above) to check whether
all nodes can be accessed via PROFIBUS.

Procedure 1.Launch the diagnosis function by selecting


SIMATIC Manager Options Set PG/PC interface Diagnosis
2.Click on the "Test" button to check the PROFIBUS network
3.Click on the "Read" button to identify which nodes can be accessed
via PROFIBUS.

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

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 15 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 5 : Test the runtime interface

Configuration

Properties of the
interface Properties of the
PROFIBUS
interface

SITRAIN
IK-PBSYS / HMI Devices Page 16 03/2007
Siemens AG 2007 - Subject to change without prior notice

Task description In order to ensure that the Runtime application on the panel can communicate
with the S7 station during process control, the panel interface must be
parameterized with the hardware configuration tool.

Procedure Check the parameter settings of the panel interface using the hardware
configuration tool. If necessary, adjust the settings as required (see figure).
Check the network settings using the network configuring tool (NETPRO):

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 16 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 6 : Test the connection to the PLC

2xL Connection parameters

Connections

SITRAIN
IK-PBSYS / HMI Devices Page 17 03/2007
Siemens AG 2007 - Subject to change without prior notice

Task description Set up a connection so that the panel Runtime application can communicate with
your trainer PLC.

Procedure 1.Launch WinCC flexible by opening the WinCC flexible station TP170B_Color in
the SIMATIC Manager (see figure on left) and double click on "Connections" in
this screen
2.Check whether your S7 station has been set up as a connection partner.
3.Connect the WinCC flexible variables to the PLC variables by
selecting Options Re-connect select dialog options as illustrated
below ok (select all variables in the variable editor)

4.Generate the whole project again by selecting


Project Generator Regenerate all

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 17 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 7 : Transfer a WinCC flexible project

Transfer to panel

PROFIBUS address
(panel)
Transfer

SITRAIN
IK-PBSYS / HMI Devices Page 18 03/2007
Siemens AG 2007 - Subject to change without prior notice

Task description The specified WinCC flexible project "TP_170B_Color" must be downloaded to
the panel.

Procedure 1.Activate the transfer function and make the settings shown in the figure
2. Start the data transfer to the panel by selecting button
"Transfer"

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 18 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 8 : Test a WinCC flexible project

SITRAIN
IK-PBSYS / HMI Devices Page 19 03/2007
Siemens AG 2007 - Subject to change without prior notice

Task description The WinCC flexible project "TP170B_Color" must be tested in conjunction with
the S7 program for correct functioning:

Procedure 1.Download all S7 blocks from project 08_HMI-Panels_DP" onto your CPU via
PROFIBUS and restart the system.
2.Select the "Belt" display and check whether the output fields are displaying the
following information correctly:
Status of initiators in stations 1 to 3 and the light barrier
Belt fault display
Operating states (system ON, manual and auto modes)
ACTUAL quantity

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 19 HMI Panels and PROFIBUS DP
Automation and Drives

Direct key functionality (DP slave)

PROFIBUS DP

PROFIBUS - DP slave
(direct key functionality)

SITRAIN
IK-PBSYS / HMI Devices Page 20 03/2007
Siemens AG 2007 - Subject to change without prior notice

Initial situation The HMI device connected to PROFIBUS is exchanging data directly with the
CPU (using the S7 protocol) which has been assigned as the communication
partner in the WinCC flexible project.
These S7 packets are packed only for transport reasons into a PROFIBUS
message frame and transmitted via the PROFIBUS medium, i.e. the HMI device
is not connected to PROFIBUS as a DP slave.

Direct keys As a functional extension, "direct keys" provide a limited number of extra inputs
and outputs which can be transmitted much quicker in a PROFIBUS message
frame than the normal variables within the WinCC flexible configuration.
For this reason, they are primarily used as switching functions for high-speed
inputs. These inputs are referred to as direct keys. Their number is dependent
on the type of HMI device.

Configuration Direct keys are basically configured in the three stages:

1.The HMI device is "attached" to the master system as a DP slave.


The input addresses via which the S7 program on the master CPU accesses
the direct keys are also configured at this stage.
2.Buttons with direct key switching functions are configured in the WinCC flexible
project. Bits or values in the input areas configured in stage 1 are ultimately
controlled by these buttons.

3.The S7 program has "quite normal" access to these values by using the
addresses assigned in stage 1 (input signal scanning).

Note The faster reaction time of the "direct keys" function cannot be detected without a
special measurement as it is only a matter of milliseconds faster than the normal
transmission time.

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 20 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 9 : Configure an HMI device as a DP


slave

Drag module to the


PROFIBUS Direct control key module
subnet

Input and output


addresses

SITRAIN
IK-PBSYS / HMI Devices Page 21 03/2007
Siemens AG 2007 - Subject to change without prior notice

General The objects in the folder "Configured stations" are proxy objects (as for an I slave)
which can be dragged to the PROFIBUS subnet.
The HMI device is not displayed in the following screen unless it has already
been configured in STEP7, in which case it can be finally connected to
PROFIBUS.

Procedure 1.The DP slave to be configured is selected from folder PROFIBUS DP


Configured stations SIMATIC OP OP170/TP170B/Mobile
Panels .

2.The DP slave is finally connected to the master system with the Connect
button. The direct control key module for the TP170B is concealed behind
object TP170B and is dragged to an empty "slot" of the slave.
Finally, the input and output addresses can be adjusted if required.

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 21 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 10 : Configure direct key functions

"Direct key" (only for New buttons


"Press" event) "Direct" left / right

Assign bit number

SITRAIN
IK-PBSYS / HMI Devices Page 22 03/2007
Siemens AG 2007 - Subject to change without prior notice

Task description Your task is to configure two additional buttons in the TP 170B project ("Belt"
display). The "Direct key" is configured as a button function (e.g. a button which is
pressed).

Procedure 1.Assign the function Direct key from the folder Keyboard to both buttons.
2.Assign the correct bit number. The range of possible numbers corresponds to
the input area specified in the hardware configuration when the TP170B was
configured as a DP slave.
In this specific case, the input area is IB4 - IB7 (I4.0 corresponds to
bit 0).
"Direct" left I4.3
"Direct" right I4.2
3.Save and generate the modified TP 170B project.
4.Download the changes to the touch panel. Test the functions that you will
require, e.g. using a variable table, and monitor the signal states of the
assigned inputs in response to actuation of the buttons on the TP 170B

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 22 HMI Panels and PROFIBUS DP
Automation and Drives

Exercise 11 : Programmed access

"Direct key" for


"Jog right" function

"Direct key" for


"Jog left" function

SITRAIN
IK-PBSYS / HMI Devices Page 23 03/2007
Siemens AG 2007 - Subject to change without prior notice

Programming A "Direct key" produces a "1" signal for as long as the key is pressed, i.e. as soon
as the key is released, it automatically generates a "0" signal. Signal states are
scanned in a similar way to standard access operations to the process images
(PII, PIA).

Procedure 1.Open the block FC16 FC_Belt_Motor"


2.Program any necessary supplementary functions (see figure)
3.Save and load the modified block FC16
4.Test the function Jog left/right by pressing the buttons on the TP 170 B.

Note The faster reaction time of the "direct keys" function cannot be detected without a
special measurement as it is only a matter of milliseconds faster than the normal
transmission time.

SITRAIN training for IK-PBSYS


Automation and Industrial Solutions Page 23 HMI Panels and PROFIBUS DP