_TIA_PRO1_04_DevicesAndNetworks_en

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 49

SIMATIC TIA Portal Programming 1

Contents 4
4. Devices & Networks: Online Functions and Hardware Configuration .............. 4-2
4.1. Setpoint and Actual Configuration ........................................................................................ 4-3
4.2. Online Tools, Configuring and Parameterizing the Hardware .............................................. 4-4

O
4.3. Online Connection via Industrial Ethernet: IP Address and Subnet Mask ........................... 4-5

ya
ID
4.4. Default for Online Access and Visible Interfaces .................................................................. 4-6

a
N

el
4.4.1. Online Access: Accessible Devices ...................................................................................... 4-7

TE
4.4.1.1. Accessible Devices: Online & Diagnostics, Task Card: Online Tools ................................. 4-8

C
4.4.1.2. Accessible Devices: Online & Diagnostics: Diagnostics Buffer ............................................ 4-9

e
4.4.1.3. Accessible Devices: Online & Diagnostics: IP Address, Name, Time, FW Update,

in
Memory Card ...................................................................................................................... 4-10

el
4.5. Resetting the CPU using the Mode Selector Switch .......................................................... 4-11

riv
X

EL
4.5.1. SIMATIC S7-1200/1500: Memory Concept for CPU Memory Reset .................................. 4-12
M

4.5.2. SIMATIC S7-1200/1500: Memory Concept for CPU Reset to Factory Settings ................. 4-13

D
D
N

4.6. Card Reader / USB Memory Device ................................................................................... 4-14

KN
N
AI

4.7. Working Areas of the Hardware and Network Editor .......................................................... 4-15

G
TR

4.7.1. Hardware and Network Editor: Device View ....................................................................... 4-16


AC

4.7.2. Hardware Catalog ............................................................................................................... 4-17


@
SI

4.8. Adding a New Device (Controller)....................................................................................... 4-18


LG

4.8.1. Selecting the Controller and the Modules ........................................................................... 4-19


PN

4.8.2. CPU Properties: Ethernet Address ..................................................................................... 4-20


U

4.8.2.1. CPU Properties: Maximum Cycle Time .............................................................................. 4-21


IV

19

4.8.2.2. CPU Properties: System and Clock Memory ...................................................................... 4-22


4.8.2.3. CPU Properties: Password Protection ................................................................................ 4-23
D

9.

4.8.3. Inserting / Deleting a Module .............................................................................................. 4-25


C
LA

.0

4.8.4. Changing a Device / Module ............................................................................................... 4-26


C

4.8.5. Compiling the Hardware / Software and Downloading it into the CPU ............................... 4-27
23
W
A

4.9. Task Description: Creating a Project with an S7-1500 Station ........................................... 4-28
D

4.9.1. Exercise 1: Setting the IP Address of the PG ..................................................................... 4-29


I
IB

4.9.2. Exercise 2: Erasing the SIMATIC Memory Card of the CPU.............................................. 4-30
2

4.9.3. Exercise 3: Resetting the CPU to Factory Settings using the Mode Selector Switch ........ 4-31
O
H

4.9.4. Exercise 4: Creating a New Project and Adding a New Device (Controller) ...................... 4-32
PR
O

4.9.5. Exercise 5: Changing the Device Name and Disabling the F-activation ............................ 4-33
PR

4.9.6. Exercise 6: Configuring the S7-1500 Station ...................................................................... 4-34


A

4.9.7. Exercise 7: CPU Properties: IP Address ............................................................................ 4-35


TI

4.9.8. Exercise 8: CPU Properties: Parameterizing the Clock Memory Byte ............................... 4-36
4.9.9. Exercise 9: CPU Properties: Display Language and Display Protection ........................... 4-37
so

4.9.10. Exercise 10: Addresses of the DI Module........................................................................... 4-38


4.9.11. Exercise 11: Addresses of the DO Module ......................................................................... 4-39
ur

4.9.12. Exercise 12: Addresses of the AI Module ........................................................................... 4-40


C

4.9.13. Exercise 13: Setting the Channel Parameters of the Analog Input Module ....................... 4-41
4.9.14. Exercise 14: Compiling the Device Configuration and Downloading it into the CPU ......... 4-42
4.9.15. Exercise 15: Setting the Time and Trying to Switch the Controller to RUN Mode ............. 4-44
4.10. Additional Information ......................................................................................................... 4-45
4.10.1. Swapping a Slot / Inserting a Module between Two Modules ............................................ 4-46
4.10.2. Copying Modules from a Reference Project ....................................................................... 4-47
4.10.3. Unspecified CPU ................................................................................................................. 4-48
4.10.4. ‘View’ Settings of the Task Cards ....................................................................................... 4-49

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-1
SIMATIC TIA Portal Programming 1

4. Devices & Networks:


Online Functions and Hardware Configuration

At the end of the chapter the participant will ...

... be able to establish an online connection between PG and


CPU via Industrial Ethernet

ya
ID
… be able to use online functions to start and stop the CPU and
to reset it to factory settings

a
N

el
TE
... be able to create and parameterize a new station

C
N
... be able to create and parameterize a setpoint (offline)

e
configuration

in
C

el
... be familiar with addressing the input and output modules of an

riv
S7-1500 and be able to do it
X

EL
M

D
D
N

KN
N
AI

G
TR

AC

@
SI

LG

PN
U
IV

19
D

9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-2 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.1. Setpoint and Actual Configuration

Configuration Assignment of racks and modules of the central and


distributed I/O.

Parameter Assignment Specifying the behavior of parameter-assignable modules,

O
for example, startup behavior, retentive areas, etc.

ya
ID

a
N

el
TE

C
Setpoint Configuration Planned hardware configuration and parameter assignment.

e
O

in
C

el
riv
X

EL
Actual configuration and parameter assignment of an
M

Actual Configuration

D
existing hardware.
D
N

KN
N
AI

G
TR

Setpoint (Offline) and Actual Configuration


AC

@
When you configure a system, a setpoint (offline) configuration is created. It contains a hardware
SI

station with the planned modules and the associated parameters. The PLC system is assembled
LG

PN

according to the setpoint (offline) configuration. During commissioning, the setpoint (offline)
configuration is downloaded to the CPU.
U
IV

19
D

9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-3
SIMATIC TIA Portal Programming 1

4.2. Online Tools, Configuring and Parameterizing the Hardware

with CPU Task Card

ya
ID

