SCE - EN - 014-101 Hardware Configuration IOT2000EDU - R1806
SCE - EN - 014-101 Hardware Configuration IOT2000EDU - R1806
SCE - EN - 014-101 Hardware Configuration IOT2000EDU - R1806
siemens.com/sce
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved.
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
Note that these products and trainer packages are replaced with successor packages when necessary.
You can find an overview of the currently available SCE packages at: siemens.com/sce/tp
Continued education
For regional Siemens SCE continued education, get in touch with your regional SCE contact:
siemens.com/sce/contact
This document is to be used only for initial training on Siemens products/systems, which means it can be copied
in whole or part and given to those being trained for use within the scope of their training. Circulation or copying
this Learn-/Training Document and sharing its content is permitted within public training and advanced training
facilities for training purposes.
Exceptions require written consent from the Siemens AG contact person: Roland Scheuerer
roland.scheuerer@siemens.com.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 2
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
Offenders will be held liable. All rights including translation are reserved, particularly if a patent is granted or a
utility model or design is registered.
Use for industrial customer courses is explicitly not permitted. We do not consent to commercial use of the
Learn-/Training Document.
We would like to thank Michael Dziallas Engineering and all those involved for their support in creating
this SCE Learn-/Training Document.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 3
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
Table of contents
1 Objective.......................................................................................................................................... 5
2 Requirement .................................................................................................................................... 5
4 Theory ............................................................................................................................................. 7
4.3.4 Establishing the SCP/SFTP connection for the file transfer .............................................. 21
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 3
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
5 Task ............................................................................................................................................... 49
6 Planning......................................................................................................................................... 49
7.6 Downloading the hardware configuration to the PLCSIM simulation (optional) ......................... 64
7.8 Checklist................................................................................................................................. 69
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 4
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
2 Requirement
Nothing is required from other chapters to successfully complete this chapter.
You only need an IOT2000 (here IOT2040) with the SIMATIC IOT2000EDU Software Controller
executable on IOT2020 and IOT2040, a MicroSD Card and an IO-Shield.
Additionally, you need a PC with the STEP 7 Professional V15 (TIA Portal V15) software and a
few freely available tools that are explained in the course of the document.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 5
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
3 Software for writing the example image on the SD card, e.g. Win32 Disk Imager
6 SIMATIC IOT2000 controller, e.g. IOT2040 with MicroSD Card and IO-Shield
8 SIMATIC IOT2000EDU
6 SIMATIC IOT2000 Controller Software Controller
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 6
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
5 Theory
5.1 SIMATIC IOT2000
SIMATIC IOT2000 is a micro PC system based on Intel X1000 SoC (System on Chip). IOT2000
uses the Linux operating system, which can be oriented to individual requirements with the help
of the Yocto project.
The so-called GPIOs (General Purpose Input/Outputs), which are accessible from the outside
with the help of the header, can be programmed and used in many different ways, e.g. Java or
C++, but also using the TIA Portal.
This module teaches you step-by-step how to program the IOT2000 with the TIA Portal. The TIA
Portal programming is described in the following sections.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 7
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
An Arduino UNO-compatible header is available in each version and can be used to put any
Arduino shields into operation. The option also exists to develop and use your own shields.
The programming is different, depending on the shield. The TIA Portal is only able to use the
individual GPIOs (General Purpose Input/Outputs) as pure digital and analog inputs and outputs.
Higher functions, such as I²C (Inter-Integrated Circuit) or SPI (Serial Peripheral Interface), are not
usable.
A MicroSD card is needed for the operating system. The "Operating system from Siemens"
needs a minimum of 2 GB.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 8
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
5) LED display
6) Left cover
7) Right cover
8) Securing device
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 9
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
12) Ethernet interface 10/100 Mbps, prepared for PoE (Power over Ethernet)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 10
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
LED displays
The LEDs on the front side of the device indicate the operating state:
– The PWR (green) LED indicates whether the system is supplied with voltage.
– The USB (green) LED indicates whether 5 V is available for the USB port
– The USER (green/red/orange) LED can be programmed via the operating system
(not via the TIA Portal)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 11
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
The installation of the needed software is described in the following steps. The following things
are needed on the engineering station for this:
– Tool for writing the example image to the SD card, e.g. Win32 Disk Imager:
https://sourceforge.net/projects/win32diskimager
Note: The required software should also be available on each website as a portable version.
These versions require no software installation.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 12
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Connect the SD card to the computer or insert it into the SD card reader.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 13
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® For the Image File, select the example image "example-v2.2.0.wic" you just unpacked. Be
sure to select the file type "*.*"
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 14
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Select the device, making sure that it is the micro SD card. Then click on "Write".
® Close the Win32 Disk Imager after the successful write operation.
® Disconnect the SD card from the computer and insert it into the – disconnected from the
voltage source – IOT2000.
Note: The SD card has now been divided into two partitions by the image. Windows can read
only the first of these partitions. Both partitions should no longer be opened with Windows if
possible.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 15
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
For the PC and SIMATIC IOT2000 to communicate with one another via IP, it is important that
the IP addresses of both devices match.
First, it is shown here how the IP address of a PC can be set with the Windows 10 operating
system.
® Locate the network icon in the task bar at the bottom and click on ® "Network & Internet
settings".
® In the Network settings window that opens, click on ® "Change adapter options".
Note: The notation 192.168.200.1/24* contains information for the IP address and for the subnet
mask 255.255.255.0 with 24 bits to 1.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 16
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Select the desired ® "LAN connection" you want to use to connect to the controller and click
® "Properties".
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 17
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® You can now use the following IP address, for example, ® IP address: 192.168.200.99 ®
Subnet mask 255.255.255.0 and accept the settings (® "OK")
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 18
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
Important: Unlike the Windows command line, the shell of the Linux system is case-sensitive. In
addition, there are no drives with letters (C:\ or D:\). Instead, there is just the root directory whose
file path is "/". All directories and path information are separated from one another with a forward
slash "/". The backward slash "\" used for paths under Windows is an escape character and, in
most cases, has undesired consequences in commands.
® Start PuTTY
® Under Host Name (or IP address), enter the IP and the Port of the IOT2000 ( ® Host
Name: 192.168.200.1 ® Port: 22)
® Select the SSH item under Connection type ( ® Connection type: SSH)
Note: The notation 192.168.200.1/24* contains information for the IP address and for the subnet
mask 255.255.255.0 with 24 bits to 1.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 19
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
Note: Like in the case of an HTTPS connection, the identity of the partner is checked in the SSH
connection. This is done using the fingerprints of the SSH key. If a connection to a partner (IP or
host name) is being established for the first time, the fingerprint must be manually confirmed and
thus cached. In this way it is ensured that the connection partner is not an unknown third party
(attacker).
® Enter the user name root for the login and confirm the entry with ENTER ( ® Login as: root,
® Enter )
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 20
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Start WinSCP
® Enter the IP and the Port of the IOT2000 ( ® Host Name: 192.168.200.1 ® Port: 22).
® Enter the user name root under User name ( ® User name: root).
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 21
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® You should now have two file browsers side-by-side. On the left side is the local
programming device and on the right side is the IOT2000 with its directories.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 22
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
The iot2000setup tool can be used for changing the IP address. Alternatively, the file
/etc/network/interfaces can be edited. Both methods are shown in the following.
® Enter the command iot2000setup in the shell and confirm the command with the Enter key (
® iot2000setup ↵)
Note: The display results from the character set that is set within PuTTY (UTF-8). But, don't let it
bother you. It doesn't affect how the program works. The character set can be changed to ISO-
8859-15 in the Sessions settings under Window ® Translation.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 23
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Use the arrow, tab and Enter keys to navigate to menu item ® Networking ® Configure
Interfaces.
® Change the address for the eth0 interface to 192.168.0.1 ( ® eth0: 192.168.0.1).
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 24
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
Note: The IP address is immediately changed and a new connection can only be established
again when the programming device is also in the corresponding subnet!
® Adapt the address of the engineering station to the new subnet and establish an SSH
connection to the IOT again.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 25
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
Experienced users can directly edit the file in the shell, e.g. with nano. Less confident users
should edit the file with the help of WinSCP. This is explained on the next page.
® Start nano and transfer the file path /etc/network/interfaces as the parameter ( ® nano
/etc/network/interfaces ↵).
® You can exit the program again with key combination Ctrl+X. ( ® Ctrl+X)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 26
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Right-click on the interfaces file and select the Edit menu item.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 27
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Adapt the desired values in the editor and click on Save at the top left (Ctrl+S).
® The file is now automatically saved on the IOT2000 (see main window)
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 28
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
5.4.1 Installation
The DVD contains an ipk file named "IOT2000EDU_1.1.0_i586.ipk".
® Navigate on the local left side to the DVD or the folder with the IOT2000EDU_1.1.0_i586.ipk
file.
® Drag the IOT2000EDU_1.1.0_i586.ipk file onto the right side to copy it from the local
programming device to the IOT2000.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 29
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 30
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® You can have the content of the current directory listed with the ls command
( ® ls -l ↵).
® Use opkg to check the status of the installation ( ® opkg info IOT2000EDU ↵).
Note: The runtime runs in this way in the foreground. If the SSH connection is closed, the
runtime also stops. To manually exit the program, use key combination Ctrl+c.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 31
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
5.4.2 Autostart
So that the IOT2000EDU Runtime also starts up automatically each time the system starts, a
separate script is needed. This "iot2000edu" script is not included on the DVD, but can be
downloaded on the Internet at www.siemens.com/sce/iot2000/modules, Module „SCE_EN_014-
101 Hardware Configuration IOT2000“ under "Documents".
The iot2000edu script file must be copied to the IOT2000 with the help of WinSCP.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 32
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Use update-rc.d to add the iot2000edu script to the autostart (® update-rc.d iot2000edu
defaults ↵).
® The start script can also be used manually to start or stop the runtime in the background ( ®
/etc/init.d/iot2000edu start ↵ ® /etc/init.d/iot2000edu start ↵).
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 33
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
This sample configuration is intended for the SIMATIC IOT2000 IO-Shield produced by Siemens.
If you use a different shield, a compatible io.conf must be created.
The addresses for programming on TIA Portal in combination with the interface assignment of the
SIMATIC IOT2000 IO Shield and the pins on the arduino header are as follows:
In the first step, the sample configuration will be used as the configuration for the IOT2000EDU
Runtime. The io.conf.sample should be copied to the io.conf file for this. The option also exists to
rename the file, but this comes with the risk that you may no longer be able to revert back to the
original in the case of an erroneous configuration.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 34
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Right-click the io.conf.sample file and select Duplicate in the shortcut menu.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 35
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Specify io.conf for the target file ( ® Target remote path: /home/root/ IOT2000EDU/io.conf).
® Restart the IOT2000EDU Runtime: either by a reboot or using the start script. You must use
an SSH connection in either case ( ® /etc/init.d/iot2000edu restart ↵).
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 36
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
The configuration file is kept in JSON format and must be able to be interpreted error-free as
JSON by the runtime. You can find a visual online editor on the website
https://jsoneditoronline.org/. The website checks the syntax and is relatively intuitive to use. The
data can be exchanged between the editor in WinSCP and the online editor with copy & paste. It
is best to use WinSCP for editing the configuration. Windows and Linux have different control
characters for representing a line break. If you edit or create the file with a Windows editor, e.g.
Wordpad or Notepad, this can lead to problems.
The configuration file contains a JSON object, which is subdivided into five JSON lists:
– __comments
– address_space
– gpio
– analog
– pwm
The __comments section contains general descriptions, such as the name of the configuration,
etc., and is intended more for the user than for the runtime.
The address_space section contains the start addresses for the digital and analog inputs and
outputs. You can find an exact description starting in section 7.1 Configuring and operating
shields in document S7 Software Controller IOT2000EDU on the IOT2000EDU DVD. The
important thing here is the size of the memory that is allocated starting from the start address:
The digital inputs and outputs are defined In the gpio section. Each digitally used GPIO receives
its own small section, which defines the port as an input or output via the pin number and assigns
it a start value.
{
"pin": 4,
"is_output": 0,
"initial_value": 0
}
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 37
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
The analog inputs are defined in the analog area. The ADC (analog-to-digital converter) of the
X1000 processor is also activated via the pin number. The resolution of the ADC must also be
specified. A 2-byte integer is returned irrespective of the resolution setting.
{
"pin": 0,
"pin_resolution": 9
}
The analog or PWM (pulse-width modulation) outputs are declared in the pwm section, since the
processor does not have a proper DAC (digital-to-analog converter). Here too, the pin number of
the desired PWM port is specified in the configuration. In addition, the period of the PWM signal
is set (between 667 us and 41665 us).
{
"pin": 9,
"period_us": 10000
}
To find out which function is available at which pin, refer to the following figure and table. In
addition, the input and output addresses, based on the sample configuration, are inserted for
later use in the TIA Portal.
The precise details can be found in section 7.2 Configuring the Arduino Shield, of operating
manual
S7 Software Controller IOT2000EDU on the Runtime DVD.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 38
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
Note: Of course, each pin can be used only once in the configuration: either as a digital input,
digital output, analog input or PWM output!
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 39
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
– Programming
– Documentation
– Creation of visualizations for SIMATIC Basic Panels with integrated WinCC Basic.
5.5.1 Project
You create a project in the TIA Portal for performing an automation and visualization task. A
project in the TIA Portal contains the configuration data for the installation and networking of
devices as well as the programs and the configuration of the visualization.
In this case, the hardware of SIMATIC IOT2000 automation systems consists only of the
controller (CPU). There are no signal modules here as there are in other control systems, and
field devices are not yet supported at present.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 40
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
The functionality needed and the environmental conditions are of critical importance for planning
the hardware configuration. For example, the temperature range in the application area is one of
the limiting factors for selecting possible devices. Fail-safe capability could be another
requirement.
The TIA Selection Tool (select Automation technology ® TIA Selection Tool and follow the
instructions) offers you support. Note: The TIA Selection Tool requires Java.
Notice for online research: To obtain the device specifications, look for the manual described
as "Product Manual" or "Manual" among the various manuals listed.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 41
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
The portal view provides you with a task-oriented view of the tools for working with the project.
Here, you can quickly decide what you want to do and open the tool for the task at hand. When
needed, the system automatically switches to the project view for a selected task.
Figure 1 shows the portal view. You have the possibility to change between this view and the
project view at the bottom left.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 42
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
The project view, as shown in Figure 2, is used for hardware configuration, programming,
creation of the visualization and many other tasks.
With the default setting, the menu bar containing the toolbars is at the top, the project tree
containing all the components of a project is on the left and the so-called task cards containing
instructions, libraries, etc. are on the right.
If an element is selected in the project tree (for example, the device configuration), it is displayed
in the middle and can be worked on there.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 43
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® The user can make customized default settings for certain settings in the TIA Portal. Some of
the important settings are shown here.
® In the menu of the Project view, select ® "Options" and then ® "Settings".
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 44
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® A basic setting is the choice of user interface language and the language for the program
display. English is used for both settings in this document.
® In the ® "General" item of "Settings", select ® "English" for "User interface language" and
® "International" for "Mnemonics".
Note: These settings can always be changed back and forth between "English" and
"International".
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 45
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® To do this, start the Totally Integrated Automation Portal (® TIA Portal V15).
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 46
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Under ® "Installation of Support Packages", select the ® "Add from file system" action.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 47
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Now, select ® "HSP0245 IOT2000EDU 1.1" from the list of local support packages and click
® "Install".
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 48
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
6 Task
Create a project and configure the compact CPU of your hardware that corresponds to a part of
the SIMATIC IOT2040 trainer package.
7 Planning
Because a new system is involved, a new project must be created.
The hardware is already specified for this project with the SIMATIC IOT2040 trainer package. For
this reason, no selection has to be made. Instead, the listed CPU of the trainer package only has
to be inserted in the project. To ensure that the correct module is inserted, the order number from
the task should be checked one more time directly on the mounted devices (see Table 1).
For the configuration, the Ethernet interface must be set for the CPU. For the digital and analog
inputs and outputs, the address ranges according to Table 1 are set.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 49
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® In the portal view, select ® "Create new project" under the "Start" menu command.
® Edit Project name, Path, Author and Comment as appropriate and click ® "Create".
® The project is created and opened, and the "Start" menu "First steps" opens automatically.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 50
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® In the "Devices & networks" portal, the "Show all devices" menu opens.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 51
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® The specified model of the CPU will now be added as a new device (PC systems ®
SIMATIC IOT2000EDU ® 6ES7 671-0LE00-0YB0 ® V1.1).
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 52
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Click ® "Add".
Note: A desired CPU may come in multiple variants that differ in their functional scope (work
memory, integrated memory, technology functions, etc.). In this case, you should ensure that the
selected CPU corresponds to your requirements.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 53
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
The TIA Portal now automatically changes to the project view and displays the selected CPU in
slot 1 of a standard mounting rail in the device configuration.
Note: You can now configure the CPU there according to your specifications. Settings for the
PROFINET interface, startup characteristics, cycle, password protection, communication load
and many other options are possible here.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 54
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 55
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® On the ® "Properties" tab, open the ® "IOT Interface" menu and select the ® "Ethernet
addresses" entry there.
® Under "Interface networked with", there is only one entry available: "Not networked".
® The "IP address" and "Subnet mask" must match the address set in the operating system.
Note: The TIA Portal is not able to change the IP settings of the IOT2000 and cannot
communicate with the device if the IP address is configured incorrectly.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 56
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
button.
® To compile your CPU with the device configuration, first select the ® "CPU_IOT2040
[IOT2000EDU]" folder and click the ® "Compile" button .
Note: You should use the "Save project" function periodically when working on a project because
saving does not occur automatically. The only time you are prompted to save the project is when
you close the TIA Portal.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 57
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 58
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® First, the interface must be correctly selected. This is done in three steps:
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 59
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® The field ® "Show all compatible devices" must be selected, and the search for devices in
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 60
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® If your CPU is displayed in the "Compatible devices in target subnet" list, select it and start
the download. (® IOT2000EDU ® "Load")
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 61
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® You first receive a preview. Any red marked fields in the "Action" column must be manually
confirmed. Continue with ® "Load".
Note: In the "Load preview", you should see the symbol in each line. You can see additional
information in the "Message" column.
® Select the ® "Start module" option before completing the download operation with ®
"Finish".
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 62
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® The project view is opened again automatically after a successful download operation. A
download report appears on the "General" tab of the Info field. This can be helpful for
troubleshooting if the download operation was unsuccessful.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 63
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® First, start the simulation by selecting the ® "CPU_IOT2040 [IOT2000EDU]" folder and
® Confirm the notice "Starting simulation will disable all other online interfaces" with ® "OK".
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 64
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Shortly afterward you see a preview for the download in the TIA Portal. Continue with ®
"Load".
Note: In the "Load preview", you should see the symbol in each line. You can see additional
information in the "Message" column.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 65
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® The project view is opened again automatically after a successful download operation. A
download report appears on the "General" tab of the Info field. This can be helpful for
troubleshooting if the download operation was unsuccessful.
® The PLCSIM simulation has the following appearance in the project view. You can change
back to the compact view of the simulation by clicking the ® button in the menu bar.
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 66
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® To control inputs and outputs, use menu item ® "Insert" and add an ® "Input"
® On the new sub-window "IB0", you must now also enter the correct address of the input byte
® "IB100"
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 67
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
® Select a folder in which you want to archive your project and save the project as file type
"TIA Portal project archive" (® "TIA Portal project archive" ® "SCE_EN_014-101_Hardware
Configuration_IOT2000…" ® "Save").
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 68
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
8.8 Checklist
9 Additional information
More information for further practice and consolidation is available as orientation, for example:
Getting Started, videos, tutorials, apps, manuals, programming guidelines and trial software /
firmware, under the following link:
www.siemens.com/sce/iot2000
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 69
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc
Learn-/Training Document | TIA Portal Module 014-101, Edition 2018 | Digital Factory, DF FA
Further information
Siemens Automation Cooperates with Education
siemens.com/sce
SCE Training Curriculums
siemens.com/sce/module
SIMATIC IOT2000
siemens.com/sce/IOT2000
SCE Trainer Packages
siemens.com/sce/tp
IOT2000 Forum
siemens.com/iot2000-forum
SCE Contact Partners
siemens.com/sce/contact
Digital Enterprise
siemens.com/digital-enterprise
Industry 4.0
siemens.com/future-of-manufacturing
Totally Integrated Automation (TIA)
siemens.com/tia
TIA Portal
siemens.com/tia-portal
SIMATIC Controller
siemens.com/controller
SIMATIC Technical Documentation
siemens.com/simatic-docu
Industry Online Support
support.industry.siemens.com
Product catalog and online ordering system Industry Mall
mall.industry.siemens.com
Siemens AG
Digital Factory
P.O. Box 4848
90026 Nuremberg
Germany
siemens.com/sce
For unrestricted use in educational / R&D institutions. © Siemens AG 2018. All rights reserved. 70
SCE_EN_014-101 Hardware Configuration IOT2000EDU_R1806.docxEDU_R1806.doxc