ST S7 1200 Basic Course 51 101
ST S7 1200 Basic Course 51 101
All commands which are required for working can be found in the menu bar.
Menu Bar
The menu bar contains all commands required for your work.
Toolbar
The toolbar provides buttons for frequently required commands. That way, you can access these
commands faster.
Project
Ungrouped
distributed I/O
The "Project tree" window provides access to all components and project data. All components
and all available objects of a project appear in the Project tree in a tree structure and can be
opened from there by double-clicking on them.
The following actions can be carried out:
− adding new components (controllers, HMI devices etc.)
− editing existing components
− querying and modifying properties of existing components
− diagnosing accessible components
To improve clarity, objects (entire stations) can be grouped together.
Newly inserted distributed I/Os are stored in the folder “Ungrouped devices” and can be moved to
the groups which you have created yourself.
A link to a distributed I/O is found in the folder “Unassigned devices” until it is assigned to a
controller or master.
The folders “Common data”, “Documentation settings” and “Languages & resources” refer to the
project; the folders “Online access” and “Card Reader/USB memory” are project independent.
Project
PLC program
PLC tags
PLC data types (UDT)
Central modules
Assigned
distributed I/O
For a better overall view, blocks can be arranged in block groups which you create yourself. This
grouping merely serves the overview of the program and has no impact on the execution of the
program. This information is not loaded into the CPU.
All central modules are stored in the folder “Local modules”.
If a device or slave was assigned to a controller or master, the device can be found in the folder
“Distributed I/O” of the relevant controller/master.
Different Task Cards are available depending on the edited or selected object!
…
Which Task Cards are available depends on the products that have been installed and on the
object currently being edited or open in the working area. If all Task Cards are not visible, the
Task Card-bar can be shifted using the cursor buttons at the bottom right.
• Hardware Catalog
All the available hardware components (such as CPUs, modules etc.) can be selected in the
Hardware Catalog.
• Instructions
Instructions for programming blocks;
Code templates and function list wizard for script programming (VBS as well as C scripts with
WinCC Professional)
• Toolbox
Configurable screen objects (graphics, display and operator control objects) in different panes
(basic objects, elements, controls - optional customized controls, graphics)
• Online Tools
If there is an online connection established, diagnostics and online information can be called,
such as, the current cycle time of the CPU and the configuration of the load and work memory
of the CPU. Also the CPU can be switched to the STOP and RUN mode.
• Animations
Templates for making screen objects dynamic in different panes (movements, display, tag link
for making dynamic)
• Layout
Tools for adapting the presentation when designing screens during configuration of HMI
devices (zoom, level assignment, grid alignment, objects outside the area)
• Tasks
Classic editor functions (such as find and replacing tags, instructions etc.)are available such
here.
• Libraries
Management of the local project library and global libraries
"Properties" Area
This tab displays the properties of the object selected in the working area and editable properties
can be changed.
"Info" Area
This is the output area of the engineering. This tab displays further information for the object
selected. In addition to this, messages relating to executed actions, for example, compilation and
download of blocks to the CPU are output.
"General" tab → general status output
"Cross-references" tab → display of the current locations at which the selected object is used
"Compile" tab → status display of compilation progress
"Syntax" tab → status display for invalid programming commands
"Diagnostics" Area
This tab displays information on system diagnostics and configured alarm events
"Device information" tab→ Information about the state of the devices
"Connection information" tab → detailed diagnostics of connections
"Alarm display" tab → Display of currently pending CPU alarms
"Monitor value" tab→ Monitoring of structures in a block
Embed
Float
Collapse or Expand
automatically permanently
(left, bottom, right) (left, bottom, right)
The positions and characteristics of windows can be configured individually. You can hide
windows that are seldom required in order to enlarge the working area.
The current configuration of the engineering user interface is saved in the user profile of
Windows. When the project is saved, the positions and characteristics of windows are
automatically saved with it.
By clicking the functions in the window title bar you can switch between the modes
"float" and "embed" or "collapse automatically" and "expand permanently".
In addition, the windows can be expanded and collapsed via the buttons .
Hidden windows are opened by clicking on the tab and closed again by clicking outside the
window area.
The windows of the editor space (working area) can be arranged as follows:
Maximize a working area in the TIA Portal (Project tree, Task Card and Inspector window are
minimized) (color depending on View online/offline)
Split the editor space (working area) horizontally into two windows
Split the editor space (working area) vertically into two windows
3.7.2. Keeping the Editor Window in the Foreground (when Editor Space is Split)
Editor window
fixed
If you work with a split editor space (working area), one of the two working areas can be fixed
(attached) by clicking on the “paper-clip” (paper-clip is vertical) so that when you open a further
editor, this first one always remains fixed in the foreground and the newly opened one always
becomes the second visible editor.
Save
current setting
Manage window
layouts Restore
last settings
Selection of saved
window layouts
The different window arrangements of the user interface can be saved and then restored.
Action, up to which
all actions are
undone
Including incomplete or
incorrect objects
Save
Regardless of the object that is open in the working area, it is always the entire project in the
current state that is saved when the Save icon is pressed, even if some objects of the project are
still incomplete or faulty [incorrect] (for example, syntax faulty blocks or symbols which have not
yet been assigned an absolute operand in the global symbol list).
If the project is closed without saving, all changes made or objects created during the session are
discarded.
Archiving
The current state of the project can be archived at any time.
When you archive projects, you can choose the following:
• TIA Portal project archive
The project is minimized (all files are reduced to their essential components) and then stored
compressed in a project archive (file with the ending zap15).
If this item is not selected, the project is saved under the given name and path as an
independent project. (Save as… without closing current project)
• Discard restorable data
Search index and the HMI Compile Result are not archived.
• Add date and time to the file name
The current date and time is added to the selected archive name.
Note
The most recently saved version of the project is archived. If the last changes to the project are
also to be included in the archive, the project must be saved before archiving.
Retrieving
Only project archives (file with the ending zap15) can be retrieved, that is, unzipped.
Portal view
Project view
Mnemonics: - German → E / A
- International → I / Q
Language
The user interface language of the TIA Portal can be changed at any time without needing to
restart. The TIA Portal always starts in the language that was last selected.
Storage Settings
Storage location for projects:
Storage location of newly created projects and their project libraries
Storage location for libraries:
Storage location for global libraries
Layout
If the layout is reset, the original window layout arrangement of the TIA Portal is restored.
3.11. Libraries
Local library
Part of the TIA Portal project Own global library
create, open, save and close
In project
Global library
(libraries)
Stored outside of the TIA
Portal project
No restriction on contents
• Blocks (FCs, FBs, DBs...)
• Pictures (screens), graphics
• Devices
• Tags ...
Project Library
Each project has its own library. Here, objects can be stored that are to be reused within the
project. This project library is always opened, saved, and closed together with the current project.
Global Libraries
Global libraries are stored independently of the projects and are used to store objects that are to
be used and reused in different projects.
The area of the global libraries also contains libraries supplied with the TIA Portal that, for
example, contain ready-made functions and function blocks.
Library Objects
A library is a collection of any project objects, such as, blocks, devices, PLC data types, watch
tables, screens, graphics, faceplates….
You will find more information about libraries in the section Programming Guideline Libraries:
“TIA Portal Information Center” > Documentation > Manuals > Control Technology
or in the Online Support under the Entry ID: 90885040
3.12. Help
F1
F1
Wide-ranging help functions are available for solving your tasks; these describe basic concepts,
actions and functions.
• Tooltip for information on the user interface elements, for example, instructions, input boxes,
buttons and symbols
Some tooltips provide cascades with more precise information.
Several tabs
The keyboard shortcuts can be displayed through the menu item Options > Settings. The view
can be sorted according to (Keyboard) Shortcut, Action and Editor.
Migrate project
Migrate
hardware
S7-300 S7-400 Upgrade
S7-300 S7-400 S7-1500
Migrate project
≥ 2008 SP3
If req. change
device type
≥ V7.0 SP3 Upgrade
Basic Panels
Possible check before migration with the help of the tool: “READINESS CHECK”
(TIA Portal Information Center > Tools & Apps > Planning and Configuration
or Entry ID: 60162195 in the Online Support)
The hardware configuration for supported hardware can also be migrated. Otherwise, only the
software can be migrated and must be adjusted to the supported hardware.
To if a speciic hardware item is supported by TIA Portal, use the “READINESS CHECK” tool
which is available for download on the Support Pages (https://support.industry.siemens.com)
under the Entry ID: 60162195 or via the “TIA Portal Information Center”.
With the command “setup.exe /record”, an installation file is created during installation. With the
help of this file, exactly the same installation can be carried out on other computers. For this, the
installation file must be saved on the computer on which the installation is to be carried out and
the installation must be started with the command setup.exe /qb {parameter} or
setup.exe /qn {parameter}. {parameter} corresponds exactly to the path in which the installation
file was saved. The installation is executed without further settings having to be made.
Update Tool
You can search for updates in the dialog “Installed software”.
• Start via: Portal view: Start > Installed software > Check for updates
Project view: Help > Installed software > Check for updates
• Checks and informs about possible updates of installed software
• Download of updates
• Pause / Continue downloads
• Installation of Updates
Options:
• Location for Download Files
Server used to check for updates.
You can choose either the TIA Automation Software Update Server or a user-defined server on
which the updates are provided by an Administrator.
• Check for updates daily
Contents 4
4. Devices & Networks: Online Functions and Hardware Configuration .............. 4-2
4.1. Online Tools, Configuring and Parameterizing the Hardware .............................................. 4-3
4.2. Online Connection via Industrial Ethernet: IP Address and Subnet Mask ........................... 4-4
4.2.1. Online Connection: Assigning an IP Address for the PG ..................................................... 4-5
4.3. Default for Online Access and Visible Interfaces .................................................................. 4-6
4.4. Online Access: Accessible Devices ...................................................................................... 4-7
4.4.1. Accessible Devices: Online & Diagnostics, Task Card: Online Tools .................................. 4-8
4.4.2. Accessible Devices: Online & Diagnostics: Diagnostics Buffer ............................................ 4-9
4.4.3. Accessible Devices: Online & Diagnostics: IP Address, Name, Time, FW Update,
Memory Card ...................................................................................................................... 4-10
4.6. SIMATIC S7-1200/1500: Memory Concept for CPU Memory Reset .................................. 4-11
4.6.1. SIMATIC S7-1200/1500: Memory Concept for CPU Reset to Factory Settings ................. 4-12
4.7. Card Reader / USB Memory Device ................................................................................... 4-13
4.8. Uploading a Hardware Station into the Project (1) (Hardware with Parameterization and
Software) ............................................................................................................................. 4-14
4.8.1. Uploading a Hardware Station into the Project (2) (Hardware with Parameterization and
Software) ............................................................................................................................. 4-15
4.9. Working Areas of the Hardware and Network Editor .......................................................... 4-16
4.9.1. Hardware and Network Editor: Device View ....................................................................... 4-17
4.9.2. Setpoint and Actual Configuration ...................................................................................... 4-18
4.9.3. Hardware Catalog ............................................................................................................... 4-19
4.9.4. Selecting the Controller and the Modules ........................................................................... 4-20
4.9.5. Setpoint Configuration: Creating a Hardware Station (Controller)...................................... 4-21
4.9.5.1. Inserting / Deleting a Module .............................................................................................. 4-22
4.9.5.2. Changing a Device / Module ............................................................................................... 4-23
4.9.6. CPU Signal Board ............................................................................................................... 4-24
4.9.7. CPU Properties: Ethernet Address ..................................................................................... 4-25
4.9.7.1. CPU Properties: Maximum Cycle Time .............................................................................. 4-26
4.9.7.2. CPU Properties: System and Clock Memory ...................................................................... 4-27
4.9.7.3. CPU Properties: Password Protection ................................................................................ 4-28
4.9.8. Compiling the Hardware / Software and Downloading it into the CPU ............................... 4-30
4.10. Task Description: Creating a Project with an S7-1500 Station ........................................... 4-31
4.10.1. Exercise 1: Setting the IP Address of the PG ..................................................................... 4-32
4.10.2. Exercise 2: Read out the Firmware version and reset the CPU to Factory Settings .......... 4-33
4.10.3. Exercise 3: Deleting Old Projects ....................................................................................... 4-34
4.10.4. Exercise 4: Creating a New Project .................................................................................... 4-35
4.10.5. Exercise 5: Creating a S7-1200 - Station ........................................................................... 4-36
4.10.6. Exercise 6: Configuring the CPU Signal Board .................................................................. 4-37
4.10.7. Exercise 7: Configuring the S7-1200 Station ...................................................................... 4-38
4.10.8. Exercise 8: CPU Properties: Assigning the IP Address ...................................................... 4-39
4.10.9. Exercise 9: CPU Porperties: Adresses of the integrated Inputs / Outputs ......................... 4-40
4.10.10. Exercise 10: CPU Properties: Parameterizing the Clock Memory Byte ............................. 4-41
4.10.11. Exercise 11: Analog I/O module: I/O adresses ................................................................... 4-42
4.10.12. Exercise 12: DI/DQ module: I/O addresses ........................................................................ 4-43
4.10.13. Exercise 13: : Compiling the Device Configuration and Downloading it into the CPU ....... 4-44
4.10.14. Exercise 14: Setting the Time ............................................................................................. 4-47
4.11. Additional Information ......................................................................................................... 4-48
4.11.1. Area for Modules Not Plugged In ........................................................................................ 4-49
4.11.2. Swapping a Slot / Inserting a Module between Two Modules ............................................ 4-50
4.11.3. Copying Modules from a Reference Project ....................................................................... 4-51
4.11.4. Unspecified CPU ................................................................................................................. 4-52
4.11.5. ‘View’ Settings of the Task Cards ....................................................................................... 4-53
… be able to use online functions to start and stop the CPU and
to reset it to factory settings
online → Status,
Diagnostics
offline → Configuration,
Parameterization
Online Tools
An online connection to the CPU permits diagnostics and status information for all modules to be
accessed.
With CPUs that can be accessed online, the "Online tools" task card and additional status
information (cycle time statistics and memory load) can be called.
Internet Protocol
Internet Protocol (IP) is the basis for all TCP/IP networks. It creates the so-called datagrams (data
packets specially tailored to the Internet protocol) and handles their transport within the local
subnet or their "routing" (forwarding) to other subnets.
IP Addresses
IP addresses are not assigned to a specific computer, but rather to the network interfaces of the
computer. A computer with several network connections (for example routers) must therefore be
assigned an IP address for each connection.
IP addresses consist of 4 bytes. With the dot notation, each byte of the IP address is expressed
by a decimal number between 0 and 255. The four decimal numbers are separated by dots
(see picture).
MAC Address
Every Ethernet interface is assigned a fixed address by the manufacturer that is unique
worldwide. This address is referred to as the hardware or MAC address (Media Access Control).
It is stored on the network card and uniquely identifies the Ethernet interface in a local network.
Cooperation among the manufacturers ensures that the address is unique worldwide.
Subnet Mask
The subnet mask specifies which IP addresses in the local network can be accessed. It separates
the IP address into the network and device part.
Only IP addresses whose network part is the same can be accessed.
e.g.: Subnet mask = 255.255.255.0 and IP address = 192.168.111.10
accessible IP addresses: 192.168.111.1 to 192.168.111.254
→ 192.168.111.50
In the Settings, you can have a default setting for the connection path for online access(es).
In the Online access folder, all possible interfaces of the PG/PC are displayed. Because not all of
these are required or can be used, interfaces can be hidden for better clarity.
2 3
1. Online access or
Accessible devices 1
(Project or Portal view)
2. Select interface for the
search
4.4.1. Accessible Devices: Online & Diagnostics, Task Card: Online Tools
Cycle Time:
"Shortest", "Current" and "Longest" are the cycle times since the last CPU restart
Diagnostics Buffer
The diagnostics buffer is a buffered memory area on the CPU organized as a circular buffer.
It contains all diagnostics events (error alarms, diagnostics interrupts, start-up information etc.)
of the CPU in the order in which they occurred. The highest entry is the last event to occur.
All events can be displayed on the programming device in plain language and in the order in
which they occurred.
All events can be displayed on the programming device in plain language and in the
order in which they occurred. In addition, some of the diagnostics buffer is not buffered
with PowerOFF (only a part is retentive).
Details on Event
Some additional information is also provided for the selected event in the "Details on event" box:
• Event name and number
• Additional information depending on the event, such as, the address of the instruction that
caused the event etc.
System memory
Force 1
jobs 2 Code working memory
internal Flash
4.6.1. SIMATIC S7-1200/1500: Memory Concept for CPU Reset to Factory Settings
Force 1
jobs 2 Code working memory
internal Flash
If a memory card is inserted (or is already inserted), the CPU copies all data relevant for
execution into the internal RAM work memory from the memory card. (Data relevant for
execution: device configuration incl. IP address, program blocks, data blocks, current Force jobs).
S7-1200/1500
S7-300/400
• Removable media:
SMC
external hard drive
• Internal/external prommer: USB memory device
Memory Card
Micro Memory Card • Reader_X (user-defined memory):
Folder on hard drive
S7-300/400:
An S7-300 or S7-400 CPU does not have an SMC as load memory but a Memory Card or Micro
Memory Card. You can only access these cards with the help of an internal or external prommer.
Note: A SIMATIC Field PG has an internal prommer.
Select device
Unlike the option “Upload actual configuration without parameterization”, an already existing
configuration of an S7 station can be read out using the function “Upload device as new station”.
This is then necessary when the appropriate offline station doesn’t exist on the PG. After reading
out the S7 station, the hardware as well as the program can be adjusted or modified, saved and
downloaded into the CPU.
Requirement:
The station already has a configuration.
After the device is uploaded, the entire station (central and distributed hardware with
parameterization, the entire program with comments and symbols) is available to the user offline
for further processing.
Connection configuration
Device configuration
and
module parameter
assignment
Topology configuration
Device View
The Device view is used for configuring and parameterizing devices and modules.
• Hardware configuration
• Device and module parameter assignment
Network View
The Network view is used for configuring, parameterizing and networking devices.
• Configure and parameterize devices
• Connection configuration
Topology View
The Topology view is used for displaying, configuring and determining the physical structure of
networks.
• Configure the port assignment and the relationship between devices
• Online-Offline comparison as well as synchronization of the port assignment and relationships
• Topology makes it possible to exchange devices without a node initialization
Graphic area
Tabular area
Information
(selected
module)
The Hardware catalog contains all devices and hardware components in a tree structure.
From the catalog, selected devices or modules can be dragged to the graphic working area of the
"Hardware and Network" editor.
Search Function
This allows a convenient search for specific hardware components. The search also includes the
module description texts.
Filter Function
enabled: Only modules that match the current context are displayed.
Profile
It is possible to create and to use your own profiles. This expands the filter possibilities.
Information
The "Information" pane shows detailed information about the object selected in the catalog.
• Name
• Order number (Article no.)
• Version number
Manual: “SIMATIC S7-1500 / ET 200MP Software: “TIA Selection Tool” (online or offline)
Automation system In a nutshell”
SIMATIC S7-1500 provides you with a wide range of CPUs that can be integrated. You can
expand each CPU with I/O modules, communication modules and technology modules. If, for
example, the memory and performance of a CPU 1511-1 PN are sufficient for you, then you
expand it with communication modules for PROFINET and PROFIBUS. For technology functions,
technology CPUs and technology modules are available in addition to the Compact CPUs.
To select the correct controller there is the manual “SIMATIC S7-1500 / ET 200MP Automation
system in a nutshell” which contains further useful guidelines. It can be found under the Entry
ID: 109481357.
There is also the software TIA Selection Tool which provides an opportunity for selecting,
configuring and ordering the devices for Totally Integrated Automation. After configuring the
hardware in the TIA Selection Tool, you are given a list with all hardware components which are
required (modules, plugs, cables, profile rails etc.).
In addition, the order via the Industry Mall can be started directly from the TIA Selection Tool.
Project view
Portal view
possible
slots
Deleting in the Device view
deletes individual modules
1xR
Inserting a Module
Modules can be inserted using drag & drop or by means of a double-click.
Selecting a Version
When selecting a module, you must pay attention to the correct version. If the module is selected
(highlighted) in the task card “Hardware catalog > Catalog”, the version can be selected in the
task card “Hardware catalog > Information”.
Deleting a Module
Deleted hardware components are removed from the system and assigned addresses are made
available again.
1xR
Changing a Module
When a module is changed (replaced), all the parameters of the old module are adopted on the
new module. A module exchange can, for example, then be necessary when the CPU version in
the offline project is to be adapted to the CPU version (online) following a firmware update.
Hardware components can only be exchanged if the components are compatible.
It is also possible to change a device by dragging the new module from the Hardware catalog
onto the old module using drag & drop.
Select CPU
PROFINET Interface
Regardless of whether the editor is in the Device view or Network view, if the CPU is selected,
the settings of the CPU PROFINET interface can be made in the Inspector window in the
"Properties" tab.
Cycle Time
Cycle time is the time it takes for the CPU to complete one program cycle. Because parts of the
user program can also be processed conditionally and the program execution can also be
interrupted (for example, by diagnostics interrupts, time interrupts, hardware interrupts etc.), the
length of the cycle time is not the same in every cycle.
PLC tags
A PLC tag is automatically created for each available system or clock memory bit.
Attention!
Clock memory (bits) are not synchronized with the CPU cycle; in other words, with long
cycle times, the state of the clock memory (bits) can change more than once within one
cycle.
1
2
3
4
Protection Levels
With the following protection levels, the access rights (read / write) of the programming device to
the CPU are specified:
• Full access incl. fail-safe (no protection): → Default setting for F-CPU
Read and write access is always permitted.
• Full access (no protection): → Default setting for non-F-CPU
Read access is always permitted, write access only to standard program.
• Read access: → Write protection
Read-only access possible. No data can be changed in the CPU and no blocks or modified
hardware configuration or parameter assignment can be downloaded to the CPU without
specifying a password.
• HMI access: → Write and read protection for STEP7
No write or read access is possible from the engineering. Only the CPU type and identification
data can be displayed in the Project tree under "Accessible devices". It is not possible to
display online information or blocks under "Accessible devices" without entering a password.
• No access (complete protection): → General write and read protection for STEP7 and HMI.
Now, access for HMI devices without a configured password in the connection is also not
possible.