TIA MICRO1 10E Connecting HMI KTP600
TIA MICRO1 10E Connecting HMI KTP600
TIA MICRO1 10E Connecting HMI KTP600
Contents 10
10. Connecting an HMI device ................................................................................... 10-2
10.1. Task Description: Operating the ‘Plant’ via the Touchpanel ............................................... 10-3
10.2. Introduction to HMI: Data Exchange between Touchpanel and CPU................................ 10-4
10.2.1. Buttons and Input / Output Fields ....................................................................................... 10-5
10.2.2. WinCC - Basic Configuration Interface ............................................................................... 10-6
10.2.3. Adding an HMI Device ........................................................................................................ 10-7
10.2.4. Configuring the IP Address of a Touchpanel ...................................................................... 10-8
10.2.5. Networking a Touchpanel ................................................................................................... 10-9
10.2.6. Configuring an HMI Connection ........................................................................................ 10-10
10.2.6.1. HMI Connection: Entering the CPU Password ................................................................. 10-11
10.2.7. Setting the IP Address on the Touchpanel ....................................................................... 10-12
10.2.8. Downloading an HMI Project into the Touchpanel............................................................ 10-13
10.3. Adjusting the S7 Program with "Rewire" ........................................................................... 10-14
10.4. Exercise 1: Copying the Touchpanel Project .................................................................... 10-15
10.4.1. Exercise 2: Networking the Touchpanel ........................................................................... 10-16
10.4.2. Exercise 3: Configuring the HMI Connection .................................................................... 10-17
10.4.3. Exercise 4: Checking the HMI Tag Connections .............................................................. 10-18
10.4.4. Exercise 5: Setting the IP Address on the TP ................................................................... 10-19
10.4.5. Exercise 6: Downloading the HMI Project into the Touchpanel ........................................ 10-20
10.4.6. Exercise 7: Operating the ‘Plant’ via the Touchpanel ....................................................... 10-21
10.5. Additional Information ....................................................................................................... 10-22
10.5.1. HMI device wizard ............................................................................................................. 10-23
P_Operation Q 4.1
Industrial
Ethernet
Task Description
The touchpanel project is to be commissioned and the S7 program of the controller is to be
adjusted in such a way that…
• the functions "Operation ON/OFF" and "Jog Right/Left" are no longer realized via the
simulator switches but via the buttons on the Touchpanel
• the acknowledgement of a conveyor fault should still be possible via the simulator switch
"S_Acknowledge" (I 0.7), and, in addition, also via the corresponding button on the
Touchpanel
• the SETPOINT quantity is no longer constant 3, but can be specified via an input/output field
on the Touchpanel
"S_Left"
(M30.3)
Status '0' / '1'
Update
• PROFIBUS e.g. every 500ms
• Industrial Ethernet
Tags
Data is exchanged between SIMATIC S7 and the HMI system via tags. In the configuration of the
HMI device, the screen objects, such as buttons and input/output fields are linked to HMI tags
which in turn are connected to PLC tags of the CPU. The HMI system cyclically exchanges the
values between these tags. Data is transferred cyclically between SIMATIC S7 and the HMI
system, that is, process variables are cyclically read by the HMI device depending on the
configured update time.
HMI Tags
HMI tags can be connected to the global PLC tags or to the following global data areas of the
CPU:
• Data blocks (DB)
• Bit memories (M)
• Inputs (I) and outputs (Q)
• Peripheral inputs and outputs
HMI systems also recognize local tags without a link to the PLC, i.e. these tags are exclusively
processed internally and also do not reserve any communication resources whatsoever.
Communication
The operator panels can communicate with the (PLC) controller via the PROFIBUS or Industrial
Ethernet bus systems. The S7 protocol is used for this purpose. Communication is handled by the
operating systems of the S7 CPU and the HMI system. There is no user programming effort
required. An operator panel can also exchange data with several (PLC) controllers.
Input / Output
field
Button
Event
Action
Buttons
System functions can be initiated by the operator via buttons, such as, the selection of a screen
or the setting and resetting of a tag (shown in the picture above). The "Events" of a button are
used to specify for which event which system function is to be executed.
I/O Fields
The values of tags are displayed via output fields. The values of tags can also be preset via input
fields. The mode can be set in the Properties window.
Tools,
such as, Buttons,
Input / output fields
Working area
HMI Device
Details view
Properties,
such as, of a button
Project Window
In the Project tree, all devices and their configuration and parameter assignments are displayed
in a tree structure. From there, the relevant editors can be opened. Furthermore, the "language
support" and the "version management" can also be found here.
Working Area
This is the central configuration area in which objects of the operator panel are edited with the
started editor. Several editors can be open at the same time.
Properties Window
The properties of selected objects (for example, of screens, screen objects, tags) can be edited in
the Properties window. This window is only available in those editors where object properties
must be set.
Toolbox Window
The toolbox window contains all configurable objects which can be configured in screens and
permits access to libraries.
Portal view
Project view
Show / Hide
IP addresses
Networking
During networking, devices are connected to a subnet. The device interface must be compatible
with the type of network. The devices are networked with the "Devices & networks" editor in the
"Network" view by connecting the device interfaces using drag & drop.
Password for
HMI access
Connection
The configured connections are visible in the Connections of the HMI device.
Transfer Settings OK
Channel 1:
Ethernet X Enable Channel
IP - Address
Loader V01.00.00.01_19 Control Panel OK
Specify an IP address
Transfer
IP address 192 168 111 101
Remote Control
You can initiate the loading of the WinCC flexible project without having to first manually end the
Runtime of the HMI device. The Panel automatically ends the Runtime and switches to the
Transfer Mode.
1xR
1xR
Task
Your project currently doesn’t contain an HMI device. Instead of a completely new configuration,
you are to copy a prepared panel project from the global library "Micro1_Lib" into your project.
What to Do
1. Using drag & drop, copy the library element "Touchpanel" from the global library "Micro1_Lib"
into your project (see picture)
2. Save your project
Show / Hide
IP addresses
Task
The added touchpanel is to be networked with the Ethernet network.
What to Do
1. In the Project tree, start the "Devices & networks" editor and switch to the "Network" view
2. Position the mouse pointer on the small green square of the HMI device and, while keeping
the left mouse button pressed down, drag a connection to the CPU. The network is created;
the associated subnet and the parameters appropriate for the network (IP address and subnet
mask) are automatically created
3. ‘Show’ the IP addresses of the CPU and the touchpanel using the button highlighted in the
picture
1. Select
Connections
Task
Now that the TP is networked with the Ethernet network, an HMI connection between the TP and
the CPU must be created. This connection is to give the name "TP-CPU" because this name is
already used in panel project from the library.
What to Do
1. In the Project tree, start the "Devices & networks" editor and switch to the "Connections" view
and there select "HMI connection"
2. Position the mouse pointer on the small green square of the HMI device and, while keeping
the left mouse button pressed down, drag a connection to the CPU. The network is created
and given a default name
3. Drag open the window containing the connection table (see picture) and rename the
connection "TP-CPU"
Task
Several HMI tags are already connected to PLC tags (inputs and outputs whose addresses are
defined by the conveyor model ‘wiring’). Others still must be connected by you.
What to Do
1. Open the "HMI tags" of the HMI device
2. Connect the HMI tags that are not yet connected to the corresponding PLC tags
3. Save your project
Transfer Settings OK
Channel 1:
Ethernet X Enable Channel
IP - Address
Loader V01.00.00.01_19 Control Panel OK
Specify an IP address
Transfer
IP address 192 168 111 101
Task
The interface of the touchpanel is to be set as shown in the picture so that the configuration can
then be loaded into the panel.
Runtime must be exited before the interface can be assigned parameters. For this, a button for
exiting Runtime is generally provided in the Start screen. When Runtime has been exited, the
"Loader" appears through which the " Control Panel" can be activated. The Loader also appears
every time power is restored.
What to Do
1. Exit the Runtime of the Touchpanel
2. Activate the Control Panel
3. Select "Transfer" by double-clicking on it
4. Implement the settings shown in the picture
5. Go back to the Loader by closing the windows with "OK"
6. Activate the "Transfer" button so that the touchpanel waits for a connection to be established
by the PG
1xR
Task
From the now complete project, all S7 blocks will be downloaded once more from the
programming device into the CPU and the entire panel project will be transferred from the
programming device into the touchpanel.
What to Do
1. Completely compile the entire CPU program and the entire panel project
2. In the Inspector window, in the "Compile" tab, check whether the compilation was successful.
If need be, make the necessary corrections
3. Download all S7 blocks into the CPU
4. Download the panel project into the Touchpanel
5. Save your project
DI
S_ON "S_OperationON" "S_OperationOFF
4 7 1 1 (M30.0) (M30.1)
S_OFF(NC)
S_Right
S_Left
DO
P_Operation
S_Ackn. P_Fault
"S_Left" "S_Right"
(M30.3) (MW20)
S_FAult1. P_Fault1
S_FAult2. P_Fault2
S_FAult3. P_Fault3
Task
The touchpanel project is to be commissioned and the S7 program of the controller is to be
adjusted in such a way that …
• the functions "Operation ON/OFF" and "Jog Right/Left" are no longer done using the
simulator switches but instead are done using the touchpanel buttons
• acknowledgement of conveyor faults should be possible, as before, via the simulator switch
"S_Acknowledge" (I 0.7), and in addition via the corresponding button on the Touchpanel
• the SETPOINT quantity is no longer to be constant 3, but can be specified via an input/output
field on the touchpanel (the display of the ACTUAL quantity is already configured)
What to Do
1. Establish the functions "Operation ON / OFF" and "Jog Left / Right" by rewiring the variables
"S_ON", "S_OFF (NC)", "S_Right" and "S_Left" used up until now to the absolute addresses
M30.0, M30.1, M30.2 and M30.3 shown in the picture
2. Establish the function "Acknowledge fault" by also connecting the memory bit "M_AcknHMI"
(M30.7) shown in the picture in addition to the already connected simulator switch
"S_Acknowledge" (I 0.7)
3. Establish the function "Setpoint" by exchanging the constant (=3) used in the program with
the memory word "MW_SETP" (MW22)
4. Download all modified blocks into the CPU
5. Check all required functions
6. Save your project
Device Wizard
The HMI device wizard can be used to preset some settings for the device to be inserted. It’s a
step-by-step dialog-based wizard.