a
N
online → Status,

el
TE
Diagnostics

C
offline → Configuration,

N
Parameterization

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Online Tools
AC

@
If it is possible to establish an online connection to the CPU, diagnostics and status information of
SI

all modules can be called.


LG

PN

With CPUs that can be accessed online, the mode can also be controlled using the "Online tools"
U

task card and further status information (cycle time statistics and memory load) can be called.
IV

19

Configuring and Parameterizing the Hardware


D

9.

Almost all devices or components of an automation solution such as PLCs or touch panels can be
C
LA

.0

assigned parameters. The parameter assignment of the devices and network settings required for
C

23

commissioning is handled using the Hardware and Network Editor.


W
A

With this, for example, all components of an Ethernet network are assigned IP addresses via
D

which they communicate during later operation.


I
IB

But even inside the automation device, address areas of the I/O modules must be specified and
O
H

the cycle monitoring time of the CPU must be set, for example.
PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-4 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.3. Online Connection via Industrial Ethernet:


IP Address and Subnet Mask

ya
ID

a
N

el
TE

C
MAC Address: 08-00-06-01-74-10 MAC Address: 08-00-06-01-74-20

e
Subnet Mask: 255.255.255.0 Subnet Mask: 255.255.255.0

in
C

el
IP Address: 192.168.111.10 IP Address: 192.168.111.12

riv
X

EL
M

D
Subnet Device Subnet Device
D
N

KN
N
AI

G
TR

AC

@
Internet Protocol
SI

LG

The Internet Protocol (IP) is the basis for all TCP/IP networks. It creates the so-called datagrams
PN

(data packets specially tailored to the Internet protocol) and handles their transport within the
U

local subnet or their "routing" (forwarding) to other subnets.


IV

19

IP Addresses
D

9.

IP addresses are not assigned to a specific computer, but rather to the network interfaces of the
C
LA

.0

computer. A computer with several network connections (for example routers) must therefore be
C

23

assigned an IP address for each connection.


W
A

IP addresses consist of 4 bytes. With the dot notation, each byte of the IP address is expressed
D

by a decimal number between 0 and 255. The four decimal numbers are separated by dots
I
IB

(see picture).
2
O
H

MAC Address
PR
O
PR

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).
A

It is stored on the network card and uniquely identifies the Ethernet interface in a local network.
TI

Cooperation among the manufacturers ensures that the address is unique worldwide.
so

Subnet Mask
ur

The subnet mask specifies which IP addresses in the local network can be accessed. It separates
C

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

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-5
SIMATIC TIA Portal Programming 1

4.4. Default for Online Access and Visible Interfaces

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

In the Settings, you can have a default setting for the connection path for online access.
AC

@
SI

In the Online access folder, all possible interfaces of the PG/PC are displayed. Since not all of
LG

these are required or can be used, interfaces can be hidden for better clarity.
PN
U
IV

19
D

9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-6 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.4.1. Online Access: Accessible Devices

ya
3

ID
2

a
3

el
TE

C
1. Online access or
Accessible devices

N
1

e
(Project or Portal view)

in
2. Select interface for the

el
search

riv
X

EL
3. Update accessible devices
M

or Start search

D
D
N

KN
N
AI

G
TR

Accessible Devices in the Portal View


AC

@
This function provides the option of fast access (for example for service purposes) even when
SI

there is no offline project data for the target systems on the PG.
LG

PN

All accessible, programmable modules (CPUs, FMs CPs, HMI devices) are listed in the Portal
U

view, even if they are located in other subnets.


IV

19

Access Online Functions →


D

Button
9.
C
LA

Whenever there is an attempt to access a module online with the "Show" button and this is
.0
C

located in a different subnet from the PG, a dialog opens asking whether an additional IP address
23
W

should be assigned to the PG.


A
D

Following confirmation, an additional IP address is assigned to the PG that is located in the same
+
I

subnet as the address of the CPU. After that, all online functions can be used.
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-7
SIMATIC TIA Portal Programming 1

4.4.1.1. Accessible Devices: Online & Diagnostics,


Task Card: Online Tools

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

CPU Operator Panel: Mode Selector Switch


AC

@
SI

The operating mode of the CPU can be changed.


LG

• RUN → STOP:
PN

If there is a change from RUN to STOP, the CPU terminates the running user program.
U
IV

• STOP → RUN:
+

19

If there is a change from STOP to RUN, the CPU performs a restart.


D

9.
C
LA

.0

Cycle Time:
C

23

"Shortest", "Current" and "Longest" are the cycle times since the last CPU restart
W
A
D

With a Memory Reset (MRES), a CPU reset is carried out:


I
IB

− All user data (even the retentive) is deleted (delete work memory)
2
O
H

(process images, memory bits, timers, counters, all program/data blocks)


PR

− Retained are: IP addresses, the retentive part of the diagnostics buffer, operating hours
O
PR

counter, time-of-day.
A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-8 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.4.1.2. Accessible Devices:


Online & Diagnostics: Diagnostics Buffer

ya
ID

a
N

el
TE
Details for the entry line

C
selected above

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Online Access to the CPU


AC

@
SI

If the PG and the target system (for example CPU) are located in the same subnet, various
LG

Online & diagnostics functions are available in the "Accessible devices" function.
PN

• in the working area of the TIA Portal


U
IV


+

19

in the "Online tools" task card (see next page)


D

9.

Diagnostics Buffer
C
LA

.0
C

The diagnostics buffer is a buffered memory area on the CPU organized as a circular buffer.
23

It contains all diagnostics events (error alarms, diagnostics interrupts, start-up information etc.)
W
A

of the CPU in the order in which they occurred. The highest entry is the last event to occur.
D

+
I

All events can be displayed on the programming device in plain language and in the order in
IB

which they occurred.


O
H

All events can be displayed on the programming device in plain language and in the
PR
O

order in which they occurred. In addition, not the entire diagnostics buffer is buffered with
PR

Power OFF (only a part is retentive).


A

• Number of entries, 1000 to 3200


TI

• Of that, retentive 250 to 500


so
ur

Details on Event
C

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.

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-9
SIMATIC TIA Portal Programming 1

4.4.1.3. Accessible Devices: Online & Diagnostics:


IP Address, Name, Time, FW Update, Memory Card

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

• Set Time (of Day)


AC

@
Each S7 CPU has a real-time clock that can be set here.
SI

• Assign IP Address
LG

PN

