Professional Documents
Culture Documents
2016 MIA - 37 SIMATIC S7-1200 Workshop Labs PDF
2016 MIA - 37 SIMATIC S7-1200 Workshop Labs PDF
Ken Sechnick
Task Cards –
HW Catalog
Editor view –
Project Tree – PLC, HMI
Device & Networks
and Drive project data
Inspector
Window
Unrestricted © Siemens Industry, Inc. 2016 All rights reserved. Status Bar
Page 4
TIA Portal editor layout
Unrestricted © Siemens Industry, Inc. 2016 All rights reserved. Minimized Editors
Page 5
TIA Portal editor layout
Project Tree –
PLC project data
Project Tree –
HMI project data
Task Cards –
Screen objects
and tools
A clear understanding of how the TIA Portal can integrate PLC and HMI in ONE software
environment
Understand how the Library feature can help them reuse program parts that have already
been developed
Experience how a project with PLC and HMI can be configured and working in a short time
Page 9
Configuring Hardware
Overview
1. Create a new project and add an Unspecified CPU S7-
1200
2. Auto-detect the S7-1200 in Demo kit
3. Configure CPU and write a simple latching circuit
3
2
1
4
Unrestricted © Siemens Industry, Inc. 2014 All rights reserved.
Page 16 April 11, 2016
2
2
1
3
Overview:
1. Add preconfigured PLC tag and watch tables from the
Library
2.Use watch tables to monitor and modify I/O values on the
demo unit
3. Add test logic for potentiometers on demo kits
Unrestricted © Siemens Industry, Inc. 2016 All rights reserved.
Page 27
Background Information: LIBRARIES
2 kinds of libraries
1. Project library
Unique for each project
Attached to the project (opened,
saved and closed with project) Types
2. Global library
Independent from projects
Types Master copies
For cross-project use of objects
Can be saved on local PC or on
a company server
Master copies
Elements Global library
Master copies: work as a clipboard
Type: instance principle
Project library
Unrestricted © Siemens Industry, Inc. 2016 All rights reserved.
Page 28
Background Information: LIBRARIES
Elements that can be stored in a Library
Program blocks
Devices (PLC, HMI, etc.) Project library
Watch tables
Additional folders for
Data types organization
Templates
Variables Global libraries
HMI screens
Elements in a library
Scripts are divided in types &
Alarms master copies
And others
Parts of the selected
element are shown
1
3
4
1
2
3
1
2
3
1. Save project.
2. Click the Monitor on button in the LAD toolbar.
3 Adjust the top and bottom potentiometers and
note the change in the Scaled_Value.
3. Right click on the Bottom Potentiometer High
Limit setting. Choose Modify -> Modify operand…
4. Change the value to 75.0 and click OK. Note
change in Scaled_Value.
Unrestricted © Siemens Industry, Inc. 2014 All rights reserved.
Page 49 April 11, 2016
1. Right click on the second Analog_Scaling block.
Select Open and monitor…
2. Note the value of 75.0 in the #High_Limit (MAX)
input of the SCALE_X block. This indicates
1 monitoring of the Bottom Potentiometer.
Overview:
1. Add a Basic Panel HMI to the project
2. Use the HMI Device Wizard to connect it to the S7-1200
PLC and PROFINET Network, and to create default screens
and screen navigation
3. Complete the S7-1200 demo IO Test Screen
2 3
1 reserved.
Unrestricted © Siemens Industry, Inc. 2016 All rights
Page 63
Adding Preconfigured HMI tags from Library:
1. Click on the Libraries tab on the right side of the
screen.
2. From the S7-1200 Intro library, HMI folder, drag and
drop the S7-1200 Demo IO HMI Tags object into the
HMI tags folder of the Project tree. A new HMI tag
table will be created.
2
Unrestricted © Siemens Industry, Inc. 2016 All rights reserved.
Page 64
Replace IO Test Screen with screen from Library:
1. From the S7-1200 Intro library, HMI folder, drag and drop the IO
Test Screen object into the Screens folder of the Project tree.
2. In the pop-up window, click the Replace existing objects and
move to this location radial button and click OK.
3. Double click on IO Test Screen from the Screens folder to open.
2
3
4
Customer Benefit -> Common project database:
The common tag database for a single project in the TIA Portal 2
allows users to browse for tags in multiple connected PLCs
from an HMI. Any time a tag is changed in the PLC
configuration (i.e. assigned to a different address), the HMI tag
Unrestricted © Siemens Industry, Inc. 2016 All rights reserved.
is automatically rectified to match.
Page 66
Add another switch for S1:
1. Click on the Libraries tab on the right. Navigate to Buttons and
switches -> Master copies -> LeverSwitches. Drag and drop
Lever_Vertical_3 onto the screen.
2. Click on switch graphic and position next to S2.
3. In Properties -> General, select the button. Navigate to the
2 PLC tags folder of the S7-1200 and select the Default tag table.
4. Scroll to find and select Switch1. Click the green check.
4
1
1
3
1
4
2 5
2 reserved.
Unrestricted © Siemens Industry, Inc. 2016 All rights
Page 71
1. Save project.
2. Click on the KTP700 HMI in the project tree.
1 3
3. Click Download.
4. In the Extended download to device window, ensure that
the proper Ethernet settings are chosen. Click Start
search.
5. Once the HMI is found, select it and click Load.
Overview:
1. Add tags and code to PLC to display Potentiometer
values
2. Add HMI objects to display Potentiometer values
3. Test CPU and HMI changes
1
2
3
4
2
3
1
Unrestricted © Siemens Industry, Inc. 2016 All rights reserved.
Page 87
1. Change the text of the Text Field below High
Limit to “Low Limit”.
2. Click on the IO Field. Change the Process Tag
from High_Limit to Low_Limit. Click the green
check.
3
4 The next step is to create a method to select which
potentiometer values are displayed on the screen. We will
configure this using a Text list and a Symbolic IO Field.
Configure Text list:
1. Double click on Text and graphic lists in the Project tree
of the KTP700.
2. Add a new Text list. Name it Potentiometer. Set
Selection to Value/Range.
1
3. Add a Text list entry. The value is “0”. The Text value
is “Top Potentiometer Scaling Parameters”.
4. Add a second Text list entry. The value is “1”. The Text
value is “Bottom Potentiometer Scaling Parameters”.
Unrestricted © Siemens Industry, Inc. 2016 All rights reserved.
Page 90
2
1 reserved.
Unrestricted © Siemens Industry, Inc. 2016 All rights
Page 91
5