You are on page 1of 146

Appendix

27.3 Data Types a nd Farameter Types

27.3.3.6

Using User-Defined Data Types to Access Data

User-Defined Data Types


User-defined data types (UDTs) can combine elementary and complex data types. You can assign
a name to UDTs and use them more than once. The following figure illustrates the structure of a
user-defined data type consisting of an integer, a byte, a character, a floating-point number, and a
Boolean value.

UDT20
I NT
BYTE
C h ftR

Integer
Byte
Character

REAL

Real number

---------------

BOOL

----------- -

Boolean value

Instead of entering all the data types singly or as a structure, you only need to specify "UDT20" as
the data type and STEP 7 automatically assigns the corresponding memory space.

Creating a User-Defined Data Type


You define UDTs with STEP 7. The following figure shows a UDT consisting of the following
elements: an integer (for saving the amount), a byte (for saving the original data), a character (for
saving the control code), a floating-point number (for saving the temperature), and a Boolean
memory bit (for terminating the signal). You can assign a symbolic name to the UDT in the symbol
table (for example, process data).
Address Name
0.0 3tack_1
+0.0
Amount
Original_data
+2.0
+4.0
Control_code
Temperature
+6.0
End
+8.0
=10.0

Type
STRUCT
INT
BYTE
CHAR
REAL
BOOL
END_STRUCT

Init. value

Comment

100

120
FALSE

Once you have created a UDT, you can use the UDT like a data type if, for example, you declare
the data type UDT200 for a variable in a DB (or in the variable declaration of an FB).
The following figure shows a DB with the variables process_data_1 with the data type UDT200.
You only specify UDT200 and process_data_1. The arrays shown in italics are created when you
compile the DB.
Address
0.0
+10.0
=10.0

606

Name

Tvpe
STRUCT
Process data 1 UDT20Q
END STRUCT

Init. Value

Comment

Programming with STEP 7


Manual, 05/2010, A5E02789666-01

Appenaix
27.3 Data Types and Patameier Types

Assigning Initial Values for a User-Defined Data Type


If you want to assign an initial value to every element of a user-defined data type, you specify a
value that is valid for the data type and the name of the element. You can, for example, assign the
following initial values (to the user-defined data type declared in the above figure):
Amount
=
Original_data
Control_code
Temperature
End

100
B#16#0)
'C '

1.200000e+002
False

If you declare a variable as a UDT, the initial values of the variables are the values you specified
when you created the UDT.

Saving and Accessing Data in a User-Defined Data Type


You access the individual elements of a UDT. You can use symbolic addresses (for example
Stack_1 .Temperature). You can, however specify the absolute address at which the element is
located (example: if Stack_1 is located in DB20 starting at byte 0, the absolute address for amount
is DB20.DBW0 and the address for temperature is DB20.DBD6).

Using User-Defined Data Types as Parameters


You can transfer variables of the data type UDT as parameters. If a parameter is declared as UDT
in the variable declaration, you must transfer a UDT with the same structure. An element of a UDT
can, however, also be assigned to a parameter when you call a block providing the element of the
UDT corresponds to the data type of the parameter.

Note
If you call a block created in the S7-SCL programming language that contains a UDT parameter in the
program editor, this can result in a type conflict. You should therefore avoid using blocks created in
SCL if you use UDTs.

Programming with STEP 7


Manual, 05/2010, A5E02789666-01

607

Appendix
27.3 Data Types a nd Farameter Types

Advantages of DBs with an Assigned UDT


By using UDTs you have created once, you can generate a large number of data blocks with the
same data structure. You can then use these data blocks to enter different actual values for
specific tasks.
If, for example, you structure a UDT for a formula (for example, for blending colors), you can assign
this UDT to several DBs each containing different amounts.

The structure of the data block is determined by the UDT assigned to it.

608

Programming with STEP 7


Manual, 05/2010, A5E02789666-01

SIEMENS

Compiling the AS HW Config and Downloading in STOP Mode


.XKWConfig
iaton