As long as no IP address has been specified already by a hardware configuration that was
downloaded earlier, this can be assigned or modified here (this function is also available
U

when the PG/PC and the CPU are not assigned to the same subnet).
IV

19

• Reset to Factory Settings


D

9.

Unlike the "memory reset", all the memory areas of the CPU (work, load and retentive
C
LA

.0

memory, diagnostics buffer and time) are deleted. Optionally (see dialog in the picture), the
C

IP address can also be deleted so that the CPU then only has a MAC address (Media Access
23
W
A

Control).
D


+

Format Memory Card


I
IB

The CPU memory card can also be deleted in the CPU via this online function. After that, the
2

CPU only has its IP address. All other data (including the device configuration) is deleted.
O
H

The card cannot be deleted in the card reader via the Project tree. Device configuration and
PR
O

blocks have a gray background, that is, are write-protected (only status information or open
PR

with a double-click).
A

• Assign Name
TI

In PROFINET, each device must be assigned a unique device name that is stored retentively
on the device. The device name identifies a distributed I/O module (PROFINET IO) and
so

allows module replacement without a PG/PC.


ur

• Firmware Update
C

The firmware version of the device and the modules can be updated. Under "Diagnostics ->
General", the current firmware version is displayed.

Caution: If the CPU and Display have to be updated, first the Display and then
the CPU.

TIA-PRO1 - Devices & Networks


4-10 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.5. Resetting the CPU using the Mode Selector Switch

RUN
STOP 1. Set the mode selector switch to STOP
MRES

RUN
2. Press and hold the mode selector switch in the MRES RUN/STOP-LED
STOP
position until the RUN/STOP LED has flashed 2x slowly of the S7-1500
MRES
RUN
STOP then let go again

O
MRES

ya
within 3 sec !!!

ID
RUN STOP

a
N
STOP 3. Press and hold the mode selector switch in the MRES

el
TE
position until the RUN/STOP LED begins to flash quickly
MRES

C
N
RUN

e
STOP then let go again

in
Result:
MRES

el
With inserted PROGRAM card
→ Memory reset

riv
X

EL
RUN
4. Set the mode selector switch to RUN
M

STOP Without inserted card

D
A CPU restart is carried out
→ Reset to factory settings
MRES
D
N

KN
N
AI

G
TR

Particular Feature for CPU Memory Reset (MRES) using the Mode Selector Switch:
AC

@
• when SIMATIC Memory Card (SMC) is inserted => Memory Reset
SI

− All user data is deleted (work memory, retentive memory)


LG

PN

(process images, memory bits, counters, timers, all program/data blocks)


U

− Retained are: parameter assignment of the X1 (Ethernet) interface, the retentive part of the
IV

19

diagnostics buffer, operating hours counter, CPU time-of-day


− The CPU copies all load memory data relevant for execution (memory card) into the
D

9.

internal RAM work memory. (Data relevant for execution: device configuration, program
C
LA

.0

blocks, data blocks).


C

23
W
A


D

when no SIMATIC Memory Card (SMC) is inserted => Reset to factory settings
+
I

− All memory areas of the CPU (work memory, retentive memory, diagnostics buffer, time-of-
IB

day) and the IP address are deleted.


O
H

After the SMC is inserted, the load memory data relevant for execution is reloaded into the
PR
O

internal RAM work memory from the memory card:


PR

Device configuration (with IP address), program blocks, data blocks


A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-11
SIMATIC TIA Portal Programming 1

4.5.1. SIMATIC S7-1200/1500: Memory Concept for CPU Memory Reset

With Memory Reset...


1 internal memory areas
Time-of-day Operating IP addresses
(system memory, entire data hours counter
and code working memory)
are deleted internal Flash Diagnostics
buffer
2 the user program and the
hardware configuration as well Load memory
as active Force jobs are
Force jobs

O
copied from the load memory

ya
RAM

ID
2

a
N

el
TE
System memory

C
1

e
Force

in
jobs 2 Code working memory
internal Flash

el
riv
Data working memory
X

EL
inserted Flash Card Retentive memory
M

D
Load memory D
N

KN
N
AI

G
TR

CPU Memory Reset


AC

@
• What to do:
SI

− STEP7 online function → MRES in "CPU operator panel" of "Test" and "Online tools" Task
LG

PN

Cards
− Display (only S7-1500) → Main menu "Settings", submenu "Memory reset"
U
IV

− CPU mode selector switch (with inserted memory card)


19
D


9.

Impact
C
LA

− An existing online connection between PG/PC and the CPU is disconnected.


.0
C

− The entire RAM work memory is deleted, that is, all user data (process images, bit
23
W
A

memories, counters, timers, all program/data blocks, even the retentive ones)
D

− Retained are: IP addresses, diagnostic buffer, operating hours counter, CPU time-of-day.
+
I
IB

− After that, the CPU copies all data relevant for execution into the RAM work memory from
2
O
H

the memory card. (Data relevant for execution: device configuration, program blocks, data
PR

blocks, current Force jobs).


O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-12 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.5.2. SIMATIC S7-1200/1500: Memory Concept for CPU Reset to Factory Settings

With Reset to factory ?


settings... Time-of-day Operating IP addresses
01.01.2012 hours counter
1 internal memory areas (incl.
time-of-day, diagnostics buffer,
operating hours counter) and internal Flash Diagnostic
module parameters are deleted buffer
IP addresses query in STEP7 Load memory
Force jobs

O
2 the user program, the

ya
RAM

ID
hardware configuration and
active Force jobs are copied

a
N
from the external load memory

el
TE
(SMC) System memory

C
1

e
Force

in
jobs 2 Code working memory
internal Flash

el
riv
Data working memory
X

EL
inserted Flash Card Retentive memory
M

D
Load memory D
N

KN
N
AI

G
TR

CPU Reset to Factory Settings


AC

@
• What to do:
SI

− STEP7 online function → MRES in "CPU operator panel" of "Test" and "Online tools" Task
LG

PN

Cards
− Display (only S7-1500) → Main menu "Settings", submenu "Memory reset"→ Factory
U
IV

Defaults
+

19

− Mode selector switch (only without memory card)


D

9.
C


LA

Impact
.0
C

− An existing online connection between PG/PC and the CPU is disconnected.


23
W
A

− The entire RAM work memory is deleted, that is, all user data (process images, bit
D

memories, counters, timers, all program/data blocks, even the retentive ones, diagnostic
+
I

buffer), IP addresses are deleted if this is selected in STEP7.