(ASOI (C o n fty u rjlio *.)

E<J

Ijs g rt

PIC

j j ps 40?icy,
s

Yu**

PR O .A Sj

Cc m o k

Mndo> Heto

3 ( 1 2 8 | CiR-C

CPU 4 1 7 4

KfPVDf

Download to M odufr

>u lo v e co fig ge d CP obicch


Do>-rJoad iU t w i r(vtfigur9fort in RUM morte
( D ow nloads STOP mode

OK

SIMATIC PCS 7
S e v e rs AG 2003. All ngnts reserves.

1511-2006

Date:
Fe: ST-PCS7SYS_W0_systXonf.21

Caicei

, # (
*

H rip

S IT R A IN Training to
Automaton and Dnves

Exercise

Compile and download your AS's hardware configuration to your target module.

Compile

Click the Save and Compile icon ("1" in the slide). Or, alternatively, you can use
the menu command
Station -> Save and Compile

Download

Ensure that the CPU is in STOP mode and that the keyswitch is set to STOP or
RUN_P.
Click the icon *2" or, alternatively, use the menu command
PLC -> Download to Module
The first time you download, the AS is downloaded with the CPU in STOP mode
(if it is still running with an old configuration, the download dialog box offers a stop
and restart option).
If you make changes later, they can also be downloaded w ith the CPU in
RUN mode (certain rules apply). This assumes th at suitable PCS 7 driver
blocks are already running in the CPU.

Remark

For the sake of completeness, a description of downloading in RUN mode is


provided on the following pages. If you need to make changes to the hardware
configuration during the course of the project, follow the download procedure
described there.
Now the configuration of the AS from the first project is complete. A similar
procedure must also be performed for the PC stations that are being used as ES
or OS (see the section "Configuring the PC Station in this chapter).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 21

System Config

SIEMENS

SIMATIC PCS 7

Date:

15.11.2006

Siemens AG 2003. All rlgtts reserved.

Fite: ST-PCS7SYS_W0_ub_pro2 -

S IT R A IN lra in n g fo r
Automston and Drivas

Process description (using the equipm ent in Group 1, U nit A1 as an example):


Component X

The reactor must first be empty and cold. Valve 1U101 is used to fill this
component up to the L1=20% Lmax level.

Mixer

The mixer motor 1E101 is turned on.

Component Y

Valve 1U102 is used to mix this second component until the L2=80% Lmax
level is reached.

Heating

The mixture is heated up to 90C. The temperature controller 1T101 must


maintain this temperature for at least two minutes.

Draining

After the heating is turned off, product Z must be drained completely, and the
mixer 1E101 must be turned off.

In addition

The fill level is monitored (1L101 and 1L102). The inlet valves 1U101 and 1U102
must be closed when the upper level limit (Lmax) is reached. The drain valve
must be closed when the reactor is empty. There must be a signal when the level
monitor responds. Both the temperature controller and the mixer must be
operated and monitored in the control room.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 2

Configuration

SIEMENS

Exercise: Download the AS Hardware Configuration in RUN

MW Config

(A S O l (Conf<jura*n)

3^ Station Edf meet:


J c g ls H " i

PLC

&

PUO AS)

'te-* Optiae Wndow Hefc>


|

I E a

Ji

101UR2
P'ofde

| PCS 7_V61

$ PRQF1BUSDP
D ow iJood to Module

Noj have cortigu ed Cfi &D|ec*c


Oov*mo*d^atencontyixariarinRUNmode
^ DwnlodcjviSTOPiMxfe

Cancel

4 " __ | i3| IM153-2 -sdridav

sw (| MocUc
5
fl D O a K 2 4 \/a &
f
If
IF 4 0 & 7 2 F *
8 IF AI2*HART. Ex
81
82

QideiNutibei
6E S ?32?& FO H H B e
6 E S ~ X tt-7 m & a *B 0
6ES 3
' 325H D O I-O M IO

|1

6ES7331-71800 OABO

0
512 :

51:
PROFIBUSPP

foi 5*MaTICS7

M" and C7 fti tnbuled to*.ki

CP modcte

Pies;fi togetHelp
SIMATIC PCS 7

D
: T.pCS
15
Pa
*ale:S
7.1
S1
Y2S0_C
V67D_systtonf22

Serrens AG 2003- AJI rights reservec.

u#
l AulofralwnandDrivfo
esf

Download to target system in RUN


Requirements

A fte r the station configuration was downloaded w ith CPU STOP, you made
changes to the configuration and have not saved them yet.
In the hardware configuration select
PLC -> Download to Module
or click the icon (point 1 in the slide)
The CPU keyswitch m ust be set to RUN_P.
Then download in RUN state is offered.
Should the CPU nevertheless go to STOP as a result of downloading in RUN, this
is an indication that the CPU software is incomplete or does not capture the
triggered events. This problem is automatically solved by using the PCS 7 driver
blocks.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 22

System Config

SIEMENS

Download the AS HW Config to the PLC


(Check CiR Compatibility-1)
LtR tu n u x itib ik ty

* i

Ln ot Mes-vage

MHp an
C ta

Seabedten

Indes

Lcsszachcn

Ophcnen

Dfucl.cn brsery |_______________

Help on Message 13:4829


Description o f Error:

Mettage

| Check CjR Conpaihity [13 4829J

H H c Io 4

Due to a m odification o f the configuration, an S D B was


generated w hich cannot be downloaded to the m odule in
lode.

To Correct or Avoid Error:

The change m the c o n fg J t


4 1 " 4 earns* be lo a isd r Rl

Undo the changes.

See also:
You can find further inform ation and FA O s here f if l the
internet..
PS 10710A

v r

SIMATIC PCS 7
ST>ens AG 2003. A! rights reserved

CiR Compatibility

Note

rn o rB u s c*p
M7 artcC7fd:'

Date
15.11.2006
fr,le: ST-PCS7SVS_V70_5y5t<onf 23

S IT R A IN Tr&ning for
Automation and Dfwes

After the download procedure is started in RUN, STEP 7 first checks whether the
changes can be downloaded in RUN. The current online configuration of the CPU
is also taken into account. If it is not possible to download the changes (e.g.
offline changes to the CPU parameters, such as e.g. PIP assignment), a screen is
displayed indicating the cause. You can then press the Help button to display a
description of the error and how it can be eliminated (if this is possible).
You can also start a preliminary check of the CiR compatibility by activating the
menu option in the HW Config
Station -> Check CiR Compatibility
This checks whether the configuration changes that were made since the last
download can be downloaded to the automation system in RUN. The check is
performed offline. An online connection is not required.

If the check returns a negative result, we recommend discarding the changes.


You are lucky if you didn't save the modified configuration before the check! You
can now exit the HW Config. You are prompted whether you want to save the
changes. Respond with NO! This way you can discard all changes that are not
CiR-compatible.
General Recommendation
After a successful download, make small changes to the HW Config and note or
remember the changes you have made. Should the result of the CiR check be
negative, there is no major loss when you discard the changes.
If, however, the changes are necessary, you will have to resort to downloading
with the CPU in STOP mode and then reboot.
For a detailed description, please refer to the manual "STEP 7 - Modifying the
System During Operation via CiR that was installed on your ES.
The programming instructions in that manual can be disregarded under PCS 7, as
the PCS 7 driver blocks take care of the specific cases.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 23

System Config

SIEMENS

Exercise: Download the AS HW Config to the PLC


(Check CiR Compatibility-2)
| ^ M W 1 cinhg
a*] Stabor*

Ectt

lrtfttt

PIC

Dte;s>i
i

'

BL

[A S III (rcm fK jurA lum ) - PR O . A S )


Vie*-# OpMooi
SB*

Help

fc ls ilB c a l ss

'

-ID lxl

__ .

*?

.
E<nd

[J PS 40710*

5 ii2 e jc fl-o

eroc

|PCS7_V61

5 f3 |!M 1 5 3 -:
K

CPU 417-4

\
1

KZ
XI
IF!

:
3 S 18x!28rt
A18xT2Srt
SM 33^

rT tn r

SM 331 AI8x138i!
SM 331 AI2>c128ir
AI2x128f

C
KIPl/DP

SM 331 A!2x128<
AI2x128<
SM 331 AI2x12Bf

IF2

SM 331 AI2xl2B.
AI2x12B*

:;|t CP 443-5 v t j ^

SM 331 AJ8x12B.l
AJ8x12B.
SM 331 A I8 x 1 2 B it_
S M 331 AJ8x1S8.t
J 131 1M 153 2 ledtndanl

SM 331 AI8x168it
SM 331 A ie jflT D

Slo
r

(j

82

Order

jnbe*

i
a 1 M

SM 331 AISvTC
_r

SM 331 AMxO/4.

[ f AlPfcHARl The current 1(0 area c f the CiR modJs Is no


1 siificicnt for the new module.

81

V
IU C * r * .* ie

SM 331 AJGxTCM _

"1 /
.

10

I
t d

11

S S ri3 * 1I.FX-W S 0
A/ulog tr,yj module A1 8cl i b t;

The o n ie rf I/O area of the GP r.odde is noc su'hcent roi tiw rev* *xJ.i(e.

SIMATIC PCS 7
ST>ftrti AG 2033 All rights reserved

Date:
15.11.2006
Filo: ST.PCS7SYS_V70_systkcnr.24

S IT R A IN Trainee for
Automation and Doves

Some properties that are relevant for the CiR are already checked during
configuration. In the above example, the address range reserved by the CiR
module is not sufficient to allow insertion of another analog module.
It is not possible to download changes made to the reserved range in RUN (see
next page).

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 24

System Config

SIEMENS

Exercise: Download the AS HW Config to the PLC


(Check CiR Compatibility-3)
( iR m od u li properties
CM* rnodolr proprvtar*

Gencral$e>tng j

Genccal SeHng-. !
Sumo* sddrev

t& \

ge'
Si a or Add* .

Input

|128

Quipui b/ei

Jl2S|

Inptf btfer
Ol*p*A

194

b b p f l Prnp#*rtirMi:*:4845)

(&*< P ru p rrt v ( | . t / '3)

*J

QnJy$4inputb*.^r.onj 103ooUKltovtrvar ovaWtfcfor

A
! \

*ho c** erV I/O area o hj^lR module

ll you c h a r** imr itiy, download m RUM TiodB vdl no


iongeibepc:*ib!e
Do vou
vroi 1 'o cfvangc Jhc entry

C jrxel

SIMATIC PCS 7
SiemensAG2003All rightsreserved.

Dale 15.11.2006
F.le:ST-PCS7SYS_V70_sysUonf.25

,.#1 SITRAINTrarinQfor
* Au<omationandDrives

Any subsequent changes to the reserved range for this ET 2Q0M cannot be
downloaded in RUN, i.e. if insufficient address space was allocated before the
first download.
How should we proceed now? If the CiR object on the DP subnet still has sufficient address room for
slaves, an additional ET 200M can be inserted there and fitted with modules. In
the latter case, you should create sufficient reserve addresses so that the new
rack can be completely equipped.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 25

System Config

SIEMENS

Configuring the PC Station (Overview)


Hardware description
in the PCS 7 project

Hardware description on the PC station


Actual configuration

Preset configuration

Station
Configuration Editor
(part of PC installation)

HW Config
of the PC station
(part of project)

Index/type

- 3

Application

Application

WinCC application

WinCC application

-3-

- ---------------

----------------

C Py

with "configured
mode

Station Manager

CP y

125

Station Manager
J

SIMATIC PCS 7
Siemens AG 2C03. A l rififrts rosorvod.

Date:
15.11.2006
Rfc: ST-PCS7SYS_V70_syst<onf.26

S IT R A IN Traning for
Ajcomatlon and Dnves

PC Station

The PC can be used as ES or OS or both. It must however be set up once,


immediately following installation of PCS 7. Then it can be changed later.
C om m issioning Wizard The Commissioning Wizard appears after the installation and detects (via
Win2000 functionality) the network cards (CPs) on your computer. You need to
make settings for the CPs (explained in more detail later) It is also automatically
started if new or different communications cards (CP) were installed on the PC
after it was last shut down.
Set PC Station

After the Commissioning Wizard has finished, this tool opens and the
modules/CPs recognized by the Commissioning Wizard are displayed. For each
module, the operating mode is displayed in the "General" tab:
"Configured Mode": The CP (module) is loaded from the project by the
Hardware Config (configured). The preset configuration created there determines
the behavior of the CP (actual configuration).
"PG Operation": In this case, the CP is configured via the properties.
or via
START-> SIMATIC->SIMATIC NET->Settings ->
Set PG/PC interface
PCS 7 version)

(as you may already be familiar with from the previous

SCE

The Station Configuration Editor is displayed in the form of a table. Only the CPs
that are set in "Configured Mode" initially by the "Commissioning Wizard" (or later
by "Set PC Station") are entered in the table. If a CP is switched from "PG
Operation" mode to "Configured Mode" in the "Set PC Station" tool, it is
automatically recorded in the SCE table. When the mode is set back to "PG
Operation", the CP is removed from the SCE again.

Remark

Each component (also the individual CP) is assigned an index in the SCE (like a
"slot" in the table). You can change the slot/index in the SCE via:
Select CP and Edit
or by moving it with the mouse.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 26

System Config

You can also delete a CP in the Station Configuration Editor (it is automatically
switched to PG Operation) or add one (it is switched to "Configured Mode again).
Software components can also be inserted in the SCE - as substitutes for the
applications that are to run on the PC.
These include, for example, "Application" to set up connections from this PC to
other network stations, "WinCC Application" for the WinCC software to
communicate (if the computer is used as an OS). The "Application" also has an
index/slot and can be moved if necessary.
Note 1

The SCE table can be viewed as a rack whose components have to be loaded
from the PCS 7 project. The individual component in the SCE must have the
same index as its counterpart in the HW-Config of the project.

Note 2

In SCE there is a bottleneck with regard to the Softnet modules. It is not able to
administer two Softnet modules with the same protocol if they are both in
"Configured Mode" at the same time. This is the case, for example, if Ethernet
communication in PCS 7 is running over BCE and Softnet modules are being
used.
Remedy: In the "Set PC Interface tool, set the Ethernet connection for the plant
bus in "Configured Mode , while the terminal bus connection remains in "PG
Operation".
This means that the systems bus connection in the PCS 7 project is configured in
the HW Config of the PC station and is also loaded. The terminal bus connection,
however, appears neither in the SCE nor in the HW Config.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 27

System Config

SIEMENS

Set the PC Station (Modules)


L

f anfrqur.ition I onv4r

>

Action V

*
S

IE

__I PC scanan
- f a l SIMATIC NET Ccrfiguration

m l

Ethernet

T rp r ol module

i Configured rnodr
-------------------

M u jf o l l e Tiodu'e

Applications

f l l f-Vx^es

1
(Jon>ro! (c n u i i c

US' 'jenero!
Interlace prtfitetor

Verson
G ? Addr&si

tnd Efhe*rit

nCe|BjPRO/10 0 VE Nc~

" Network Didtjncstfc

* Bus Nodes

g ? Softnrt DP
- S_J Intd(R) PRO/193VE N
(r5F version
(2j* Addreii
g f Sc#lnet IE

ES* 5P >es

jd

Type 31 roA ile

jE liv r c '

v TdP n' th<* rr/xJule

PG cper

V.eiface pi:*fc tot

>tt<y.a LrpdtCad ? th

..

Module reac^n

F-r-.r^

|
I

TCP>1 -> Wrccm D lrC d E tt


ISO .nd Eihsrv* ->V*coro DeiUCadEihe

.Jrcora OedtCcrd
* Genej J 1 Version

Vod'-fe reaction

25* Add'ess
E f Soviet IE

1 SP test

la r v d

SIMATIC PCS 7
Semens AG 2003. A! rtgnts reserved.

Set PC Station

H e*

S IT R A IN Trainirvg for
Automaton and Drives

Dale:
1511.20DS
Flo: ST PCS7SYS_W0_$ystkonf 28

The Set PC Station tool is launched via the Windows Start bar
Start -> SIMATIC ^ SIMATIC NET

Set PC Station.

The "Modules" and "Access points" tabs are of interest for PCS 7.
Modules

All communication modules detected by the Commissioning Wizard are listed


here.

CP 5611

The CP can be used for interconnection via MPI or PROFIBUS DP. It is set to PG
Operation, as it is only used for PCS 7 V6.1 in some specific cases.

CP y (see page 26)

In the example, "Configured Mode" is displayed as the mode type for the internal
LAN interface (Intel). Index "4" means that this module was entered in the SCE on
"Slot 4". It can be moved there if required. The settings for the module are loaded
from the project after the HW Config is opened.
The module is required as a connection to the plant bus.

CP x

In the example, "PG Operation" is displayed as the mode type for the 2nd LAN
interface (Xircom). This module is not displayed in the SCE, is not used in the HW
Config, and is not loaded from the project.
The module is used as a connection to the terminal bus.

Remark

Training Center
for Automation and Drives

To change the operating mode (PG Operation <->Configured Mode) you must
have administrator rights under Windows. In Configured Mode, the parameter
settings for the module are loaded from the project. In "PG Operation", you set the
parameters.

SIMATIC PCS 7 System Training


Page 28

System Config

SIEMENS

Set PC Station (Access Point)


( o n fm u r fttio n C o n to te

Acton

Hie*

S/0*CIN1 (>ro|>rrtr%
dD t 0

Tie* |

G>

Q*

"Q

port

JL *

Access pain's

__I PC Staten
51MATIC NET Contiourd*n
4
Aprrtcaticns
- ( | Module?
+
CPS611
+ IQ Intd(P) PRO,MOO VE M.
+ BQ >SrcomCredtCardPh.
5 3 CPsmulatioo

fe & K p o n t

J-terface pjiranetw asflgnrent

]570fJlIN E W .
3 c p j2 _ i
Jcp _sm _ i
QCP_H1_I:
Q m PI

>iccei ra n '
S 79N UN E

CP561MMPI)

t . xr.xarea

ccforrcci asjignmetr

\
\

- Q cp. p n j

PC ntom i lk>cdl|

ISO Ind Eheir* > /icorn QetiitCdicJ Elne


ISO Ind Ethernet > IntetfRlPRO'IOOVE Ne
TCP/IP Nd-.v/onlp
CP5SniAutoJ
CPS611CMH1
tfiS611fPR0FlBU5l______________________________

C P S b lU M P I)^ v .
\

"CJ Acte.-porV

point*
pwtf to ihe M irtfe^Viw (uuamtfei a ^ g r m a t *4l be
fynapped tc the ?. irmtace pa srupe x . sgrmsrt

Access pon'

. S n U .IN F ^
A.-.ocj^ec! riwicc p a a n v lt'.

Of

ApO^'

Cancel

Help

CF%6?1|MFlT_________
ISO Irri Ethetref ;*5rcon. CredtCart^f the
ISO Ind E th c ire t-H n to tm PRO/100 V t Ne..
TCP/IP N duW ddp

a re G m u jo )
|CP5611fPR0F;BJS)
I PC intetnarf (bc-all
'e y
uanl.
i' v portf *c ihe c4d r ^ i t a : * paiamSS
panl: Hal
ten^wed to Hie new nte#toc& p aran g # a. ^ n n c n 1

or.

SIMATIC PCS 7
Semens AG 2003. Ail rights rsse'ved

Access Point

ppij

Cancel

%-*Pt e

Kelp

Date:
15.11.2006
File ST-PCS7SYS_V70_$ytf*onf 29

S IT R A IN Training for
Automation and Drives

The available access points are listed here. The assigned interface parameter
settings and module are displayed for each access point.
Applications that use the protocol libraries (DLLs) directly use the name of an
access point to access the module. Double-clicking on an access point opens a
dialog where you can make changes to the assignment.
The access point "S70NLINE" is the relevant access point for online operation of
the ES. Which device (interface) the SIMATIC Manager uses to communicate
with the ASs is determined by the access point.
For example, if S70NLINE is set to CP5611(MPI), the SIMATIC Manager will only
try to access the other components via this module with its MPI settings.
On the other hand, if the access point S70NLINE is set to "PC internal(local)",
the SIMATIC Manager tries to find the path to the other components on the basis
of the configured networks.
If several paths/gateways are possible, then a screen form will appear offering a
selection of the available gateways.

Remark

This setting is also required in order to download the configured ES/OS


configuration "to the PC".
It is also used for central configuring in large-scale projects (multiprojects).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 29

System Config

SIEMENS

SCE (Station Configuration Editor Option)


Add Component

Sttton Configuration Idflor

Compoiwlr | Dwgio ter


Stan

Ujcter

Tspe

JOf f 1 IMI |

AceTcation
BATCH Applcation
BATCH Appfcolio^ [siby)
BATCH A p tfc a to n Dient
CP 5511
Nome OPC Server
RC Application
R C Applcatcn(tfby)
Paramcief a*.:g RCApplcabon Cicnl
W rC C A cp i C tert Ref
W nCC
WinCC Afilcafccn 11fcy)
WinCC Acplcabon Clent

CrxfyyidxxArio

SI

Mod?

Name

RUN.P
> ***

Rtr^Stop

4ppfcatn

Ccrti

Add Componenl
Tipe

N m

WnCC ^pplcafon

Parameter 3^ \g

SiaoonN^ma

Impoci Sahon

SIMATIC PCS 7
S om ers AG 2003. A l ri$*t5 ro&erved.

Dt'abJf Sfetion

Date.
15.112006
Fte: ST-PCS7SYS_V70_$y&1l<Oftf 30

S IT R A IN Training for
Automation and Drr/cs

Exercise (info option) Set up the Station Configuration Editor so that Index 2 (row 2) contains a WinCC
application while Index 3 (see slide) contains the Ethernet OP for the plant bus.
Enter the Windows name of your PC as the station name.
Note 1

The SCE initially only shows the communication modules that the Commissioning
Wizard has found that are in "Configured Mode".

Procedure

Start the Station Configuration Editor from the desktop (or alternatively, via the
icon in the Windows taskbar).
Select the row with the contents you wish to delete, then
right-click and select Delete
to remove the contents.
If it was a CP, it is removed from the Station Configuration Editor, but remains in
the Set PC Station tool where it is switched to PG Operation mode.
If the correct component was already entered, but in the wrong row, you can
move it to the correct row with a drag-and-drop operation.
If you want to add a new component, select the row in the table,
right-click and select Add.
A screen form opens where you can select the component you wish to insert.
An application should run on the PC according to its function in the network.
If the PC is used as ES, it needs a slot/index of type "Application or "WinCC
application" in the SCE.
If the PC is used as OS, it needs a slot/index of type "WinCC application",
"WinCC application (stby)" or "WinCC application client" in the SCE. Which option
to select depends on whether the OS is configured as a single server or
redundant server, or if the OS is used as a terminal (client).

Delete

Move
Add

Application

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 30

System Config

Once the configuration is completed on the PC, it must be loaded from the HW
Config (which is contained in the project). Then the PC is ready to assume the
role assigned to it (ES or OS)
Note

Later when the connection is configured, the application represents the contact
point on the PC side for the CPU from the AS side.

Note 2

The previously described procedure also functions in Version 7.0. A disadvantage


is the double configuration (once as SCE on the PC and additionally in the
hardware configuration of the PC station, in the PCS 7 project).
With Version 7.0 and higher, the SCE can be derived from the project once the
hardware configuration has been created in the project. Initial creation of the SCE
is then omitted.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 31

System Config

SIEMENS

Exercise: SIMATIC PC Station/OS HW Config

Windows network connections (via START -> Settings


Control Panel -> Network Connections)
I V Netwxk Cumin tiom
Fite

Edit

View

Favor/es

J,

Tools

Advanced

Search

Address

Folders

-=iSI
1 fr

Help

*0

SS*
fc-'jfl Go

Mciwctk Connections

Warns

f Status

Type

Pttune t o r J

Device Name

LAN or High-Speed Internet


Reafcek RTL8139 Far.ly PCI Fas. .

^Systernbus *

LAN or Hgh-Spced Internet

Connected

JjTermmalbus

LAM or High-Speed Internet

Network cable unplugged Xrcom Ethernet Adapter 19} 100

LAN or High-Speed Internet

Connected

1394 C onnection\^\

-1

................................

Meaningful names for the LAN connections

SIMATIC PCS 7

Installed Ethernet CPs

Dala:
15.112005
Fie: ST.PCS7SVS_V7C_aystkonf.32

Se-ncns AG 2003. All rights reserved.

1394 Net Adapter

f !ITR^
T f ; , 0 f
Automation and Drives

Exercise

Configure your PC station as an ES/OS

Steps

1. Open the network connections of the PC under Windows, and provide them
with meaningful names.
2. Open the SIMATIC PC station from the SIMATIC Manager project OS_PRO,
and add to the components in the virtual rack
3.

Configure the station Cafter_s.etting.the .P C J n le rfa s e }!

4. Download the PC station


Network connection

1. From the Windows task bar, select


START -> Settings -> Control Panel -> Network Connections
to open the screen form shown above. Depending on the connection of the
Ethernet CP, change the Windows default names to "Plant bus and "Terminal
bus"

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page

32

System Config

SIEMENS
SITRAIN

Training for Industry

1.

System Overview

2.

Configuration Overview

3.

Project Structure

System Configuration

CFC

SFC

SCL

8.

Operator Control and Monitoring

9.

Multiproject

SIMATIC PCS 7

System Course
Course ST-PCS7PRG
AL: N

ECCN: N

Export regulations
AL
Number of European or German export list.
Goods
export authorization.

with

labels

nol

equal

to

are

subject

to

ECCN

Number of US excorl list (Export Control Classi'icat on Number) Goods


w/th labels not equal to 'NT are subfact to re export authorization for
export to certain countries.

Not

Goods labeled with #AL net equal so N* (hero: technical documentation)


aro sd bflct to Eu'opean or German export authorization when beirg
exported out of the EU.
Goods labeled with ECCN not equal to 1ST (here: technical
documentation) are subject to US r#**>qport authorization.
Even wltnout a la ta , or with label *AL N- or "ECCN:N\ authorization may
be requred due to the final whereabouts and purpose for whch tha
goods
are
to
be
used
(here:
technical
documentation).
Decisive are the expcn labeis stated on order ac*now;edgmc:s, delivery
notes and invoices

Th*s document was produced t o training purposes .


Siemens assumes no responsjolfty for 1s contents.
The reproduction, transmission or use of this document or its contents is no: permitted
without express wrilton authority. Offenders will be able for damages. AH rights,
jnduciOQ rights created by paten: gra^t or rogisuatlon of a utility model or design, are
reserved.

SIEMENS AG 2012

Name:

SIM ATIC S7 PCS 7 PRG

Course: from

10 to 14/12/2012

Trainer: Sr.Rbm ulo Duarte

Infoline

Tel:
+351 21 4178704
Fax:
+351 21 4178089
Internet: http://vwm.siemens.com/sitrain

ID No.:
Release V7.0 (for PCS 7 Version 7.0)

10. Append

SIEMENS

Exercise: SIMATIC PC Station/OS HW Config


, SI M A I I t M a n ^ jrt
Fte

Ed*

Insert

PIC

7MW Confty (1 *001 ( f on!tcjuvit>on)

COIR
vieu

Options

Window

(&% Station

Hefc

PRO OS

ABB

PLC

V ^v

.r jn j *J|

Opbons

Wrvkhv

'-tefo __J

d<g*; s? - i * ife'
m , e <**!
> s f iijs s f
1C* (OJ8(( wnpom*nt view) t>.,Pti 71our**\Colr
- a i COLR
Otjeci narr*^^ i S>mbole name
- PRG_AS
m
m
^ CoVisu ation
- d AS01
1
-lg| CPU 417-4 /
-jf CP 443-1 f
t

Ed*1 Insert

o .& %

hi

p . H

J > f 4

PCS7_V61

" 3

WinCC I
=

SIMATIC PC Slater

I CcntroJer

J User Appfccatco
CPIr>d>:tiia! Efliomot
CP 1512
CP1612
_3^P 1613

ffl

1... -J

ll

I CPPROFIBUS

IOi PC

HMI
BATCH Applcaban

Modtie

BATCH Apptcahon (:tby)


8AT CH Applcaiion Clont
V/inCC A pplcatcn

V.-wCC Apdic
IE General

WinCC Appfcabcr(;tovJ

^ I

IE.CP
Substnrte lee any Indiana* Ethernet
modiie PROFINE 1 IDeonHoln.
ISO TCP/T 57 cccnec%n; PG
Inseition possfcte

SIMATIC PCS 7
Siefro8 AG 2003. Ail rights reserved

SIMATIC PC station

Dale:
15.11.2006
Fte ST.PCS7SYS_W0_sysfconf.33

.j?l
*

SITRAIN Training tor


Autcnwfionand Dnves

2. The OS was created as a SIMATIC PC station. The PC station was also


configured as a component with the HW Config tool.
In the component view of SIMATIC Manager, select the SIMATIC PC station,
right-click and select Open Object (or double-click the configuration icon).
In the hardware catalog, open the node "SIMATIC PC Station", select the
components and use the mouse to drag them onto the PC rack. You need to
match the slot in the rack with the Station Configuration Editor (SCE). The
matching must take place before downloading the configuration to the PC (see
next page).

Components

The components are as follows:

WinCC Application

This corresponds to the OS software. However,


the index (slot within the rack)
does not match the position in the SCE (Station Configuration Editor). It needs to
be adjusted as follows:
- Use the mouse to drag the WinCC application to the same position in the HW
Config rack as in the previously configured SCE,
- Or, the SCE is automatically configured (see next page) if it is still empty.
In the latter case, the slot/index in the HW-Config is now irrelevant.

CPs

2. Communications processors for connecting the PC to the networks (MPI,


PROFIBUS, Ethernet).
In our exercise do not configure CP 5611 as it is running in "PG Operation" and is
not loaded.
Select the Ethernet CP installed in your ES/OS PC configuration and drag it onto
the PC rack. Set the Ethernet address (MAC address) in the CP properties
according to the parts list for your workstation.
In our example, deactivate the Internet protocol (TCP/IP).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 33

System Config

Note

If an IE General CP/Softnet CP is used (e.g. 3Com or LAN onboard), then it is


generally not possible to change its address and the address in the HW Config
must match the address displayed in the "Set PC Interface" tool.

OS

After you compile or complete the HW-Config with with a Save operation, an OS
station is created in the component view of the SIMATIC Manager under the
SIMATIC PC station.
Select the station,
right-click and select Object Properties
Then, the station as "OSxx", where xx is the number of your station (e.g. O S O I).

PG/PC interface

Training Center
for Automation and Drives

Change the S70NLINE interface to "PC internal (local)". While this setting is
irrelevant at the moment, you can make it now since you already have the
SIMATIC Manager open.

SIMATIC PCS 7 System Training


Page 34

System Config

SIEMENS

Exercise: SIMATIC PC Station/OS HW Config


E

SI MA I K M <in*orr

Eir-

.<W

?1C #ew

Qpons

D C *

C? CCXP ( ( o fitp o n e iil vh-%*)

Winder*
o

k
t ok

Jpdate

tble computer.

E ^| Ccniigj'dlion

[LNB04

PflO_AS1

I-- 5

*J

Locd net-rofh conrecbon

tfMo

*m

D; P C S rto u r* c

aJC O LR
^

Configure

I MU

PHD 0S1

[l nnlw jurr

>CH*ifoad

Acccss Protector.

C o n fin e ...

Local reCwttk ccn*chon


iTermnalbus

z i
Upda't

AccocciW? computed
LNB04

1-yget computer
|LNB04
Cfirftgme .

fcwpley
j j . f contgurod <if9?icon-pnter

Mer sge

ls<ye conpuer

LNB04:

Tier^ei completed uccc

I LNB04
Cgrrfigure

SIM ATIC PCS 7

,.#!

Dalo:
15.11.2006
Fte: ST-PCS7SYS_V70_s>GKor/.3S

Siemens AG 2003. All rights reserved.

S IT R A IN Traning for
Automation and Org

Configuring the PC Station


3.0 Select the PC (your ES/OS) in the PRO_OS project in the SIMATIC Manager,
then
right-click and select Target system -> Configure
to open the screen form (see above)
3.1 Select your terminal bus under "Local network connection". Only connections
with a TCP/IP setting are offered.
3.2 Click "Update". The computers accessible under Windows are displayed,
including your own computer.
3.3 Select "Use configured target computer". The name is automatically entered
into the "Target computer" box.
3.4 Click "Display. The current SCE of the PC is displayed (check). If something
has already been configured, the hardware configuration must match it. If it is
empty, carry out the next step. If necessary, components can be deleted by
calling the SCE directly before the next step is carried out.
3.5 Click "Configure". The SCE is structured according to the hardware
configuration, and matches it!
3.6 Check the messages to see if errors have occurred.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 35System Con

SIEMENS

Exercise: SIMATIC PC Station/OS HW Config


Station Configuration Editor
was created when
PCS 7 was installed on the PC
Is configured according to the
subsequent use of the PC as an ES
and/or OS

SIMATIC PC station
HW Config is configured in the
project in the SIMATIC Manager
and downloaded to the target PC.
S70NLINE-> PC local

r Kamponcntcn Honftqurator - JONLINC]

, MWConfrg
Sranon

Konponctfen I ? liSn o .s
S ia m

Betiiebian

LNB04
__________ I.T jp _______

Mngpth

StdUJ*

R un /S o p

I IE AIkfsmen

PIC

Viev*

O p tio n s ^ffitfd c w

fe

(2 W

Prcfie

t "

IE AJIgemen

II

17

Semens AG 2003. All rights reserved.

PC Interface

[f in

xj

j g j k?

| PCS7_V61

z i

V/mCCAppl

I T 1

SIMATIC PCS 7

-telp

V<

f
j Iw W XA ppfcat

Edit

p | g g i^ | B @ )a t

RUN_P

Si *J

(IM M H (C oofigurtno) - *KO

SIMATIC PC Station

" 3

I Corrtidlci
I U seiA p p koto o
_ J CP-lrtdu :Jrial E*hejnet

. _ J CP 1512
t' _ | CP1G12
* _J CP 1813

If*

......I

SITRAIN Training for


Automation aofl Drives

Date.
15.11-2006
FHo: ST-PCS7SYS_V70_S/Stfc;orf.35

4. You can only download the PC if the access point S70NLINE was set to "PC
internal (local)". Set the access point accordingly via Set PC Station. As an
alternative, you can also set the access point from the SIMATIC Manager via
Options -> Set PG/PC interface
Access point S70NLINE -> PC internal (local)

Note 1

Compile from the HW-Config Tool (symbol 1 in the slide).


The compilation process can take several minutes (depending on the computer),
as a complete WinCC project is generated for the WinCC application.

Load

To download the PC configuration, select symbol 2 (see slide).

Compile

Acknowledge the dialog boxes that appear.


If error messages are displayed, this could indicate that the PRESET and
ACTUAL states are incongruent.
Open the Station Configuration Editor and look at the symbols in the Components
tab, Status column. For more information, activate the help button in the Station
Configuration Editor.
Also check the Diagnostics tab!
Have you obtained the SCE through "Configure station"?
Note 2

In order to enable all AS and OS of the projects contained in a multiproject to be


downloaded from the central ES, the PC interface must remain set to PC internal
(local) for the duration of the project. It is necessary, however, to merge the
different networks of the projects (make them known). The NetPro tool is used in
the multiproject for this purpose. You can also use it to set up the S7 connections
required for the online data transfer between the AS and OS.
The next pages show you how to merge Ethernet networks and create the S7
connection between AS and OS.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 36

System Config

S IE M E N S

Calling Up NetPro
? S J * t A I II M - UUHJvf

Fh

Ecit

Ins# '

PIC

V**v

Options

\V rd o w

Hcip
No Ffrer >

* C O t R ( C O o t j m m N i l virv)

I): P ( S n o u r * c

Q&j COLR
-

. PH A : >?nrii

PRO_AS
w U >PtPro

- SD AS01
v. y CPU 417-4
3- *
CP 443-1

|P R O _O S

S ? Network

j* \ t)

PLC

Ed*

IY

- n;xj.

Pf S l i n t * r

Options

Window

Help

5 j xl

tjj: cp
-

PRO_OS
&

fin d

LNB04
j V/mCC

M fjjljj

Selection o f the netwofl-

l l ___________________ i i

* ^

PROFIBUS DP
PR0FI8US-PA

PROFINET 10

s _ ] Station.

LNB04

t __| Stfcnei-

WnCC IE

arion

*<
PROFIBUS DP -l a * : fc SIMATICS7.
M7 and C7 ( d ilifc a e d . v 1 1

Read/

SIMATIC PCS 7
Sinmonr. AG 2003. All rights reserved.

Exercise

Date
15.112005
FOe: ST-PCS7SYS_V/0_s>-stKon?.37

S IT R A IN Trainingfcr
Auton^bco and Drn*s

Launch NetPro for both projects (PRO_OS and PRO_AS) and merge the
Ethernet subnets there.
Then create an S7 connection from the OS to the AS and download the
connection to both devices (AS and OS).

Steps

1. Start NetPro for the OS project.


2. Start NetPro for the AS project. For clarity, arrange both
side.

windows side by

3. Merge the Ethernet subnets.


4. Create the S7 connection called OS01_AS01 between the
and download this to both stations.
Procedure

OS and the AS

1. Select the PROMOS project in the SIMATIC Manager. Click the NetPro icon
(see slide). NetPro opens with a window displaying the networks from the
PRO_OS project.
2. Select the PRO_AS project in the SIMATIC Manager. Click the same NetPro
icon. As NetPro is already open, it appears in the foreground again and displays a
second window with the networks from the PRO_AS project. Select the menu
command
Window -> Arrange -> Tile Vertically
to display both project-specific networks side by side. At this point they are still
independent even if, for example, the Ethernet subnet has the same name in both
projects (plant bus, see next slide).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 37

System Config

SIEMENS

Merge CormectKra .
fV 'Q r / ijnrr*f0 *jbr*tcvt5
. ' ......... ..

jnmeroes aoss*cwoct Ethernet subnets

SIMATIC PCS 7
Siemens AG 2003. AJi rights reserved

1
MPI Subnet*

PROFIBUS Subnets.

Date.
15.112006
R e: ST-PCS7SYSJ/70_sysllconf.38

f 1ITR-*!NTAutomation
rdtJ '!^ior and Owes

3. The Industrial Ethernet-type subnets are visible but still need to be merged.
Select
Edit -> Merge/Unmerge S u b n e tw o rk s ...E th e rn e t Subnets.
A new screen opens. Select the subnet of one project in the left window and click
the arrow keys to move it to the right window.
After having moved both subnets, you can rename the cross-project subnet.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 38

System Config

SIEMENS

SIMATIC PCS 7
Siornens AG 2003. AJI rights reserved

Date:
15.11.2006
R e: ST-PCS7SYS_V7C_systkoaf.39

..# 1

SITRAIN Training for


Automation arxJ Drrve3

Internally the merged subnets are assigned a common ID (identifier) so that they
are available as if they were a uniform subnet.
One result of the common ID is that the setting for the access point ''S70NLINE
-> PC internal (local)" is sufficient for the SIMATIC Manager to find and suggest a
route for loading the devices!
You just need to download this new information (e.g. from the HW Config) to the
ES first! Then you can download an AS too with the same setting.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 39

System Config

S IEM E N S

Setting Up a Connection (1)


N M P ro - PRO CIS
Nc*v>otI<

Edr

hew I onnrction

incei*

IC

Vfc**

Opboo; Window

p
Comer ton Paftn*

c g ja m il a

. > 1

if f i 3 J . j .

*?

g.l In the cuient project


L- ^

PRO_OS

(UrapecnedJ

~ All b oo dca ir nation.


-

.i p i

All m dtica:staton;

^ 1 In the mufUproject: COLH


- &

>artor. fctL m e t w c
T
I
I

PRO- AS

+ -32) ESD
In u ikrcisn projccJ

it

AS01

I w r t t&r* Connection

CtiWH

Picked

DowJoad 'O current project

Station

LocIC*

P'rtrKi 0

M a iJ e

C P IM 17-4

A*+P.enjrn
CcrwecllOii
Tvpe
v

:S7connGchcn

Deploy prcperte: before ns*ftmg

d new conr-etfion in the corroct&n table

SIMATIC PCS 7
Stamens AG 2003. A l righto reserved.

Da.*:
15.11.2006
R e ST.PCS7SYS_V70_syslkoM.40

SITRAIN Trajuhgfor
Automaton and Drvcs

4. In NetPro, go to the OS project window and select the WinCC application


within the PC symbol, then
right-click and select Insert New Connection
A selection box appears. Select the partner for this connection (in our example
your AS01).
Remark

The yellow arrow in the PC symbol has two meanings:


The PC interface is set to "PC internal (local)"

and

The displayed PC is the local ES you are working on.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 40

System Config

SIEMENS

PCS Hardware

ES (PC)

HMI
system

OS (PC with WinCC)

S70NLINE

MPI/PROFIBUS/lnd. Ethernet

Plant bus
Automating
- Closed-loop control
- Open-loop control
- Monitoring
- Signaling

PROFIBUS DP

a ----------------------------------------------------------

DP bus

1
il
I1
DP (ET 200M)
IM 1

Distributed
process signal converters

DP (ET 200M)
lM

i
Sensors
and
actuators

SIMATIC PCS 7
Siemens AG 2C03. All rights reserved.

Dalo:
1511.2006
Fie: ST-PGS/SYS_VTO_LCi_pro.3

S IT R A IN Train'ngfor
Automation and Drives

Info Flow

Sensors, transducers, and DP process signal converters modules acquire


process information. The AS processes this information and uses the same path
to pass it on to the actuator. In parallel, commands are sent from the OS to the
AS. AS information is displayed graphically on the OS.

ET 200M

The IM 153-2 interface module converts the process signal converter (I/O
module) information into message frames for and from the AS.

DP bus

The bus (PROFIBUS DP) transports the message frames between the AS (DP
master interface) and the ET 200M interfaces.

AS (S7 417-4)

The DP master interface reads in the message frames in the AS. The driver
blocks convert and process the message frames into process values. That is,
open-loop control algorithms and closed-loop control algorithms convert the
message frames into commands and send the commands back to the I/O using
the same path. The values are also monitored, and messages are sent to the OS
when defined events occur.

Plant bus

The plant bus can be MPI (Multi-Point-lnterface), PROFIBUS or Industrial


Ethernet. The plant bus is used for communication between the AS-OS, AS-AS,
as well as between the ES and the above mentioned nodes for the purpose of
configuring and commissioning.

OS (WinCC)

Data coming from the AS - embedded in process displays- are displayed


graphically as measured values with a time-based sequence and as messages
with classification. The plant operator's commands are passed on to the relevant
AS and the response information displayed.
The configuring and commissioning steps shown on the following pages are
structured on this basis.

ES (STEP 7)

The entire project is carried out on the Engineering Station (ES). The software
accesses the plant bus via "S70NLINE". Access can be established via different
hardware components and is settable.
SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 3

Configuration

SIEMENS

Setting Up a Connection (2)


*>ropcrti S7 c annrc tcnn
Getter

!fvuf>#Kr I

Locd Comf-cuon F nd Pon I

Connection identfc3ton

LosdiD

V ii* 4 c o r t ? J * 4

4 * i& rrtc c o e /r^

. .

r*

*rr*. X **

"+

Change to, for


example
OSOI AS01

lonectjcn Pafr

Local
EndPonl

(pro os/
/
|LN804/WinCC: Aopieatorf

Irrfeifaco

I IE General

Sitnet

jSjnfembu?(lnctatMl

bdae s

JCB-OOOe-SIDJOF

P*tne
jPRO
ASCII/CPU 417-4
j

drier

| CP 443-1IRO/SB!

Zj

(Syileinbut (IttJtiftoal Ethernet]


08000&S1 D?QF

AS01

ftddir.r Oeitk
i

c*u DP iwpf/op
CP
CP

4 i;-i
44.5 44? 1
i

Ea

IPVtMT C

Local ID

Peac*'

SIMATIC PCS 7

Date:
15.11.200o
Fie: ST-PCS7SYS_V70.sy*onf.4l

Siemens AG 2003- AJl rights reserved.

.JQ
-

SITRAIN Training f<x


A*>nwtoon and Onves

Each connection is assigned an ID:

Recommendation

On the PC (application) side, this ID is a name (e.g. S7_Connection_1)

On the AS (CPU) side, the ID is a value.

Change the default name to a meaningful name(e.g. OS01_AS01). This makes it


easier to see who the connection partner is in the connection table of an AS
(CPU).
Moreover, it is advantageous for the online test of a configured OS on the ES-PC
(keyword "Start OS Simulation") before the active OS is loaded.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 41

System Config

SIEMENS

Downloading a Connection

ih 'tfV o
r**v < r)

PRO
td it

Inirett

PIC

S?|B l% l # 1 f l

3C 55
______

Vtei*

Options

WvuJow Hpfp

toCirrene Prair:

Ste<ted Sttbore

Upload

OHH

Sefccted awl Partner S*4hons

Activate Ccmecboo Status


Coroccwass arxi Gateways

1
a s (F

hus (1

r *
..I r

s m
S i

1
*

hemet-wide(

PROFIBUS

AS01
1
CPU - DP .MPl/DP CP CP
443-5 44M
417*4j
Sit

\M-.CC
A>tfc
atioi

J
li

SIMATIC PCS 7
Semens AG 2CC3. AT rights reserved.

Initial Download

Dale:
15.11.2006
Fite ST-PCS7SYS_W0_Sy*tk<X/.42

S ITR A IN Tramingfor
Automation and Drives

When downloading the connection for the first time, select the stations (AS and
PC) you would like to download, then select
PLC -> Download to Current Project -> Selected Stations
to download the stations.

Notice

This method requires you to stop the CPU/application for a short duration
(seconds) and then restart it! The network configuration is downloaded
independently of the HW Config download.

Tip

If you do not want the AS to go to STOP (for example, if this is not permissible for
the process), use a different method:
Select the AS and download by selecting
PLC -> Dovsnload to Current Project -> Connections and

Gateways.

For the OS select the relevant connection in the connection table and download it
by selecting:
PLC -> Download to Current Project -> Selected Connections.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 42

System Config

SIEMENS

Cross-Project View
Cross-Project View

Standard View

jfii V t P r o
^

fierwoiJ

c |u
9< Nc* - k A

Edr Insert PLC v'iei>' DDUorv Wrwtow Hefc

(PWH AS ( ( r o w p riK d network w w )


fccfc

| .|

Insert

F ir

'-Vv

| ^ | p |

------------------

Optons

& \

Vtado'.'

D 1 S / lw iv

RWII AS|

Help

\& \

1 ----- ' ---- 1---- 1

1------------

DP subnetl
PR

(I K

;DP_subnet2|
BUS

DP ^ubl *t2
Ff'OFIBUS

alEtn

i et

-r-

art of El
irnet

r:

CPU * DP
417-41

AS01
CPU DP
417-41
i
i
:

.MPl'DP
:

LNB04

AS01

CP
MM
fitt

CP
44. 1

hf l/DP CF
CP
:
443-5 443-1
Ext

ttlnCC IE
*>P*< Grfa
ailon
1

a
, r

SIMATIC PCS 7
Siemens AG 2003. Al rights resB-VBd.

Standard View

Da*:
15.11.2008
Fie: ST-PCS7SY5_V70_SyS!*onf 43

S IT R A IN Training fcr
Automaton and Drives

The standard view (left window) displays the devices of the individual project only.
The subnets are displayed both with their project-specific name and their merged
name. You can select the different components and set them via the relevant
menus (usually Object Properties).

Cross-Project View
This view serves mainly to view information that is relevant at the level of the
project (no configuration of the components). For example, from here, you can
download the connection data to the listed components.
Remark

Each node (CPU or application) has its own, limited connection table. Individual,
downloaded connections cannot be deleted online. Should you need to delete
them, you first need to delete the connection in the offline table and then
download the full table by selecting
PLC -> Download to Current Project -> Selected Stations
However, as described above, the stations must be set to STOP for a brief
duration!

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 43

System Config

SIEMENS

S7 Connections (Stations in Unknown Projects)


iv r^etPro [f^ O AS (Network)
. J . - A . i ' l E<Jt! 4

D:\PC57Coyrw
S? rcwmrrtton

Nrv? Conoe<fkin
laeneia

ConnrchonPwrts
o | In the cusent project
- ^

Local Cawecton Em) Poini

Steel Parameter

FR0_AS

All bioacfcart. tatio-i

All mullicat? station:

In tf-e mullifiojict COLR

w a its :

L j. O \ j (He<l

(Unspecified)
foUi>\ an acfr'e connection

D etail

Send opo>anng mode tut-.ttg/e.


Correction naira ;telctc*J C

[AS1 _AS_X

Comec ton Path

-wLocal

p . Prt .

taho**

[in unfc/icwn project

PRO_AS/

End P o rt

[AStnyCPO 417-4

Werfate

"CP 443-1 fRO/S&l

Sube

[SyiiernbT [Indir-irdEiteire-]

a c d -e *

108-0008-91-02OF

i>unknow prjtccJ

A d ie u De'afc
Connection

connection

osrt^si C

Peidf

Psrlne

A c tfre c o w c to n uartnsr Subnet

Inunlnov-nptoiect S7 c o n n ^ c r

SIMATIC PCS 7

Date:
15.11.2006
Fito: ST.PCS7SYS_V70_systkcof.44

Serrens AG 2003. AJ ngnts reseVM .

>es

, stembur [E]

9
-

S I X A I N Tuning for
Automaton and Orivtt

Additional Information When configuring connections, the SIMATIC Manager provides them with IDs in
the same sequence as they were created. If both nodes exist in the multiproject,
you can select the partner, and each one is automatically assigned a separate ID
for this connection. If the partner is not yet available, you can reserve an ID as
described in the next section.
Connections in Unknown Project
To do this, highlight the CPU in your project, the connection table appears, select
an empty line,
right-click and activate Insert New Connection
to start the process. Then select as your Connection Partner:
the option "In unknov/n project"
and then the Properties of the S7 connection.
Under Properties, enter a connection name/reference (circled on the slide) and
specify whether the local CPU is to establish the connection (circled on the slide).
Only one partner in the connection is permitted to establish an active connection.
If the connection has not been closed, it will be displayed as an error when
NetPro is terminated, by way of a reminder.
Later, when the other projects have been incorporated into the multiproject,
connections from the various projects with the same reference are merged when
the projects are adjusted. After that point, the address details are known for both
stations and the connections can be loaded into both.
Note

The project merge can either be started from the multiproject or - like with the
subnet merges - in NetPro by activating the menu command
Edit -> Merge Connections...

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 44

System Config

SIEMENS

Cinfiguring Sequences with SFC

Falrsi liGrucfe

STURT

Algernon | (n*eli;;e trK j! Borbntvtig

Bcoiwfiguiig

{R iifiw eik;em
t

Name

Numnw

Laufcetfer*

c n ia u

1 k a lt u n d le e r

M nr\af

Ta;vn

Kcmmeme

Riihm/etk Em, Vowefeett 2 Mn

Leuel2D

A lg e w n

Gedvgung OS f omiertoi j

Name

Rdiwcrt' efn

Muramer

Ruhref Eh

Drchzahfcvacftc* Ruhiwert. Em

R n r w tlK E ll.V fe

ScHwliw

L c x l 33
S chkrW

SIMATIC PCS 7

Dato:
07.12.2008
Fi*:ST-PCS7SYS_V70.>fc.1

Semens AG 2005. AJl fights roservod.

C*/ucJ h

Durdnuclien

S IT R A IN Training fcr
Automaton and Drives

C ontent
Overview

Page
...........................................................................................................................................................2

Sequence Structures
Action and Transition

........................................................................................................................................3
........................................................................................................................................4

Preprocessing and Postprocessing for a Sequencer ...................................................................................... 5


Operating State Logic of a Sequencer ............................................................................................................ 6
Exercise: Sequence Control - Temperature
Open SFC (in Test Mode)

...................................................................................................7

............................................................................................................................... 9

Sequence Control - Reactor

............................................................................................................................ 10

Parameter Control via the SFC

........................................................................................................................

11

Notes
................................................................................................................................................................ 12
SFC Operating Mode Logic ............................................................................................................................. 13
Run Behavior of an SFC

..................................................................................................................................14

Restart Behavior of the SFC(1)

.............................................................................................................

15

Restart Behavior of the SFC(2)

.............................................................................................................

16

.............................................................................................................................

17

Exercise: Adding Two Sequencers to the Sequential Control ..............................................................

18

External View of SFC

Holding Sequencer with Data Block for Values to be Saved ...........................................................................


Creating an SFC Type ............................................................................................................................ 20
Creating an SFC Instance

......................................................................................................................

Miscellaneous Reference Data

........................................................................................................................ 22

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

21

Page 1

Configuring with S F C

19

SIEMENS

Overview
Menu bar
Element bar

S1 to S4 Steps
T1...T4 Transitions

START
T1
3*1

T2

T3

SIMATIC PCS 7
Siemens AG 2005. A l rghts reserved.

Date
07.12.2006
File ST-PCS7SYS V70 sfc.2

S IT R A IN Trairirgfor
Automation and Drives

SFC Flow Chart

The chart topology, the action functions of the steps, the switching conditions of
the transitions and the runtime properties specify the flowchart created with SFC.

E ditor

Graphics are used to structure the flow chart. Connections with block parameters
already present in the CFC charts are used to configure the individual
components (steps and transitions). Therefore, there is no programming; instead,
you just access templates.

Insert

You can select the structure symbols from the step symbol bar. You click the
symbols to insert them (before/after a transition). Steps are always inserted
together with the necessary transitions.

Step

Double click the step symbol to begin configuring the step. You must fill out the
tabs for this. When configuring actions, you can use the "Browse..." button to
display the blocks contained in the CFC charts ("Magnifying glass") and transfer
their parameters to the action list.

Transition

Double-click the transition symbol to begin configuring the transition. You must fill
out the tabs for this. The same things apply to configuring actions as to
configuring steps.

Runtime Properties

The chart will be automatically inserted into the OB where the pointer for the
runtime sequence is positioned.

Com pile/Download

Compilation and download are performed in the same way as for CFC. All chart
information is maintained in the chart folder. The compilation result is entered in
the block folder and downloaded from there to the CPU.

Test The sequencer can be run and tested when the CPU is connected and test mode is selected (Test
menu). Double-click the step/transition symbol to display the current states.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 2

Configuring with S F C

SIEMENS

SIMATIC PCS 7

Date:
07.12.2006
F:te:ST-PCS7SYS V70 sfc 3

Sigmons AG 2005. Al rights reserved.

Linear Sequence

S IT R A IN Tr8 ringfof
Automation and Drives

Start position: S1 and T12 are active.


Step enabling: if T12 is fulfilled, then S1 becomesinactive, and S2 and T23
become active.

Parallel Branch

Start position: S1 and T12 are active.


Step enabling: if T12 is fulfilled, then S1 is inactive, and S21, S22 and T23
become active.

A lternative Branch

Start position: S1, T12 and T13 are active.


Step enabling:
1. If T12 is fulfilled, then S1 is inactive, and S2 and T24are active (T13, S3, T34
inactive).
2. If T13 is fulfilled, then S1 is inactive, and S3 and T34 are active (T12, S2, T24
inactive).
3. If T12 and T13 are fulfilled, priority to the left is higher; the left branch is active.

Loop

Start position: S1 and T12 are active.


Step enabling:
1. If T12 is fulfilled, then S2 is active, and T23 and T2 are active.
2. If T23 is fulfilled, S2 terminates and S3 is active.
3. If T2 is fulfilled, S2 terminates and is initialized again.
4. If T23 and T2 are fulfilled, then to S3.

Jum p

Start position: S1, T12 and T13 are active.


Step enabling:
1. If T12 is fulfilled, then S2 and T23 are active.
2. If T2 is fulfilled, then S3 and its following transition are active.

Training Center
for Automation and Drives

3. If T12 and T2 are fulfilled, priority to the left is higher; normal sequence (no
Jump).-------------------------------------------------------SIMATIC PCS 7 System Training
Configuring with S F C
Page 3

SIEMENS

Action and Transition


$TA3*

l&JC0'l(42

J .
7 GctHnal

ScOJpA

n z s

E
Ire .& tn tiy ,

Pk&oeinrtg

TemnrwOOii
Term
|

PfVUwlCVMi*eA\Mi3C1V2E301 A1JT0_0N

C y cle s ->

.(TRUE

USX

T ransitiqn fu lfille d

WJO
P t ril '/ y w

AS PUmJ7

D r jf t v t IM A

C o r c o v o x t>r^< J F '. r m n p C'-c

C ycle s >

iv tn b c w j

Reader' UrA'A>lReicV.. 3 o g J /p 5

' i H v t l
* Mwc'
v JcJ SirwJjUxi
5 S ) E#t_ReJw

Ar<*Dg_Oiipi
Ml

SIMATIC PCS 7
Sierrens AG 2005. AJl rights reserved.

t ?
C H F HL

R AL

IN J )

REAL

IN _ Q

C N TJJM

BOO,
IMT

IN _ 0
IN 0

C N T .R E S

IN 7

K L T A .0 U
EN

eooi

w .o

8001

fW

C H JLLL
CH F _0N

A
S IT R A IN Training lot
Autcn-atioo and Drives

Dale:
07.12.2006
Fte.ST-PCS7SYS V70 &fc4

A ctions

Actions that determine what steps must do in the process (such as specify
parameters and trigger switching operations) must be configured within the step.
You can enter up to 50 actions per step section.

Step

A step consists of actions that run in three sections:

Initialization

Initialization is carried out once (for one program run from the OB) when the step
becomes active.

Processing

This section is carried out for every run from the OB until the next transition is
fulfilled. If the transition is fulfilled, the terminating section (see below) is carried
out during the next OB run of the sequence.

Term ination

This section is carried out once, after the next transition is fulfilled. After the last
command, the step becomes inactive and simultaneously, the following step
becomes active (with its initialization), depending on the topology.

Transitions

Transitions contain the step enabling conditions for the next step in the sequence.
You can evaluate the validity of up to 16 conditions using five logical gates. If you
mouse-click the gate or connecting line, you can convert it to AND, NAND, OR or
NOR.

Training Center
for Automation and Drives

Page 4

SIMATIC PCS 7 System Training


Configuring w ith S F C

SIEMENS

Preprocessing and Postprocessing for a Sequencer


P ossible fo r each individu al
sequencer

If Blue background
Tab content has
been changed

. P it . . f ' la h r *

SIMATIC PCS 7
Siemens AG 2005. Al rights reserved.

Date
07.12.2006
R8:ST-PCS7SYS V70 sfc.5

S IT R A IN Tra ning fo<


Automation and Drfcos

SFC Sequencers

When created, an SFC chart has a sequencer (called RUN). It can be extended
to include other sequencers (which can be inserted, moved or deleted in the chart
in the lower bar using the right mouse button). After insertion, the sequencer can
be displayed by clicking the associated tab.

Start Conditions

A logic can be constructed in the sequencer properties same as for with the
transition. In this tab, you can define the conditions for the SFC chart/type that are
to start the sequencer (e.g. "SFCName.RUN = Active starts the sequencer if the
SFC chart is in "Active'1mode). At any one time there is always a maximum of
ONE sequencer being processed (active) in an SFC chart. If the start conditions
are fulfilled for several sequencers, the "Priority property decides which
sequencer is executed (1 is the lowest and 255 the highest priority). If sequencers
with start conditions that are fulfilled at the same time also have the same priority,
the sequencer which is located further to the left is initiated first.

Preprocessing

In this tab, you can define the actions for the SFC chart or type that must be
carried out before each sequencer processing call (regardless of whether the
respective current step is in initialization, processing or finishing). Each line
constitutes one statement. Up to 50 statements are possible in each case. You
can change the selection of displayed statements (10) using the vertical scroll bar
at the right-hand side.

Postprocessing

In this tab, you can define the actions for the SFC chart or type that must be
carried out after each sequencer processing call. Here, too, up to 50 statements
are permitted.
The preprocessing and postprocessing tabs are actuated before and after each
sequencer cycle, as long as the sequencer is active.

Run sequence

The recommended rule here is: the SFC is called after the blocks that it queries in
the transitions, but before the blocks that it writes with commands (to the extent
possible).

Remark

You will first create an SFC chart with one sequencer. Then, after more
information is provided, you will add additional sequencers to the SFC chart.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 5

Configuring with S F C

S IE M E N S

Operating State Logic of a Sequencer


(Online Help -> Index: operating state logic or OSL)
Step Control Modes
T
with Transition
T or O
with Transition or Operation
T and O
with Transition and Operation
B
with Operation
T/T and Owith step-specific operation

A S w rt

Aborted

Resume
Restart

cwpfcied

C onm andcutpi/

Cyclc execution

Completed

7me roontaing

L+porvd

9 Sates t - it c d d c * t o c tflM T U r/*c

O perating m ode

0 : r ji> i com m ands

irr^iclt state changes t.ggeftd bySFC

O perator com m ands

SIMATIC PCS 7

Date
07.12.2006
Fite:ST-PCS7SYS_V70_sfc.6

Semens AG 2006. At rfgtits reserved.

States

a jp f
*

SITRAIN Tranlngfor
AiJtaraaon anC Dives

Following the download operation to the CPU, the sequential control system is in
a defined state. This defined state is specified with the SFC Editor (default:
Ready). Now the sequential control can begin either automatically (SFC Chart
Properties -> Start Options -> Autostart) or after a start command (menu Chart ->
Properties -> Start Options -> Operating Parameters).

Sequencer O perating State L o g ic (OSL)


Processing of the sequencers is controlled by the sequencer operating state logic.
The sequencer's operating state logic is defined in the diagram of the state
transitions for sequencer OSL.
Operator Commands You can use commands to change the sequential control system between states
(e.g. Start, Hold, Resume, Abort, Complete).
Step Control Modes

The different step control modes modify the behavior of prepared or fulfilled
transitions. A change in the step control modes is possible in all of the operating
states. The individual step control modes mutually exclude each other. The
following step control modes are available:
T
T or O

with Transition
with Transition or Operation

T and O
B

with Transitionand Operation


with Operation

T/T and O

with step-specific operation

Training Center
for Automation and Drives

Page 6

SIMATIC PCS 7 System Training


C onfiguring w ith SFC

SIEMENS

Solution Principle (AS)


Hardware
(I/O modules)

Software
(Module drivers with diagnostics
are generated automatically by
CFC)
CH_AI

r\
j

Diagnostic
and
module
drivers
CPU load
measurement
(System
performance)

(Other)

Library

(Channel
drivers are
connected to
the process tag
individually in
the CFC)
CH DO
Library

Possible process simulation t

SIMATIC PCS 7

Date:
15.112006
Fte. ST-PCS7SYS_V70_ub_pro 4

Sicirens AG 20C3. AJ rights reserved.

AS solution

SITRAIN Trainings
AutonraGon and Drives

The block libraries contain different blocks that form individual parts of the
solution. Drivers, operator control blocks and technological blocks (closed-loop
controllers, motors) are used.

Inputting/outputting process signals


The single-channel drivers (CH_AI, CH_AO, CH_DI and CH_DO) are located in
the PCS 7 library. These drivers are inserted in the CFC in which the process
value is needed. The symbolic name of the value is used to select the connection
to the process value (via the symbol table).
The name is assigned to the individual hardware channel during the hardware
configuration. No additional parameters must be set, except for the measuring
range. After CPU selection, the CFC generates the necessary module drivers
during compilation, along with all of the necessary parameter settings (which are
read from HW Config).
With V7.0 and higher, the CFC also inserts the CPU_RT block, which can carry
out runtime measurements and avoid a CPU stop in the event of an overload.
Remark

With V5.2 and higher, you can also use universal drivers (CH_U_AI, CH_U_AO,
CH_U_DI and CH_U_DO). They can be used for S7-400, ET 200M or Profibus
PA field devices.
If you want to configure an older CPU (from V4) using PCS 7 V6.0, you must
continue to use the V4 libraries, or the CPU will be upgraded.

Temperature control

You can implement temperature control, for example, by using the CTRL_PID
block from the same library. This block also has the faceplate necessary for
operator control and monitoring (for WinCC).

Signaling

You can use the MEAS MON block, for example, for this. This block monitors the
level and signals a limit violation to the OS. The controller block itself can also
monitor its own process variable and signal limit violations to the OS.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 4

Configuration

SIEMENS

Exercise: Sequence Control - Temperature

Start step
SP EXT

70

Step enabling condition:


Process value PV_IN less than 33?

PV IN

Action:
Set setpoint SP_EXT to 70

50

Step enabling condition:


Process value PVJN greater than 67

30

Linear sequence
Conditions in transitions
Actions in steps
1 L<32

Test

END

SIMATIC PCS 7

Dale:

Siemens AG 2005. A> right*iev<>d.

Re:ST-PCS7SYS_V7C_ste.7

07.122006

S j SITRAINlrain.nofa
-

Automaton and Drives

Exercise

Create a setpoint control for the temperature controller of reactor A (see slide). If
specific process values are not reached or are exceeded, the setpoint must be set
to defined values.

Steps

1. Create the SFC chart "SFC_Temp" in the same folder containing the CFC chart
for the temperature controller.
2. First create the layout of the sequencer as per the above illustration, with the
prescribed names for the steps and transitions.
3. Then configure the steps and transitions.
4. Next, compile ("Changes") and download ("Changes") the program.
5. Test the sequence in test mode.

Procedure

Procedure for configuring the steps:

C onfigure steps

Select a step from the sequencer and open it by double-clicking.


In the "General" tab,
enter the name, min. and max. runtime, the step comment in the control, the step
comment in the visualization, and acknowledgment information (if leaving the step
has to be acknowledged).
The "Initialization", "Processing" and "Termination" tabs must be used to
configure the actions in this step.
Go to the "Processing" tab, place the cursor in the first free line, and click the
"Browse" button (at the bottom of the screen) to look the charts in either the "Plant
view" or "Component view" tab until you reach the controller block. Select this
block and select the required parameter in the right pane, e.g.
The SP_EXT parameter from the CTRL_PID block
for the reactor heating control.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 7

Configuring with S F C

You now have to assign a value to the selected parameter in your statement (to
the right of := ). Enter the temperature value, e.g. 70.0, in accordance with the
function of the step.
C onfigure transition
Select a transition from the sequencer and open it by double-clicking.
In the "General'' tab,
enter the name, the comment (ES), the OS comment and the
acknowledgment information.
The "Condition" tab is used to configure individual conditions within the step
enabling condition. Here too you can use "Browse" to select the required
parameter from the CFC charts and then use the symbols
=, <>, =>, =< >, <
to compare it with a specific value or another parameter, e.g.
P V J N from CTRL_PiD < 33.0 (degrees)
Com pile and Download
The program is compiled and downloaded (as described in detail in the CFC
section) from the SFC chart using the same procedure as for the CFC.
Compile and download the changes.
The compile and download operation always applies to all CFC and SFC charts
in the program to which the SFC chart belongs, i.e. from where you are initiating
the procedure (they form a common program).
Testing the SFC

Test mode is enabled and disabled using the command


Debug -> Test Mode
Compared to edit mode, the SFC chart window in test mode is expanded to show
an operating and display section at the bottom of the window.
In addition to selection of the operating mode (MANUAL, AUTO); you can also
see the following buttons for the SFC:
- Start
- Abort
- Restart

- Hold
- Complete
- Reset

- Resume
- Stop
- Error (handling)

When the steps and transitions are cycled through, they will display different
colors depending on their state:
Step active

pale green

Step held

yellow

Step contains errors

red

(e.g. maximum runtime exceeded)


Step is inactive but has been processed

dark green

Step is inactive and has not yet been processed


Transition fulfilled

dark green

Transition not fulfilled

dark red

Transition inactive
Training Center
for Automation and Drives

gray

gray
SIMATIC PCS 7 System Training
Page 8

Configuring with S F C

SIEMENS

Open SFC (in Test Mode)


- PRO AS1 VPldiit \Peaclots1 \U n iU 1 0 1 * IH f )
5PC Edt

Insert CPU Debug

of

View Cpbons

Window

s '

Help

""

-V ^
-

^
=

m : k?

"

Menu:
Debug ->Test Mode
Debug -> Open SFCs

j*r**x*

Select statuses
- Multiple selection possible
- No selection means no
limitation

Select the operating mode

Find
SFCc round

Cofnrr>er

Plan! Hieiaf

Nane

F1ant2\fle3C>
F!an*2\Rea:*

SFC_Rcacfl*
SFC ReacD

C tox

SIMATIC PCS 7
Siemens AG 2005. Al rights reserved.

Analyze SFC

a ..

Result

Cancel

Select and
open

H tfj

S IT R A IN Training for
Automaton and Dr^es

Date:
07.12.20C6
Fite.ST-PCS7SVS V70 sfc-9

In test mode it is possible to display SFCs that correspond to a defined


combination of statuses. To do this, open any SFC and set it to test mode. Only
then is the menu item
Debug -> Open SFCs offered.
The required steps are shown in the above slide.

Remark

The conditions are linked by logical ANDing.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 9

Configuring with S F C

SIEMENS

Sequence Control - Reactor


Go to initialstate
Reactor C empty and
cokl

START

(HttMtK*'

Core temperature
to SO degrees

H aizer

Cold and empty


tocw

11

Process temperature reached

Fill first component X


to 20% level

komp >

Settling time 2 min

Bexf- gun-j
Level >= 20%

u.tx

Ruhfiwerfc e.n

Diirm
j

Speed monitor
for mixer ON

AOlasssn
t!>

Speed monitor
for mixer ON
e*o* a t

r J

betpomt to:erance ot
temperature controller
reached
Open drain valve,
mixer OFF.
close temperature controller
End initial state
Reactor empty and cold

Fill second component Y


I omp Y

i> *

to 80% level

ENDE

End step

Level >= 80%

SIMATIC PCS 7

(fe ta :

S IT R A IN Training for
Autcrrabon and Drives

07122005

F4e:ST-PGS7SYS V7C Sfc.10

Sierrsrs AG 20C& AJI rights resGfvcd.

Exercise

The sequence for the manufacturing procedure in Reactor A was described in the
"Configuration Overview tab, page 2. Now implement this sequence using an
SFC chart. Configure, compile, download and test this SFC chart.

Requirement

You have implemented and tested the example in the chart "Exer_Reaci" with the
MOTOR, VALVE and CTRL_PID blocks.

Steps

1. In the plant hierarchy under "Reactors\UnitA", create an SFC chart,


"SFC.ReacA.
2. Establish the sequence of the SFC (see picture above).
3. Configure the actions in the individual steps and the signals to be queried in the
transitions.
4. Compile and download the program.
5. Test the project.

Procedure

You can derive the sequence from the above picture.


Control the filling valves and the drain valve using the VALVE blocks.
Control the mixer via the MOTOR block.
For the "heating step, set the controller to AUTOMATIC and the external setpoint
to 90C.
You can include waiting times by inserting an empty step (with a minimum
runtime setting) and an empty transition.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 10

Configuring with S F C

SIEMENS

Parameter Control via the SFC


^ ^ - ^ ^ B lo c k
Effect

VALVE

MOTOR

CTRL_PID

Remark

SFC control assumes the control of the blocks (operator cannot operate)
Assume control of
block's operating mode

LIOP_SEL=1

LIOP_SEL 1

LIOP_MAN_SEL=1

Set Automatic mode

AUT_L=1

AUT_L=1

AUT_L=1

Set external setpoint

Output commands

SFC determines
operating mode (Link is
active, not OPerator)

LIOP_INT_SEL=1
SPEXON_L1
AUT_OC (1=open)

AUT_ON (1=on)

For controllers only

SP_EXT = (value)

SFC control relinquishes control o f the blocks (operator can operate again)
Relinquish control of
block's operating mode

LIOP_SEL=<>

LIQP_SEL-0

LIOP_MAN_SEL=l)
LIOP_INT_SEL*0

QSTART

LMN

SFC releases the


operating mode
switchover again (but
does not change the
operating mode)

Active outputs of the blocks


Pass to system

SIMATIC PCS 7
Siemens AG 2005 AJl tights resen<ed.

Operating Modes

QCONTROL

07.12.7006
Rto:ST-PCS7SYS_V70_sfc.11

D a le

SITRAIN Training for


Automaton and Drives

For the SFC to be able to pass its commands to the valves or motors via the
above listed blocks, it must be able to influence the blocks' operating mode (set
the operating mode to AUTOMATIC) and write commands to the suitable inputs.
It must also be possible for the plant operator to intervene manually when the
control has finished. This means the control must relinquish its control over the
blocks again.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

#1
-

Page 11

Configuring with S F C

SIEMENS

Notes

SIMATIC PCS 7

Siemens AG 2006. All rights resocvod.

Date:
07.12.2006
Frte:ST-PCS7SVS_V70_8fc.12

Automaton and Dnves

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 12

Configuring with S F C

SIEMENS

SFC Operating Mode Logic


(Online Help

Index: operating state logic or OSL)

->

S ta rt

B uttons fo r testing
the SFC
^ S t a r t o r V y If C O N T R

ut

_ *J Start
SE LFC O M P -O

S C L rC O V 1 P = 1

or>d

C w r v lr t o

JLl

Hold

J it !

Resum e

C o m p le t i n g

S ta rt

Error
(C om pi H i n o)

2 ] A b o rt
R c M ir m /
S ta rt

fro m ol estate &


(te nnt If* ft.
A b o r t in g , A b o r t e d ,
S t o p i i in u . S t o p p a d j

t f o m fOi

(owcept Idlo.

Aborting, /P o rte d )

A b o rt
IS
A b o rtin g

.J S top

R e s u m in g
C E rro r)

t
13

Complete

12
fto c u m in g

1
S to p

R tw u m e < S ta rt

S to p p in g

S i R estart

L e ovrtd:

States w>*od duo to <rjcnt6


tranc itionc imoliatt oxfd
Slates i<J^p>dton C L lor SPC V3.
-j

a x -rte*d

^ 1 R eset

ommj r>ds / oor^lH'-onn /

E rror

c - l c u u i j igrufcs / internal s i final;

Evnb Error
Implioi tat* (h*nQ 1r 30*rfrd by TC wh *n
Clv c*qu*rM < to iMk pfOCj*d or no
***qu**nc*r ft to h f prooe*sd

SIMATIC PCS 7

SITRAIN Training for


Automation and O.ves

Dale:
07.12.2006
Fiie:ST.PCS7SrS WO sfc.13

Siemens AG 2C05. AJl rignts re&srved.

Operating State Logic fo r SFC


State

The current operating state of the SFC OSL can be modified by the following
events:
- Commands (Start, Resume, Hold, etc.) in operating modes "MANUAL" or
"AUTO.
- External signals (SFC inputs, commands from another SFC, etc.).
- Internal signals (commands from custom sequencers, from test mode or SFC
visualization).
- Implicit state change.

Step enable com m ands


Start
Complete

Trigger start processing


Trigger complete processing

Hold

Trigger hold processing

Resume

Trigger continue processing, e.g. after an error

Error
Abort

Trigger error processing


Trigger cancel processing

Stop

Trigger stop processing

Restart

Trigger start processing

Reset

Change to Ready state

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 13

Configuring with S F C

Operation

If you also want to open/close the valves manually, you can use simple operator
control blocks for digital values (OP_D) or the valve blocks (VALVE) with built-in
operator control and monitoring.

Plant simulation

You can simulate the plant using the REACTOR block (in a user library).

Sequential control

Use the SFC Editor for this. This editor can only access data that were configured
previously, such as with the CFC Editor.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 5

Configuration

SIEMENS

Run Behavior of an SFC

ip

Pt9 pt>lii V ( (Karf

r I
veru*
fvj. A.
*or

S*t_ararfraJ

G - LOCK
6 - w C O .G N
AtTO.OH
i i.RCSCt
V
1 t/ss

( H i 7
* Carrarfojpj
Ttv* i*r#v#ng

FC*****

CRJ ret**

RHari$*I r*rt

A J o **

or
C ,I W l

r> - cs*
............. F b . l l
-

______

E r ..~ jr u i

1*8

rool_errp>

- Atf .1
On 41CHIT0*

END
Cm1

SIMATIC PCS 7

SITRAIN Trainingfo'
Automation and Drives

Date:
07.12.2006
Rte;ST-PCS7$YS V70 sfc.14

Siemens AG 2005 All rig^is reserved.

Interaction w ith Basic Autom ation (CFC)


The sequential control in the AS is connected to the basic automation via the
action and transition functions. A specific runtime behavior is assigned to each
SFC. Basic automation using the blocks contained in the CFC charts can have a
different runtime behavior than the SFC. You can control an SFC chart using the
external view of the SFC chart contained in the CFC chart.The structure of the
sequence system makes it possible for the sequential control and the basic
automation blocks to run in different cycles, thereby reducing the cyclical load. In
the same way, SFCs can be integrated into runtime groups, and can be given a
different scan rate or phase offset via these groups.
SFC Runtim e O ptions
You can set the sequential control behavior in the runtime options. These can be
set in the dialog field
"SFC
Instruction O utput

Properties -> Tab: Operating Parameters CPU .

On: The actions of active steps will be processed.


Off: The actions of active steps will not be processed.

Cyclic Execution

With "Cyclic Execution: On" the program will automatically revert to "Starting"
following the "Completed" operating state.
With "Cyclic Execution: O f f the program remains in "Completed state.

Time M onitoring

Training Center
for Automation and Drives

With "Time Monitoring: On", the active time of the step is continuously compared
against the monitoring time after the step is activated (object properties for the
step, "General" tab, "Maximum Runtime" option), and a step error is reported if
the time is exceeded.

SIMATIC PCS 7 System Training


Page 14

Configuring with S F C

SIEMENS

Restart Behavior of the SFC(1)


y

SFC

3i

[S fC
| Ed*

R eA 1
Insert

CPU

'

New...
Open...

It

[bug

Close

P ro p e rtie s S F C c h a r!

G cfw J

-ASOpealiTgPa-an^efi

0$

V ckom j

Defaults
Step corfiol node

Opeiaiing mode
MANUAL

Comm3rd o*rfpu

SFC :2rtup af ci CPU irsian

Cyck p - U io n

Irtfwtac SFC

Tmenoroonng

Regain SFC t*a!e

Slart options
r

Au^ostait
Uv* defauli ap^aimg paranefet* vA\ent SFC chart iMs

OK.

SIMATIC PCS 7
Sierners AG 2005. Al rignts reserved

Restart Behavior

C * k* I

Dale:
07.12.20C6
Fie:ST-PCS7SYS V70 sfc. 15

Hefe

S IT R A IN Training for
Automaton and Drives

With PCS 7 Version 7.0 and higher there is an additional possibility for setting the
behavior following a CPU restart (see arrow in slide).
In the previous versions, the SFC was always initialized, and the data valid prior
to the stop were lost (this is now the default setting).
In the new version, the SFC status can be retained. Following a CPU restart, the
SFC then retains its status. Using the SFC and process states, the operator can
then decide how the SFC is to continue working.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 15

Configuring with S F C

SIEMENS

Restart Behavior of the SFC(2)


Debug
*^ R 0 ..4 M \H < H it2 \R f< M o is 1 \U n itA 1 0NLPJF1

view

Opfcons

Wind

G rW .

Download...
Ccnpare...

ModJe Information... CtrkO


j[

CtfUl

OpefalngNode ..

j|

CJear/fceset...
Set Time end Date...

START

St >i H ait-Hee-

Komp

Fahren In Grundstefc-ng
Peak tor teer und kafc

Nonripooente X fcfc Fiitstand 20%


enfiiten

Levei > = 2C%

Fun

STOP
R estart

| Kalt urxJ leer

<3-

RLN

MANUAL

Sl&L

m
Pc unp

7 \ Ccmroandcuptf

tj bir m m
Tinierrom'omg

Pie

F1 for heb

SIM ATIC PCS 7

Date.
07.122006
R g:ST-PCS7SYS_V70_s<C. 16

Siemens AG 2005. Al rigfite reserved

S IT R A IN Training for
Automation and Drives

Exercise

Set the SFC from the previous exercise such that it retains its state following a
CPU restart. Test the restart behavior of the SFC (by means of CPU stop
followed by a CPU restart) in the "Component X" and "Heat step. What happens
to the configuration due to this behavior? What happens, for example, with the
filling of component X in the reactor in the meantime (between the CPU Stop and
Resume command by plant operator, once the CPU is running again)?

Steps

1. Open the SFC, select the menu


SFC -> Properties

"Operating parameters CPU" tab

and select the Retain SFC status option.


2. Compile and download the changes.
3. Switch on test mode, and start the SFC.
4. When the "Component X" step is reached in the SFC, stop the CPU (using
PLC -> Operating Mode^> Stop).
What is output by the output modules to which the valves (simulation) are
connected? What does this mean for a real plant?
5. From the last screen form, carry out the CPU restart. You must then decide at
some time whether the SFC is to continue or stop/abort.
A new command is not output by the SFC up to this point. What commands are
output by the valve, motor and controller blocks? Note that the blocks mentioned
also exhibit a restart behavior when the CPU is restarted, but they then call their
program cyclically in the cyclic interrupt OB with the parameters which they find
there.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 16

Configuring with S F C

SIEMENS

External View of SFC


S F C _R colC
+3 + |
o

083 2
1 / flftUTMflW

flUT

I DLE

S T OF T I N G

0 MAN
G

START

COMPLETE

HOLD

COMPLETI

RESUME

E F F OF _ C O

A BOR T

C O M P L E T E ----

STOP

R UN

M OLDING

PEST ART

RESET

----

----

HELD
RESUM ING

ENST ART

LOC f.C O M P

H E LD .EF R

LOCKHOLD

F ESU_EF.R

LOCK nbOF

R 60R TIN G

L O C K S ! OP

L O C K E F PO

ABORTED
STO PPING

SC T

SC T _ T R C

----

EF ROR

ST O P P E D
QEX T _ ERR

I N S T ROUT

OP

ERF.

----

LI_E R R

----

E >E C _ E R R

----

ERRG

----

CVC L E X E C

TIM cm O N

0-

EXT _ ERR

T _ O P R QG ---S _ E R R G ----

SIMATIC PCS 7
Siemens AG 2006. Ail rights reserved.

External View

Date:
07.12.2CC6
F.le:ST-PCS7SYS_W0_sfc.17

.jp l
^

S IT R A IN Training for
Automaton and Drves

The SFC chart has a standard interface through which it can be controlled using
CFC interconnections. This interface Is represented as a graphic "external v ie V
of the chart.
Activate the following menu command in the SFC
View -> External View
to open the CFC with an external view window.

Representation

The external view shows the SFC as a block with an SFC chart symbol in the
block header. The block name is the SFC chart name and cannot be changed.

Interconnection

Inputs can be interconnected to other objects, global addresses or textual


interconnections.
Please refer to the online help for more information about the individual
parameters (Help on SFC
External View...
See also... Standard interface for
SFC charts).
There the parameters are listed both alphabetically and according to their use.
You cannot add further objects to the CFC chart showing the external view of the
SFC. All interconnections must pass over the edge of this chart.

Tip

Open the external view of the SFC (= a CFC window) and the CFC chart from
which the control is to be influenced (= a second CFC window). Arrange both
windows side by side. Interconnect the blocks as described in the CFC chapter.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 17

Configuring with S F C

SIEMENS

Exercise: Adding Two Sequencers to the Sequential Control


SFC ReacA

HOLD'

Start condition
HOLD sequencer
I

Save state

Start condition
RUN sequencer

Safe state
Output commands
Set operating modes for
operation

Start condition
Resuming
sequencer
Restore state

SIMATIC PCS 7
Siemens AG 2005. AJI rights reserved.

Exercise

S IT R A IN Training fcf
Automaton and Drives

Date.
07.12.2006
R q:ST.PCS7SYS_V70 SfC.18

Supplement the sequential control for Reactor A as follows:


If the plant operator issues a hold command for the SFC control, a second "HOLD
sequencer" will start up. This is to ensure that valves V1, V2 and V3 close, the
mixer is switched off and the temperature controller is set to manual operation
with a preset manual value. The HOLD operating state must not be reached until
the two above-mentioned commands have become effective. This state must be
saved in a DB.
The operator can perform operations in the HOLD state. If the control is to exit the
"HOLD state, the valves, mixer and controller must be switched back to the state
saved in the DB, i.e. the state they were in when the HOLD command was
issued. This is achieved by using a third "CONTINUE sequencer" which resets
the blocks to the desired state and is only exited after a check has been
performed.

Steps

1. Insert additional sequencers in the SFC_ReacA.


2. Set the chart properties for the two additional sequencers.
3. Create data block to save data when control is in HOLD state.
4. In SFC_ReacA complete programming of the "HOLD" and "CONTINUE"
sequencers.

Procedure

1. Insert two additional sequencers in SFC_ReacA. With the SFC open, go to the
"RUN" tab (below),
right-click and select Insert Sequence at End
to insert another sequencer. One SFC can process up to eight sequencers in
alternation.
With the SFC open, set the chart properties via
Chart -> Properties
as follows:

Operating Parameters tab

Step Control Mode: T, Operating mode: MANUAL; Instruction Output: checked,


____________________ Use default operating parameters when SFC chart starts: checked.____________
SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 18

Configuring with S F C

S IE M E N S

Holding Sequencer with Data Block for Values to be Saved

IAI> S?l FUD


Q

START
(save
o r restore)

Pte

Ed*

U tid re x s
B

Checking

END
(em pty)

[001

In r *

P IC

"RecA_DB
Oebug

|Name

Options

Type

' o.t

wit>do*.i

Hefp

I n it ia l vali Cojnment

ivrFUCT

+G .0

Floulnl

BOOL

FALSE

Valve 1 open

+ 0 .1

FlowIn2

BOOL

FALSE

Valve 2 open

+ 0 .2

Drain

BOOL

FALSE

Valve 3 open

+ 0 .3

Mixer

BOOL

FALSE

Hixer on

+ 0 .4

Controlle r_AOTO BOOL

FALSE

CTRL-PID on Automatic

+ 2 .0

Setpolnt

REAL

O.OOOOOOe+Oi saved setpoint

+ 6 .0

flan_Value

REAL

0 . OOOOOOe+Oi seved manual value

1 0 .0

<1 - J * { f\

view

PRO AS .ASOl'CPU 417-4\-.\DBl 1

EHD STFUCT

/ FORISI

Diucken S*? P i. u r r a f e ?u ethalen

N orm al" re a c to r seq u en cer

SIMATIC PCS 7

S IT R A IN Training for
Automation and Drfvt$

Date:
0712.2008
Fie:ST-PGS7SYS V70_sto.19

S em e's AG 2005 All rights reserved.

Create Data Block


Create a data block (DB) (e.g., DB1 with a symbolic name, "ReacA_DB"). This
block is to be used to save the necessary states when the main sequencer is held
(see above for possible structure).
To do this, you need to switch to the project component view. Select the block
folder, then
right-click and select New Object...-> Data Block
to create the global DB1. Enter the symbolic name "ReacA_DBr' in the Properties
window.
Then select the block,
right-click and select Open

to start the data block editor (see above).

Define the necessary parameters in the corresponding data formats.


Configuring SFC with Two Additional Sequencers
Configure the HOLDING SFC and the RESUMING SFC.
HOLDING SFC

This is started when a command is received to hold the RUN SFC.

"Save" Step

In the "Save" step, the relevant pending commands/data are saved in DB1 (see
above, content of DB1) and then the desired settings are made.

T ransition

This checks whether the operating modes and values that were set as a
precautionary measure have become effective. The sequencer is completed only
after the transition is fulfilled. The SFC chart then changes to HOLD state.

RESUMING SFC

This is started when a command is received to resume the RUN SFC.

"Restore" Step

The "Restore" step is the opposite to the "Save" step in the HOLDING sequencer,
i.e. the data is read from DB1 and distributed across the relevant block
parameters/inputs (from right to left).

T ransition

This checks whether the saved states have become effective again before the
RUN sequencer resumes activity.

Training Center
for Automation and Drives

Page 19

SIMATIC PCS 7 System Training


Configuring w ith S F C

S IE M E N S

Creating an SFC Type


[f] SFC

- |j C*U41>-*
-

CP443-5E*f

FflO.OS
^ LN804
-

g jS R

SS B^od
& is z r CiiCP 443-1

4%
- &

(2)Te.t

S7 -AS01
J *J SOUICM

VinC C A ptf

a osoi
* ^

C O LR .UB

+) ^

Tetf_Lb

Edi*"

D M #
U

Insert

CPU

Debug

view

Options

Window

Help

alBfe * ] B 'm l J l j 6 1 *

sej :< c l^ - l

< a M I % lB |m [

*? J

IT frMel&lftMl 1

Cep-/'

Defcte
Insert He% Ct>it
PS.C

XnoasteaaarJ.

S everal sequencers p o ssible for

J. J I [xR U N /II <|

one S FC type

Pres F I lor help

SIMATIC PCS 7

Date

SITRAIN Trartng for


FII:ST.PCS7SVS_V70_sfc.20* AutomationandDrives

07.12.2006

Siemens AG 2006. A1 rtgMs reserved.

SFC Type

In SFC V6.1 there is an SFC type in addition to the SFC chart. This makes it
possible to define sequential controls, including an interface. The runtime logic of
the SFC type is based on the interface of the SFC type, i.e. the SFC type cannot
access just any process signals. Like function blocks, SFC types must be placed
on a CFC chart, where they are given an SFC instance.

Creating an SFC Type


SFC types cannot be inserted into the plant hierarchy, since they cannot run on
their own. Instead, they are created using
Insert new object -> SFC type
in the component view in the SIMATIC Manager or
SFC -> New (select "SFC type" in the "Object type" field)
in the SFC editor.
Manipulating the SFC Type
The SFC type is a m anipulate object like the SFC chart; however, it has its own
symbol to distinguish it from the latter. The attributes necessary for the SFC type
(e.g. S7_m_c) are preset. Seven messages requiring acknowledgement and five
that do not require acknowledgement can be configured for each SFC type. The
other available messages are required by the SFC type itself.
Configuring Using the SFC Type
Only the interfaces for the SFC type can be used to configure actions in the steps
and the start and step enabling conditions. In other words, external access is via
the SFC type interface only.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 20

Configuring with S F C

S IE M E N S

Creating an SFC Instance


-5 i I I

| Vrrvuc I.

i n i / f ,

Rft Neuer Plan


. - g Neuer Te t
+

D]ds;#J

D '* J . -H h | M M 1 -s .

x j a in F 3

$13.1 %

* ^
**

A lle B = u tfe *T e

BIT.LGC
COMPARE

* ^ C0WTR01
4- ^

-*
-f! %
%
-f +
-*> %
< %

5FC-?vp

r c c -f$ l |

Operating mode

+ ^ runput

Operating modes

Command enables
Lock____________
Control strategy
Step control mode
Execution option

4
*
*
5

Operating state

msnrm iecbw h
Q E ifli wnawi

Commands

CONVERT
DRIVER
FUPFLOP
IMPUIS
MATH
MATHJ=P
MATHJ NT

+
%
^
*

OPERATE
SHIFT
Trhhg
WRDJLGC
Sonctgc e^iitcirx>
5

R5 Ft
hri rj \ A* rarr^un
a
o- ppnyirrra
o- itoutiw.i
e~ HSgnaa
mroni rrp^iw
CEQltiia

SFC-Typl

i
cU j^ T iH r

Fault indication

4
ili!s a
p - |C' LC *t C^6C^6^1
-gPft.9

LlsiiiSl
ZZH7!
HLzmm

SIM ATIC PCS 7

Group display
Control strategy

SITRAIN Training fee


Automation and Drives

Date:
07.12.20C6
Fite ST-PCS7SYS WO sfc.21

Siemens AG 2CC5. All rights reserved.

SFC Instance

If an SFC type is used, it is inserted into a CFC chart. An SFC instance will be
assigned to it at this point. SFC instances are therefore always assigned to the
CFC chart and are addressed via the chart. By assigning the CFC chart to the
plant hierarchy, the instances that it contains are also indirectly assigned to the
plant hierarchy.

Messages

SFC instance messages can be configured in the SFC via


SFC -> Message
or in the CFC in the object properties dialog box. The messages are PCS-7compliant and can also be provided with associated values, for instance.

Configuration

When you configure SFC instances, the interface and the sequencers must not
be changed, as they are specified identically for all instances through the SFC
type. Changes that are made directly to the instances may be loaded at any time,
even if the SFC instance is currently being processed in the automation system.
After you have configured any changes, you must use the function
OS -> Compile
to ensure that the current data are also available on the OS.

Compile

If the program is compiled on the ES side, the SFC instances will be compiled
along with them. For any given SFC instance, 1+n data blocks will be created
(where n = number of sequencers within an SFC).

Training Center
for Automation and Drives

Page 21

SIMATIC PCS 7 System Training


C onfiguring w ith SFC

S IE M E N S

Miscellaneous Reference Data


M D iv p lo y f l i . i r t R r l r r m c c D a ta - [S 7 -ASO l (R u n i r q u n u c ) -- P R 0 _ A 5 \A 5 0 I\C P U

Pefwence Dara Ed*

\Mrdow H&p

* M F i f l i a [aifl>!siiBBiife'fliBni a %lB im i *?i


O 0 1 _ ( 2 ) _ ( I) r 16 \ 0 ]
_
S @ (2)\A S 01_1 [ OB_BEGIN I CPU Functton B tc k ]

Run S equence

@ C Q 1_@ (1)_(1) [ 1 6 \0 ]

} @(1)\CPJ_417-4_1 [ SUBNET | SUBNET FurctiOfl Bbck ]


Q @(l)\CP_mastsr_syst_l [ SUBNET I SjBKET Functon Bbck ]

r- .*J 0B1_(6)_(1) [ 16\Q]


quence

S @ (6 )\ U R 2 _ 1 [ AN D ]

Oo*Reforc*s

fl- @(6)VM_153-2_redu_l [ AND ]

Cross-Fefnrrces SFC

- * J @CB1_>(3)_(1) [ 16\p]
5

O
r

ca (3 )V JR 2 _ l [ RACK | RACK F u x tio n Block ]

Sork rntfrconnetfion:

(3)\!M_153-2_redu_l [ RACK | RAO. Function Bft>

A < x *ts *x r SFC f j n n

f t

< 8 > f7 )\A I8 x l2 B iL l [ AND ]

Runtime Group

BQrt TypK

O ' <3>(7)V>S_407_10A_1 [ AND ]


@ 5(7)\AI2 kH A R T _ E '_ 1 [ AND ]

Addrs

Chart Etrnenf

Cro!s-Korercnc?s Chart Element -

@oai_@C?)_(i) ( 16\P]
f}

Elemoof

S#T

tx& Afocaticft
Data

tifotk'lall hjeiaicfv

t J @(7)\A04xl2Blt_l [ AND ]
f } @C7)\DOBxDC24V_0_5A_1 [ AND ]
O (7)\pil6.CC 24V_In_l [ AND ]

Tfc fcual I'Vcr corncchons

l3 u to r
Status bat

Lpaaie

SIM ATIC PCS 7

Date:

07122 00 6

Semane AG 2005. Al rights reserved.

F5

SITRAIN Training f<r


File:ST-PCS7SYS_V70_sdc.22 Automation * O rtm

Calling up Reference Data


When you have opened a CFC or SFC chart, you can use
Options -> Chart Reference Data...
or the symbol in the function bar to display and print the information shown below
in list form or in tree structure. You can search for the desired output using the
View menu command.
Run sequence

Graphic representation of the entire run sequence of a CPU.

Cross References Chart Element -> Address


A list of all global addresses used in the project, with the elements that have
access to them.
C ross References SFC -> Chart Element
This displays the existing accesses to the block interfaces in the CFC from any
SFC charts.
Block interconnections
List of all interconnected chart elements.
Access in SFC types
List of all read and write accesses of the SFC types to their own interface.
C ross References Chart Element -> Runtim e G roups
Existing accesses from any CFC and SFC charts for all runtime groups.
Cross References B lock Types
The block types used and the locations (CFC chart) where they are used.
S7 Resource A llocation
The assignment between CFC configuration objects and S7 resources.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 22

Configuring with S F C

Local Data

All OBs in the program, with the calculated local data requirement and the local
data sizes for the individual priority classes as configured offline, and those
actually available online.

Block Call Hierarchy


Graphic representation of the call hierarchy for all blocks in the current program.
Textual Interconnections
All open textual interconnections are listed.
Statistics

Number of all objects used by CFC, SRC; S7 resources and the time stamp from
the current program, as well as the HMl-relevant block instances for the project.
You can use this information to check your configuration structure. For example,
you can use the "Cross-References Chart Element -> Addresses" list to
determine which symbols are used and how often, and whether write accesses
are synchronized. See the online help for further information.

Note

The "Reference Data" function is also available in SIMATIC Manager. With PCS 7
projects it is only offered in the context of the chart folder of the CPU.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 23

Configuring with S F C

S IE M E N S

Configuration Steps (AS)


Select block libraries
/create project-specific
library
O

Create plant hierarchy


(SM view -> Plant hierarchy
or
SM view -> Process object view)
O

Create project (SM*)

Assign resources
(SM both views
PH or PO)

O
Create resources
(SM view
-> Component view)
O

O
Configure SW
(CFC, SFC, SCL,
messages, archive tags)
O

Configure hardware
(SM view
-> Component view)

Test+commission
(configuration tools)

SM* - SIMATIC Manager


Document
SIM ATIC PCS 7

Dale:
15.11.20C6
ST-PCS7SYS_vro_ub_pro.fi

Siemons AG 2C03. All rights reserved.

J |
*

S IT R A IN Trainingfcr
Automaton * *

Introduction

The steps described below are a simplified representation. For more detailed
information about the sequences and what needs to be taken into account at the
outset, please refer to the "PCS 7 - Engineering System Configuration Manual",
Chapter 3 "Planning the Plant Engineering".

Block libraries

The libraries that are not used should be hidden via the SIMATIC Manager file
management function. It can be advantageous to create a separate library for
each project in the same project directory (master data library). To start, the
blocks that will be used later in the project are collected there. If in the future the
software is upgraded, this library can be updated across all subprojects.

Create project

Use the SIMATIC Manager to create the new project. The Manager handles all of
the data generated during configuration.

Resources

Resources include the ASs in the project (with their hardware), the S7 programs
(with blocks in the user program and with chart containers and the blocks
imported to these chart containers via CFC), networks, as well as the ES/OS
PCs.

Hardware

Within the project, the AS/PC hardware components (CPU, CP, and I/O modules)
must be configured in accordance with the hardware structure. This configuration
is downloaded to the AS and assigns the parameters for the modules.

Plant hierarchy

(PH)

Assign resources

A hierarchy (with a maximum of eight levels) is used to display the configured


plant in the project. This hierarchy can correspond to the HID system
(comparable to a directory tree).
One AS and/or one OS can be assigned to each hierarchy level. The subordinate
levels can inherit the assignment. CFC/SFC charts, OS displays, reports or
documents belonging to the assigned AS/OS can be inserted in each level (as
"leaves" on the "branch").

Software

AS-specific or OS-specific tools are used to configure the software as needed.


From the AS, you open the object in the plant hierarchy to start the software.

Test + Commission

The software must be loaded onto the configured hardware for this. Each
configuration tool you use provides testing opportunities for online operation.

Training Center
for Automation and Drives

Page 6

SIMATIC PCS 7 System Training


C onfiguration

S IE M E N S

Project Environment

Factory 1
Basic
materials

SIMATIC PCS 7
AG 2003. AI righjs r e s t e d .

Factory 2
Dyes

Date:
15.11.200$
Fie: ST-PCS7SYS_V?0_Cto_pro.7

S IT R A IN Training f a
Automaton a r * Drtvw

Project Environm ent Our project is part of a dye manufacturing plant. The basic materials are
manufactured in Factory 1 and are transported from there to Factory 2.
In Factory 2, the basic materials are stored in dedicated storage tanks.
After undergoing the manufacturing process, the end product is stored in a
different section of the tank farm for transport purposes.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 7

Configuration

S IEM E N S

O u r Plant (Factory 2)
Factory 2
Tank Farm North

in

to

Q _

CL

o
y Vo
1 I
o
0
eg

CL

ooo
OOOO
OOOO
OOOO
OOOO
OOOO

a .
=3

CO
O

P
O I 0

'3 l

------ ------------M.,

OOOO

CD

Tank Farm South

Q.
13

OCOO
O O O O
O O O O

Tank Farm East

Cl

a
o
CD

.o' o o
oo

AS4 AS8

Mixed planK
Tank farm \
Shipping

AS3 AS 7 Group 7

)
Group 2
Control "'
building

AS2 AS6

Group 6
I

Group 1 incl. AS1 AS5 Group 5


- Unit A
- Unit B
- Unit C
Unit D.

Shipping

/
e

Factory 1

S IM A TIC PCS 7

Date:
15.11.2006
Ffe: ST-PCS7SYS_V70_iife_pro.8

Seiberts AG 2003 Al rights reserved.

Plant Overview

S IT R A IN Training for
Automation and Drives

The plant to be automated is part of Factory 2 and is broken down into several
different zones (see above):
Tank Farms North, South and East
Shipping
Control building
Groups 1, 2, 3, 4, 5, 6, 7
Each configured with the following reactor units: Unit A, Unit B, Unit C, Unit
D
You can specify this breakdown in the plant view (on additional pages) and
retrieve it again later.

A utom ation system s


Eight automation systems are used to carry out the automation tasks. The task
assignment is displayed in the picture at the top right.
Only part of M s plant w.yiJ ^ -g utQmated-iDJXULexercjsfi^u.sjj3gj?a^-S.aDd.oiie

os.
Note

Tasks that were originally assigned to an AS or OS can be reallocated over the


plant hierarchy in a later project phase with minor configuration effort.
Each participant takes on/configures a group in accordance with the training
station number..

Training Center
for Automation and Drives

Page 8

SIMATIC PCS 7 System Training


C onfiguration

S IEM EN S

Configuration Steps (OS)


Create resources
(SM view
-> Component view) *

Compile and download OS

O
O

Setup OS/project editor


(optional)

Test+commission
(configuration tools)

Create OS objects
via plant hierarchy or
process object view

Document

O
Edit individual objects
(pictures, reports)
i

SM* - SIMATIC Manager

SIM ATIC PCS 7


S + n w * AG 2003. Al rfgrtfc reserved

Note

D i\o :
15.11.2006
Fie: ST-PCS7SYS_V70_UD_pf0.9

S IT R A IN Training f a
Aulon>a6on arvd Drive

The OS is created as a SIMATIC PC.


The PC is also set up using the HW Config tool (like an AS).
The basic data for a PCS 7 OS are configured using the project editor (within
WinCC).
Individual objects are inserted via the plant hierarchy or process object view and
then completed in the appropriate editors (of WinCC).
The OS must also be compiled and downloaded (like an AS). The OS PC must be
networked with the ES PC for the download to work. You can find details about
this in the section "HMl/Operator Control and Monitoring".

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 9

Configuration

SIEMENS

ProjectStructure

SIM ATIC PCS 7


Semens AG 2003 All rights reserved.

Dale:
15.11 -200o
Flo: ST-PCS7SYS_V70jJJKru.1

C ontent

,.# !
^

S IT R A IN Trawnp for
Automaton and D r*<*

Page

Project Environment
Our Plant (Factory 2)

........................................................................................................................................ 2
....................................................................................................................................... 3

Creating a Multiproject (MP) ............................................................................................................................4


Creating Projects in the MP ............................................................................................................................. 5
Setting the Language for Display Devices ....................................................................................................... 6
Assigning the Plant Hierarchy .......................................................................................................................... 7
PH Settings
................................................................................................................................................ 9
Updating the Plant Hierarchy ........................................................................................................................... 11
Plant View - Settings/Properties ......................................................................................................................12
PH Assignment
................................................................................................................................................ 13
HID Generation

................................................................................................................................................ 14

OS Hierarchy (AS/OS)

.................................................................................................................................... 15

OS Hierarchy (Picture Structure) .................................................................................................................... 16


Names in the Component View ....................................................................................................................... 17

SIMATIC PCS 7 System Training

Training Center
for Automation and Drivos

Page 1

Project structure

S IE M E N S

Project Environment

Factory 1
Basic
materials

SIMATIC PCS 7
Siemens AG 20C3. Al rights rcsorvoc.

.Factory 2
Dyes

Date:
15.11-2005
FHe: S T .P C S 7 S Y S _ V 7 0 u .2

S IT R A IN Training for
Atfjoroatior and Drives

Repeat

We shall repeat the project environment as in the previous chapter in order to


create a suitable project structure for it. We will take into account the plant
structure for this, while also considering the specific AS and PC equipment
available in the training room.

Project environm ent

Our project is part of a dye manufacturing plant. The basic materials are
manufactured in Factory 1 and are transported from there to Factory 2.
In Factory 2, the basic materials are stored in dedicated storage tanks.
After undergoing the manufacturing process, the end product is stored in a
different section of the tank farm for transport purposes.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 2

Project structure

SIEMENS

Our Plant (Factory 2)


Factory 2
Tank Farm North

ooo
OOOO
OOOO
OOOO

in
Q.
3
O
hm

CD
CL
3

2
CD

CD

Cl

3
O
i
0

Tank Farm East

hQ.

OOOO

2
O

II1
CL
13

<
ooo

O O P -0 "
/

^ o - o o o
o

/
Group 4

AS4 AS8

Mixed plant\
Tank farm \
Shipping

Group 3

AS3 AS7

Group 7

Group 2

AS2 AS& Group 6

] /

Tank Farm South

"> /

OOOO
OOOO
OOOO
OOOO
OOOO

] \
j \
: \

Control
building
S h ip p in g

Group 1 incl. AS1 AS5


- Unit A
- Unit B
\ \ - Unit C
Unit D.

Factory 1

SIMATIC PCS 7

**

15.11.2006
F.le: ST-FCS7SYS_vrO_p_Mru.3

Plant overview

/
/
/

-v.

Siemens AG 2003.AH right* reserved

Group 5

SITRAIN Tuning for

* # * * > on and Dives

The plant to be automated is part of Factory 2 and is broken down into several
different zones (see above):
Tank Farms North, South and East
Shipping
Control building
Groups 1, 2, 3, 4, 5, 6, 7
Each of which is configured with the following reactor units: Unit A, Unit B,
Unit C, Unit D
You can specify this breakdown in the plant view (on additional pages) and
retrieve it again later.

A utom ation system s


Eight automation systems are used to carry out the automation tasks. The task
assignment is displayed in the picture at the top right.

Only part of this plant will be automated in our exercise, using one AS and one
QZL
Note

Tasks that were originally assigned to an AS or OS can be reallocated over the


plant hierarchy in a later project phase with minor configuration effort.
Each participant takes on/configures a group in accordance with the training
station number..

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 3

Project structure

S IE M E N S

Creating a Multiproject (MP)


U SIMATIC Manager
PLC View

Options

Wndotv

Help

'/Jew Project Wizard...


Open...

* *

New Project
SIMA IK M*ngvr

(OYI (tcropcnQivj v>cw)

^ rfc c * lueir fic Ven cycn;


D C

0 \Sytl<*n Crc\MAKMl >j|

r**>
^

DV

* >

ObjWfXTM

long>59*

IVU^QXI (0:'

Tooltip shows
storage location
Multiproject symbol
r Ac
Name?
DYE'

Type
Mitfiptcject

T FUT l-y
Storage lo cito n
D:\Syslem C cu ie\MANUAL

Biowte

=!>
or

Caicd

SIMATIC PCS 7

Date:
15.11.2006
F * : ST.PCS7SYS_W0j>_slrii.4

Siemens AO 2003. A l rights reserved.

Objective

Exercise

Steps

Help

Vl# l
-

S IT R A IN Traning for
Automation and Drives

A project containing an AS and OS is to be created in such a way that it can be


simultaneously edited on different ES systems at a later time. The "multiproject" is
the project type of choice for this application.
Create a PCS 7 multiproject in which one project is created for the AS side and
one for the OS side. In each project, configure the hardware for the devices used
(AS or PC) and download the configuration to the devices.
1. Create the multiproject using the SIMATIC Manager.
2. Create the two projects in the multiproject (one project for the AS, the other
project for the OS).
3. Set the language for the display devices (in which language the plant operator
will read his textual information).
4. Configure the hardware used in each of the projects.
5. Compile and download the configurations to the devices.

Remark

Steps 4 and 5 can also be performed after the entire configuration has been
completed, at the latest before debugging and startup. As we want to test online
as soon as possible, we will carry out these steps even before creatinq the
software.

Procedure

1.1 Start the SIMATIC Manager by clicking the icon on the desktop or by selecting
the following in the task bar:
STAR T-> SIMATIC -> SIMATIC Manager
1.2 Select
File -> New
In the "Multiprojects" tab, specify the storage location and enter a name for the
multiproject (e.g., storage location = "PCS7courses_V61" directory on the data
drive, and name = "DYE").

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 4

Project structure

S IE M E N S

Creating Projects in the MP


SIMATIC Manager
R tf File

Ed*

Insert-

JO Y !

PLC

(Component v ie w )

View

Options

Window

[):\Sy*lem CourteVMANIJJU \D yeJ


Hefci

D c* S?
O bd name

Mjfeerofc

t? X

~n

_ P i o|ec> Ur,pudge

UNC ^ b

Insert into Mufciproject...

Charts

5harcrf I>ecIo-abons

>

P I.W in r.v rh v

ri ^A(io|Kt.
SIMA IK
Sl

U an V

|0Y (C o U p m tftf

0 IS ytU o i Couc%rNMAfHI V>ftJ

*V 9 t P.C HW Opricftf Wvt&v Hcip

if

s
X

in
rm
PflC AS
PRO OS

. UWCp * * ___

PROLAS

EnjkhlUf^dSlaieji -

PROMOS

Ertfah fUnied $!**! -

Project symbols
Multiproject symbol

go Hep

SIMATIC PCS 7

Date:

15.11.20C6

Siomons AG 2003 M right* r# s *w d .

Note

PCrtomal

. j p l S IT R A IN Training for
ST-PCS7SYS_V70_*jru.5 ^ AutomafccnandDr*es

Always use a directory on a drive other than the installation drive of Windows and
PCS 7. If the Windows and PCS 7 hard disk partition is restored or reinstalled, the
previously implemented projects will be retained!
2.1 Select the multiproject icon, then
right-click and select Multiproject -> Create in Multiproject...
Then, go to the User Projects tab and specify the storage location and the name
for the AS project (the path of the multiproject is already preset for the storage
location, the name can be "PRO AS", for example).
2.2 Now carry out the same procedure for the OS project. Name it "PRO_OS", for
example

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 5

Project structure

/
V

S IE M E N S

Setting the Language for Display Devices


SIMA IIC Manager
File

td t

In s e r t

[DYI (Component view)

PLC

V1e>*

CpUO O v

Window

O:\System Course\MANUAl \

*WO AS

AAtflMg* N u n bcr Awtgnmefrt S th r .i n

Help
*e+ng:tcr

D G* ao
a

Customise...

Ctrl+Alt+E

Filsf

Access P/otecton

Hvoitowip ! * pixel orfeii9 to.* : * * t c tttec* m tftx ro tw Q O c to r*

c rwm>

Charge log

*%.*%>. CPU

(.ofWWCVSP^Too*V$or$TlP ^C

Tet Libraries
i

prn*<5/lt>tfv

Language f a Cfcplay O n * * . .

iienft)ixi0 tf p&wtf^cocoma'' 1 0 aK<t oi#?*eda 5TEPrv51J

n .ijn pc**:i ctkJrd ra c oe 1* 09? cv*T*r

JPirvo -: ndhodl

Manage MiibDr^al Te .ts


I w............ .-*1.>.

0pOO!
0>

m>

COHOi

A d d / D e t c te 1 d n g u a f t c . Sot D e f a u lt I j n g u o g c : P R O A S

4v stsWc Langjagc;
P r o p e r tie s

Gonaal

P r o jc c t

EngktfUBeteeJ
Engish(Diruxla)
Enflfsh (Caribbean)
Engish (Ireland)

Requred Software Pack aoe-.

It^a/ted Looguige mPrctec*


EnglehlUmted State.]

Encfiih[Jamaica)

Name
Storage Location

cojBse\manua!'vpio_ac''fxo_d' *7p

Type

STEP? P.ototi

Enjfah (Ncw Ze^and)


Er>alisb[Phippme *)
E r*^ h [S a ;fh Africa)
Engfah IT rWdadj
Englsh (United Kingdom)
EnohhCZimbefc-irc)

[><*>Language
U.'e
Project Language

PCS 7

Zj

Engtah (Uriled Sl-slosf

Srt a*. Default

Er gl*:h lUrrfed Slatesl

Can tw opened undi* r<vW indow l*nouage U tlin g t (language iejfcf


Came!

OK

Heto

Project language

SIMATIC PCS 7

Data:

15.11.2006

S&nens AG 2003. All rights reserved.

S IT R A IN Tuning for
File: ST.PCS7SYS_V70_p_ru.6 I Automat**andOwes

3.1 First, select the AS project, and then select


Options -> Language for Display Devices
If you have not already specified the message number concept in the SIMATIC
Manager, you will be prompted to do so. Select the default setting (for V6). This
query is necessary as the subsequent language selection will affect the message
texts offered during configuration.
3.2 Provided you only want to use German, all you have to do is set it as the
default language.
If you want the project to be available in multiple languages, it is advisable to set
the default language to English (USA). Provision is also made for French, Italian
and Spanish in PCS 7 libraries and in WinCC. You can easily add these
languages to the "installed languages.
If you want to use the project in a different language (other than German, English,
French, Italian, or Spanish), we recommend setting English as the default
language (i.e., do not enter any additional languages in the "Installed Languages
in Project" box) and installing the required language in WinCC later (this is
explained in detail for the OS project). The English texts found there (in WinCC)
can be exported, translated and reimported.
Remark

The language setting must be made for each project within the multiproject!
The project language displayed in the properties of the project corresponds to the
Windows language when the project was created, and cannot be subsequently
changed.
For steps 4 and 5 m entioned at the beginning, please refer to Chapter 4
"S ystem C onfiguration". As these steps do not have to be perform ed but,
rather, can be perform ed later, they have been included elsewhere, as
indicated.
Now we w ill return to con fig uring the system .

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 6

Project structure

SIEMENS
dye

sa

^ ^ A s s ig n in g the Plant Hierarchy


Level 1

Level 2

pro. a s i

__j Diagnose
a

- a

Pl<n(2

asoi

- w - a ConrSy:

1 CPU 417-4
-

ja ) Dean
^ Cool

JiJ Soutce,
- ^ j Q l Bfccl i
IS ] Charts

& I Heolhg
-

Level 3

------

J 0 Reaclcisl
+ j6 J TEST!

CP 443-1
CP 443-5 Ex?

J^J UnrtOl
-* + jy j Drain
4 , ] Flcwin

Level 4

iT j S7-AS01

__| Shared Dedaration- P R 0.0S 1


- LNB04

^ f HoatQrl

* . ] Level

* j6jWte

WmCC Applicate
.^ O S O I

. JSI SmulaJkn
J&jUni!B1
M UniiCI
,jj UrD1

Shrppng
j * Tank
- $ PR0_0S1
^
f
1 Shared Dedatariori,

In the exercistf you will


assign your /^5 instead of
the AS03 or,AS07.

Diagrose

^^acLsj.; ^ P ic tu re
I

+ jg j Clean

Use your F7C as the OS/ES

^ j) Cool
.+ Jfcj Hcatrg
i

R e d d o iil
4 _&j TEST1

^ P ic tu re
,^P icture

J U Un*Al
1 UnfcBI

i + JuJ UnlCI
.

] UnlDI

.& ] Shipprg
JaJ Tank

SIMATIC PCS 7
Sernens AG 2003. All rights reserved.

O bjective

&

Picture
Picture
Date:
15.11.2005
F.lo: ST-PCS7SYS_V70_p_stru.7

S IT R A IN Training k r
Automaton and Dr.ves

You have carried out the system configuration. The automation and HMI stations
are in the foreground.
The plant presented at the beginning of the chapter is to be reflected in the project
in a so-called "Plant view" (also known as Plant Hierarchy). The AS ("ASxx") you
configured a little while ago will be used to automate the two structurally identical
"A" and "B" reactors, the OS ("OSxx)" you configured will be used for operator
control and monitoring.

Plant hierarchy
You can call a plant-related view (through PCS7) in the project (in the SIMATIC
Manager).
View -> Plant View
This view is initially empty. Select the project name, then
right-click and select New Object -> Hierarchy Folder
You can then rename the new folders.
After selecting a hierarchy folder, you can structure the secondary plant hierarchy
in the same manner.
Result: The plant view mirrors the structure of the plant.
In our exercise we will create a PH with 4 levels.
We will use Level 1 as the factory designation. This level is present for overview
purposes only as the plant is large; it is not used in the AS and/or OS (nor is it
part of the Higher Level Item Designation - HID) It is included in a printout of
documentation.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 7

Project structure

We will use Level 2 to divide the factory into plants, such as reactors, tank farms,
etc.
We will use Level 3 for the units (e.g. as Unit A, Unit C or Reactor A, Reactor C)
Level 4 will describe the function (e.g., temperature control or inflow)
AS/OS assignment

The plant folders must each be assigned to one AS and/or one OS so that the
automation task runs in the correct AS (the one that is "wired directly" to the plant)
and the monitoring objects (pictures) are created in the correct OS. Select a
hierarchy folder, then
right-click and select Object Properties - AS-OS Assignment.
If you select the "Lower-level objects..." check box, the lower-level directories will
also inherit the assignment.

AS

When the AS is assigned, its chart folder is recorded (containing all CFC and
SFC charts that run on the assigned AS).
Select the AS CASxx")

Note 1:

The reason for assignment to the chart container and not to the CPU is as
follows:
If you have not yet specified the hardware, you can insert an S7 program
(software only) into the project. You can assign the program's chart folder to the
Plant View. After you specify the hardware, you can cut and paste this S7
program into the CPU, which is now known. It replaces the (still empty) S7
program of this CPU configured using HW-Config. The already configured plant
hierarchy and software also migrate.

OS

Select the OS ("OSxx").


The pictures configured later in the hierarchy folder are kept in this OS.

Name the tasks

Select a hierarchy folder, then


right-click and select New Object -> (CFC, SFC, pictures, e tc.)
to insert and name the relevant objects. These objects are implicitly inserted in
the assigned AS (chart folder) or OS, where the objects are also loaded and must
be executed.

Note 2:

PH assignments can only refer to devices (AS/OS) that are located in the same
project. However, identical names of the PH in different projects of a multiproject
refer to the same plant component to be configured within the multiproject.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 8

Project structure

S IEM EN S

PH Settings (1)
27 SIMA IIC Manager
Qftf File

Edft

Insert

|DVI (Plant View)

PLC Vte>v

Cphons

Dttystem Course\MAMUAI

u/ndow

<3

dg* r
2bli

*-*
** -*

Qbcc name

i ? PRO^AS
*6i c U

a v io i r>

Piart rtcr<

551

UNCp

Level Seeing

Ersliih (United State;)

'I

Level
Settings...

Customize Plant Hierarchy


Select the pojec* to be uted a: a tenujte

PRO AS

3al Fie F.dit Inse.-t PLC Vv


i
D&
- 2JDYE

With
:epsiao(

OS a e a

24

.10

ft

10

&

fi?

ho

R?

(24

24

r
r

24

24

Preview

2222222222' 33D333333?s4444444444\

D ew e p c tu e toeraichy hon. if# plan' h re t*cto

D ff *e d^grKjrlic icieera tiori the plant heraciy

* Derrve PH name; lio n the n a n *, of Die hordtvse con pacnt.Deo ve PH rw iie fiem the comment.. of the liaid-vare component

Prow*ceHfl)
r & PROJDS
Ja) Picceucdld)

SIMATIC PCS 7

Incbded n
HID

PC intern il

PRO OS

Siemens AG 2003. All nghls reserved.

Mai' number

of chvacterc

Prtxess Tags

PressFI
or Hel

Nurrbcf o) herarcfy te\el.

FVojpc Joiigua^f

g )P R O AS
Qj

Customize Plant Hierarchy

Hefc

OK

CarKel

,.#1

Date:
15.11.2006
FNo: Sr-PCS7SYS_W0_p_strj.9

Hefc

S IT R A IN Training for
Automat and t> .v

Exercise

For the entire multiproject, set the plant hierarchy so that level 2 is defined as the
OS area, levels 2, 3 and 4 are part of the higher-order item designation, and the
picture hierarchy and diagnostics screens are derived from the plant hierarchy.

Note

For instructional purposes, we will deactivate the "Diagnostics screens..." option


again after checking the automatically generated structure. At the end of the
second week of training, when we have completed the automation and HMI
exercises, we will activate this option again and take a look at the end result.

Steps

1. Select the multiproject and open the settings screen.


2. Select the project that is to serve as the template for the PH.
3. Define the OS that is to be used as a maintenance station (MS), i.e., your
ES/OS.
4. Check the changes that have been made.

Procedure

1. In the SIMATIC Manager open the plant view of the multiproject and select the
name of the multiproject. To open the screen form,
right-click and select

Plant Hierarchy -> Settings

Then set the options according to the requirements for the exercise.
2. In the next screen, select the AS project as the template. (The goal is to avoid
having to create the PH again for each project if the selected project already
contains a PH.)

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 9

Project structure

S IE M E N S

PH Settings (2)
M4iartciijiKr S to le n U'vtMmncn

m S 1 M A T I T M a n a ^ r f [ C O I R (P l a n t V i e * * ) D : u ff in a ; 2J
^1 P<e Ed/ Irtserf 1.C Vew Cotters Window help

ImMuhptopil orhande^eOS
1 Proiefci
PRO.OS

Abbrechen '

dM

s?j

Hilie___ j

c. J

D ia g r o :^

jJ
! j fjjPlent2
-

FR O _D S
-

S I M A f l l M it iu n jr r - I f U R (1 a m p o m n l v w n w ) -- D : P f S

File

Edit

Djc^l I?

In s t' t

51

PLC

Vic^n Options

Wmdow

ft

o u r * r vt

_ J D ia g n o rti::

1 lal jfc| PHS Hl>ls-t a

- E j AS01
- 0 CPU 417-4
- r r ] S7-AS01

PC si"

_ J PLC
jjt f Pioce

OtSccTnaftp I PHAm nm t

- SJCOLR
PRO AS

_ J Dagnoslic:
_ ] Nciwocl

Help

-ft-Overview

D ogno *lie VDiogno.-'ic.

-fr Ptawe(2)
ft- Pictuie{4)

Dwgno; lie:\Diaooo*fe 0 ,^ 5 f i to 9 * Hefp


DiagriO' rci\Diagnosticr vc-n au w rr

-ft* Pie<ure(5j

Diajjnotfc '.Diablo-lie t\Network object t

c d (1 )

n l Scwce'
1) Block*,
^ 1 Chari

- A

CP 443-1
CP 443-5 Ext

PRO.OS

- M
-

Result

LNB04
Q WinCC ADplcation

_^osoi
PC internal (local)

Prers F I to gef Help

SIMATIC PCS 7

Date:
15.11.2006
* ST.PCS7SYS.W0_o_siru.1C

Siemerts AG 2003. A l r.ghts reserved.

J j|
-

S IT R A IN Training for
Automaton and Drives

3.

Define your OS (ES) as a maintenance station.

4.

After confirming prompts, an operation is triggered, which performs the following


actions:

Remark

A first hierarchy folder is created in all projects included in the multiproject


(e.g. "Plant(1)") which you can expand or adapt for each project as required.

A second hierarchy folder is created in all projects included in the


multiproject for diagnostic purposes (e.g. "Diagnostics). It is later
automatically adapted after the software is used to access the hardware.

In the slide above you can see the different breakdown of the diagnostic hierarchy
in the two projects.
While in the AS project only AS objects contribute to the diagnostics, the OS
project contains folders for the AS, network and PC objects (full instrumentation
and control setup).
The maintenance station that is running on the OS must provide the entire
instrumentation and control diagnostics.
Whereas CFC charts with diagnostics drivers are created in the diagnostics folder
of the AS project (the hardware-related software must run in the AS), pictures are
created in the OS project and are displayed with graphic symbols when
appropriate. The user accesses the OS diagnostics information for the status of
the device via these symbols.
The symbols are generated by the PCS 7 MS software.

Training Center
for Automation and Drives

Page 10

SIMATIC PCS 7 System Training


Project structure

S IEM EN S

Updating the Plant Hierarchy


(I U P < P U n l V

ft
Ffc

E it

lhsrc PLC Vrp'i Opwr

Right-click and select Plant Hierarchy -> Update in Multiproject

SMSSi
FflO.AS
_ j Diagrw-.Sc*
- j Disgpo^'cs

PIC ofejoct
fiR ert2

Ptotf H ie ra r c h y

txpdaf r m m u t i p r o j r c t

- fx CcnrStv

-{fell D e *
JEaJ Cool
, j Herthg
f-j| Reacloc*
n Un5A
| Dlr,

< M g * Ih r 7H c all project! n i}*? rruhpto.ec'


^

E.pou b TH ol orie pioiec* r> ether picpcit


Solccr t^e pioiect >o

* Fbwln
* & HettCUl
j
I * Jd HoaiMor.
Level

I PRO AS
PRO OS

+ J Ml-tt

<*: f i ) Simulalbn

>

'

used a*. a ten-plate

C*veJ

Hdp

JEU UrtiB

.fi

Ur*C

J d S h p p r*
-

&

Tank
JaJ Eatf

; fiNoh
l jjti South

&

m o_as

- j

D03l'0SbD4
-

_ J Di50-K)*!'c:

* _ j Netwwfr cbjccts
+' _ J PC station;

Result:
both projects PRO_AS and PRO_OS
have the same plant hierarchy

* j j PLC objsctr
J 2 Ptoce s cei(1)

SIMATIC PCS 7
Semens AG 2003. Al rights reseivea.

Exercise

Date:
15.115006
Fie: ST-PCS7SYS.V70_p.Slru. 11

S IT R A IN Trarang foe
Automation and Drrvos

Create the hierarchy tree from the above slide in the PRO_AS project in the plant
view.
Update the PH in the multiproject to avoid having to make the entries again in the
OS project.

Action

In the plant view, click the multiproject,


right-click and select

Plant Hierarchy

Update in Multiproject

to open the update screen.


The option selected in the above slide will create the PH folders with identical
names in all projects A identically-named PH folder in the projects represents the
(identically named) assigned plant section.
The second option enables limited updating of selected projects. This is
necessary, for example, if different plant sections are to be monitored on OSs in
different projects. Different plant hierarchies are required in that case.
Remark

If you would like to rename the PH folder later, do this in the template project.
Folders that were generated through an update will be automatically renamed.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 11

Project structure

S IE M E N S

Plant View - Settings/Properties


Cu * t o n u /r Plant M ^ f rrh y

S IM A T IC M o iw g c .

s d F<e

Lpvel Seitng;
1
2
3

Inset r

Dtel |?[i!

Munbcf of h e ttu iv level:

Led

La#

[ C O I R ( M a n * V - w )

v* w

p ic

Oj*

ct&

. ., nr

3 d COLR
Mac t t r t x i

o!chsac+eii24
jio 1
Jio :

Inciudsdiri

D5 erea

PRO_AS
PRO_OS
_ j Degno tic
- _ J Diagnostics
_ J Netviork objects
I PC Uationt
_ J PLC obtsc^

o p c ? lic >

irerare b y l o W t f

Ge^eial Ccrool^mc itarigcrfib^e^ j&SCS

Detrition

7 j j i i CcaiS?y
Cleon
^ l | Cool
Healing
Rcoctofs
UnitA

* Naroeot l.ehe*<*c^fok3?u>pMo*theHf[.>

_) Drain
g ft Rowin
* ^ | HeaOrf
HeaWon
Level
\ Mixer

OS d ie 3 ID

SirTiiiaton
JaJUnAB

JFcotloc.

J flU r iC
J l) Shipphg

Pio'wer aoiefot CS

- j j i l Tanl
P

JflEest

Mo moi#caon ihsn renanmg the h^eraidiv fold?


t

North

* jp ] South
b ; Proo3:s ce4(1)

SIMATIC PCS 7
SeTO^s AG 2003. All nflhls reserve.

PH settings

S IT R A IN Training for
Automaton arc Doves

Date:
15.11.2006
File; ST-PCS7SYS_V70_p_stru. 12

The settings are taken from screen "1" for each hierarchy level of the current
project.
You can set the naming conventions for your project (number of levels, name
length per level, whether the name of the level is added to the hierarchy
identification and whether the screen hierarchy in the OS or the diagnostic
pictures are derived fromthis plant view).
With the OS area, you specify which hierarchy level is applicable as the OS area
level. You have set level 2 (see circular mark).

Note:

When you assign a name, note that the process tag name on the OS must not
exceed 128 characters. The name is a combination of the names of the folders in
the hierarchy path, the chart name, the block name, the separator, and the
connection name (parameter name of the block).

Hierarchy folder - Properties


After selecting a plant hierarchy (usually in level 1),
right-click and select Object Properties
to set the properties.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 12

Project structure

S IE M E N S

PH Assignment
P ro p e rty *

tr r fth y (o td ff

P lants R r . x l o r %

(jphw-jJ , Coi n o l*<) r w . n o . ^ g att.oj*e,

CS

usrnwn!

j SS8 Type L'em^oo

A'. ^r<KlC Pt! f'K n r nd^rl

2 jJ File

VCPU 417-4\S7 -ASOI'ChaitJ.


FflO_AS
I Diagnostics

d Rcactors
J 2 Shipping

PtC

Vw

C|

[if. | ,

- 2JC0LR

There a e lo^er ie - d obfec,*; wh 3 fe w t or r,<- mg

JaJ ComSjy

Insert

D jtf| | f j r j

L o w te te lo b .rcf-

Rant2

Eok

- ^

ks

FflO .A S
- AS 01

v ' Pa: i on S c k t e d - : --gnricrv to the Lov-'or Ic-'d Cbiecc

3 CPU 417-4
E i r j S7-AS01

Tark

e l Sowccs

Procet* ceW)

i H Blocks

Chaitr
CP 443-1
CP 443-5 Erf
J

1 Diapnwtici
j*

*A
^

P l*2

j i | CcfuSry

* * ir z i:

P raprrttM

Hictarthy foWw

P b n t? ^ fc to ri

- &

LNB04

A. signed OS

j t t Shippino
1 j - J Tank

LNBCU

jal Proc^^ccrtl]

L O

PR0_QS

_______

' s e f - l e / e l c t x e c n --------------------------- ----------------

WirCCApptcotion

f,S01

There are Jov*f-?e*ei coec*; vnlh drterert a rm^ng a agrirncriiv


P *:-. or. Selected A:

SIMATIC PCS 7

*c *he Lo*^cf level Obircb

Data:

15.11.2006

Siemens AG 2C03. All rights reserved.

AS/OS Assignment

S IT R A IN Traning for
Fie: ST-PCS7SYS_V70_p_stru.13^ Automationand

Select the following in the AS/OS Assignment tab (see above):

The AS (its CPU chart folder) in which the CFC and SFCcharts are stored.

The OS in which the pictures and reports are stored.

This assignment can be passed on to the lower level hierarchy folders, unless
other assignments are necessary in lower levels.
Remark

HMI Attributes

You can only assign those ASs or OSs that are located in the same project as the
PH folder that is currently being assigned.
The OS area ID for the hierarchy folder of the level selected as the OS area is
displayed in the Control and Monitoring Attributes tab. The ID is preset with the
name of the PH folder for this level. The area ID is passed on to (i.e. inherited by)
all of the lower level hierarchy folders, OS pictures, OS reports and messages.
This means that all lower-level hierarchy folders with their pictures belong to one
plant area in the OS. This affects the area-specific authorizations for operating
personnel.
If the picture hierarchy is to be based on the plant hierarchy, the "Order..." button
and the "Picture name for OS" field are active ("Picture name for OS" only if the
OS area ID is not active). The name of the hierarchy folder is entered as the
default setting for the picture name. The operator sees this name displayed in the
WinCC picture hierarchy.

Remark

All of the settings are associated with the AS/OS that you have assigned.

Training Center
for Automation and Drives

Page 13

SIMATIC PCS 7 System Training


Project structure

S IE M E N S

HID Generation
? C O L R M P (P la n t V i e w ) - - D :\ P C S 7 K u r s e \ C 0 L R \ C 0 L R _ M P

DmJUi ;> -,V Drn301

-] - a i C0LR_MP
E g ? C0LR_Prj

CFC - [Ab!3Ul - FARB_Pr| -.Werk2\Reaktorcn UnitCXAblassJ

j jSi-JBL e v e l

EjI HealCtri
E -0&l HeatMon

! EE Gil Mixer
j L j a i Simulation

HID on ES = 111 \222\333\444W555\666


HID on OS = 111/222/333/444/555/666
V_____ w_____ J
Y

Selectable combination
Process tag on OS = 111/222/333/444/555/666.777

SIMATIC PCS 7
HID formation

S j SITRAIN TraTiing for

Date:
15.11.2C06
File: ST-PCS7SVS_V70_p_stru.14

S ietrrttrs AG 2003. AJl rights reserved.

Aulomalion and Dri\'05

The Higher-level ItemDesignation (HID) is formed from the following components:


a. Path name from the plant hierarchy
b. Chart name
c. Block name
Whereas the string the plant view contributes to the HID is the result of linking
selectable combinations of the hierarchy folder names (components 1 to 4 in the
slide), the chart name (5) and block name (6) are always present in the HID.

Process tag

If individual parameters of the module are to be visualized in WinCC, the


parameter name (7) is appended behind the previously described components,
separated by a period.

Examples
In CFC

In the chart reference data of CFC, block 2U301 is displayed as part of


Factory2\Reactors\UnltC\Drain\\Dr301. The chart name is separated from the
hierarchy path by "\Y\

In WinCC (HID)

The name of the block is displayed as


Factory2/Reactors/UnitC/Drain/Dr301/2U301 (if all PH levels contribute to the
HID).
In our example, "Do not include in HID" was selected for Level 1 in the PH
settings. Therefore, the resulting HID for the same block:
Reactors/UnitC/Drain/Dr301/2U301

In WinCC (process tag)


If a parameter of the above block is addressed, it is identified as a process tag
and displayed in WinCC as follows:
Reactors/UnitC/Drain/Dr301/2U301.QCONTROL

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 14

Project structure

SIEM EN S

OS Hierarchy (AS/OS)

SIMATIC Manager

frl!LmHLT!,W!JaIB 111? '.T B l


2tJ Fie

Edt

Insert

PLC

View

^ p

Options

WinCC CS

^ Q jx ]

Vttndow

i n r I r r r ^U m o rjc r

,!fll Xp

e *

o i t f i i? :j * i ^ | p i
3 ^

V*tv>

WinCC RT

IG S G I.M LP )

Optor.5

rteip

___v
tontaners and p t'u c *

COLR
3 FR0_AS
P R 0 0 S
+
Diapno.lk?
t

HeatMon

PtonJ2
? j a ] ComStyi

*$5 Reactor; ReacUxc


-T ^
RcactouAJrM Urn^c^l
^

Rea^pr</l)ntAyDr*in - Dr,

Re*ctors

RM ctw 6l'n<B UntB.pdl

- Ja j R eat

RcaeloilAJrftC UntC.pd

ComSj/-ComSy pdl
J&] Oiain

Unite

*S$ Skpjring Shipping pdl

J k ' Fbtdn

T a w * -la r k e d

+ j a l HeatCtH
+ 5 H HeatMon
+ JfU Lvd

; ' [*: Ju Mmh


V j g j Sinxiotion
J * UnitB
i
.

1- J j UnkC

Sirrufation

J p l Slipping
J * T ar*
) Piocers ceHP)

P * s F l to get Help

SIMATIC PCS 7
SMvnons AG 2003. All rights 'cscvod

R elationship

Date:
15.11.2006
Fte: ST.|>CS7SYS_V70_p_stru.15

,.#1

S IT R A IN Trainingfcr
Adomafcn t r * D.i/es

If you have derived the picture hierarchy from the plant view (preceding slide,
screen "1") the above slide shows the relationships.
To start the OS compilation from the SIMATIC Manager, select the OS, then
right-click and select Compile
The picture hierarchy is automatically provided to the "Picture Tree Manager" in
WinCC CS (Configuration System).
During runtime, in WinCC RT (Run Time) the plant operator can select an area,
launch the graphic display of the picture hierarchy, and look at the desired subarea.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 15

Project structure

S IE M E N S

OS Hierarchy (Picture Structure)


|.R eactorsl

Tank farm

]\

Shipping
I Com.Plant
1
J '

\ j

Reactors2

Reactors3

11 [J |

Reactors4

II

1 \

N
o

Group display

TJ

Overview of the reactors


(REACTORS1.PDL)

Reactorsl
Unit A1,B1,C1,D1
(UnitAI.PDL...)
I::
!:
J

SIMATIC PCS 7
S im o n s A G 2003 A1 rights reserved

i..

Dale:
15.11.2006
File ST-PCS7SYS_V70_j>_st;u.16

,.# 1

Details
(if necessary)

S IT R A IN Trainingfof
Automation aod Drr/es

You can derive this OS picture hierarchy from the plant view.
You must use the plant view to insert the pictures for the relevant plant
component in the hierarchy folders and provide them with meaningful names .
You can then use OS (Graphics Designer) tools to configure these pictures.
Tip:

The following method is more efficient:


- Start by inserting and renaming only one picture in the PH.
- Open this picture in the Graphics Designer (WinCC) and change to the desired
dimensions (height, width) there using its properties.
- Copy this modified picture (which is still empty) in the PH, and then insert it into
the various PH folders.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 16

Project structure

S IEM EN S

Names in the Component View

f t ? D Y { (C o m p o n c n l vft-w )
-

2 d D YE
- ^ 5 PR0_AS1

C :\P fO R r a m lilc s V S ic m c .

0 t^ : rv*ne
+ ---------------------------- d a io w te

- [1] ASOl
- U CPU 417-4

Syrfcolc r

Project name
AS Name

JU Sources
SH Blocl;
^

The S7 program name is displayed


in WinCC as a substitute for the AS

Symbde

Sojice*
U Block:
?

|
A

Chart:
CP 443-1

CP 443-5 Evi!

+ __| Shared Decla-atm.


- ^
-

PR 0.0S 1
LMBD4*
-

Q W rC C Apcficdtian

OS name
_ ] ShaiedDecatalom
* & PRO.SIM
- ^CO LC R JJB

S7 program name for


the library

a l Scxxce:
J2J Bfodc
(3*1 Chart;

SIM ATIC PCS 7


Siemens AG 2003. Al rights m o v e d .

<

>

S IT R A IN Training fcr
Automaton and Drives

Dale:
15.11.2C06
Fie: ST-PCS7SYS_V70_p_smU

Project name

Was entered via the SIMATIC Manager. Can still be changed (especially if the
projects are to be subsequently combined in a multiproject). The storage location
on the hard disk remains the same.

AS name

The SIMATIC 400 station should be renamed so it can be found again at the
location of installation. Select the station, then
right-click and select Rename

and

enter a new name (ASxx, where xx is your station number).


S7 program name

The name of the directory where the software is stored; this directory is displayed
as a substitute for the AS name in the process control messages of this AS in
WinCC. It should be similar or identical to the AS name e.g. S7_AS03.

Computer name

A PC station is identified via the computer's Windows name. The name is


assigned by the computer administrator. To determine the name, select the My
Computer icon on the PC desktop, then
right-click and select Properties -> Computer Name
Then, copy the indicated name.
When renaming the PC station in the SIMATIC Manager, you can then insert this
name there (do not use special characters in the name!).

OS name

This name can be freely assigned, but should allow the OS function to be
identified (SERV2, ARSRV, CL12 etc.).

S7 program name

The S7 program directory can also be renamed for the library.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 17

Project structure

S IEM EN S

SystemConfiguration

Central Engineering System (ES)


C onfiguring
CFC library: Proxy blocks,
fo r fie ld devices and d is trib u te d I/O,
faceplates fo r W inCC,
N etw ork co n fig u rin g : DP m aster

Ind. Ethernet
eporting
C o n fig u rin g

O perator co n tro
m o n ito rin g

A S 414, A S 416,

AS 417

ea ding m easured values and


ing m anipulated variables
PROFIBUS DP

SIMOCODE

SIMOVERT

SIPOS 3 MC

SIPART

SIM ATIC PCS 7

Daio:

ET 200 M

ET 200 iS

ET 200 X

SITRAIN Training for


Fie: ST-PCS7SYS_V70_sy5tkcnf.1\ AutomatonandDrives

15.112008

Siemens AG 2003. Al rights reserved.

C ontent

Page

System Configuration for PCS 7 Components


Configurable Components

......................................................................................

.....................................................................................................................

Using HW Config to Configure the AS


Exercise: AS HW Config (Central AS)

..................................................................................................
..................................................................................................

Task: AS HW Config (PROFIBUS DP CiR Compatibility)

6
8

....................................................................

11

Exercise: AS

HW Config (PROFIBUS DP Set Parameters for CiR O bject)........................................

12

Exercise: AS

HW Config (Set Parameters for PROFIBUS DP CiR M odule)......................................

14

Exercise: AS

HW Config (CPU Process Image Partition) ..................................................................

15

Exercise: AS HW Config (Driver Concept/Symbolic Channel Names) ..............................................


Compiling and Downloading the AS HW-Config ...................................................................................

17
19

Setting the PG/PC Interface for the First AS Download ........................................................................

20

Compiling the AS HW Config and Downloading in STOP Mode ..........................................................

21

Exercise: Download the AS Hardware Configuration in RUN ..............................................................

22

Exercise: Download the AS HW Config to the PLC Check CiR Compatibility-1)..................................


Configuring the PC Station (Overview) .................................................................................................
Set the PC Station (Modules) ................................................................................................................

23
26
28

Set PC Station (Access Point)

29

...............................................................................................................

SCE (Station Configuration Editor Option)

............................................................................................

30

Exercise: SIMATIC PC Station/OS HW Config .....................................................................................


Calling Up NetPro
..................................................................................................................................

32
37

Setting Up a Connection

..................................................................................................................

40

Downloading a Connection ....................................................................................................................


Cross-Project View
................................................................................................................................

42
43

S7 Connections (Stations in Unknown Projects)

44

..................................................................................

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 1

System Config

Training Center
for Automation and Drives

Page 2

SIMATIC PCS 7 System Training


System Config

S IE M E N S

M1_C1_SystemOverview

SIMATIC PCS 7
System Overview

SIMATIC PCS 7

15.11-2000

Siemens AO 2003. Al rights reserved.

7'
File:ST-PCS7SYS_V70_s>s_ub.1T

S IT R A IN Tranng for
Automationand Drives

C ontent
What Is Process Control?

Page
........................................................................................................................

Seamless Integration of Todays Systems .............................................................................................


A New PLC Generation with Integrated
Process Control Functionality
..................................................................................................

3
4

SIMATIC PCS 7 - Automation Systems


Configuring with Function Blocks

..................................................................................................

Special Process Industry Requirements:


Top-Down Design Methodology

................................................................................................

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 1

System Overview

SIEMENS

System Configuration for PCS 7 Components


Set PC station
Station Configuration Editor (SCE)

SIMATIC PCS 7

D a le :

Siemecs AG 2003 AJl rights reserved.

Frfo: ST-PCS7SYS_V7D_5yslkonf.3

15.11.2006

S IT R A IN Training for
Automation end Drives

C onfiguration

A PCS 7 environment consists of ASs (S7 components with suitable I/O), PCs
used as an ES or OS and networks between these components. There is an
actual configuration and a preset configuration for each component. In addition
communication connections must be set up between the stations.

Actual configuration

With an AS, this is determined by the specific structure of the available hardware
(rack, power supply, CPU etc.). In our case, the hardware was provided in our
training room.
With a PC (used as ES or OS), a virtual structure is created using SIMATIC tools
for the workstation configuration (Set PC station, or Station C onfiguration
Editor). You need to set up the structure yourself (this is generally done when the
PCS 7 software is installed on the PC). With V7.0 and higher, this can be simply
carried out from the central ES (C onfigure Station).

Preset configuration

The preset configuration is created in the SIMATIC Manager within a project on


the ES by using the HW-Config tool in the project. It contains project-specific
parameter settings for the devices used. After completion, the preset
configuration must then be transferred via the network from the ES to the
respective station (AS or PC). In doing so, the load procedure must find the
components of the preset configuration in the actual configuration.

Connection

NetPro is used for this. Connections are created between:


ES-AS, OS-AS, AS-AS (if the latter need to exchange data among themselves).
You also need to download these connections to the respective stations.

Remark

All tools are integrated in the ES software and can either be called directly or in
the context of the components to be configured.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 3

System Config

SIEMENS

Configurable Components

ES/OS

\
? M M A T ir
Fie

Edit

Insert

TOJR
FtC

V*v>

D ltfl g?l=l

Window

rt?Jp

I |P |

g ? COIR (C om ponent * )

K S I M A T i r M.w**gcr

CO. Q

File

tfew \otf<ons

Etf:

Insert

p ic

v/ro>-

Hdp

Ditfl 111 il - i \ | j_J F =

* .|> js H f

Bj f~
-a]

O:\PCS7Co**. w C o I r

3 d COLR

COIR
-
Open Ob*ct

GrH-Alt+O

w cnm e

FflO_AS

+ 3 AS 01

SlG iobal labeling fiefld


Open O tjp f

rdhpwo^c*

SIMATIC 3CO & e kcn

p ic

SIMATIC H Stator.

lrw *t ttc -i JOte.r

5JMATIC PC Station

Multpcojert

iftNer sfcahsn

R-C

F<^nt H e arch*

mm

w + ajt-m :*

B
\

SIMATIC 400 Station


SJNATIC 300 Station

SIMATIC H StatOO

Ptanr to rac fty

SIMATIC PCS 7

S IT R A IN Tranngfor
Automation and Drives

Date
15.11 2006
File: ST-PCS7SYS_V70_6ystkonf.4

Sfe-nans AG 20C3. Al ripMs reseivec.

Configuration

Hardware components are used within the project. These include the automation
systems (AS), PCs as operator stations (OS) or engineering stations (ES), and
the networks.

Components

In the multiproject, select the required project, then


right-click and select select Insert New Object and then as required:

"SIMATIC 400 Station" for an AS

"SIMATIC PC Station" for an ES or OS

"Industrial Ethernet" for the plant bus or terminal bus,etc.


When you select the object to insert, a symbol is generated to represent each
device and serves as access point to the configuration.
HW Config

The "Hardware Configuration" tool or "HW Config" for short is used for this. HWConfig is used in the same way for both AS and ES.

AS

To configure the AS, use the mouse to select the symbol representing the
required AS in the SIMATIC Manager (component view), then
right-click and select Open Object
The tool is launched. As an alternative, you can also double-click the hardware
symbol in the right pane.

ES

To configure the ES, use the mouse to select the symbol representing the
required PC in the SIMATIC Manager (component view), then
right-click and select Open Object
The tool is launched. As an alternative, you can also double-click the
configuration symbol in the right pane of the SIMATIC Manager.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 4

System Config

S IE M E N S

AS HW Config
HW C on fig
_^Tcn

Edr

AS01

Insert

PLC

View

Opieoc

%
AS01 (C o n f i g u r a t i o n )

Window

H ef

m air ffl C S8 k?

PRO AS1

wamammmm
DP-Strangl: DP-Maijercy lem

PS 40710*>

Ptofte

Siandard
PROFIBUS D

I c r o

417-4

2I128JW-0

PRORBUS-P

PRORNET IC

ED SIMATIC 300
[03 SIMATIC 400
_ J CP-400
_ J CPU-400
DP-Strcng2: DP master sy

_ J FM-400

(,

t _ | IM 400
_ J M7-EXTE
+ _ J PS-400
_ J RACK-40I
4

_ J SM 400

j l3l IM 153 2 Redundant

SIMATIC HMI

r^ i r ii l A f i r r v i

Sb'

SIMATIC PCS 7
Siemens AG 2003. All rights reserved.

HW-Config

(I

Module

3
t r d * N umbei

IM > 532

cE S '1 532E A 0C W F P

>63?

D /)& > C 2 W .A ti*

SE STSP IT&iC KH aS O

O t

Dale:
1511.2006
Fie: ST-PCS7SYS_V70_sySfconf.5

C
SIMATIC S 7 400
and M7 400
modjfc. fcentidl
rock)

.^ 4
-

S IT R A IN Training for
Automaton and O-.ves

To start, the configuration should reproduce the configuration of the devices. The
example in the slide shows an AS configuration. The components shown here
offer settings screens (usually accessible via the object properties). If the
configuring engineer is knowledgeable about the options available and application
at hand, he or she can optimize the components settings offline first. Then these
settings need to be supplied to the devices (by online download to the target
systems).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 5

System Config

S IE M E N S

Using HW Config to Configure the AS


5*5ffW Confnj (A M M (C unfig w .ition)
JJh Katon

ai

Irsert

Ft_C Mew

H IH H H H H H H H I

PRO_ ASj

Cations

W idow

w=ip

xj

^ L g jx l

--

(C u * -

Fd

2clilr

3
4

"W

iPCS7_V61
p r o f ib u s 'd p '

SIMATIC 400
_ | CP4C0
_ | CRJ-400

5
6
7
8

_ J IM-403
_ J PS-4C0
.r _ J RAD 403

un:

101 UR2
MoOJe

Hardware
catalog

UR2
UR1
UR1
UR2-H
t J ] SW-400
a SIMATIC PC Slaton
Older nuttter

>7iOOIJAOMto*


U r n r f i d dcfc 9 doff, not :ufafcAMc*
-> rvtv^
cc>.

Insertion poudrie

SIM ATIC PCS 7


Siemens AG 2003. All rights fesorvod.

Date:
15.11.2006
FBe: ST-PCS7SYS_V70_3yStkonf 6

S IT R A IN Train'jigfor
Automation and Drives

Using HW Config
You have created one project with an AS and one with an OS. The hardware
configuration must be adapted to the AS and OS you are using. In doing so, the
parts lists for the ASs and PCs in use must be taken into account.
Terms

Tip

Pasting

The HW Config tool refers to a station (AS o r PC). In the right pane, a tree
structure displays the SIMATIC components (hardware catalog). After selecting
a com ponent (arrow 2 in the slide), the associated Order No. and a brief
description are displayed in the com m ent field (arrow 3). If you have not been
able to locate the module (as it is not a current PCS 7 module or is an older
module) select the "Standard" hardware profile (arrow 1 in the slide) and search
again. There you will find all S7 modules that are known in the current version of
the SIMATIC Managers.
If you know part of the order number or designation, you can enter it in the Find
box and click the button (arrow 4) to find the module. The search is only
conducted for the selected profile. Please note that the part designation can
occur multiple times! (If this is the case, continue the search.)
In the SIMATIC Manager select the station/AS in component view, then
right-click and select Open
to open the HW Config.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 6

System Config

Then proceed as follows:


Search in the catalog and check the order number and if necessary the
firmware version of the racks, power supply, and CPU in use (arrow 3).
Use a drag-and-drop operation to insert the located modules in the left
window.
Select the module in the left screen, then
-right-click and select Object Properties... then set the parameters for
the module.
Replace

To replace a rack (or a module inserted in the rack) search for the new, required
module in the hardware catalog. Take the hardware profile setting into account
when doing so. The comment field (arrow 3) displays the corresponding order
number and brief description for the selected component (arrow 2).
Select the correct component, "drag it with depressed left mouse button across
to the rack/module symbol and drop it there. If the exchange is possible, a
message is displayed with the order numbers of the two components and must be
acknowledged. If the exchange is not possible (because the old/new components
are not compatible), the mouse pointer will change to a crossed circle.
In this case, the settings of the old module should be documented before deleting
the module and replacing it with a new one. Then transfer the settings as
appropriate or make new settings.

Note

If you have selected an incorrect slot, you can drag the module to another location
with the mouse. The new location must be free and wide enough (i.e. correspond
to the number of slots required by the module to be displaced).

Remark

The catalog profile (arrow 1 in the slide) was set up with the PCS 7 installation.
You can edit the profile (s7hpro0) that is automatically created by selecting
Options -> Edit Catalog Profile
Here you use the familiar Windows procedure to copy objects from the standard
profile (one window) to the new profile (the other window). After completion, the
new profile can be saved via
Profile -> Save as...
The newly created profile is offered for selection in the profile box.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 7

System Config

S IE M E N S

Exercise: AS HW Config (Central AS)

SIMATIC PCS 7
Semens AG 2003. Al rrgnts reserved.

Date:
15.112006
Fite: ST-PCS 7SYS_V70_systkonf.fi

1^

S IT R A IN Training for
Automaton fc'XJ Drives

Exercise

Configure the modules for the central part of your AS. Use the parts list for vour
AS as your guide! (The example refers to the "Saarbriicken" training room in the
Mannheim Training Center.)

Steps

1. Insert the rack (UR=Universal Rack)


2. Insert the power supply (PS=Power Supply)
3. Insert the CPU or supplement the integrated DP interface.
Rename the DP subnet and check properties
4. Insert and set CP for PROFIBUS DP (if available)
Register CP 443-5 Ext as DP master
Rename the DP subnet and check properties
5. Insert and set CP for Ethernet
Create a new Ethernet network for the plant bus and rename it
Assign or verify MAC address, disable TCP/IP protocol

Procedure
Open HW Config

In the project, select the ASxx to be configured (your AS), and


right-click and select Open object
Use the hardware catalog to locate and configure the components (rack, PS,
CPU, CP and I/O modules) in the HW Config for the station.
If you cannot see the catalog, select
View -> Catalog to activate it.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 8

System Config

Rack

In the hardware catalog select the desired rack


SIMA TIC 400 -> RACK 400 -> UR1 then
use drag & drop
to move it to the top left window.

Notice!

For the catalog component you have highlighted, check the detail specifications
in the lower catalog window pane (order No. and comment) so you can insert the
correct components. It is possible that the CPU will not start up if you insert a
component incorrectly!
The slots in the rack are listed in rows. You can now populate each slot (you can
also use "drag & drop).

Power supply

Select slot "1". In the hardware catalog, select


SIMATIC 400 -> PS 400 -> e.g. PS 407 10A
and position it on row 1. This 10 A power supply occupies 2 slots.

CPU

Select the correct CPU from the hardware catalog (for example)
SIMATIC 400 -> CPU 400 -> CPU 417-4 -> V3.1
and drag it to the next free row (row 3).
The CPU with the integrated DP interface occupies two slots. The Properties
screen opens. Select the
New button
to create a new DP network and enter a meaningful name (e.g. DP_subnet1, or
DP_AS01 _int1, or DP_AS01_ext3). In the properties for the selected network
check whether the DP protocol and the desired baud rate are set (default 1.5
Mbaud). The image displayed now represents the PROFIBUS DP with the "DP
master system (1)" identifier. The ET 200M is later appended to this.

Networking CPU via MPI

This is no longer necessary with Version V6 and higher.

Remark

The new Ethernet CP from 6GK7 443-1EX11-0XE0 V2 supports direct addressing


of the card via the known MAC address of the Ethernet CP, therefore, the initial
loading via MPI is no longer necessary.

Additional DP subnet

If an additional CP is connected in the rack for another DP subnet (such as the


CP 443-5 Ext), this CP must be inserted in the rack in HW Config and be
connected with a DP subnet (as the second DP master).
In the HW catalog, select:
SIMATIC 400->CP 400-> CP 443-5 Ext, select the correct CP and use "drag &
drop" to move the CP to the correct rack slot.
In the screen overlaid for the PROFIBUS interface for the CP, select
NEW
to create a new DP network and then rename the network (for example, DP_
Subnet2).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 9

System Config

CP as DP master

Highlight the CP 443-5 Ext in the rack,


right-click and select Insert DP Master System
to name this system as the master for the new subnet. You can use the
graphically displayed subnet for additional ET 200M devices or for PROFIBUS PA
devices via DP/PA link/coupler modules.
If you do not want to configure the CP (no DP hardware is connected, for
example), you must disconnect it from the power source (remove it from the
rack). If it is present in the rack but not in the hardware configuration, the CPU
(depending on the firmware version) may not start up (remain in STOP mode) or
may not be downloaded.
Therefore, if this CP exists in the hardware, it must also be entered in the HW
Config.

Ethernet CP

Ethernet is used as the plant bus by default. Insert the CP in the HW Config. In
the HW catalog, select
SIMATIC 400->CP-400->CP 443-1-> "Concrete CP" and position it in the
rack.
In the overlaid "Ethernet Interface Properties" screen -> Parameters tab, click the
New button
Then, create a new Ethernet subnet (if you have not already done so), rename
the subnet (e.g., "Plant bus") and select this bus to identify the CP as being
networked.
Set a unique MAC address in the project, taking into account other nodes
physically present on the bus that are not part of this project.
It is advisable to use the ISO transport protocol for small networks as it provides
higher performance. However, if you want to communicate over more spread-out
networks that are connected with routers, use the ISO-on-TCP transport protocol
instead.
Please note the address-suggestion made in the parts list of your training
aulomation_sysl em_and deactivate the IP protocol (clear the check box).

Remark

The hardware configuration is downloaded in a later part of the exercise.


Here, the AS is loaded directly via the known MAC address of the Ethernet CP for
the first time. For this to work, the access point S70NLINE must be active on an
Ethernet-capable CP that is connected to the plant bus. (additional settings are
described in the chapter "Configuring the Workstation" under Setting the PC
Interface).
The download also provides the CPU its parameter settings via the Ethernet CP
(therefore the CPU is configured during this procedure).
If you change the PC interface to the integrated Ethernet CP (LAN card or CP
1613), you can then download and debug additional data (hardware configuration
and subsequent software) over the plant bus.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 10

System Config

S IE M E N S

What Is Process Control?

SIM ATIC PCS 7


&C*T>GTS A G 2003- AJI rights rosorvpd.

S IT R A IN Training fw
Automaton and Drives

Date:
15.11.2006
Filo:ST-PCS7SVSV70_sys_ub.2

Process control

= Automation system + HMI + Communication system

In Components

Automation system (AS) + HMI system (OS - operator station) + Bus

Configuration

Engineering system (ES) = Engineering toolset + Process control libraries


(AS/OS blocks)

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 2

System O v e rv ie w

S IEM EN S

SIM ATIC PCS 7


Serroos AG 2003. AJl rights reserved

Exercise

Steps

Dale:
1S.11.2058
Ffe: ST.PCS7SYS_V70_sys1konf.11

# 1 SITRAIN Training (or


-

Automation and Drives

Configure the distributed I/O (ET 200M). The configuration is to allow changes in
runtime (CiR=Configuration in Run). Please refer to the parts list for your training
.aiitomation-StaHoD,
1. Activate CiR compatibility
2. Set parameters for CiR object (reserve address range)
3. Set parameters for CiR module
4. Insert and configure I/O modules
5. Set process image partitions (CPU and I/O modules)
6. Assign symbolic names for the I/O channels
7. Compile and download (after changing the PC interface)!

CiR C om patibility (For D istributed I/O Only)


CiR

Additions are to be made to the distributed I/O during runtime, without stopping
the CPU. Select the DP master system (1) shown in the preceding graphic on the
integrated DP interface of the CPU,
right-click and select Activate CiR compatibility
As a result a so-called CiR object is represented on the PROFIBUS DP. This
object needs to be parameterized with regard to future additions of I/O.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 11

System Config

S IE M E N S

Exercise: AS HW Config (PROFIBUS DP Set Parameters for CiR


Object)
i

o b t r r t p r o p r r t lw
u&'icialSotrtgs j

Max. bytes
per slave

The addtoruJnunbef d the DP *&va; t Imi.ed


GuwunJeed

10

Mannum

40

1 0 x 2 4 4 = 24401/2440 0

r EdieSettry

Must be made
available
as PII/PIQ via
the CPU
properties!

B uj p ra m rta ::
Tir

139? m

T t ypcaJ

I0 n w

Watchdog

143 7 m:

CerceH

OK.

SIMATIC PCS 7

Date:
15.112006
" e : ST.PCS7SYS_V7C_6ystXonf.12

S>emons AG 2003. All nghts reserved.

CiR

Help

S |
-

S I T R A IN T ry in g fo,
^o m an o n and Dnves

Then
right-click and select Properties
to open the screen form above.
The CiR object must retain resources for future DP/PA slaves. Each slave
requires up to 244 bytes (can also be less, depending on the actual I/O modules).
There is also a maximum limit for the number of slaves that can be inserted in the
subnet online.
1. The guaranteed number of DP slaves (ET200, DP field devices) must be
parameterized in relation to future additions. If no "Extra Settings" are selected,
the sum of input and output bytes is automatically displayed.
2. They must be taken into account as sum values for the settings in
CPU Properties -> Cycle/Clock Bit Memory tab -> Size o f the
process images
(for all DP slaves on all subnets).
The CPU properties cannot be changed online!

Note

The maximum CiR synchronization time has a default setting of 1000 ms.
The time associated with the current configuration is displayed in the properties of
the CiR object. The default time and the CiR download process can be influenced
in the software. To this end, the system function SFC104 "CiR" can be called in a
CFC (from the "Standard Library). By parameterizing and downloading this, the
CiR process can be influenced without stopping the CPU.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 12

System Config

S IE M E N S

IjT f f W r o r if h ,
D% St fjo o

fAni ( ( onfiQU74tion)

Ecu

Inscir

P lZ

olcslt-i I*ii <3

'te**

PRO J S )

Options

Window

ale:
__

io i

Hdp

C 3
__

-.< 5 j *1
1

k?

system11)

u ft;

X2
X I

5I128JDR0

op

II

PioMe

PCS7.V61

U P l/D P

IF1

PROFIBUS DP
,__ J Additional Field D e v ic e s

IF2
5

f t CP 443-1

CP 443 5 E.^

CiR-Object

Closed-Loop Conbotei
_ J DP/AS-i

_ J D P /P A L rk

_ J ET20GS
_ J ET 2C0SP
_ J ET 200M
IM 153-1
IM 153-1
IM 153-2

ASCI

IM 153-2 FD

"

C e tgnBtmn

IM 153-2 HFFO
ET 2005

UR2

ET 20DK

DP DP raJef ij'ilwn |1)

E>ES? 1bJ ?8a : c -c

bo

3 j s t i t e la c c r < x S 7 -o O O S M : F M
fv ^ T c c itF W 3 5 6 ^ 1 m ocM e
c a t e n a e d i* g c o e f3 lio r.

Insc^ton jwsabfc

S IM A T IC P C S 7
S * rr* rs AG 2003. All rights reserved.

Date:
15.112006
File: ST-PCS7SYS_V70_sy$onf.13

#1
^

S IT R A IN Training for
Autot-on a-*J Drives

In the HW catalog, under


PROFIBUS DP -> ET 200M
select your version (e.g. IM153-2) and use the mouse to drag it onto the CiR
object.
Specify the PROFIBUS DP address for the ET 200M on the displayed screen (as
set on the address switches for the IM). After closing the screen, the associated
frame is displayed with a maximum of 11 slots (for I/O modules you can use slots
4 to 11).
Note

Not all IM 153-2 modules are CiR-compatible (pay attention when ordering).
Currently (V6.1) the 153-2 HF and 153-2 HF FO in the V6.1 hardware profile are
suitable for CiR.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 13

System Config

S IEM EN S

Exercise: AS HW Config (Set Parameters for PROFIBUS DP CiR


Module)
r. HW t a n tK j

SSl

its a o n

[ASOI ( I nrifigur.it m o)

Fdt

insert

FtC

Visv

^ jg jx j

PHHAS)

Options

window

Hefc

- if f ] x |

Pio<e

PCS7.V61
_ ] DI-300
SM 321 DIISxDC.
SM 321 DllGxDC.
SM 321 DIIGxDC
SM 321 DIIBxDC.
C.

C I

SM 321 D ll 6xDC.

ISM 321 DI16*DC.

SM 321 DI32*OC.

<=

i 13)

SM 321 DI32xD C 1
SM 321 DI16xllC

'M 155-2 edurxJart

SM 321 DI16xOD
Slot

Order Number

Module

__..

r a

SM 321 DUfoOCSM 321 DI16*AC1

1
&!

$ 7 J5 a & A O H N 9 0

*S 3t

SM 321 DI32xAC1
SM 321 DI8x4C2

11j I CiR mcxJulc

6
7
8

feS?3?1 r8HQ0-(Vi80
D ig M input trodue Dl 1G> 34VDC
>-rfn haiAua'e end o a t r r fc mtenupi;
fita tn n s 1 5. re c tn fijjia b le onlne

In'whnn

SIMATIC PCS 7

Date:
15.112006
File: ST-PCS7SYSJ/70_systkonf 14

Semens AG 2003. All nghts reserved.

S IT R A IN Traring for
Automation and Drives

As the selected IM 153-2 supports CiR, a CiR module is offered in the lower part
of the window from slot 4.
I/O Modules

Take the I/O modules and position them on top of this CiR module in the ET
200M table (as previously for the station, but now with modules from the ET 200M
/ IM 153-2 directory). This way the CiR module is shifted one place to the right,
ready to receive the next I/O module.

Note: Addresses

The CiR m odule reserves an address range for inputs and outputs (the total of
which is less than 244 bytes - they can be addressed via the slave). Using the
module properties, you should reserve sufficie n t address space for modules
to be inserted at a later point in time. If you want to add address space later, you
must switch the CPU to Stop mode.
For example, if the planned configuration is one ET 200M for 8 modules (the
corresponding .bus._m.Qdul.es (hardware) must.be installedjjght fronLthe_slari), and
if the initial installation is equipped with 5 Al modules (8-channel), this means that
5x8x2=80 bytes input addresses are used. If you would like to add identical
modules to the three remaining slots while the CPU is in Run mode, you will need
to have reserved 8x8x2=128 bytes input addresses during the initial setup. 1
word=2 bytes per analog value are required.

Note about m odule replacement


When using PCS 7 you can replace modules during operation. Select the ET 200,
and
right-click and select Object Properties -> Operating Parameters tab
Then select the option "Module replacement during operation".
The bus modules listed here must be installed in the rack. If you forget to set this

option and.replac.e_a.modula later..d.uringj.untime. a rack.failure jnes.sage.is


issued (as if all modules.had failed).
The power supply for IM is not configured, but an external 24 V supply is possible.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 14

System Config

S IE M E N S

SIMATIC PCS 7
Semsrs AG 2003. Al rigMs reserved.

Process Image

Ttr

Data
15.11.2006
Fite: ST-PCS7SYS_VTO_sysonf 15

S IT R A IN Trainingfcr
Automation atd Drives

The DP master (CP or integrated DP interface on the CPU) cyclically scans the
PROFIBUS DP subnet (circular arrow 1 in the slide). In doing so it passes data to
the slaves (e.g. ET 200M for passing to the output modules) and reads back data
from the slaves (which acquired them from the input modules). The data are
passed through an IM internal buffer.
During each cycle, the DP master writes/reads values to/from all its slaves. The
buffer content forms an image of the inputs and outputs of the modules. The
cycle time is called Ttr = Target rotation tim e and is displayed in the properties
of the CiR object, here IM 153. The DP update cycle runs independently of the
CPU program, but must be at least as fast as the fastest program that processes
the process values.
For evaluation in the user programs, the intermediately stored input data from the
operating system are copied at a defined point in time from the buffer to a CPU
memory area and output data copied from there are written back to the buffer at a
different point in time. The programs can then gain read (I) and write (O) access
to this "process image" memory area.

Synchronization

This ensures that the programs are working with consistent process data. This
means that the operating system must provide for the updating of the process
input image and freeze it, before starting the program. After the program has
been executed and commands have been written in the process output image,
the output image is sent to the DP master. However, as process signals and their
associated processing operate at selectable repetition rates (slow/fast
processes), it is necessary for their synchronization to match as well.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 15

System Config

Process image partition The CPU offers OBs with different speeds in which the user can execute
programs. You can assign a process image partition to the OBs In the CPU
properties - A ssign PIPs (e.g. OB32<->PIP1, OB35<->PIP2, OBx<->PIPs,
where n=1 to 16 is dependent on the CPU). A t the same tim e a suitable PIP
m ust be assigned fo r the individual I/O m odules in th e ir properties.
Driver blocks are used in the PCS 7 software to input and output process data.
These driver blocks m ust run in the same OB th a t updates the PIP o f the
scanned I/O module.
Note

It is useful when wiring the signals between modules to differentiate between slow
and fast signals. A module should be assigned to a PIP that is capable of
delivering signals to the software at sufficient speeds such that the fastest
connected signal is processed currently. If signals are mixed on the module, this
causes slow signals to be read quickly, wasting computing time.

Remember:

If you w ant many, it cannot be fast.


If you w ant fast, it cannot be many.
The CPU cannot co ntin uo u sly w ork in overload. A fter a program med, but
lim ited tim e th is leads to CPU stop!

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 16

System Config

S IE M E N S

Exercise: AS HW Config (Driver Concept/Symbolic Channel


Names)

SIMATIC PCS 7
Siemens AG 2003. A l rights reserved.

Date:
15.11.2006
File: ST.PCS7SYS_V70_systkcr.f.17

SITRAIN Training for


Automation and Drives

Exercise

The process image partitions are to be updated on the CPU: PIP " I by OB32 and
PIP "2" by OB35. The I/O modules (in the example) must be assigned to process
image partition "1." Give the individual channels of the I/O modules symbolic
names as listed in the parts list for your AS.

Steps

1. Select CPU symbol, open object properties


2. Cyclic Interrupt tab: assign PIP to the OBs
3. Cycle/Clock Bit Memory tab -> check OB85 call
4. Assign symbolic names for I/O channels

Process image partition The CPUs (from about 1998) support process image partitions. The process
image partition is defined in the CPU and for each I/O module (see next section).
The process image is updated by the system through connection to an OB you
selected. The procedure is as follows.
Select the CPU. Open its Object Properties.
Select the "Cyclic Interrupt" tab.
For example, for OB32, select process image partition "PIP1".
For OB35, select process image partition 'PIP2".
Select the "Cycle/Clock Bit Memory' tab.
Check or make the following settings:
OB85 call with I/O access error:
With incoming o r outgoing errors only
Size of process input (output) image:
both >= 1024 (default setting depends on the CPU used;

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 17

System Config

Setting parameters for I/O modules


In the upper window, select the ET 200M you want to configure.
In the lower window, select the individual line for the relevant module. Then,
right-click and select Object Properties -> Addresses tab
Click the "Process Image" field. Select the process image partition you want (such
as "PIP1," according to the OB - process image partition assignment for the CPU
made in the previous section).
Repeat the procedure for each I/O module.
This is how you determine how quickly and frequently the CPU updates the data
for the individual module.
"Inputs/Outputs" tab
Here you can make individual adaptations to the connected process signals and
their characteristics for the module and its inputs/outputs.
Symbolic channel names
Select the line with the I/O module. Then,
right-click and select Edit Symbols
to add the symbolic name and possibly a comment for each channel. You enter
this symbolic ID in the symbol table for the S7 program. When you insert the new
driver blocks in a CFC chart, you "only" have to recognize this name again. The
drivers automatically take the settings on the modules, their inputs/outputs, and
their slots into consideration. Additional specifications are not needed. Based on
this unambiguous signal name for CFC, all additional settings are read from the
HW-Config and parameterized on the drivers.
Proposal

Name the module inputs as follows:


Module

Sym bol

Analog input

AI_CH0
AI_CH1

Analog output
Digital input

AO_CH1

Analog output channel 1

DI_CH0
DO_CHO

etc.
etc.

Digital input channel 0


Digital input channel 1

etc.

Digital output channel 0


Digital output channel 1

etc.

The channel d river to be used later in the CFC m ust run in the OB th at also
updates the process image partition fo r the m odule (in our example OB32).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Analog input channel 1


Analog output channel 0

DO CH1
Caution:

Analog input channel 0

AO_CHO

DI_CH1
Digital output

Com m ent

Page 18

System Config

S IE M E N S

Compiling and Downloading the AS HW-Config

D o w n lo a d the hardware configuration o n ly a fte r the following steps


have been carried out with N etP ro:

o The network is configured and connections have been set up from


the OSs to the monitored ASs.
o Connections were also configured between the devices (AS, AS) to
allow data exchange during process control. See also chapter
"Network Configuration".

For te s tin g p u rp o s e s , you can also compile and download the AS


configuration in the exercise now (the ES is not yet configured). For this
to work, the Ethernet CP of the ES must be in "PG Operation" mode (see
also the section "Configuring the Workstation").

SIMATIC PCS 7
Semens AG 2003. A l rignts reserved.

Dale
15 .1 1 2006
File: ST-PCS7SYS_V70_systKonf.19

SfTRAIN Trainingfor
Automation *nd Drives

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

JR

Page 19

System Config

S IEM E N S

Setting the PG/PC Interface for the First AS Download


S IM A T IC M a n a g e r - CO IR

File

Edit

Insert

PLC View Option/ Window

.< PG r r r n J r r t ^ r

Help

acce;iPsh

PtfK Interface
.R
PRO_AS
2S AS 01

- fat rre m ra

c c & . P o vi o* tfe ^ p p k d la n

- jn j x

C > I O l R (C o m p o w - n t v ie w ) - - D :\P C 5 7 C o u r5 e \C o lr

Object name

WUHE

Symbok name

(STEP 7J

-> ISO Ird

iS'amiardlor STEP ?J

i l | S 7 -AS01
I ocrto: c
oi arn^ei A ; i sgi .rrwrrf J red

6 l) Connections

ISO Ihc EHierrvei . *Raftk R T L 8 W 8 U

CP 443-1
$
CP 443-5 Ext
PRO OS

C P 5 5 1 1 PR OFIBUS) <Aaive>

Properties

Dvagnov^ic:

i S C lid Ettwrrc* - ReaJtek RTL81


ISO Ind. Ettiemel . ncom DedilC- _

DcJdc

<K FC internal (tocal)

t~ ~

~ r

lAtsigniriQ Paraoieteft to
Mfo 'hp (SO Protocol!

S70NLINE (STEP 7)-* ISO Ind Ethernet -> Realtek...

Interface?
Add^cnoc

" j r

Tou MDIS CP

- 1 -

Seed

lctc*trf>lc Nodcc - IWDUSTRIA1 ETHFRNFT


* 2 ^ A c ff.--fc e K o d

SIMATIC PCS 7
Siemens AG 2003. All rights reserved.

0fc*cr>vi*

j R *k /S le ;

iiJ MAC 08-00-06-6E-84-C5

-A

sfj MAC - 08-0Q-C6-91-D2-0F

Sisiur

Module ivfc
INC

RUN

CP 443-1

Dato:
15.11.2006
File: ST-PCS7SYS_V70_systKonl20

j f p l SITRAIN Training for


t
Automaton and Drives

Exercise

Change the PG/PC interface S70NLINE to the plant bus CP. Test this setting by
determining the accessible nodes.

S70NLINE

This is the symbolic name used by the SIMATIC Manager and its lower-level
applications for the interface for communicating with other devices. Based on the
setting, the CP (communication path) that was assigned in the screen shown
above is selected.

Procedure

In the SIMATIC Manager, select the menu item


Options -> Set PG/PC Interface.
In our exercise we shall select the Ethernet CP with ISO protocol which is
connected to the plant bus. Click OK to confirm the setting.

Accessible nodes
After changing the interface, click the Accessible Nodes icon in the SIMATIC
Manager. A window opens listing the Ethernet partners that can be reached via
the ISO protocol. In the slide above, a CP 443-1 and an OSM are detected and
displayed.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 20

System Config

S IE M E N S

Compiling the AS HW Config and Downloading in STOP Mode


i^ H W Config
iaton

(A S O I (Conftyur jlio * .)

E<J

Ijs g rt

jj

ps 40?icy,

CPU 4 1 7 4

PIC

Yu**

P R O .A S j

Cc m o k

Mndo> Heto

3 (1 2 8 | CiR-C

hffVDP

Download to M odufr
>u lo v e corfiguied CP obicch
Download rtahor> emfegurVion m RUM morte
( Downloads STOP mode

OK

SIMATIC PCS 7
S r e AG 2003. AH rights reserved.

Date:
1511-2006
Fte: ST.RCS7SYS_V70_systKorrf.21

Caicei

, # (
*

Hrip

S IT R A IN Training to
Automaton and Dnvas

Exercise

Compile and download your AS's hardware configuration to your target module.

Compile

Click the Save and Compile icon ("1" in the slide). Or, alternatively, you can use
the menu command
Station -> Save and Compile

Download

Ensure that the CPU is in STOP mode and that the keyswitch is set to STOP or
RUN_P.
Click the icon "2" or, alternatively, use the menu command
PLC -> Download to Module
The first time you download, the AS is downloaded with the CPU in STOP mode
(if it is still running with an old configuration, the download dialog box offers a stop
and restart option).
If you make changes later, they can also be downloaded w ith the CPU in
RUN mode (certain rules apply). This assumes th at suitable PCS 7 driver
blocks are already running in the CPU.

Remark

For the sake of completeness, a description of downloading in RUN mode is


provided on the following pages. If you need to make changes to the hardware
configuration during the course of the project, follow the download procedure
described there.
Now the configuration of the AS from the first project is complete. A similar
procedure must also be performed for the PC stations that are being used as ES
or OS (see the section "Configuring the PC Station in this chapter).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 21

System Config

S IE M E N S

Exercise: Download the AS Hardware Configuration in RUN

MW Config
3 ^

S ta tio n

(A S O l (Conf<jura*n)

E df

m e e t:

PLC

'te -*

PUO A S )

OpticjK

Wndow

JcglsH" i j & |

Hefc>

IEa 3 Ji

101UR2
P'ofde

|PCS 7_V61
PRQF1BUS DP
D ow iJood to Module
N o j have cortigu ed C fi &D|ec*c
Oov*mo*d ^atencontyixariarinRUN mode

^ DwnlodcjviSTOPiMxfe

Cancel

4 " __ | i3| IM 153-2 -sdridav


Slo>
5

f
8

( | MocUc
f l D O a K 2 4 \/a &

QideiNutibei

IF 4 0 & 7 2 F *
IF A I2 *H A R T . Ex

6E S ?32?& FO H H B e
6 E S ~ X tt-7 m & a *B 0

If

6E S 3' 3 2 5 H D O I-O M IO

O
512 :

51:

6 E S 7 3 3 1 -7 1 8 0 0 OABO

81

PROFIBUS P P
foi 5*Ma TIC S7
M " and C7 (ti tnbulad to*.ki

82

CP modcte
Pies; f i to get Help

SIMATIC PCS 7

Dale:
15.112006
F*e:ST.pCS7SyS_V70_sysUonf 22

Serrens AG 2003- AJI rights reservec.

*
Automation and Drives

Download to target system in RUN


Requirements

A fte r the station configuration was downloaded w ith CPU STOP, you made
changes to the configuration and have not saved them yet.
In the hardware configuration select
PLC -> Download to Module
or click the icon (point 1 in the slide)
The CPU keyswitch m ust be set to RUN_P.
Then download in RUN state is offered.
Should the CPU nevertheless go to STOP as a result of downloading in RUN, this
is an indication that the CPU software is incomplete or does not capture the
triggered events. This problem is automatically solved by using the PCS 7 driver
blocks.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 22

System Config

SIEMENS

Download the AS HW Config to the PLC


(Check CiR Compatibility-1)
LtR

*i

tunuxitibikty

Ln ot Mei-.age

M Hp an
C ta
Indes

Seabedten

Lcsszachcn

Ophcnen

Dfucl.cn brsery |________________

Help on Message 13:4829


Description o f Error:

Mettage

| Check CjR Conpaihity [13 4829J

HHcIo4

Due lo a m odification o f the configuration, an S D B was


generated w hich cannot be downloaded to the m odule in
lode.

To Correct or Avoid Error:

The change m the c o n fg J t


41" 4 earns* be loaisd r Rl

Undo the changes.

See also:
You can find further inform ation and FA O s here f if l 1he
i?.t.e.rn8t..
PS 1071GA

m vr

S IM A T IC P C S 7
ST>ens AG 2003. A! rights reserved

CiR Compatibility

Note

r n o r B u s c*p
M7 artcC 7fd:'

Date
15.11.2006
fr,le: ST-PCS7SYS._V70j5ystKonf.23

S IT R A IN Tr&ning for
Automation and Dfwes

After the download procedure is started in RUN, STEP 7 first checks whether the
changes can be downloaded in RUN. The current online configuration of the CPU
is also taken into account. If it is not possible to download the changes (e.g.
offline changes to the CPU parameters, such as e.g. PIP assignment), a screen is
displayed indicating the cause. You can then press the Help button to display a
description of the error and how it can be eliminated (if this is possible).
You can also start a preliminary check of the CiR compatibility by activating the
menu option in the HW Config
Station -> Check CiR Compatibility
This checks whether the configuration changes that were made since the last
download can be downloaded to the automation system in RUN. The check is
performed offline. An online connection is not required.

If the check returns a negative result, we recommend discarding the changes.


You are lucky if you didn't save the modified configuration before the check! You
can now exit the HW Config. You are prompted whether you want to save the
changes. Respond with NO! This way you can discard all changes that are not
CiR-compatible.
General Recommendation
After a successful download, make small changes to the HW Config and note or
remember the changes you have made. Should the result of the CiR check be
negative, there is no major loss when you discard the changes.
If, however, the changes are necessary, you will have to resort to downloading
with the CPU in STOP mode and then reboot.
For a detailed description, please refer to the manual "STEP 7 - Modifying the
System During Operation via CiR that was installed on your ES.
The programming instructions in that manual can be disregarded under PCS 7, as
the PCS 7 driver blocks take care of the specific cases.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 23

System Config

SIEMENS

Exercise: Download the AS HW Config to the PLC


(Check CiR Compatibility-2)
| ^ M W 1 cinhg
a*] Stabor*

[A S III (rcmfKjurAlum) - PRO. AS)

Ectt

lrtfert

Dte;s>i
i

PIC
a ]

Vie*-# OpMooi

Sfei

[J PS 40710*

fc lttlliiia ! SS
-

*?

.
E<nC

Help

__ .

-ID lx l

E &

5 n 2 e jc flo

fro u c

|PCS7_V61

g jf3 |!M 1 5 3 -:
K

CPU 417-4

\
1

KZ
XI
IF1

:
3 S A18xT2Srt
SM 33^
A18x!28rt

fTtnr

SM 331 AI8x138i!
SM 331 AI2>c128ir
AI2x128f

C
KIPl/DP

SM 331 AI2x128<
SM 331 AI2x12Bf

IF2

SM 331 AI2x12B.f

: # ! CP U 3 - 5 v t ^

SM 331 AJ8x12B.
SM 331 A I8x12B il_
S M 331 AJ8x168.1

J
Slo
r

(j

131 IM 153 2 ledtndanl


1

Order

jnbe*

i
a 1

SM 331 AiejflTD

SM 331 AISvTC

_r

SM 331 AMxO/4.

[ f AlPfcHARl Thecurrent 1(0 area c f the CiR modJs is no


1 siificicnt for the new module.

81
82

SM 331 AI8x168it

V
W

SM 331 AJGxTCM _

"1 /

I
td

10
11

S S ri3 * 1I.FX-W S 0
A/ulog tr,yj modui Al 8 d i bt;

The o n ie rf I/O area of the GP r.odde is noc su'hcent roi tiw rev* y.xi.'fe.

SIM ATIC PCS 7


ST>ftrti AG 2033 All rights reserved

Date:
15.11.2006
Filo: ST.PCS7SYS_V70_systkcnr.24

S IT R A IN Trainee for
Automation and Doves

Some properties that are relevant for the CiR are already checked during
configuration. In the above example, the address range reserved by the CiR
module is not sufficient to allow insertion of another analog module.
It is not possible to download changes made to the reserved range in RUN (see
next page).

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 24

System Config

S IE M E N S

Exercise: Download the AS HW Config to the PLC


(Check CiR Compatibility-3)
( iR m o d u li' properties
CM* rnodolr proprvtar*

General Se>tag j
Sumo* addrew

Genccal SeHng-. !

t&\ge#

S i a or A d d * .

Input

1128

Quipui b/ei

Jl2S|

inptfbytea

bbpfl Prnp#*rfir(i:*:4845)

( & * < P rup rrt v ( | . t /'3 )

*J

A
! \

QnJy$4 inputb*.^r. o n j 103ooUKltovtrv a r ovaWtfc for


*ho c** erV I/O area o hj^lR module

U you c h a r** imr itiy, download m RUM TiodB vdl no


iongeibepc:*ible
Do vou
vroi 1 'o cfvangc Jhc entry

Cjrxel

SIM ATIC PCS 7


Siemens AG 2003 All rights reserved.

Dale
15.11.2006
F.le: ST-PCS7SYS_V70_syst<orf.25

,.#1
*

S IT R A IN TrarinQfor
Au<omation and Drives

Any subsequent changes to the reserved range for this ET 2Q0M cannot be
downloaded in RUN, i.e. if insufficient address space was allocated before the
first download.
How should we proceed now? If the CiR object on the DP subnet still has sufficient address room for
slaves, an additional ET 200M can be inserted there and fitted with modules. In
the latter case, you should create sufficient reserve addresses so that the new
rack can be completely equipped.

Training Center
for Automation and Drives

Page 25

SIMATIC PCS 7 System Training


System Config

S IE M E N S

Configuring the PC Station (Overview)


Hardware description
in the PCS 7 project

Hardware description on the PC station


Actual configuration

Preset configuration

Station
Configuration Editor
(part of PC installation)

Config
of the PC station
(part of project)
HW

Index/type
Application

Application

WinCC application

WinCC application

-3-

- 3 - ---------

----------------

C Py

with "configured
mode

Station Manager

CP y

125

Station Manager
J

SIM ATIC PCS 7


Siemens AG 2C03. Al rififrts rosorvad.

Date:
15.11.2006
Rfc: ST-PCS7SYS_V70_sy5t<tf.26

S IT R A IN Traning for
Ajcomatlon and Dnves

PC Station

The PC can be used as ES or OS or both. It must however be set up once,


immediately following installation of PCS 7. Then it can be changed later.
C om m issioning Wizard The Commissioning Wizard appears after the installation and detects (via
Win2000 functionality) the network cards (CPs) on your computer. You need to
make settings for the CPs (explained in more detail later) It is also automatically
started if new or different communications cards (CP) were installed on the PC
after it was last shut down.
Set PC Station

After the Commissioning Wizard has finished, this tool opens and the
modules/CPs recognized by the Commissioning Wizard are displayed. For each
module, the operating mode is displayed in the "General" tab:
"Configured Mode": The CP (module) is loaded from the project by the
Hardware Config (configured). The preset configuration created there determines
the behavior of the CP (actual configuration).
"PG Operation": In this case, the CP is configured via the properties.
or via
START-> SIMATIC->SIMATIC NET->Settings ->
Set PG/PC interface
PCS 7 version)

(as you may already be familiar with from the previous

SCE

The Station Configuration Editor is displayed in the form of a table. Only the CPs
that are set in "Configured Mode" initially by the "Commissioning Wizard" (or later
by "Set PC Station") are entered in the table. If a CP is switched from "PG
Operation" mode to "Configured Mode" in the "Set PC Station" tool, it is
automatically recorded in the SCE table. When the mode is set back to "PG
Operation", the CP is removed from the SCE again.

Remark

Each component (also the individual CP) is assigned an index in the SCE (like a
"slot" in the table). You can change the slot/index in the SCE via:
Select CP and Edit
or by moving it with the mouse.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 26

System Config

S IE M E N S

Set the PC Station (Modules)


L

f anfrqur.it ion I o n v 4 r
Action

>

*
S

IE

__I PC scanan

Ethernet

T rp r ol module

- f a l SIMATIC NET Ccrfiguration


U

fll f-Vx^es

-----------

(Jon>ro! (cnuiic

US' 'jenero!
Interlace prtfitetor

Verson
G ? Addr&si
" Network Didtjncstfc

* BusNodes

tnd Efhe*rit

nCe|BjPRO/10 0 VE Nc~

g ? Softnet DP
- S_J Intd(R) PRO/193VE N
(r5F version
(2j* Addreii
g f Scftnet IE
ES* SP >es
.Jrcora OedtCcrd
* Genej J 1 Version

jd

i Configured rnodr

Mud? o l l e Tiodu'e

Applications

Type 31 r o A ile

iE liv r c '

v Tdc n' th<* rr/xJule

PG cperai:n

V .e ifa c e p i:* lr tot

>tt<y.a EredtCard F th

..

Module reac^n

F-r-.r^

|
I

TCP/i1 > Wrccm D lrC d E tt


ISO .nd Eihsrv* ->V*coro D eiUCadEihe

Vod'-fe reaction

25* Add'ess
E f Soviet IE

1 SP test

la r v d

SIM ATIC PCS 7


Semens AG 2003. A! rtgnts reserved.

Set PC Station

He*

S IT R A IN Trainirvg for
Automaton and Drives

Dale:
1511.20DS
Flo: ST-PCS7SYS_W0_$ystkonf.28

The Set PC Station tool is launched via the Windows Start bar
Start -> SIMATIC ^ SIMATIC NET

Set PC Station.

The "Modules" and "Access points" tabs are of interest for PCS 7.
Modules

All communication modules detected by the Commissioning Wizard are listed


here.

CP 5611

The CP can be used for interconnection via MPI or PROFIBUS DP. It is set to PG
Operation, as it is only used for PCS 7 V6.1 in some specific cases.

CP y (see page 26)

In the example, "Configured Mode" is displayed as the mode type for the internal
LAN interface (Intel). Index "4" means that this module was entered in the SCE on
"Slot 4". It can be moved there if required. The settings for the module are loaded
from the project after the HW Config is opened.
The module is required as a connection to the plant bus.

CP x

In the example, "PG Operation" is displayed as the mode type for the 2nd LAN
interface (Xircom). This module is not displayed in the SCE, is not used in the HW
Config, and is not loaded from the project.
The module is used as a connection to the terminal bus.

Remark

Training Center
for Automation and Drives

To change the operating mode (PG Operation <->Configured Mode) you must
have administrator rights under Windows. In Configured Mode, the parameter
settings for the module are loaded from the project. In "PG Operation", you set the
parameters.

SIMATIC PCS 7 System Training


Page 28

System Config

S IE M E N S

Set PC Station (Access Point)


S/0*CIN1 (>ro|>rrtr%

(on fm urfttion Contote


Acton

Hie*

dD t 0

T ie * j

G>

Q*

"Q

port

JL *

Access pain's

__I PC Staten
51MATIC NET Confiourd*n
4 9

Aprrtcaticns

fe & K p o n t
]57 0fJlIN E W .
3 cpj2 _ i
Jc p _sm _ i

- ( | Module?
+
CPS611
+ I Q Intd(P) PRO,MOO VE M.

r-teffacepvaret?? asagnrent

QCP_H1_I:

S79NLM E

CP561MMPI)

t . xr.xarea
PC o tc m i lloco'l

Q m PI
-Q

ccforrcci asjignmetr

\
\

cp . p n j

ISO Ind Eheir* > /icorn QetiitCdicJ Elne


ISO Ind Ethernet > IntetfRlPRO'IOOVE Ne
TCP/IP Nd-.v/onlp
CP5B11lAuto|
CP5611(MPQ
tfiSS11fPR0FlBU5l____________________________________

C P S b lU M P I)^ v .

+ BQ >SrcomCredtCardPh.
5 3 CP emulation

<iccet- ra n '

"CJ A c te .-p o rV

point*
pwtf to ihe M
pAtamrtci aognroeii' * * l be
raniapped >c the ?. irmtace pa srupe x . sgrmsrt

Access pon'
. S n U .IN F ^

A.-.ocj^ec!riwiccpaanvlt'.

Of

ApO^'

Cancel [

He<p }

CF%6?1|MFlT_________
ISO Irri Ethetref ;*5rcon. CredtCart^f the
ISO Ind Elhctret *> lnt{R) PRO/IOO \ E Ne..
TCP/IP NduWddp

areemuioi

|CP5611fPR0F;BJS)
I PC intetnarf (bcail
potnl:
portf *c ihe c4d S S d a c * paiamSS a*t^oieni %-*Pt e
ten^wed to Hie new ntertect pararre*# a. ^ n n c n 1

'ey uanl. >'v

or.

SIM ATIC PCS 7


Semens AG 2003. Ail rights rsse'ved

Access Point

ppij

Cancel

Kelp

Date:
15.11.2006
File ST-PCS7SYS_V70_$ytf*onf 29

S IT R A IN Training for
Automation and Drives

The available access points are listed here. The assigned interface parameter
settings and module are displayed for each access point.
Applications that use the protocol libraries (DLLs) directly use the name of an
access point to access the module. Double-clicking on an access point opens a
dialog where you can make changes to the assignment.
The access point "S70NLINE" is the relevant access point for online operation of
the ES. Which device (interface) the SIMATIC Manager uses to communicate
with the ASs is determined by the access point.
For example, if S70NLINE is set to CP5611(MPI), the SIMATIC Manager will only
try to access the other components via this module with its MPI settings.
On the other hand, if the access point S70NLINE is set to "PC internal(local)",
the SIMATIC Manager tries to find the path to the other components on the basis
of the configured networks.
If several paths/gateways are possible, then a screen form will appear offering a
selection of the available gateways.

Remark

This setting is also required in order to download the configured ES/OS


configuration "to the PC".
It is also used for central configuring in large-scale projects (multiprojects).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 29

System Config

S IE M E N S

SCE (Station Configuration Editor Option)


Add Component

Sttton Configuration fdrlor


Compoiwlr | Dwgio ter
Stan
Ujcter

Tspe

JOf f 1 IMI |

AceTcation
BATCH Applcation
BATCH AppicoliD^ [siby)
BATCH Aptfcaton Dient
CP 5511
OPC Server
RC Application
RCApplcatcn(tfby)
Paramcief a*.:g RCApplcabon Cicnl
W rCCAcpi Ctert Ref
W nCC
WinCC Afilcafccn 11fcy)
WinCC Acplcabon Clent

CrxfyyidxxArio

SI

Mod?

Name

RUN.P
> ***

Rtr^Stop

4ppfcatn

Nome

Ccrti

Add Componenl
Tipe

N m

WnCC ^pplcafon

Parameter 3^ \g

SiaoonN^ma

Impoci Sahon

SIM ATIC PCS 7


Somers AG 2003. Al ri$*t5 ro&erved.

Dt'abJf Sfetion

Date.

15.112006

Fte: ST-FCS7SYS_V70_syRlicoftf 30

S IT R A IN Training for
Automation and Drr/cs

Exercise (info option) Set up the Station Configuration Editor so that Index 2 (row 2) contains a WinCC
application while Index 3 (see slide) contains the Ethernet OP for the plant bus.
Enter the Windows name of your PC as the station name.
Note 1

The SCE initially only shows the communication modules that the Commissioning
Wizard has found that are in "Configured Mode".

Procedure

Start the Station Configuration Editor from the desktop (or alternatively, via the
icon in the Windows taskbar).
Select the row with the contents you wish to delete, then
right-click and select Delete
to remove the contents.
If it was a CP, it is removed from the Station Configuration Editor, but remains in
the Set PC Station tool where it is switched to PG Operation mode.
If the correct component was already entered, but in the wrong row, you can
move it to the correct row with a drag-and-drop operation.
If you want to add a new component, select the row in the table,
right-click and select Add.
A screen form opens where you can select the component you wish to insert.
An application should run on the PC according to its function in the network.
If the PC is used as ES, it needs a slot/index of type "Application or "WinCC
application" in the SCE.
If the PC is used as OS, it needs a slot/index of type "WinCC application",
"WinCC application (stby)" or "WinCC application client" in the SCE. Which option
to select depends on whether the OS is configured as a single server or
redundant server, or if the OS is used as a terminal (client).

Delete

Move
Add

Application

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 30

System Config

Once the configuration is completed on the PC, it must be loaded from the HW
Config (which is contained in the project). Then the PC is ready to assume the
role assigned to it (ES or OS)
Note

Later when the connection is configured, the application represents the contact
point on the PC side for the CPU from the AS side.

Note 2

The previously described procedure also functions in Version 7.0. A disadvantage


is the double configuration (once as SCE on the PC and additionally in the
hardware configuration of the PC station, in the PCS 7 project).
With Version 7.0 and higher, the SCE can be derived from the project once the
hardware configuration has been created in the project. Initial creation of the SCE
is then omitted.

Training Center
for Automation and Drives

Page 31

SIMATIC PCS 7 System Training


System Config

S IE M E N S

Exercise: SIMATIC PC Station/OS HW Config

Windows network connections (via START -> Settings


Control Panel -> Network Connections)
I V N etw xk Cumin tiom
Fite

Edit

View

.= iS | x J

Favor/es

J,

Tools

Advanced

Search

Address

Folders

1 4h r

Help
X

SS*

*0

fc-'jfl Go

Network Connections

Warns

Device Name

f Status

Type

Pttune t o r J

LAN or High-Speed Internet


Reafcek RTL8139 Far.ly PCI Fas. .

^Systernbus *

LAN or Hgh-Spced Internet

Connected

.JjTerminalbus

LAM or High-Speed Internet

Network cable unplugged Xrcom Ethernet Adapter 18/100

LAN or High-Speed Internet

Connected

1394 C onnection\^\

-1

1394 Net Adapter

....................................

Meaningful names for the LAN connections

SIM ATIC PCS 7


Se-ncns AG 2003. All rights reserved.

Installed Ethernet CPs

Dale:
15.112005
Fie: ST.PCS7SVS_V7C_aystkonf.32

f !ITR^
T f ; , 0 f
Automation and Drives

Exercise

Configure your PC station as an ES/OS

Steps

1. Open the network connections of the PC under Windows, and provide them
with meaningful names.
2. Open the SIMATIC PC station from the SIMATIC Manager project OS_PRO,
and add to the components in the virtual rack
3. Configure the station Cafter_s.etting.the .PCJnlerfase}!
4. Download the PC station

Network connection

1. From the Windows task bar, select


START -> Settings -> Control Panel -> Network Connections
to open the screen form shown above. Depending on the connection of the
Ethernet CP, change the Windows default names to "Plant bus and "Terminal
bus"

Training Center
for Automation and

SIMATIC PCS 7 System Training


Drives

Page

32

System Config

S IEM EN S

Exercise: SIMATIC PC Station/OS HW Config


, SI M A I I t M a n ^ jrt
Fte

Ed*

Insert

7 HW C onfig

COIR

PIC

VteK

Options

Window

(&% Station

Hefc

.rjnj *J|

(L fG 0 4 (C o n h g u ro b o n ) -

Ed*1 Insert

PLC

V ^v

Opbons

Wrvkhv

'-tefo __J

5 x
d<g*;

s?

- i

1C * ( OJ 8 ( ( wnpom *nt

ife '

< **!

Otjeci n a r r * ^ ^

- PRG_AS
- d AS01
- ljl| CPU 417-4
- j f CP 443-1
PRO OS
A

>

s f iijs s f

o .& %

hi

t>. V i S n o u r \C o lr

view)

- a i COLR

C oV isu ation

fr itt p . H *
J>f4

i Sjnibolic name
m
m

"3

PCS7_V61

WinCC I

SIMATIC PC S la te r

I Cortrotef
J LUet Appfccatco
CPIr>d>:tiia! Eihcmet

CP 1512
CP1612

_3^P 1613

ffl

1... -J

l l

I CPPROFIBUS
IOi PC

HMI
BATCH Applcaban

Modtie

BATCH AppJcahon (:tby) _


8AT CH Applcaiion Clont

V.-wCC Apdic
IE Gerwal

WinCC A pplealcn
WinCC Appix;atrcn(:tby)

IE.CP
Substnrte lee any Indiana* Ethernet
modi? PROFINE 1 ID comtofet.
ISO T C P /T 57 c a n e c % 'K PG
Inseition possfcte

SIM ATIC PCS 7


Siefro8 AG 2003. Ail rights reserved

SIMATIC PC station

Dale:
15.11.2006
Fte ST.PCS7SYS_W0_sysfconf.33

.j? l
*

S IT R A IN Training tor
Autcnwfionand Dnves

2. The OS was created as a SIMATIC PC station. The PC station was also


configured as a component with the HW Config tool.
In the component view of SIMATIC Manager, select the SIMATIC PC station,
right-click and select Open Object (or double-click the configuration icon).
In the hardware catalog, open the node "SIMATIC PC Station", select the
components and use the mouse to drag them onto the PC rack. You need to
match the slot in the rack with the Station Configuration Editor (SCE). The
matching must take place before downloading the configuration to the PC (see
next page).

Components

The components are as follows:

WinCC Application

This corresponds to the OS software. However,


the index (slot within the rack)
does not match the position in the SCE (Station Configuration Editor). It needs to
be adjusted as follows:
- Use the mouse to drag the WinCC application to the same position in the HW
Config rack as in the previously configured SCE,
- Or, the SCE is automatically configured (see next page) if it is still empty.
In the latter case, the slot/index in the HW-Config is now irrelevant.

CPs

2. Communications processors for connecting the PC to the networks (MPI,


PROFIBUS, Ethernet).
In our exercise do not configure CP 5611 as it is running in "PG Operation" and is
not loaded.
Select the Ethernet CP installed in your ES/OS PC configuration and drag it onto
the PC rack. Set the Ethernet address (MAC address) in the CP properties
according to the parts list for your workstation.
In our example, deactivate the Internet protocol (TCP/IP).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 33

System Config

Note

If an IE General CP/Softnet CP Is used (e.g. 3Com or LAN onboard), then it is


generally not possible to change its address and the address in the HW Config
must match the address displayed in the "Set PC Interface" tool.

OS

After you compile or complete the HW-Config with with a Save operation, an OS
station is created in the component view of the SIMATIC Manager under the
SIMATIC PC station.
Select the station,
right-click and select Object Properties
Then, the station as OSxx", where xx is the number of your station (e.g. O S O I).

PG/PC interface

Training Center
for Automation and Drives

Change the S70NLINE interface to "PC internal (local)". While this setting is
irrelevant at the moment, you can make it now since you already have the
SIMATIC Manager open.

SIMATIC PCS 7 System Training


Page 34

System Config

S IEM EN S

Exercise: SIMATIC PC Station/OS HW Config


Eir-

.<W

PLC #ew

Qpons

C ? C C X P (C ofitponeiit

I-- 5

*J

Locd net-fofh com ecbon

tfMo

D ; P C S r t o u r * c ( ofr

aSCOLR
^

W inder*

to 0
v h -%*)

C onfigure

E SIMAIK M<in*orr I MU

Jpdate

tble computer.

E^| Ccniigj'dlion

[LNB04

PflO_AS1
PHD 0S1

[l nnlw jurr
>CH*ifoad

Acccss Protector.

C o n fin e ...

Local

reCwttkccn*chon

iTermnalbus

z i
Upda't

AccocciW? computed
LNB04

1-yget computer
|LNB04

Cfirftgme . j

fcwpley

jj.f oontipNfod <if9?icon-pnter


M ers g e

ls<ye conpuer

LN0O4:

Tier^ei completed uccc

I:lnbo 4
Cgrrfigure

SIM ATIC PCS 7

Dalo:
15.11.2006
Fte: ST-PCS7SYS_V70_s>GKor/.3S

Siemens AG 2003. All rights reserved.

,.# !
^

S IT R A IN Traning for
Automation and Org

Configuring the PC Station


3.0 Select the PC (your ES/OS) in the PRO_OS project in the SIMATIC Manager,
then
right-click and select Target system -> Configure
to open the screen form (see above)
3.1 Select your terminal bus under "Local network connection". Only connections
with a TCP/IP setting are offered.
3.2 Click "Update". The computers accessible under Windows are displayed,
including your own computer.
3.3 Select "Use configured target computer". The name is automatically entered
into the "Target computer" box.
3.4 Click "Display". The current SCE of the PC is displayed (check). If something
has already been configured, the hardware configuration must match it. If it is
empty, carry out the next step. If necessary, components can be deleted by
calling the SCE directly before the next step is carried out.
3.5 Click "Configure". The SCE is structured according to the hardware
configuration, and matches it!
3.6 Check the messages to see if errors have occurred.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 35System Con

S IE M E N S

Exercise: SIMATIC PC Station/OS HW Config


Station Configuration Editor
was created when
PCS 7 was installed on the PC
Is configured according to the
subsequent use of the PC as an ES
and/or OS

SIMATIC PC station
HW Config is configured in the
project in the SIMATIC Manager
and downloaded to the target PC.
S70NLINE-> PC local

r Kam poncntcn Honftqurator - JONLINC]

Sranon

Konponctfen I ? liSn o .s
S ia m

Betiiebian

LNB04
__________ I.T jp _______

j IwWXAppfcat
I IE AIkfsmen

V/mCCAppl
IE AJIgemen

Si *J

, MWConfrg (IMMH (Coofigurtno) - *KO

Mngpth

PIC

Viev*

p |g g i^ |B @ ) a t

RUN_P
StdUJ*

Edit

Run/Sop

Optons^ffiwtow

fe

-telp

xj

( 2 W [ f i n jg j k?

V<

f t "
II
IT 1

Prcfie
-

zi

| PCS7_V61

"3

SIMATIC PC Station
I Corrtidlci
I U seiA p p koto o
_ J CP-lrtdu :Jrial Ethernet
. _ J CP 1512

17

t ' _ | CP1G12
* _ | CP 1813
.

SIM ATIC PCS 7


Semens AG 2003. AJl rights reserved.

PC Interface

If*

......I

S IT R A IN Training f<r
Automation and Drives

Date.
15.11-2006
FHo: STPCS7SYS_V70_systkorf.36

4. You can only download the PC if the access point S70NLINE was set to "PC
internal (local)". Set the access point accordingly via Set PC Station. As an
alternative, you can also set the access point from the SIMATIC Manager via
Options -> Set PG/PC interface
Access point S70NLINE -> PC internal (local)

Note 1

Compile from the HW-Config Tool (symbol 1 in the slide).


The compilation process can take several minutes (depending on the computer),
as a complete WinCC project is generated for the WinCC application.

Load

To download the PC configuration, select symbol 2 (see slide).

Compile

Acknowledge the dialog boxes that appear.


If error messages are displayed, this could indicate that the PRESET and
ACTUAL states are incongruent.
Open the Station Configuration Editor and look at the symbols in the Components
tab, Status column. For more information, activate the help button in the Station
Configuration Editor.
Also check the Diagnostics tab!
Have you obtained the SCE through "Configure station"?
Note 2

In order to enable all AS and OS of the projects contained in a multiproject to be


downloaded from the central ES, the PC interface must remain set to PC internal
(local) for the duration of the project. It is necessary, however, to merge the
different networks of the projects (make them known). The NetPro tool is used in
the multiproject for this purpose. You can also use it to set up the S7 connections
required for the online data transfer between the AS and OS.
The next pages show you how to merge Ethernet networks and create the S7
connection between AS and OS.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 36

System Config

S IE M E N S

Calling Up NetPro
? SJ*tAI II M-UUHJvf
Fh

Ecit

Ins#'

PIC

C R
V**v

Options

Wrdow

Hcip
No Ffrer >

* C O tR (COotjmmNil virv)
3

I): P( S n o u r*c

. PH fc.: >?nrii

Q&j COLR
-

PRO_AS
wU >PtPro

- SD AS01
v. y CPU 417-4
3- *
CP 443-1

|PRO_OS

S ? Network

j* \ t )
PLC

Ed*

IY Pf S I [ n tm xr
Options

n;xj.
5j xl

Window

Help

t j j : cp
- 2 PRO_OS
- & LN804

find

j V/mCC A fffc a to

A fjftjj

Selection of the networl-

l l _____________ i i

* ^

PROFIBUS DP
PR0FI8US-PA

PROFINET 10

s _ ] Stabon.

LNB04
WnCC

IE

arion

t __] Stfcnei-

*<
PROFIBUS DP -l a * : fc SIMATICS7.
M7 and C7 (d ilifc a e d . v 11

Read/

SIM ATIC PCS 7


Siemens AG 2003. All rights reserved.

Exercise

Date
15.112005
FOe: ST-PCS7SYS_V/0_s>-stKon?.37

S IT R A IN Trainingfcr
Auton^bco and Drn*s

Launch NetPro for both projects (PRO_OS and PRO_AS) and merge the
Ethernet subnets there.
Then create an S7 connection from the OS to the AS and download the
connection to both devices (AS and OS).

Steps

1. Start NetPro for the OS project.


2. Start NetPro for the AS project. For clarity, arrange both
side.

windows side by

3. Merge the Ethernet subnets.


4. Create the S7 connection called OS01_AS01 between the
and download this to both stations.
Procedure

OS and the AS

1. Select the PROMOS project in the SIMATIC Manager. Click the NetPro icon
(see slide). NetPro opens with a window displaying the networks from the
PRO_OS project.
2. Select the PRO_AS project in the SIMATIC Manager. Click the same NetPro
icon. As NetPro is already open, it appears in the foreground again and displays a
second window with the networks from the PRO_AS project. Select the menu
command
Window -> Arrange -> Tile Vertically
to display both project-specific networks side by side. At this point they are still
independent even if, for example, the Ethernet subnet has the same name in both
projects (plant bus, see next slide).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 37

System Config

S IE M E N S

Merge CormectKra .
f V 'Q r / ijnrr*f0 *jbr*tcvt5

|
.

' .......... .

MPI Subnet*

jnmeroes aoss*cwoct Ethernet subnets

SIM ATIC PCS 7


Siemens AG 2003. AJi rights reserved

PROFIBUS Subnets.

Date.

15.112006

R e: ST-PCS7SYSJ/70_sysllconf.38

f 1ITR*!N Trd
tJ '!^ior
-

Automation and Drr/cs

3. The Industrial Ethernet-type subnets are visible but still need to be merged.
Select
Edit -> Merge/Unmerge S u b n e tw o rk s ...E th e rn e t Subnets.
A new screen opens. Select the subnet of one project in the left window and click
the arrow keys to move it to the right window.
After having moved both subnets, you can rename the cross-project subnet.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 38

System Config

S IE M E N S

SIM ATIC PCS 7


Siornens AG 2003. AJl rights reserved

Date:
15.11.2006
R e: ST-PCS7SYS_V7C_systkoaf.39

..# 1

S IT R A IN Training fcr
Automation arxJ Drrve3

Internally the merged subnets are assigned a common ID (identifier) so that they
are available as if they were a uniform subnet.
One result of the common ID is that the setting for the access point ''S70NLINE
-> PC internal (local)" is sufficient for the SIMATIC Manager to find and suggest a
route for loading the devices!
You just need to download this new information (e.g. from the HW Config) to the
ES first! Then you can download an AS too with the same setting.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 39

System Config

S IEM E N S

Setting Up a Connection (1)


NMPro - PRO CIS
Nc*v>otI< Edr

hew I onnrction

incei*

IC

Vfc**

Opboo;

Window

Comer ton Paftn*

cgja mil a

. >1

iffi 3J.j. *?

g.l In the cuient project


L- ^

PRO_OS

.ip

(UmpCi:ied)

~ All boodcair nation.


All mdtica:staton;
^ 1 In the mufUproject: COLH

- &

>artor. fctL m e t w c

PRO- AS

+ -32) ESD
In u ik rc is n projccJ

I
I

it

AS01

I w r t t& r* Connection

CtiWH

Picked
Station

DowJoad 'O current project


LocIC*

P'rtrKi 0

M a iJ e

C P IM 17-4

A*+P.enjrn
CcrwecllOii
Tvpe
v

:S7connGchcn

Deploy prcperte: before ns*ftmg

d new conr-etfion in the corroct&n table

SIM ATIC PCS 7


Stamens AG 2003. A l righto reserved.

Da.*:
15.11.2006
Rte ST-PCS7SYS_V70_syslkoM.40

S IT R A IN Trajuhgfor
Automaton and Drvcs

4. In NetPro, go to the OS project window and select the WinCC application


within the PC symbol, then
right-click and select Insert New Connection
A selection box appears. Select the partner for this connection (in our example
your AS01).
Remark

The yellow arrow in the PC symbol has two meanings:


The PC interface is set to "PC internal (local)"

and

The displayed PC is the local ES you are working on.

Training Center
for Automation and Drives

Page 40

SIMATIC PCS 7 System Training


System Config

S IEM EN S

Setting Up a Connection (2)


*> ro p c rti S7 c annrc t c n n

!fvuf>#Kr

Locd Comf-cuon F nd Pair I

Connection identfc3ton

LosdiD

V ii* 4 c o r t ? J * 4

4 * i& rrtc c o e /r^

. .

r*

*rr*.

X** 7 "+

Change to, for


example
QS01 AS01

lo n e c tjc n Pafr

Local
End Ponl

(p ro o s /
/
|LN804/WinCC: Aopieatorf

Irrfeifaco

I IE General

Sitnet

jSjnfembu ? (lnctatMl

bdae s

jcb-ooo 6-s i d

Partner
jPRO
ASCII/CPU 417-4
j

drier

| CP 443-1 IRO/SB!

Zj

(Syilainbut flnAijiialEiherne;]
08000&S1 D?QF

of

AS01
ftddtr.r O e itk

c*u

DP

4 i;-i

IPVtMT C

iwpf/op
CP

4 4 .5

CP
44?

Ea

Local ID

Peac*'
SIM ATIC PCS 7

Date:

15.11.200o

Siemens AG 2003- AJl rights reserved.

.JQ

SITRA1N Training f<x


Fe: ST-FCS7SYS_V70_3y3lkonf41- AutomatonsndDrives

Each connection is assigned an ID:

Recommendation

On the PC (application) side, this ID is a name (e.g. S7_Connection_1)

On the AS (CPU) side, the ID is a value.

Change the default name to a meaningful name(e.g. OS01_AS01). This makes it


easier to see who the connection partner is in the connection table of an AS
(CPU).
Moreover, it is advantageous for the online test of a configured OS on the ES-PC
(keyword "Start OS Simulation") before the active OS is loaded.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 41

System Config

S IEM EN S

Downloading a Connection

ih 't fV o

Networ)

PRO

td it

Inirett

PLC Vtew Opbxts

s ? l " |%| # j ] l

aca;

WvuJow Hpfp

to CKMtett Ptoirc

Ste<ted Sttbore

Upload

OHH

Sefcctrd awl Partner S*4hons

Activate Ccmecbon Status


Coroccwass arxi Gateways
1

US(F

hus (1

r *
..l r

sm
Si

1
h e m e t-w id e (

PROFIBUS

AS01

\M-.CC
A>tfc
atioi

CPU - DP
417*4 j

1
.M P l/D P

CP
443-5

CP
44M

S it

li

SIM ATIC PCS 7


S fe m m AG 2CC3. AT rights reserved.

Initial Download

Dale:
15.11.2006
Fite ST-PCS7SYS_W0_Sy*tk<X/.42

S IT R A IN Tramingfor
Automation and Drives

When downloading the connection for the first time, select the stations (AS and
PC) you would like to download, then select
PLC -> Download to Current Project -> Selected Stations
to download the stations.

Notice

This method requires you to stop the CPU/application for a short duration
(seconds) and then restart it! The network configuration is downloaded
independently of the HW Config download.

Tip

If you do not want the AS to go to STOP (for example, if this is not permissible for
the process), use a different method:
Select the AS and download by selecting
PLC -> Dovsnload to Current Project -> Connections and

Gateways.

For the OS select the relevant connection in the connection table and download it
by selecting:
PLC -> Download to Current Project -> Selected Connections.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 42

System Config

S IEM EN S

Cross-Project View
Cross-Project View

Standard View

jfii V tP r o

(P W H

fierwoiJ

AS ( ( r o w

fccfc

Insert

p r i K d n e tw o r k w w )

F ir

'-Vv

Optons

c|u |.| S | ^ | p |
9< Nc* - k A

Edr

Insert

PLC ''lev

DDUorv

Wrwtow

Hefc

Vtado'.'

1 S /lw iv

Help

& \ \& \

---------------------------

R W II A S |

---------------1------1

-----1----------

DP subnetl
PR

(I K

IDP_.SUbr.et2T

BUS

DP ^ubl *t2
Ff'OFIBUS

alEtn iet
-rart of El
irnet

r:

AS01

CPU * DP
417-41

AS01
C P U DP
417-41

i
i
:

.M P l'D P
:

a
2

CP

MM
fitt

CP
44. 1

LNB04
hf l/D P
:

: :
2 2

CF
443-5
Ext

CP
443-1

ttlnCC IE
Grfa
*>P*<
ailon
1

, r

SIM ATIC PCS 7


Siemens AG 2003. Al rights resowed

Standard View

Date
15.11.2036
Fie: ST-PCS7SY5_V70_SyS!*onf 43

S IT R A IN Training fcr
Automaton and Drives

The standard view (left window) displays the devices of the individual project only.
The subnets are displayed both with their project-specific name and their merged
name. You can select the different components and set them via the relevant
menus (usually Object Properties).

Cross-Project View
This view serves mainly to view information that is relevant at the level of the
project (no configuration of the components). For example, from here, you can
download the connection data to the listed components.
Remark

Each node (CPU or application) has its own, limited connection table. Individual,
downloaded connections cannot be deleted online. Should you need to delete
them, you first need to delete the connection in the offline table and then
download the full table by selecting
PLC -> Download to Current Project -> Selected Stations
However, as described above, the stations must be set to STOP for a brief
duration!

Training Center
for Automation and Drives

Page 43

SIMATIC PCS 7 System Training


System Config

S IEM EN S

S7 Connections (Stations in Unknown Projects)


iv r^etPro
.

[f^O

A S (N e t w o r k )

D :\ P C 5 7 C o y r w

J.-A.i'lE<Jt! 4 t Nrv?Conoe<fkin
ConnrchonPwrts
o | In the cusent project
- ^

S / r o o n r c t io n

laeneia

Steel Pvtrtittti

Local Connector* Em) Poini

FR0_AS

In

L j. O \ j (He<l

(Unspecified)
All bioacfcart. tatra'i
All mullicat? 'tatiari:

toUi>\ an acfr'e connection

mullifiojict COLR

Defaut

Send opo>anng mode iue;gc.

Correction naira ;te l ctce j C

waits:

[AS1 _AS_X

Comec ton Path

-wLocal

. Prt .

PRO_AS/

End Port

[ASOiyCPO 417-4

Werfote

"CP 443-1 fRO/S&l

Subte'
tabo'i

fir unfc/icwn pioicc'

[SyiiernbT [Indir-irdEiteire-]

ACd-c.j

0&0006 91 0 2 0T
Addiett De'afc

Connexion
connecllcn
t>srtrter C

P c Y lf

- c l i . f conr*cton s^rtner Suhne*

Psrlne
Inunlnov-nptoiect S7 c o n n ^ c r

SIM ATIC PCS 7

Date:
15.11.2006
Fito: ST.PCS7SYS_V70_systkcof.44

Slerrens AG 2003. AS ngfits reserved.

>es

J H
-

, stembur [E]

J IT R A .N Traning.or
Autonraoon and OrtvM

Additional Information When configuring connections, the SIMATIC Manager provides them with IDs in
the same sequence as they were created. If both nodes exist in the multiproject,
you can select the partner, and each one is automatically assigned a separate ID
for this connection. If the partner is not yet available, you can reserve an ID as
described in the next section.
Connections in Unknown Project
To do this, highlight the CPU in your project, the connection table appears, select
an empty line,
right-click and activate Insert New Connection
to start the process. Then select as your Connection Partner:
the option "In unknov/n project"
and then the Properties of the S7 connection.
Under Properties, enter a connection name/reference (circled on the slide) and
specify whether the local CPU is to establish the connection (circled on the slide).
Only one partner in the connection is permitted to establish an active connection.
If the connection has not been closed, it will be displayed as an error when
NetPro is terminated, by way of a reminder.
Later, when the other projects have been incorporated into the multiproject,
connections from the various projects with the same reference are merged when
the projects are adjusted. After that point, the address details are known for both
stations and the connections can be loaded into both.
Note

The project merge can either be started from the multiproject or - like with the
subnet merges - in NetPro by activating the menu command
Edit -> Merge Connections...

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 44

System Config

S IEM EN S

SystemConfiguration

Central Engineering System (ES)


C onfiguring
CFC library: Proxy blocks,
fo r fie ld devices and d is trib u te d I/O,
faceplates fo r W inCC,
N etw ork co n fig u rin g : DP m aster

Ind. Ethernet
eporting
C o n fig u rin g

O perator co n tro
m o n ito rin g

A S 414, A S 416,

AS 417

ea ding m easured values and


ing m anipulated variables
PROFIBUS DP

SIMOCODE

SIMOVERT

SIPOS 3 MC

SIPART

SIM ATIC PCS 7

Daio:

ET 200 M

ET 200 iS

ET 200 X

SITRAIN Training for


Fia: ST-PCS7SYS_V70_sy5tkcnf.1\ AutomatonandDrives

15.112008

Siemens AG 2003. Al rights reserved.

C ontent

Page

System Configuration for PCS 7 Components


Configurable Components

......................................................................................

.....................................................................................................................

Using HW Config to Configure the AS


Exercise: AS HW Config (Central AS)

..................................................................................................
..................................................................................................

Task: AS HW Config (PROFIBUS DP CiR Compatibility)

6
8

....................................................................

11

Exercise: AS

HW Config (PROFIBUS DP Set Parameters for CiR O bject)........................................

12

Exercise: AS

HW Config (Set Parameters for PROFIBUS DP CiR M odule)......................................

14

Exercise: AS

HW Config (CPU Process Image Partition) ..................................................................

15

Exercise: AS HW Config (Driver Concept/Symbolic Channel Names) ..............................................


Compiling and Downloading the AS HW-Config ...................................................................................

17
19

Setting the PG/PC Interface for the First AS Download ........................................................................

20

Compiling the AS HW Config and Downloading in STOP Mode ..........................................................

21

Exercise: Download the AS Hardware Configuration in RUN ..............................................................

22

Exercise: Download the AS HW Config to the PLC Check CiR Compatibility-1)..................................


Configuring the PC Station (Overview) .................................................................................................
Set the PC Station (Modules) ................................................................................................................

23
26
28

Set PC Station (Access Point)

29

...............................................................................................................

SCE (Station Configuration Editor Option)

............................................................................................

30

Exercise: SIMATIC PC Station/OS HW Config .....................................................................................


Calling Up NetPro
..................................................................................................................................

32
37

Setting Up a Connection

..................................................................................................................

40

Downloading a Connection ....................................................................................................................


Cross-Project View
................................................................................................................................

42
43

S7 Connections (Stations in Unknown Projects)

44

..................................................................................

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 1

System Config

Training Center
for Automation and Drives

Page

SIMATIC PCS 7 System Training


System Config

SIEMENS

System Configuration for PCS 7 Components


Set PC station
Station Configuration Editor (SCE)

SIM ATIC PCS 7


Siemens AG 2003 AJl rights reserved.

Dale:
15.11.2006
Frfo: ST-PCS7SYS_V70_5ystKonr.3

S IT R A IN Training for
Automation end Drives

C onfiguration

A PCS 7 environment consists of ASs (S7 components with suitable I/O), PCs
used as an ES or OS and networks between these components. There is an
actual configuration and a preset configuration for each component. In addition
communication connections must be set up between the stations.

Actual configuration

With an AS, this is determined by the specific structure of the available hardware
(rack, power supply, CPU etc.). In our case, the hardware was provided in our
training room.
With a PC (used as ES or OS), a virtual structure is created using SIMATIC tools
for the workstation configuration (Set PC station, or Station C onfiguration
Editor). You need to set up the structure yourself (this is generally done when the
PCS 7 software is installed on the PC). With V7.0 and higher, this can be simply
carried out from the central ES (C onfigure Station).

Preset configuration

The preset configuration is created in the SIMATIC Manager within a project on


the ES by using the HW-Config tool in the project. It contains project-specific
parameter settings for the devices used. After completion, the preset
configuration must then be transferred via the network from the ES to the
respective station (AS or PC). In doing so, the load procedure must find the
components of the preset configuration in the actual configuration.

Connection

NetPro is used for this. Connections are created between:


ES-AS, OS-AS, AS-AS (if the latter need to exchange data among themselves).
You also need to download these connections to the respective stations.

Remark

All tools are integrated in the ES software and can either be called directly or in
the context of the components to be configured.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 3

System Config

SIEMENS

Configurable Components

ES/OS
?MMATir
Fie

Edit

Insert

TOJR
FtC

V*v>

D ltfl g?l=l

Window

rt?Jp

I |P |

g ? COIR (C om ponent * )

K S I M A T i r M.w**gcr

CO. Q

File

tfew \otf<ons

Etf:

ln r t

p ic

v/ro>-

Hdp

D itfl 111 il - i \ | j_J F =

* .|> |S |if

B j f~
-a]

O:\PCS7Co**. w C o I r

3 d COLR

COIR

Open Ob*ct

arH-AJt+O

w cnm e

FflO_AS

+ 3 AS 01

SlG iobal labeling fiefld


Open O tjp f

rdhpwo^c*

SIMATIC 3CO & e kcn

p ic

SIMATIC H Stator.

lrw *t ttc -i JOte.r

F<^ntHearch*

5JMATIC PC Station

Multpcoject

iftNerstahsn

R-C

mm

w + ajt-m :*

B
\

SIMATIC 400 Station


SIMATIC 330 Station

SIMATIC H StatOO

Rawtoracfty

SIM ATIC PCS 7

S IT R A IN Tranngfor
Automalion and Drives

Date
15.11 2006
File: ST-PCS7SYS_V70_sys(k onf.4

Sfe-nans AG 20C3. Al ripMs reseivec.

Configuration

Hardware components are used within the project. These include the automation
systems (AS), PCs as operator stations (OS) or engineering stations (ES), and
the networks.

Components

In the multiproject, select the required project, then


right-click and select select Insert New Object and then as required:

"SIMATIC 400 Station" for an AS

"SIMATIC PC Station" for an ES or OS

"Industrial Ethernet" for the plant bus or terminal bus,etc.


When you select the object to insert, a symbol is generated to represent each
device and serves as access point to the configuration.
HW Config

The "Hardware Configuration" tool or "HW Config" for short is used for this. HWConfig is used in the same way for both AS and ES.

AS

To configure the AS, use the mouse to select the symbol representing the
required AS in the SIMATIC Manager (component view), then
right-click and select Open Object
The tool is launched. As an alternative, you can also double-click the hardware
symbol in the right pane.

ES

To configure the ES, use the mouse to select the symbol representing the
required PC in the SIMATIC Manager (component view), then
right-click and select Open Object
The tool is launched. As an alternative, you can also double-click the
configuration symbol in the right pane of the SIMATIC Manager.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 4

System Config

S IE M E N S

AS HW Config
HW Config AS01
_^Tcn

Edr

Insert

PLC

View

O p ieo c

%
AS01 (tonJigufdtion)

Window

H ef

m f t m C SS k?

PttO AS1

wamammmm
DP-Strangl: DP-Maijersy lem

PS 40710*>

Ptofte

Standard
PROFIBUS D

1 CPU 417-4

2I128JW-0

PRORBUS-P

PRORNET IC

ED SIMATIC 300
[03 SIMATIC 400
_ J CP-400
_ J CPU-400
DP-Strcng2: DP master sy

__| FN-400

(,

t _ | IM 400
_ J M7-EXTE
+ _ J PS-400
_ J RACK-40I
4

_ J SM 400

j l3l IM 153 2 Rcd-ndait

SIMATIC HMI

r^l r it / * f i r r v i

Sb'

SIM ATIC PCS 7


Siemens AG 2003. All rights reserved.

HW-Config

(I

M
Module
j JjIc

3
Cr d * N umbei

!M t5 3 2

6?-1532E A 0C W F P

162?

D /1*D C 2A .M *-r>

E $ -3 2 t 7 8 ,-CVm SO

O t

Dale:
1511.2006
Fie; ST-PCS7SYS_V70_sySfconf.5

C
SIMATIC S 7 400
and M7 400
modjfc. fcentidl
recH

.^ 4
-

S IT R A IN Training ice
Automat and O-.ves

To start, the configuration should reproduce the configuration of the devices. The
example in the slide shows an AS configuration. The components shown here
offer settings screens (usually accessible via the object properties). If the
configuring engineer is knowledgeable about the options available and application
at hand, he or she can optimize the components settings offline first. Then these
settings need to be supplied to the devices (by online download to the target
systems).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 5

System Config

S IE M E N S

Using HW Config to Configure the AS


5*5ffW Confnj (AM M (C unfig w .ition)
JJh Katon

ai

Irsert

Ft_C Mew

H IH H H H H H H H I

PRO_ ASj

Cations

W idow

w=ip

xj

^ L g jx l

--

(C u *-

Fd

2clilr

3
4
5
6
7
8
9

"W

iPCS7_V61
p r o fib u s d p '

SIMATIC 400
_ | CP4C0
_ | CFU-400
_ J IM-400
_ J PS-4C0
.r _ J RAD 403

un:

UR2
UR1
UR1
UR2-H
t J ] SW-400
a SIMATIC PC Slaton

101 UR2
MoOJe

Hardware
catalog

Older nutttef

>7iOOIJAOMto*


U rn rfid idcfc 9 doff, not :ufafcAMc*
cc>.

Insertion poufcte

SIM ATIC PCS 7


Siemens AG 2003. All rights fesorvod.

Date:
15.11.2006
FBe: ST-PCS7SYS_V70_3yStkonf 6

S IT R A IN Train'jigfor
Automation and Drives

Using HW Config
You have created one project with an AS and one with an OS. The hardware
configuration must be adapted to the AS and OS you are using. In doing so, the
parts lists for the ASs and PCs in use must be taken into account.
Terms

Tip

Pasting

The HW Config tool refers to a station (AS o r PC). In the right pane, a tree
structure displays the SIMATIC components (hardware catalog). After selecting
a com ponent (arrow 2 in the slide), the associated Order No. and a brief
description are displayed in the com m ent field (arrow 3). If you have not been
able to locate the module (as it is not a current PCS 7 module or is an older
module) select the "Standard" hardware profile (arrow 1 in the slide) and search
again. There you will find all S7 modules that are known in the current version of
the SIMATIC Managers.
If you know part of the order number or designation, you can enter it in the Find
box and click the button (arrow 4) to find the module. The search is only
conducted for the selected profile. Please note that the part designation can
occur multiple times! (If this is the case, continue the search.)
In the SIMATIC Manager select the station/AS in component view, then
right-click and select Open
to open the HW Config.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 6

System Config

Then proceed as follows:


Search in the catalog and check the order number and if necessary the
firmware version of the racks, power supply, and CPU in use (arrow 3).
Use a drag-and-drop operation to insert the located modules in the left
window.
Select the module in the left screen, then
-right-click and select Object Properties... then set the parameters for
the module.
Replace

To replace a rack (or a module inserted in the rack) search for the new, required
module in the hardware catalog. Take the hardware profile setting into account
when doing so. The comment field (arrow 3) displays the corresponding order
number and brief description for the selected component (arrow 2).
Select the correct component, "drag it with depressed left mouse button across
to the rack/module symbol and drop it there. If the exchange is possible, a
message is displayed with the order numbers of the two components and must be
acknowledged. If the exchange is not possible (because the old/new components
are not compatible), the mouse pointer will change to a crossed circle.
In this case, the settings of the old module should be documented before deleting
the module and replacing it with a new one. Then transfer the settings as
appropriate or make new settings.

Note

If you have selected an incorrect slot, you can drag the module to another location
with the mouse. The new location must be free and wide enough (i.e. correspond
to the number of slots required by the module to be displaced).

Remark

The catalog profile (arrow 1 in the slide) was set up with the PCS 7 installation.
You can edit the profile (s7hpro0) that is automatically created by selecting
Options -> Edit Catalog Profile
Here you use the familiar Windows procedure to copy objects from the standard
profile (one window) to the new profile (the other window). After completion, the
new profile can be saved via
Profile -> Save as...
The newly created profile is offered for selection in the profile box.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 7

System Config

S IE M E N S

Exercise: AS HW Config (Central AS)

SIM ATIC PCS 7


S e m e n s A G 2003. A l rrgnts reserved.

Date:

15.112006

1^

Fite: S T -P C S 7S Y S _ V 70_systkonf.fi

S IT R A IN Training for
Automaton
Drives

Exercise

Configure the modules for the central part of your AS. Use the parts list for vour
AS as your guide! (The example refers to the "Saarbriicken" training room in the
Mannheim Training Center.)

Steps

1. Insert the rack (UR=Universal Rack)


2. Insert the power supply (PS=Power Supply)
3. Insert the CPU or supplement the integrated DP interface.
Rename the DP subnet and check properties
4. Insert and set CP for PROFIBUS DP (if available)
Register CP 443-5 Ext as DP master
Rename the DP subnet and check properties
5. Insert and set CP for Ethernet
Create a new Ethernet network for the plant bus and rename it
Assign or verify MAC address, disable TCP/IP protocol

Procedure
Open HW Config

In the project, select the ASxx to be configured (your AS), and


right-click and select Open object
Use the hardware catalog to locate and configure the components (rack, PS,
CPU, CP and I/O modules) in the HW Config for the station.
If you cannot see the catalog, select
View -> Catalog to activate it.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 8

System Config

Rack

In the hardware catalog select the desired rack


SIMA TIC 400 -> RACK 400 -> UR1 then
use drag & drop
to move it to the top left window.

Notice!

For the catalog component you have highlighted, check the detail specifications
in the lower catalog window pane (order No. and comment) so you can insert the
correct components. It is possible that the CPU will not start up if you insert a
component incorrectly!
The slots in the rack are listed in rows. You can now populate each slot (you can
also use "drag & drop).

Power supply

Select slot "1". In the hardware catalog, select


SIMATIC 400 -> PS 400 -> e.g. PS 407 10A
and position it on row 1. This 10 A power supply occupies 2 slots.

CPU

Select the correct CPU from the hardware catalog (for example)
SIMATIC 400 -> CPU 400 -> CPU 417-4 -> V3.1
and drag it to the next free row (row 3).
The CPU with the integrated DP interface occupies two slots. The Properties
screen opens. Select the
New button
to create a new DP network and enter a meaningful name (e.g. DP_subnet1, or
DP_AS01 _int1, or DP_AS01_ext3). In the properties for the selected network
check whether the DP protocol and the desired baud rate are set (default 1.5
Mbaud). The image displayed now represents the PROFIBUS DP with the "DP
master system (1)" identifier. The ET 200M is later appended to this.

Networking CPU via MPI

This is no longer necessary with Version V6 and higher.

Remark

The new Ethernet CP from 6GK7 443-1EX11-0XE0 V2 supports direct addressing


of the card via the known MAC address of the Ethernet CP, therefore, the initial
loading via MPI is no longer necessary.

Additional DP subnet

If an additional CP is connected in the rack for another DP subnet (such as the


CP 443-5 Ext), this CP must be inserted in the rack in HW Config and be
connected with a DP subnet (as the second DP master).
In the HW catalog, select:
SIMATIC 400->CP 400-> CP 443-5 Ext, select the correct CP and use "drag &
drop" to move the CP to the correct rack slot.
In the screen overlaid for the PROFIBUS interface for the CP, select
NEW
to create a new DP network and then rename the network (for example, DP_
Subnet2).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 9

System Config

CP as DP master

Highlight the CP 443-5 Ext in the rack,


right-click and select Insert DP Master System
to name this system as the master for the new subnet. You can use the
graphically displayed subnet for additional ET 200M devices or for PROFIBUS PA
devices via DP/PA link/coupler modules.
If you do not want to configure the CP (no DP hardware is connected, for
example), you must disconnect it from the power source (remove it from the
rack). If it is present in the rack but not in the hardware configuration, the CPU
(depending on the firmware version) may not start up (remain in STOP mode) or
may not be downloaded.
Therefore, if this CP exists in the hardware, it must also be entered in the HW
Config.

Ethernet CP

Ethernet is used as the plant bus by default. Insert the CP in the HW Config. In
the HW catalog, select
SIMATIC 400->CP-400->CP 443-1-> "Concrete CP" and position it in the
rack.
In the overlaid "Ethernet Interface Properties" screen -> Parameters tab, click the
New button
Then, create a new Ethernet subnet (if you have not already done so), rename
the subnet (e.g., "Plant bus") and select this bus to identify the CP as being
networked.
Set a unique MAC address in the project, taking into account other nodes
physically present on the bus that are not part of this project.
It is advisable to use the ISO transport protocol for small networks as it provides
higher performance. However, if you want to communicate over more spread-out
networks that are connected with routers, use the ISO-on-TCP transport protocol
instead.
Please note the address-suggestion made in the parts list of your training
aulomation_sysl em_and deactivate the IP protocol (clear the check box).

Remark

The hardware configuration is downloaded in a later part of the exercise.


Here, the AS is loaded directly via the known MAC address of the Ethernet CP for
the first time. For this to work, the access point S70NLINE must be active on an
Ethernet-capable CP that is connected to the plant bus. (additional settings are
described in the chapter "Configuring the Workstation" under Setting the PC
Interface).
The download also provides the CPU its parameter settings via the Ethernet CP
(therefore the CPU is configured during this procedure).
If you change the PC interface to the integrated Ethernet CP (LAN card or CP
1613), you can then download and debug additional data (hardware configuration
and subsequent software) over the plant bus.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 10

System Config

S IEM EN S

SIM ATIC PCS 7


S o n in s AG 2003. AJl rights reserved

Exercise

Steps

Dale:
1S.11 -2X>B
Ffe: ST.PCS7SYS_V70_sys1konf.11

#1

SITRAIN Training (or

Automation and Drives

Configure the distributed I/O (ET 200M). The configuration is to allow changes in
runtime (CiR=Configuration in Run). Please refer to the parts list for your training
.autQmation_3iaHQD,
1. Activate CiR compatibility
2. Set parameters for CiR object (reserve address range)
3. Set parameters for CiR module
4. Insert and configure I/O modules
5. Set process image partitions (CPU and I/O modules)
6. Assign symbolic names for the I/O channels
7. Compile and download (after changing the PC interface)!

CiR C om patibility (For D istributed I/O Only)


CiR

Additions are to be made to the distributed I/O during runtime, without stopping
the CPU. Select the DP master system (1) shown in the preceding graphic on the
integrated DP interface of the CPU,
right-click and select Activate CiR compatibility
As a result a so-called CiR object is represented on the PROFIBUS DP. This
object needs to be parameterized with regard to future additions of I/O.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 11

System Config

S IE M E N S

Exercise: AS HW Config (PROFIBUS DP Set Parameters for CiR


Object)
i

o b t r r t p r o p r r t lw

u&'icialSotrtgs j

Max. bytes
per slave

The addtoruJnunbef ol the DP *&va ; t Imi.ed


Guaranteed

10

Mannum

40

1 0 x 2 4 4 = 24401/2440 0

r EdieSettry

B uj prameta::

139? m

T it
Tli ypcaJ

I0nw
143 7 m:

Watchdog

CerceH

OK.

SIM ATIC PCS 7

Help

Date:
15.112006
" e : ST.PCS7SYS_V7C_6ystXonf.12

S>emons AG 2003. All nghts reserved.

CiR

Must be made
available
as PII/PIQ via
the CPU
properties!

S |
-

S .T R A IN T ry in g fo ,
^o m atio n and Dnves

Then
right-click and select Properties
to open the screen form above.
The CiR object must retain resources for future DP/PA slaves. Each slave
requires up to 244 bytes (can also be less, depending on the actual I/O modules).
There is also a maximum limit for the number of slaves that can be inserted in the
subnet online.
1. The guaranteed number of DP slaves (ET200, DP field devices) must be
parameterized in relation to future additions. If no "Extra Settings" are selected,
the sum of input and output bytes is automatically displayed.
2. They must be taken into account as sum values for the settings in
CPU Properties -> Cycle/Clock Bit Memory tab -> Size o f the
process images
(for all DP slaves on all subnets).
The CPU properties cannot be changed online!

Note

The maximum CiR synchronization time has a default setting of 1000 ms.
The time associated with the current configuration is displayed in the properties of
the CiR object. The default time and the CiR download process can be influenced
in the software. To this end, the system function SFC104 "CiR" can be called in a
CFC (from the "Standard Library). By parameterizing and downloading this, the
CiR process can be influenced without stopping the CPU.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 12

System Config

S IE M E N S

IjT lf W r o rif h ,
D% St *200

fAni ( ( onfiQU74tion)

Ecu

Inscir

o lcslt-i

S t!

P lZ

<3

'te**

1
io i

PRO J S )

Options

Window

a le :
__

Hdp

if f ic a
__

-.< 5 j *1
1

k?
system 11)

u ft;

X2
XI

op

II

5 I1 2 8 J D R 0

PioMe

PCS7.V61

UPl/DP

IF1

IF2
5

f t CP 443-1

CP 443 5 E.^

PROFIBUS DP
,_J Addition*! Field Devices
3

CiR-Object

Closed-Loop Conbotei
_ J DP/AS-i

_ J D P /P A L rk
_ J ET20GS

_ J ET 2C0SP
_ J ET 200M
IM 153-1
IM 153-1
IM 153-2
ASCI

IM 153-2 FD

"

C etgnBtmn

IM 153-2 HFFO
ET 2005

UR2

ET 20DK

. n 1 DP DP raJef rytfem |11

E>ES? 1bJ ?8a : c -c bo


3 js titelacc r<xS7-oOOSM: FM
fv^TccitFW 356^1 mocMe
c a te n a e di*gcoef3lior.
Insc^ton jwsabfc

S IM A TIC PCS 7

Date:

15.112006

Sfifrio^s AG 2003. All rights reserved.

. #1
File: ST-PCS7SYS_V70_sy$onf.13^

S IT R A IN Training for
Aulorraton a rx l Drives

In the HW catalog, under


PROFIBUS DP -> ET 200M
select your version (e.g. IM153-2) and use the mouse to drag it onto the CiR
object.
Specify the PROFIBUS DP address for the ET 200M on the displayed screen (as
set on the address switches for the IM). After closing the screen, the associated
frame is displayed with a maximum of 11 slots (for I/O modules you can use slots
4 to 11).
Note

Not all IM 153-2 modules are CiR-compatible (pay attention when ordering).
Currently (V6.1) the 153-2 HF and 153-2 HF FO in the V6.1 hardware profile are
suitable for CiR.

Training Center
for Automation and Drives

Page 13

SIMATIC PCS 7 System Training


System Config

S IEM EN S

Exercise: AS HW Config (Set Parameters for PROFIBUS DP CiR


Module)
r. H W t antKj

[ A S O I (I nrifigur.it m o )

SSl itsaon Fdt

insert

FtC

Visv

^ jg jx j

P H (I A S J

options

window

Hefc

-iff] x |

Pio<e

PCS7.V61
_ ] DI-300
SM 321 DIISxDC.
SM 321 DllGxDC.
SM 321 DIIGxDC
SM 321 DIIBxDC.
C.

C I

SM 321 D ll 6xDC.

ISM 321 DI16*DC.

SM 321 DI32*OC.

i 13)

<=
SM 321 DI32xD C/-1
SM 321 DI16xllC

'M 155-2 edurxJart

SM 321 DI16xOD

Slot

Order Number

Module

ra

__..

SM 321 DUfoOCSM 321 DI16*AC1

&!

$ 7 J5 a & A O H N 9 0

*S3t

SM 321 DI32xAC1
SM 321 DI8x4C2

4
5
6
7
8

11j I CiR mcxJulc

^
J

SIM ATIC PCS 7

feS?3?1 r8HQ0-(Vi80
D ig M input trodue Dl 1G> 34VDC
>-rfn haiAuaie end o a tr r fc mtenupi;
fitatnns 15. rectnfijjiable onlne

Date:
15.112006
File: ST-PCS7SYS_V70_systkonM4

Semens AG 2003. All nghts reserved.

S IT R A IN Traring for
Automation and Drives

As the selected IM 153-2 supports CiR, a CiR module is offered in the lower part
of the window from slot 4.
I/O Modules

Take the I/O modules and position them on top of this CiR module in the ET
200M table (as previously for the station, but now with modules from the ET 200M
/ IM 153-2 directory). This way the CiR module is shifted one place to the right,
ready to receive the next I/O module.

Note: Addresses

The CiR m odule reserves an address range for inputs and outputs (the total of
which is less than 244 bytes - they can be addressed via the slave). Using the
module properties, you should reserve sufficie n t address space for modules
to be inserted at a later point in time. If you want to add address space later, you
must switch the CPU to Stop mode.
For example, if the planned configuration is one ET 200M for 8 modules (the
CQrrespondinQ.bus._niQdul.es (hardware) must.be instaltedjjght fronLthe_slari), and
if the initial installation is equipped with 5 Al modules (8-channel), this means that
5x8x2=80 bytes input addresses are used. If you would like to add identical
modules to the three remaining slots while the CPU is in Run mode, you will need
to have reserved 8x8x2=128 bytes input addresses during the initial setup. 1
word=2 bytes per analog value are required.

Note about m odule replacement


When using PCS 7 you can replace modules during operation. Select the ET 200,
and
right-click and select Object Properties -> Operating Parameters tab
Then select the option "Module replacement during operation".
The bus modules listed here must be installed in the rack. If you forget to set this

option and.replag.e_ajnodula later.during_r.untime. a rack.failure jnes.sage.is


issued (as if all modules.had failed).
The power supply for IM is not configured, but an external 24 V supply is possible.

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 14

System Config

S IE M E N S

SIM ATIC PCS 7


Semsrs AG 2003. Al rigMs reserved.

Process Image

Ttr

Data
15.11.2006
Fite: ST-PCS7SYS_VTO_sysonf 15

S IT R A IN Trainingfcr
Au'.omaton atd Drives

The DP master (CP or integrated DP interface on the CPU) cyclically scans the
PROFIBUS DP subnet (circular arrow 1 in the slide). In doing so it passes data to
the slaves (e.g. ET 200M for passing to the output modules) and reads back data
from the slaves (which acquired them from the input modules). The data are
passed through an IM internal buffer.
During each cycle, the DP master writes/reads values to/from all its slaves. The
buffer content forms an image of the inputs and outputs of the modules. The
cycle time is called Ttr = Target rotation tim e and is displayed in the properties
of the CiR object, here IM 153. The DP update cycle runs independently of the
CPU program, but must be at least as fast as the fastest program that processes
the process values.
For evaluation in the user programs, the intermediately stored input data from the
operating system are copied at a defined point in time from the buffer to a CPU
memory area and output data copied from there are written back to the buffer at a
different point in time. The programs can then gain read (I) and write (O) access
to this "process image" memory area.

Synchronization

This ensures that the programs are working with consistent process data. This
means that the operating system must provide for the updating of the process
input image and freeze it, before starting the program. After the program has
been executed and commands have been written in the process output image,
the output image is sent to the DP master. However, as process signals and their
associated processing operate at selectable repetition rates (slow/fast
processes), it is necessary for their synchronization to match as well.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 15

System Config

Process image partition The CPU offers OBs with different speeds in which the user can execute
programs. You can assign a process image partition to the OBs in the CPU
properties - A ssign PIPs (e.g. OB32<->PIP1, OB35<->PIP2, OBx<->PIPs,
where n=1 to 16 is dependent on the CPU). A t the same tim e a suitable PIP
m ust be assigned fo r the individual I/O m odules in th e ir properties.
Driver blocks are used in the PCS 7 software to input and output process data.
These driver blocks m ust run in the same OB th a t updates the PIP o f the
scanned I/O module.
Note

It is useful when wiring the signals between modules to differentiate between slow
and fast signals. A module should be assigned to a PIP that is capable of
delivering signals to the software at sufficient speeds such that the fastest
connected signal is processed currently. If signals are mixed on the module, this
causes slow signals to be read quickly, wasting computing time.

Remember:

If you w ant many, it cannot be fast.


If you w ant fast, it cannot be many.
The CPU cannot co ntin uo u sly w ork in overload. A fter a program med, but
lim ited tim e th is leads to CPU stop!

Training Center
for Automation and Drives

SIMATIC PCS 7 System Training


Page 16

System Config

S IE M E N S

Exercise: AS HW Config (Driver Concept/Symbolic Channel


Names)

S IM A TIC PCS 7
Siemens AG 2003. A l rights reserved.

Date:
15.112006
File: ST.PCS7SYS_V70_systkcr.f.17

S IT R A IN Training for
Automation and Drives

Exercise

The process image partitions are to be updated on the CPU: PIP " I by OB32 and
PIP "2" by OB35. The I/O modules (in the example) must be assigned to process
image partition "1." Give the individual channels of the I/O modules symbolic
names as listed in the parts list for your AS.

Steps

1. Select CPU symbol, open object properties


2. Cyclic Interrupt tab: assign PIP to the OBs
3. Cycle/Clock Bit Memory tab -> check OB85 call
4. Assign symbolic names for I/O channels

Process image partition The CPUs (from about 1998) support process image partitions. The process
image partition is defined in the CPU and for each I/O module (see next section).
The process image is updated by the system through connection to an OB you
selected. The procedure is as follows.
Select the CPU. Open its Object Properties.
Select the "Cyclic Interrupt" tab.
For example, for OB32, select process image partition "PIP1".
For OB35, select process image partition "PIP2".
Select the "Cycle/Clock Bit Memory' tab.
Check or make the following settings:
OB85 call with I/O access error:
With incoming o r outgoing errors only
Size of process input (output) image:
both >= 1024 (default setting depends on the CPU used;

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 17

System Config

Setting parameters for I/O modules


In the upper window, select the ET 200M you want to configure.
In the lower window, select the individual line for the relevant module. Then,
right-click and select Object Properties -> Addresses tab
Click the "Process Image" field. Select the process image partition you want (such
as "PIP1," according to the OB - process image partition assignment for the CPU
made in the previous section).
Repeat the procedure for each I/O module.
This is how you determine how quickly and frequently the CPU updates the data
for the individual module.
"Inputs/Outputs" tab
Here you can make individual adaptations to the connected process signals and
their characteristics for the module and its inputs/outputs.
Symbolic channel names
Select the line with the I/O module. Then,
right-click and select Edit Symbols
to add the symbolic name and possibly a comment for each channel. You enter
this symbolic ID in the symbol table for the S7 program. When you insert the new
driver blocks in a CFC chart, you "only" have to recognize this name again. The
drivers automatically take the settings on the modules, their inputs/outputs, and
their slots into consideration. Additional specifications are not needed. Based on
this unambiguous signal name for CFC, all additional settings are read from the
HW-Config and parameterized on the drivers.
Proposal

Name the module inputs as follows:


Module

Sym bol

Analog input

AI_CH0
AI_CH1

Analog output
Digital input

AO_CH1

Analog output channel 1

DI_CH0
DO_CHO

etc.
etc.

Digital input channel 0


Digital input channel 1

etc.

Digital output channel 0


Digital output channel 1

etc.

The channel d river to be used later in the CFC m ust run in the OB th at also
updates the process image partition fo r the m odule (in our example OB32).

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Analog input channel 1


Analog output channel 0

DO CH1
Caution:

Analog input channel 0

AO_CHO

DI_CH1
Digital output

Com m ent

Page 18

System Config

S IE M E N S

Compiling and Downloading the AS HW-Config

D o w n lo a d the hardw are configuration o n ly a fte r the follow ing steps


have been carried out with N etP ro:
o

The network is configured and connections have been set up from


the OSs to the m onitored ASs.

C onnections w ere also configured between the devices (AS, A S ) to


allow data exchange during process control. See also chapter
"N etw ork C onfiguration".

For te s tin g p u rp o s e s , you can also com pile and download the AS
configuration in the exercise now (the ES is not yet configured). For this
to work, the Ethernet CP o f the ES m ust be in "PG O peration" m ode (see
also the section "C onfiguring the W orkstation").

S IM A TIC PCS 7
Semens AG 2003. A l rignts reserved.

Dale
15.1 1 2006
File: ST-PCS7SYS_V70_systKonf.19

S fT R A IN Trainingfor
Automation *nd Drives

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

JR

Page 19

System Config

SIEMENS

ConfigOverview

SIM ATIC PCS 7


Siemens AG 20C3. Al rights reservec.

Date
15.112006
File: ST-PCS7SYS_V70_ub_pro,1

4>i

S IT R A IN Traningfof
Ay.omat.on and Onves

C ontent
Example

Page
..................................................................................................................................................

PCS Hardware

.......................................................................................................................................

Solution Principle (AS)

2
3

...........................................................................................................................

Project Environment

...............................................................................................................................

Our Plant (Factory 2)

..............................................................................................................................

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 1

Configuration

S IEM E N S

Setting the PG/PC Interface for the First AS Download


SIMATIC Manager - COIR
File

Edit

Insert

PLC

View O p tio n / Window

.< PG r r r n J r r t ^ r

Help

acce;iPsh

P u /K Interface

.R

Object name

PRO_AS
2S AS 01

- fat rre m ra
S

c c & . P o vi o* tfe ^ p p kd lo n

- jn j x

C > I O l R (C o m p o w - n t v i e w ) - - D :\ P C 5 7 C o u r 5 e \ C o lr

WUHE

Symbok name

(STEP 7J

-> ISO Ird

iS'andardlor STEP ?J

i l | S 7 -AS01
I ocrto: c oi arn^ei A; i sgi .rrwrrf J red

6 l) Connections

ISO Ihc EHierrvei . *Raftk R T IS IX L ttH

CP 443-1
CP 443-5 Ext

C P 5 5 1 1 PROFIBUS) <Aaive>

Properties

Dvagnov^ic:

iS C Jd Ettwrrc* - ReaJtek RTL81

PRO OS

ISO Ind. Ettiemel . ncom DcdiiC.

DcJdc

<K FC internal (tocal)

<T" ~

~ r

" j r

lAtsigniriQ Paraoieteft to i'our MDIS CP


Mfo 'hp (SO Protocol!

S70NLINE (STEP 7)-* ISO Ind Ethernet -> Realtek...

Interface?

A dd^enoc

- 1 -

Seed

lc tc * trf> lc Nodcc - IWDUSTRIA1 ETHFRNFT


* 2 ^ A c ff.--fc e K o d

0fc*cr>vi*
iiJ MAC 08-00-06-6E-84-C5
sfj MAC - 08-0Q-C6-91-D2-0F

SIM ATIC PCS 7


Siemens AG 2003. All rights reserved.

j R *k /S le ;

Sisiur

Module ivfc
INC

RUN

CP 443-1

Dato:
15.11.2006
File: ST-PCS7SYS_V70_systKont20

j f p l
t

S IT R A IN Training for
Automaton and Dri-M

Exercise

Change the PG/PC interface S70NLINE to the plant bus CP. Test this setting by
determining the accessible nodes.

S70NLINE

This is the symbolic name used by the SIMATIC Manager and its lower-level
applications for the interface for communicating with other devices. Based on the
setting, the CP (communication path) that was assigned in the screen shown
above is selected.

Procedure

In the SIMATIC Manager, select the menu item


Options -> Set PG/PC Interface.
In our exercise we shall select the Ethernet CP with ISO protocol which is
connected to the plant bus. Click OK to confirm the setting.

Accessible nodes
After changing the interface, click the Accessible Nodes icon in the SIMATIC
Manager. A window opens listing the Ethernet partners that can be reached via
the ISO protocol. In the slide above, a CP 443-1 and an OSM are detected and
displayed.

SIMATIC PCS 7 System Training

Training Center
for Automation and Drives

Page 20

System Config

You might also like