IB

− All IP addresses are retained if this was specified in STEP7.


O
H

PR
O
PR

If a memory card is inserted (or is already inserted), the CPU copies all data relevant for
A

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).
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-13
SIMATIC TIA Portal Programming 1

4.6. Card Reader / USB Memory Device

S7-1200/1500

S7-300/400

ya
ID

a
N

el
TE

C
N

e
O

in
• Removable media:

C
SMC

el
external hard drive

riv
X

EL
• Internal/external prommer: USB memory device
Memory Card
M

D
Micro Memory Card
D • Reader_X (user-defined memory):
Folder on hard drive
N

KN
N
AI

G
TR

Card Reader / USB Memory


AC

@
In the Card Reader/USB memory folder, you can access an SMC inserted in the SD Reader, the
SI

internal/external prommer, removable (media) devices or user-defined folders.


LG

PN

Card Type of the SIMATIC Card for S7-1200/1500:


U
IV

The SIMATIC Memory Card is used as a Program card or a Transfer card or for Firmware
19

Updates. Before the relevant data is stored on the SMC, the card type must be selected as
D

9.

shown in the picture.


C
LA

.0

• SIMATIC Memory Card as Program Card:


C

23

The card contains all configuration and parameterization data for the station as well as the
W
A

entire user program with documentation. During operation, the card must remain inserted in
D

the CPU because it is used as a replacement for the internal CPU load memory which
+
I

remains unused.
IB

2
O


H

SIMATIC Memory Card as Transfer Card (only for S7-1200):


PR

The card contains the same data as a Program card but it doesn’t have to remain inserted
O

during operation. After inserting the card and subsequent Power ON, all data is copied into
PR

the internal load memory of the CPU. Then the card has to be removed and a restart has to
A

take place.
TI

• SIMATIC Memory Card to Update Firmware:


so

The SIMATIC Memory Card contains the files required for a firmware update. After execution,
the SIMATIC Memory Card must be removed.
ur
C

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.

TIA-PRO1 - Devices & Networks


4-14 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.7. Working Areas of the Hardware and Network Editor

Connection configuration

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
Device configuration
and

riv
X

EL
module parameter
M

assignment

D
DTopology configuration
N

KN
N
AI

G
TR

Components of the Hardware and Network Editor


AC

@
The Hardware and Network editor consists of a Device, Network and Topology view.
SI

LG

PN

Device View
U

The Device view is used for configuring and parameterizing devices and modules.
IV

19

• Hardware configuration
D

9.

• Device and module parameter assignment


C
LA

.0
C

Network View
23
W
A

The Network view is used for configuring, parameterizing and networking devices.
D


I

Configure and parameterize devices


IB


O

Connection configuration
H

PR
O

Topology View
PR

The Topology view is used for displaying, configuring and determining the physical structure of
A

networks.
TI

• Configure the port assignment and the relationship between devices


so

• Online-Offline comparison as well as synchronization of the port assignment and relationships


ur

• Topology makes it possible to exchange devices without a node initialization


C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-15
SIMATIC TIA Portal Programming 1

4.7.1. Hardware and Network Editor: Device View

Device selection horizontal and vertical split

Graphic area

ya
ID
Tabular area

a
N

el
TE

C
N

e
O

in
C

el
Module parameter assignment

riv
X

EL
→ Properties in the Inspector window
M

D
D
N

KN
N
AI

G
TR

Components of the "Hardware and Network Editor"


AC

@
"Device view" section in the working area
SI

This editor consists of 2 areas, a tabular (left/top) and a graphic (right/bottom). The splitting left-
LG

right or top-bottom can be changed as required.


PN

− Graphic area = module configuration


U

− Tabular area = Address parameterization of configured modules


IV

19


D

"Properties" tab in the Inspector window


9.

This tab is used to assign parameters to the module selected in the working area. Here, all
C
LA

.0

the properties or parameters of the selected module are displayed and can also be modified.
C

23

In the left-hand part of the Properties tab there is a navigation section in which the parameters
W
A

are arranged in groups.


D

• "Hardware Catalog" Task Card


I
IB

Module catalog for the configuration (module grouping) in the working area
O
H

Project Tree → "Local Modules"


PR
O
PR

In the Project tree, the modules along with their parameter assignments (for example, addresses)
A

are stored under the relevant device in the "Local modules" folder.
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-16 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.7.2. Hardware Catalog

If several versions of modules


Search function Create /
exist, the version currently being
Select
used must be selected before
HW Profile
inserting.
Filter function

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
Information
M

D
(selected D
module)
N

KN
N
AI

G
TR

The Hardware catalog contains all devices and hardware components in a tree structure.
AC

@
From the catalog, selected devices or modules can be dragged to the graphic working area of the
SI

"Hardware and Network" editor.


LG

PN

Search Function
U

This allows a convenient search for specific hardware components. The search also includes the
IV

19

module description texts.


D

9.
C
LA

Filter Function
.0
C

23

enabled: Only modules that match the current context are displayed.
W
A
D

disabled: All existing objects of the catalog are displayed


+
I
IB

Contents of the Hardware Catalog for Enabled Filter


O
H

• Network view → only objects that can be networked


PR
O
PR

• Device view → all modules or, for enabled filter, only the modules that belong to the current
A

device in the working area


TI

Profile
so

It is possible to create and to use your own profiles. This expands the filter possibilities.
ur
C

Information
The "Information" pane shows detailed information about the object selected in the catalog.
• Name
• Order number (Article no.)
• Version number

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-17
SIMATIC TIA Portal Programming 1

4.8. Adding a New Device (Controller)

Project view

ya
ID

a
N

el
TE
Portal view

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Add New Device


AC

@
It is possible to create a new device in the project using the Hardware and Network editor with the
SI

help of the “Hardware catalog” task card or through the Project tree “Add new device”.
LG

PN

When a new device is created, a suitable rack is also created automatically. The selected device
U

is inserted into the first permitted slot in the rack.


IV

19

Regardless of the method selected, the added device is visible in the Device view and in the
D

Network view of the Hardware and Network editor.


9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-18 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.8.1. Selecting the Controller and the Modules

Manual: “SIMATIC S7-1500 / ET 200MP Software: “TIA Selection Tool” (online or offline)
Automation system In a nutshell”

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
TIA Portal Information Center > Tools & Apps >
Entry ID: 109481357
D
N

Configurators

KN
N
AI

G
TR

SIMATICS7-1500 provides you with a wide range of CPUs that can be integrated. You can
AC

@
expand each CPU with I/O modules, communication modules and technology modules. If, for
SI

example, the memory and performance of a CPU 1511-1 PN are sufficient for you, then you
LG

expand it with communication modules for PROFINET and PROFIBUS. For technology functions,
PN

technology CPUs and technology modules are available in addition to the Compact CPUs.
U
IV

19

To select the correct controller there is the manual “SIMATIC S7-1500 / ET 200MP Automation
D

9.

system In a nutshell” which contains further useful guidelines. It can be found under the Entry
C
LA

.0

ID: 109481357.
C

23
W
A
D

There is also the software TIA Selection Tool which provides an opportunity for selecting,
+
I

configuring and ordering the devices for Totally Integrated Automation. After configuring the
IB

hardware in the TIA Selection Tool, you are given a list with all hardware components which are
O
H

required (modules, plugs, cables, profile rails etc.).


PR
O

In addition, the order via the Industry Mall can be started directly from the TIA Selection Tool.
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-19
SIMATIC TIA Portal Programming 1

4.8.2. CPU Properties: Ethernet Address

Select CPU

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

PROFINET Interface
AC

@
Regardless of whether the editor is in the Device view or Network view, if the CPU is selected,
SI

the settings of the CPU PROFINET interface can be made in the Inspector window in the
LG

"Properties" tab.
PN
U

If an online connection needs to be established between the programming device and


IV

19

CPU, both devices must be assigned the same subnet mask and the IP addresses must
D

be located in the same subnet.


9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-20 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.8.2.1. CPU Properties: Maximum Cycle Time

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

Cycle Time G
TR

AC

@
This is the time that the CPU requires for one complete program execution, that is, one cycle.
SI

Since parts of the user program can also be processed conditionally and the program execution
LG

can also be interrupted (for example, by diagnostics interrupts, time interrupts, hardware
PN

interrupts etc.), the length of the cycle time is not the same in every cycle.
U
IV

19

Maximum Cycle Time


D

The operating system monitors the runtime of the program for the configured upper limit.
9.
C

If the runtime of the program is longer than the “Maximum cycle time” set here
LA

.0
C

• … the operating system calls the associated time error interrupt OB.
23
W
A

• … the operating system enters the event in the diagnostics buffer.


D


I

… the operating system indicates the error on the error LED of the CPU.
IB

2
O

Behavior when the maximum cycle time is exceeded:


H

PR


O

S7-1200:
PR

The CPU remains in RUN mode even if no time error interrupt OB is programmed.
A

• S7-1500:
TI

If no time error interrupt OB is programmed, the CPU changes to STOP mode.


so

If the runtime of the S7-1200/1500 program is more than twice as long as the set maximum cycle
time (2xMaxCycleTime error), the CPU changes to STOP mode without attempting to call the
ur

time error interrupt OB.


C

With the RE_TRIGR instruction, the monitoring of the cycle time can be retriggered or reset to 0.

Minimum Cycle Time


The minimum cycle time is the minimum time that should pass for the one-time execution of the
cyclic user program and the updating of the associated I/O. The start of the next CPU cycle is
delayed if this time has not yet expired.

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-21
SIMATIC TIA Portal Programming 1

4.8.2.2. CPU Properties: System and Clock Memory

ya
ID

a
N

el
PLC tags

TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

A PLC tag is automatically created for each available system or clock memory bit.
AC

@
SI

System Memory (4 bits)


LG

PN

These are memory bits that provide system status information.


U

• "FirstScan" =1 in the first CPU cycle; otherwise =0,


IV

19

• "DiagStatusUpdate" =1, if the diagnostic status has changed,


D

9.

• One static 1-memory bit and 0-memory bit each (“AlwaysTRUE”, “AlwaysFALSE”),
C
LA

.0
C

23

Clock Memory (8 bits)


W
A

These are memory bits whose binary state is changed periodically by the operating system of
D

the CPU with a pulse-pause ratio of 1:1. The various frequencies are shown in the picture.
I
IB

Clock memory (bits) is used to trigger actions periodically.


2
O

For example, to make an indicator light flash


H

PR
O

Attention!
PR

Clock memory (bits) are not synchronized with the CPU cycle; in other words, with long
A

cycle times, the state of the clock memory (bits) can change more than once within one
TI

cycle.
so
ur
C

TIA-PRO1 - Devices & Networks


4-22 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.8.2.3. CPU Properties: Password Protection

Write protection for fail-safe functions

Write protection for fail-safe and standard S7 functions

Full protection for fail-safe and standard S7 functions

Full protection for fail-safe, standard S7 functions


and HMI access

ya
ID

a
N

el
HMI Standard Fail-Safe

TE
read /Fail-Safe Standard functions

C
write read write write

e
O

in
1

el
2

riv
3
X

EL
4
M

D
D
N

KN
N
AI

Protection Levels G
TR

AC

@
With the following protection levels, the access rights (read / write) of the programming device to
SI

the CPU are specified:


LG

• Full access incl. fail-safe (no protection): → Default setting for F-CPU
PN

Read and write access is always permitted.


U
IV

• Full access (no protection): → Default setting for non-F-CPU


+

19

Read access is always permitted, write access only to standard program.


D

9.

• Read access: → Write protection


C
LA

.0
C

Read-only access possible. No data can be changed in the CPU and no blocks or modified
23
W

hardware configuration or parameter assignment can be downloaded to the CPU without


A

specifying a password.
D

• HMI access: → Write and read protection for STEP7


I
IB

No write or read access is possible from the engineering. Only the CPU type and identification
O
H

data can be displayed in the Project tree under "Accessible devices". It is not possible to
PR
O

display online information or blocks under "Accessible devices" without entering a password.
PR

• No access (complete protection): → General write and read protection for STEP7 and HMI.
A

Now, access for HMI devices without a configured password in the connection is also not
TI

possible.
so

Access Permitted through Passwords


ur

In the example shown, "No access (complete protection)" is selected. This means that without a
C

password, STEP7 and HMI devices can neither read-access nor write-access the CPU.
The above explained protection levels can, however, be lifted again with passwords:
• By specifying a password 4 an HMI device can once again read-access and write-access
the CPU. For STEP7, however, neither read-accesses nor write-accesses are possible.
• By specifying a password 3 an HMI device can once again read-access and write-access
the CPU and for STEP7, only read-accesses are permitted, not write-accesses.
• By specifying a password 2 read-accesses and write-accesses of the standard program of
the CPU are possible for both an HMI device as well as for STEP7.
TIA-PRO1 - Devices & Networks
Training Document, V14.01.01 4-23
SIMATIC TIA Portal Programming 1

• By specifying a password 1 read-accesses and write-accesses of the CPU are possible for
both an HMI device as well as for STEP7.

Permitting Access by Means of PUT/GET Communication:


• So that other controllers can access the CPU by means of PUT and GET functions, this must
be permitted in the Settings of the CPU under Protection & Security > Connection
mechanisms.

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

AC

@
SI

LG

PN
U
IV

19
D

9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-24 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.8.3. Inserting / Deleting a Module

Inserting from the


Hardware catalog
Possible
slots

Deleting in the Device view

O
deletes individual modules

ya
ID

a
N

el
TE
1xR

C
N

e
O

in
Deleting in the Network

el
view deletes entire station

riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Inserting a Module
AC

@
Modules can be inserted using drag & drop or by means of a double-click.
SI

LG

Selecting a Version
PN
U

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
IV

19

task card “Hardware catalog > Information”.


D

9.
C
LA

Deleting a Module
.0
C

23

Deleted hardware components are removed from the system and assigned addresses are made
W
A

available again.
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-25
SIMATIC TIA Portal Programming 1

4.8.4. Changing a Device / Module

ya
ID

a
N

el
TE

C
1xR

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Changing a Module
AC

@
Compared to deleting and then inserting a new module, the advantage of changing is that when a
SI

module is changed (replaced), all the parameters of the old module are adopted on the new
LG

module. A module exchange can, for example, then be necessary when the CPU version in the
PN

offline project is to be adapted to the CPU version (online) following a firmware update.
U

Hardware components can only be exchanged if the components are compatible.


IV

19
D

9.

It is also possible to change a device by dragging the new module from the Hardware catalog
C
LA

.0

onto the old module using drag & drop.


C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-26 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.8.5. Compiling the Hardware / Software and Downloading it into the CPU

1xR 1xR

ya
ID

a
N

el
TE

C
N

e
Status / Error

in
information

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Compiling / Downloading the Hardware Configuration


AC

@
The following components of a hardware station can be compiled and downloaded:
SI


LG

Hardware and software (only changes)


PN

All changes to the hardware configuration and hardware parameter assignment as well as all
U

changes to the user program are compiled/downloaded.


IV

19

• Hardware (only changes) / Hardware configuration


D

Only the changes are compiled/downloaded,


9.
C


LA

Hardware (rebuild all)


.0
C

The entire hardware configuration and hardware parameter assignment is


23
W

compiled/downloaded.
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-27
SIMATIC TIA Portal Programming 1

4.9. Task Description: Creating a Project with an S7-1500 Station

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Task Description:
AC

@
A new project with the name "MyProject2" is to be created. It is to contain an S7-1500 station
SI

whose configuration is to correspond exactly to that of your training device.


LG

PN

Furthermore, the modules are to be assigned parameters and the input and output addresses are
U

to be set so that they match those specified in the chapter "Training Devices".
IV

19
D

9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-28 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.9.1. Exercise 1: Setting the IP Address of the PG


PG with Windows 7

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

AC

Task
@
SI

You are to set the IP address of the Ethernet interface of the PG.
LG

PN

What to Do:
U

1. Connect the Ethernet interface of the PG to the "P2" connection on the training device using
IV

19

an Ethernet cable.
D

9.

2. Assign the IP address 192.168.111.90 and the subnet mask 255.255.255.0 to this PG
C
LA

.0

interface. Proceed as shown in the picture.


C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-29
SIMATIC TIA Portal Programming 1

4.9.2. Exercise 2: Erasing the SIMATIC Memory Card of the CPU

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Task
AC

@
In order to completely erase the CPU, the SIMATIC Memory Card of the CPU must also be
SI

erased. This can be carried out as follows:


LG

PN

• with the Windows Explorer (SMC is inserted in the PG’s Card Reader)
U

• with the TIA Portal (SMC is inserted in the PG’s Card Reader)
IV

19

• with the TIA Portal (SMC is inserted in the CPU)


D

9.
C
LA

.0

What to Do:
C

23

1. Check whether the SMC is inserted in the CPU.


W
A

2. In the Project view, under the interface through which there is a connection to the controller,
D

display all "Accessible devices"


I
IB

3. Under the S7-1500 station, activate "Online & diagnostics" (see picture)
O
H

PR

4. There under "Functions", activate "Format memory card" (see picture)


O
PR

Note
A
TI

If a password is stored on the CPU that is unknown to you, it is only possible to erase the SMC if
it is inserted in the PG’s Card Reader.
so
ur
C

TIA-PRO1 - Devices & Networks


4-30 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.9.3. Exercise 3: Resetting the CPU to Factory Settings using the Mode Selector
Switch

RUN
STOP 1. Set the mode selector switch to STOP and remove the SMC
MRES

RUN
2. Press and hold the mode selector switch in the MRES RUN/STOP LED
STOP
position until the RUN/STOP LED has flashed 2x slow of the S7-1500
MRES
RUN

O
STOP then let go again

ya
ID
MRES
within 3 sec !!!

a
N
RUN STOP

el
TE
STOP 3. Press and hold the mode selector switch in the MRES

C
position until the RUN/STOP LED begins to flash quickly
MRES

e
RUN

in
STOP then let go again

el
MRES

riv
X

EL
M

RUN

D
4. Insert the SMC and set the mode selector switch to RUN
D
STOP A CPU restart is carried out
N

KN
MRES
N
AI

G
TR

AC

Task
@
SI

In the last exercise you erased the SMC of the CPU. Now, you are to reset the CPU to its factory
LG

PN

settings using the mode selector switch.


U

What to Do
IV

19

1. Switch the CPU to STOP and remove the SMC.


D

9.

2. Carry out the reset to factory settings directly on the CPU following the steps shown in the
C
LA

.0

picture.
C

23
W
A
D

Note:
I
IB

A CPU restart is not yet possible since no program (Organization Block) has been loaded.
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-31
SIMATIC TIA Portal Programming 1

4.9.4. Exercise 4: Creating a New Project and Adding a New Device (Controller)

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Task
AC

@
You are to create a new project with the name "MyProject2" and you are to add a new device.
SI

LG

PN

What to Do
U

1. Save your current project.


IV

19
D

2. Create a new one and give it the name “MyProject2”.


9.
C
LA

3. Add the controller off-line which corresponds to your training device as a new device.
.0
C

(In Exercise 1 of Chapter 2 “System Overview”, you already read out the required information
23
W

via the Display and made a note of it.)


A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-32 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.9.5. Exercise 5: Changing the Device Name and Disabling the F-activation

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Task
AC

@
You are to change the device name of the CPU and disable the F-activation.
SI

LG

What to Do
PN
U

1. Select (highlight) the controller in the Project tree and rename it S7-1500.
IV

19

2. Open the Device view and the Properties of the CPU in the Inspector window.
D

9.

3. In the “Fail-safe” menu, deactivate the F-capability.


C
LA

.0

Result: The folder “Safety Administration” is no longer visible in the Project tree.
C

23
W

4. Switch to the “Protection & Security” folder and activate the protection level “Full access
A

incl. fail-safe (no protection)” (see picture below).


D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

5. Save your project.

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-33
SIMATIC TIA Portal Programming 1

4.9.6. Exercise 6: Configuring the S7-1500 Station

ya
ID

a
N

el
Drag & Drop

TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Task
AC

@
In your offline project, you are to configure the S7-1500 station in such a way that the module
SI

arrangement matches that of your actual training device.


LG

PN

What to Do
U

1. In slots 2 to 4, add the I/O modules from the "Hardware catalog" task card using drag & drop.
IV

19

(In Exercise 1 of Chapter 2 “System Overview”, you already read out the required information
D

9.

via the Display and made a note of it.)


C
LA

.0

2. Insert the appropriate power module from the Catalog into Slot 1.
C

23
W

3. Save your project.


A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-34 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.9.7. Exercise 7: CPU Properties: IP Address

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Task
AC

@
The S7-1500 CPU is to be assigned an IP address offline in the project.
SI

LG

PN

For PROFINET-IO Controllers, a device name is not absolutely necessary. For IO-
U

Devices, it is required for the device identification by the IO-Controller.


IV

19
D

What to Do
9.
C
LA

1. In the "Device view", select the CPU.


.0
C

23

2. In the Inspector window under "Properties", select the folder "PROFINET interface [X1] >
W
A

Ethernet addresses". Enter the IP address and the subnet mask shown in the picture.
D

3. Save your project.


I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-35
SIMATIC TIA Portal Programming 1

4.9.8. Exercise 8: CPU Properties: Parameterizing the Clock Memory Byte

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Task
AC

@
In the CPU Properties, you are to parameterize memory byte 10 as a clock memory byte.
SI

LG

PN

What to Do
U

1. In the "Properties" tab, select the folder "System and clock memory ".
IV

19
D

2. Enable the clock memory (byte) and specify address 10 for the byte address.
9.
C
LA

3. Save your project.


.0
C

23
W
A

Note:
D

+
I
IB

Only the Clock memory and not the System memory is required. For that reason,
2
O

deactivate the System memory byte.


H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-36 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.9.9. Exercise 9: CPU Properties:


Display Language and Display Protection

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

AC

Task
@
SI

In the CPU Properties, you are to parameterize the display language of the CPU-Display and the
LG

PN

display protection.
U

What to Do
IV

19

1. In the "Properties" tab under "Display > General", select the item Display language and set
D

9.

the display language to "English".


C
LA

.0

2. In the Password menu, enable the display protection.


C

23
W

3. Enter a password.
A
D

4. Save your project.


+
I
IB

Note on Password Assignment:


O
H

PR
O

Upper and lower case is not relevant, since only the letters A to Z and digits 0 to 9 can be
PR

selected when making entries on the Display.


A

Since there is no Display keypad, it is recommended for this exercise that you select a
TI

simple (possibly only numerical) password.


so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-37
SIMATIC TIA Portal Programming 1

4.9.10. Exercise 10: Addresses of the DI Module

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Task
AC

@
You are to parameterize the I/O addresses of the DI module as shown in the picture.
SI

LG

What to Do
PN
U

1. In the Device view, select the DI module (see picture).


IV

19

2. In the Inspector window, in the “Properties > General” tab, go to the point “Input 0 - 31 > I/O
D

addresses”.
9.
C
LA

3. Enter the I/O address 0 shown in the picture, (this can also be done in the tabular area of the
.0
C

Device view, see picture)


23
W
A

4. Set the update of the Process image to Automatic so that the address is automatically
D

updated by the system in every program cycle.


+
I
IB

5. Save your project.


2
O
H

PR
O
PR

Notes:
A

1. The 1500 CPU offers the possibility of using up to 31 process image partitions. "PIP 1" to
TI

"PIP 31" process image partitions can be assigned to certain Organization Blocks. After the
OB is started, the assigned process image partition for the inputs is updated by the system.
so

At the end of the OB, the outputs of the assigned process image partition are written to the
I/O outputs by the system. The process image partitions are excluded from the automatic
ur

update.
C

2. A process image partition can be updated in the user program with special instructions. For
this, there are the functions "UPDAT_PI" for the process image partition of inputs and
"UPDAT_PO" for the process image partition of outputs.

TIA-PRO1 - Devices & Networks


4-38 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.9.11. Exercise 11: Addresses of the DO Module

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Task
AC

@
You are to parameterize the I/O addresses of the DO module as shown in the picture.
SI

LG

What to Do
PN
U

1. In the Device view, select the DO module (see picture).


IV

19

2. In the Inspector window, in the “Properties > General” tab, go to the point “Output 0 - 31 > I/O
D

addresses”.
9.
C
LA

3. Enter the I/O address 0 shown in the picture and set the update of the Process image to
.0
C

Automatic.
23
W
A

4. Save your project.


D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-39
SIMATIC TIA Portal Programming 1

4.9.12. Exercise 12: Addresses of the AI Module

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Task
AC

@
You are to parameterize the I/O addresses of the AI module as shown in the picture.
SI

LG

What to Do
PN
U

1. In the Device view, select the AI module (see picture).


IV

19

2. In the Inspector window, in the “Properties > General” tab, go to the point “Input 0 - 7 > I/O
D

addresses”.
9.
C
LA

3. Enter the I/O address 10 shown in the picture.


.0
C

23

4. In the assignment of the process image, set “None” since the analog value of the module is to
W
A

be read directly by the I/O later in the program and thus does not have to be updated with any
D

process image.
+
I
IB

5. Save your project.


2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-40 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.9.13. Exercise 13:


Setting the Channel Parameters of the Analog Input Module

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

AC

Task:
@
SI

You are to set the analog channels to the appropriate parameters:


LG

PN

− Set the Channel template (Measurement type) to ‘Deactivated’


U

− Channel 0 → Voltage +/-10V


IV

19

− Channel 1 → Current (4-wire transducer) +/-20 mA


D

9.
C
LA

.0
C

What to Do
23
W
A

1. In the Inspector window, in the “Properties > Module parameters” tab, go to the point
D

“Channel template > Inputs” and set Measurement type ‘Deactivated’ as the template.
+
I
IB

2. Under “Properties > Input 0 - 7 > Inputs” set the Measurement type “Voltage” +/-10V for
2

Channel 0 and for Channel 1 set the Measurement type “Current (4-wire transducer)” +/-20
O
H

mA.
PR
O

3. Save your project.


PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-41
SIMATIC TIA Portal Programming 1

4.9.14. Exercise 14: Compiling the Device Configuration and Downloading it into
the CPU

ya
ID

a
N

el
TE
1xR

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

AC

Task
@
SI

You are to compile the configuration and parameterization of the S7-1500 hardware station and
LG

PN

then download it into the CPU.


U

Note:
IV

19

As long as the CPU doesn’t have a program, the CPU does not go into RUN mode when there is
D

a restart! That is, if, as shown in the picture, you only download the hardware configuration into
9.

the CPU in this exercise, the CPU will not switch into the RUN mode with a subsequent restart!
C
LA

.0
C

23

What to Do
W
A

1. In the Project view, select your S7-1500 station.


D

+
I

2. Compile the HW-Station (right-click on the station, see picture)


IB

2
O

3. After an error-free compilation, download the hardware configuration into the CPU (right-click
H

PR

on the station, see picture)


O
PR

A
TI

Note: When using the buttons shown here to the left, a Delta compilation or Delta
so

download of the folder(s) and subfolder(s) selected in the Project tree is always carried
out. That is, if a station (CPU) is selected, a Delta compilation or Delta download of the
ur

entire station, (hardware and software) is carried out.


C

Continued on the next page

TIA-PRO1 - Devices & Networks


4-42 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4. Confirm the information in the dialog by pressing the button "Load":

ya
ID

a
N

el
TE

C
N

e
5. After you have activated "Load", another dialog appears which you fill-in as follows and then

in
conclude with "Finish":

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

AC

@
SI

LG

PN
U
IV

19

If you have only downloaded the hardware configuration into the CPU, the CPU should now
D

remain in the STOP mode.


9.
C
LA

6. In the "Inspector window" under "Info -> General" check the result of the hardware
.0
C

configuration download:
23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

7. Save your project.

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-43
SIMATIC TIA Portal Programming 1

4.9.15. Exercise 15: Setting the Time and Trying to Switch the Controller to RUN
Mode

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

AC

Task
@
SI

By means of the TIA Portal, you are to set the time on the controller and try to start the controller.
LG

PN

What to Do
U
IV

1. Open the Online access of the S7-1500 CPU via the object “Online & diagnostics” in the
19

Project tree.
D

9.

2. Establish an online connection to the controller via the button “Go online” (The “Go online”
C
LA

.0

button is located in the toolbar and in the ‘Online access’ window opened in the working
C

23

area).
W
A

3. In the ‘Online access’ window, switch to the menu “Functions > Set time”.
D

(The PG/PC time and the Module time can be seen.)


I
IB

4. Adopt the PG/PC’s time by activating the item “Take from PG/PC” and confirm with the
O
H

“Apply” button.
PR
O
PR

Note:
TI

If the item “Take from PG/PC” is deactivated, the module time can be manually changed.
so
ur
C

TIA-PRO1 - Devices & Networks


4-44 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.10. Additional Information

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

AC

@
SI

LG

PN
U
IV

19
D

9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-45
SIMATIC TIA Portal Programming 1

4.10.1. Swapping a Slot / Inserting a Module between Two Modules

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Swapping a Slot or Inserting a Module between Two Modules.


AC

@
Using drag & drop, drag the modules in front of or behind the slot number until the marking
SI

appears at the desired location, as shown in the picture. The module is placed where the marking
LG

is and the modules behind it are moved one slot to the right.
PN
U
IV

19
D

9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-46 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.10.2. Copying Modules from a Reference Project

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

Via the menu "View", the “Reference projects” view can be shown, in which projects can be
AC

@
opened as write-protected. Modules can be copied into the Device view from a Reference
SI

Project. In doing so, all parameter assignments are adopted.


LG

PN
U
IV

19
D

9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-47
SIMATIC TIA Portal Programming 1

4.10.3. Unspecified CPU

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

For the selection of the controller, you can also choose an “Unspecified CPU”. This is necessary
AC

@
when the real CPU is not yet known but you would already like to start programming. Here, you
SI

only need to specify the firmware of the CPU which is to be used later on. The firmware version
LG

must be specified since some functions and instructions which are used for programming depend
PN

on the firmware version.


U

Then, you can write the program without having configured the actual hardware. The hardware
IV

19

can later be configured from the Hardware catalog or determined online.


D

9.
C
LA

.0
C

23
W
A
D

+
I
IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


4-48 Training Document, V14.01.01
SIMATIC TIA Portal Programming 1

4.10.4. ‘View’ Settings of the Task Cards

Single pane mode Multi-pane mode

Change pane
mode

ya
ID

a
N

el
TE

C
N

e
O

in
C

el
riv
X

EL
M

D
D
N

KN
N
AI

G
TR

You can choose between two pane modes:


AC


SI

Single pane mode:


LG

There is only one pane open at a time. If a different pane is selected, the previously open
PN

pane is closed automatically.


U

• Multi-pane mode:
IV

19

Several panes can be open at the same time.


D

9.

Setting for the Device Configuration


C
LA

.0
C

Since there is generally more than one version of a module when configuring the devices (CPUs,
23
W

I/O modules), the required version must be selected.


A
D

Since this additional information on the modules selected in the catalog is shown in the
+
I

"Information" pane, it is recommended that the multi-pane mode is set here.


IB

2
O
H

PR
O
PR

A
TI
so
ur
C

TIA-PRO1 - Devices & Networks


Training Document, V14.01.01 4-49

You might also like