Professional Documents
Culture Documents
6,75$,1
7UDLQLQJIRU,QGXVWU\
SIMATIC PCS 7 AS Engineering
VLHPHQVFRPVLWUDLQ
1 Introduction of the training
SITRAIN
Training for Industry AS system specification and hardware
4
configuration
8 SFC Advanced
9 Syntax Rules
Name: 10 Exercises
Trainer: 11
Training site:
12
This document was produced for training purposes.
SIEMENS assumes no responsibility for its contents. The
reproduction, transmission, communication or use exploitation
of this document or its contents is not permitted without
express written consent authority. Offenders will be liable to
damages. Non-compliances with this prohibition make the 13
offender inter alia liable for damages.
Content 1
1 Introduction of the training..................................................................................... 3
1.1 Learning targets ..................................................................................................................... 3
1.2 Concept of this course ........................................................................................................... 3
1.3 Road map of this course ........................................................................................................ 4
1.4 Additional documentation ...................................................................................................... 5
1.5 Training equipment ................................................................................................................ 6
1.5.1 Automation system ................................................................................................................ 6
1.5.2 Signal Box .............................................................................................................................. 7
1.5.3 Combined Engineering/Operator system ............................................................................ 10
1.6 Simulated model plant in this workshop .............................................................................. 11
1.6.1 Functional process description of the Johnsson plant ......................................................... 11
1.6.2 Plant expansion during the workshop .................................................................................. 13
1.6.3 Connection to the Process simulation in this training .......................................................... 17
1.6.4 Overview .............................................................................................................................. 19
1.6.5 Digital Inputs ........................................................................................................................ 20
1.6.6 Digital Outputs ..................................................................................................................... 21
1.6.7 Analog Inputs ....................................................................................................................... 22
1.6.8 Analog Outputs .................................................................................................................... 22
1.7 Simulation Tools .................................................................................................................. 23
1.7.1 Overview .............................................................................................................................. 23
1.7.2 S7-PLCSIM .......................................................................................................................... 23
1.7.3 Steps for changing to PLCSIM ............................................................................................ 24
Text
Lists Requirements You work on a training
SITRAIN Diagrams Automation of a plant with project following predefined
Course ST-PCS7ASE 1-3 4 reactors tasks during
Siemens theAG
course
© 2012
Functional process
description
independent from PCS 7 System design Decentralized Process Control Determined by the available
System based on SIMATIC PCS 7, training equipment
using 1 ES/OS, 1 AS with
distributed I/O and Industrial The process behavior is
depending on PCS 7 simulated in the CPU of
Component specification Ethernet as System Bus
the AS
Commissioning
Project handling
Multiproject and Multi-user engineering, Update of PCS 7 block libraries with CPU410-5H,
Comparing projects, Versioning using Version Trail
Licenses and current license model with CPU 410-5H
Additional documentation
See [103] PCS 7 V8.2 Engineering System - 03_2016, 2.1.2 for more details
1.5.1 Automation
Automation Systemsystem
in the Training
A standard automation system is used in our training, consisting of:
AS410S
Industrial
Main Components
Ethernet
• a central rack
• a power supply module
• a CPU 410 with integrated DP and PN interfaces
PN • an Industrial Ethernet communication processor
DP
CP 443-1
• various I/O modules on ET200M via PROFINET
• various I/O modules on ET200M via PROFIBUS DP
• a Signal Box
ET 200M
Process signals
Signal Box
A local network allows you to have access to PC and AS of other students. Please, only
do so with permission of the related persons.
Course ST-PCS7ASE 1-6 SITRAIN - Siemens AG © 2016
CPU 410-5H
Beginning from PCS 7 version V8.0 SP1 the SIMATIC PCS 7 process control system
offers an exclusive automation system, which can be used in all domains due to its
versatility.
Depending on the requirements, you can configure it as a:
Standard AS 410S automation system
High Availability AS 410H automation system
Safety-related AS 410F/FH automation system
In our training system we use the AS410S, containing the CPU410-5H.
See [br] SIMATIC PCS 7 CPU 410-5H Process Automation., for more details.
DO16 AO4
DI16 AI8
Analog measurement
Potentiometer
Lamps, relay
Course ST-PCS7ASE
Wiring has been made up to the1 -front
9
connector of the IO modules on the DP ET 200M
SITRAIN - Siemens AG © 2016
rack, containing both a digital and analog input and output module.
The signals can be used in various situations in later tasks.
This chapter’s task will bring the IO signals into the area of configuration: the CFC
charts. Later in this chapter more details.
Layout
DescriptionThe
Signal Boxof the Signal Box have been assigned short names. Initially these
components
Layout names will be used as the so called “symbolic names”. The names me be modified for
specific use of the signals in later tasks.
Emergency
H1 S1
Off
H2 S2
Display 1 Display 2
H3 S3
SITRAIN
Course ST-PCS7ASE
S1 … S4 are switches to be 1used
- 10
as operator input for binary inputSiemens
signals.
AG © 2012
T1 … T4 are buttons also to be used as operator input for binary input signals.
H1 … H4 are lamps indicating binary output signals.
AI0, AI1 are potentiometers to be used as operator input for analog input signals.
The displays 1 and 2 are analog measurements indicating analog output signals or
the current input signals as set by the potentiometers.
The switches below the displays are used to select what the display is indicating: the
analog output or input signal.
The relay LEDs indicate a valve position simulated by a relay. The relay is controlled
by the digital output signal DO 0.0.
Description
Function diagramSignal
of digitalBox
signals
Function diagram
Please do of digital
realize: this issignals
not a wiring diagram. This drawing supplies you with an
overview of the digital signals of the Signal Box and their connection to the IO modules.
spare
H1 H2 H3 H4
T1 T2 T3 T4 S1 S2 S3 S4
Relay
Emergency
Off
spare
I 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7
Digital Input – Hardware Channel # (DP ET 200M slot 4)
SITRAIN
Course ST-PCS7ASE 1 - 11 Siemens AG © 2012
Description
Function diagramSignal Box
of analog signals
Function diagram
Please do of analog
realize: signals
this is not a wiring diagram. This drawing supplies you with an
overview of the analog signals of the Signal Box and their connection to the IO modules.
Display 1 Display 2
#0 #1 #2 #3 #4 #5 #6 #7
IW 512 IW 514 IW 516 IW 516
Analog Input – Hardware Channel # (DP ET 200M slot 6)
SITRAIN
Course ST-PCS7ASE 1 - 12 Siemens AG © 2012
In this training …
In this training …
a workstation is used as a combined Engineering/Operator system.
Combined Engineering / Operator station
The operator station is configured as a so-called single station system in this case.
…other computer
Industrial Ethernet
Automation system
AS 400
Distributed IO
Course ST-PCS7OSE
See [102] PCS 7 V8.2 PC Configuration and Authorization - 03_2016, 3.5.3 for more
details
1-4 SITRAIN - Siemens AG © 2015
Terminal bus
System bus
AS AS AS AS
Team Team
Johnsson & Co, a company supplying products for the food industry, wants to
modernize their plant to increase the production and to make it fit for stronger
Overview of the
environmental process
protection simulation
amendments. The in this base
installed workshop
consists in a process control
system PCS 7 of version V8.2.
Material tanks Reactors Buffer tanks
Storage Shipping
Office and
control room
Dose tanks
V221 V231 V241
0,25 s V211 V212
CV218 V222 V232 V242
0,1 s VF211 VF212 V223 V233 V243
FT216 FT217 FT218
5 kg/s
5s V411 V421
(V412) (V422)
Course ST-PCS7ASE
The existing plant has to be expanded
1 - 13
by additional units and functions.
SITRAIN - Siemens AG © 2016
Starting point
In four different reactors, up to three components are to be dosed, mixed and heated
up.
Material tanks M110, M120 and M130
The components are coming from three material tanks, two with a capacity of 6000kg
and a third with a capacity of 4000kg. The outlet to the dose tanks is done through a
valve and a pump for each tank.
The filling and refilling of the material tanks is not part of this project. It is done
through valves, which states are offered to the control system for displaying.
Dose Tanks D210, D220, D230 and D240
Controlling the amounts of the components to be mixed and heated, dose tanks are
used. Dosing is done for one component at a time. The capacity of each of the dose
tanks is 400kg.
The dose tanks D220…D240 contain 3 inlet valves, one for each component.
The dose tank D210 is equipped with an additional set of 2 fine dosing valves
and 1 analog control valve CV218 to have better control of dosing flow. The
control range is between 0…100%.
The binary valves do only permit or stop the coarse flow / fine flow. The different flow
rate for coarse or fine flow is defined inside the Johnsson simulation by fixed
parameters as result of - as example - different planning of valves and pipe
segments. The analog valve is able to scale the flow rate between 0 …maximum
coarse flow rate.
The outlet valve will be the inlet for the related reactor.
Reactors R310, R320, R330, R340
Four reactors are used for mixing en heating the components. R310 and R320 can
contain 700kg each; R330 and R340 have a capacity of 1100kg. The inlet valve is the
same as the outlet valve of the related dose tank.
Each reactor has a single direction, single speed mixer.
Heating is done by steam piping in the inside of the reactor. A control valve is
controlling the steam flow. There is no cooling circuit.
The outlet of the reactors is done through a valve and a pump, with destination to one
buffer tank.
Buffer tanks B410 and B420
Two buffer tanks, one with a capacity of 12000kg and one having 18000kg are there
for storing the product, before it is transferred to the shipping area. The buffer tanks
have an inlet valve.
The transfer from the buffer tanks to the shipping area is not part of this project. It is
done through valves, which states are offered to the control system for displaying.
Operation
MP MP
Pr AS_Pr
AS AS
S7-Prog S7-Prog
• Sources • Sources
• Blocks • Blocks
• Charts • Charts
ES/OS OS_Pr
WinCC-Appl
ES/OS
• Pictures
WinCC-Appl
Lib • Pictures
Lib
Dose tanks
V221 V231 V241
0,25 s V211 V212
CV218 V222 V232 V242
0,1 s VF211 VF212 V223 V233 V243
FT216 FT217 FT218
5 kg/s
5s V411 V421
X414_1 X424_1
LT414 LT424 Buffer tanks
X414_2 12000 kg
X424_2
18000 kg
X414_3 B410 X424_3 B420
100 % 100 %
(V412) (V422)
Both buffer tanks have to be equipped with additional product concentration monitoring.
Each material 1…3 (corresponding to Material tanks M110…M130) is represented by a
concentration value in range of 0…100%.own analog monitoring process tag:
In B410
X414_1 concentration of material 1
X414_2 concentration of material 2
X414_3 concentration of material 3
In B420
X424_1 concentration of material 1
X424_2 concentration of material 2
X424_3 concentration of material 3
The concentrations are determined as mass fraction [weight %].
Dose tanks
V221 V231 V241
0,25 s V211 V212
CV218 V222 V232 V242
0,1 s VF211 VF212 V223 V233 V243
FT216 FT217 FT218
5 kg/s
5s V411 V421
X414_1 X424_1
LT414 LT424 Buffer tanks
X414_2 12000 kg
X424_2
18000 kg
X414_3 B410 X424_3 B420
100 % 100 %
(V412) (V422)
Course ST-PCS7ASE
The existing process tags V311…V341
1 - 16
are to be replaces by control module variants on
SITRAIN - Siemens AG © 2016
base of a control module type with an optional counter block and optional locking
functions.
The counters for the reactor inlet valves V311…V341 are optional extensions of these
process tags. The counter is able to measure operating hours and/or binary signal
changes and does not need an own signal from the field.
Dose tanks
V221 V231 V241
0,25 s V211 V212
CV218 V222 V232 V242
0,1 s VF211 VF212 V223 V233 V243
FT216 FT217 FT218
5 kg/s
5s V411 V421
X414_1 X424_1
LT414 LT424 Buffer tanks
X414_2 12000 kg
X424_2
18000 kg
X414_3 B410 X424_3 B420
100 % 100 %
(V412) (V422)
Course ST-PCS7ASE
3 different variations of the dosing 1function
- 17
basing on the APL dose block DoseL have
SITRAIN - Siemens AG © 2016
to be implemented for the 3 materials of dose tank D210:
1. Dosing on base of flow rate monitoring FT216 for material 1.
The DoseL block is used in flow mode.
The dose flow is controlled using 2 binary valves (coarse / fine flow: V211 /
VF211).
2. Dosing on base of level monitoring LT214 (Weighing of fill volume using dosing
scales) for material 2.
The DoseL block is used in scaling mode.
The dose flow is controlled using 2 binary valves (coarse / fine flow: V212 /
VF212).
3. Dosing on base of flow rate monitoring FT218 for material 3.
The DoseL block is used in flow mode.
The dose flow is controlled using an analog control valve for material 3 (CV218).
The realization of dosing functions using the DoseL block presumes that all involved
valves are in automatic mode.
The sequential control has to be adapted to the DoseL function.
The sequences for the reactors R320…R340 are The SFC type has to be extended by additional steps
configured as instances of a central SFC type and control strategies.
There are several reasons that we do not offer you a real process for practicing.
A suitable process simulation will replace it, offering you I/O to represent a process in
work.
Process Simulation
The picture below gives you an impression of the relationship between process I/O and
Method in this training
the application running in the automation system, and the simulation representing the
process.
Hardware Software
I/O Modules Driver blocks
Process
AI
images
Control block
Pcs7AnIn
AO
Process Pcs7AnOu
DI
Process value
Motor block
Name Pcs7DiIn
DO
Pcs7DiOu
Johnsson
Process
simulation
Symbol table
SITRAIN
SIMATIC
CoursePCS 7 – Introduction of the training
ST-PCS7ASE 1 - 13 Siemens AG © 2012
Course folder, V8.2.0, ST-PCS7ASE 1 - 17
SIMATIC PCS 7 AS Engineering
The process simulation (running in the CPU as a Function Block) is using the original
Process Image as an interface to the application software in the automation system.
This makes it possible for you to configure functions with channel drivers, similar to real
applications.
The symbol table contains the corresponding signal names for the process values in the
Process Image and their addresses. These addresses should not overlap the addresses
of the real hardware.
4
Johnsson
V311_O Pcs7DiIn VlvL block Pcs7DiOu
V311 3
1 V311_C Pcs7DiIn
2 V311
Process
images
1.6.4 Overview
number DI DO AI AO
open-close valves 25 50 25
status valves 5 5
motors 11 11 11
level measurement 13 13
temperature measurement 4 4
control valve 4 4 4
total 62 66 36 21 4
See [005] Catalog ST PCS 7 T Technology Components - 2015, 8 for more details
1.7.2 S7-PLCSIM
Introduction
In S7-PLCSIM you can execute and test your PCS 7 user program in a simulated
programmable logic controller (PLC). The simulation is executed on your PC as an
optional part of the Engineering System ES, you do not require any S7 hardware (CPU
or signal modules)
Prerequisites
The Automation System AS is emulated on the PC, that means: “it can be placed and
handled directly beside the loaded CFC/SFC program”. You can save the actual state:
loaded program – simulated values – operating mode and you can open this state
again!
You can record and play back your actions of simulation to automate tests. You have
memory access via Process Image: so you can change I/O-values for testing the
reaction in your program (I/O-simulation). Here you can use the I/O-address or the
signal name of the Symbol Table.
The blocks and hardware configuration are downloaded to the simulated PLC. The
SITRAIN simulation system adopts the identity of the loaded CPU and all configured connection
Course ST-PCS7ASE data. 1 - 17 Siemens AG © 2012
The picture shows the first download to be a complete download. Later downloads can
be started for instance from the CFC editor as download of changes without stop of the
simulated CPU.
Communication to WinCC
Steps for changing interfaces (MPI – TCP/IP – ISO ...) for communication access.
to PLCSIM
There are different
Communication
In PCS7to
weWinCC
usually use a “named connection” between AS and OS. But: PLCSIM in the
current version (V 5.4) does not support the named connection.
g
in
ac
pl
re
1 3
SITRAIN
Course ST-PCS7ASE 1 - 18 Siemens AG © 2012
If you want to have a connection between an simulated AS (by PLCSIM) and an OS,
you have to …
1. Start the compilation wizard for the selected OS.
2. Select the S7-program to be compiled.
3. Open the "Select Network Connection" dialog.
4. Change to the regarded Ethernet connection instead of the “named connection” and
finish the OS compilation.
SITRAIN
Course ST-PCS7ASE
1. Open the OS and check if the
1 - 19
tags have moved into the selected Siemens
channel.AG © 2012
2. Check if the access point in PLCSIM fits to this connection type.
3
4 2
SITRAIN
Course ST-PCS7ASE
You can simulate up to 8 different
1 - 20
AS (AS "instances"). Siemens AG © 2012
The procedure is in principle similar to the start of the first PLCSIM instance.
1. Open a new PLCSIM instance.
2. The simulation is started. A new PLCSIM object with another "CPU" object inside is
opened.
3. Select another AS to be simulated and download the S7 program to the new
PLCSIM instance.
See [313] Engineering Tools S7-PLCSIM V5.4 incl. SP3 - 03_2009, 3 for more details
Content 2
2 SIMATIC PCS 7 – Documentation and Online Support ........................................ 3
2.1 Learning target ....................................................................................................................... 3
2.2 Documents available by PCS 7 Installation ........................................................................... 3
2.2.1 Delivered Manuals ................................................................................................................. 3
2.2.2 Delivered Readme Files ........................................................................................................ 4
2.2.3 PCS 7 help system ................................................................................................................ 5
2.2.4 Template for a plant-specific process control manual for operators ...................................... 6
2.3 Additional sources of information........................................................................................... 7
2.3.1 PCS 7 Compendium .............................................................................................................. 7
2.3.2 PCS 7 on Tour (PoT) ............................................................................................................. 8
2.3.3 PCS 7 catalogs ...................................................................................................................... 9
2.3.4 PCS 7 in the inter- / intranet ................................................................................................ 10
2.4 Industry Online Support Internet Portal ............................................................................... 11
2.4.1 Overview .............................................................................................................................. 11
2.4.2 Product support.................................................................................................................... 13
2.4.3 SIMATIC PCS 7 Summary page of the Product Support .................................................... 15
2.4.4 Compatibility tool ................................................................................................................. 16
2.5 Working with mySupport ...................................................................................................... 18
2.5.1 Personal filters and notifications .......................................................................................... 18
2.5.2 Personal documentation ...................................................................................................... 20
2.6 Support Request .................................................................................................................. 22
2.7 Forum - the communication platform for Siemens Industry products .................................. 23
2.7.1 Conferences and Forum management ................................................................................ 23
2.7.2 Interactions in the Forum ..................................................................................................... 25
2.8 Task and Checkpoint ........................................................................................................... 26
The PCS 7 Readme File “pcs7-readme.rtf” contains in section 2.1 “General information”
a complete overview list with PCS 7 Manuals locally available after PCS 7 installation.
Course ST-PCS7SYS 2-2 SITRAIN - Siemens AG © 2014
SITRAIN
Requirements and functional process description 3-3 Siemens AG © 2012
SIMATIC PCS 7 AS Engineering
Programming Instructions for creating driver blocks and with the title "SIMATIC
Programming Instructions Driver Blocks" can be ordered separately. These
Programming Instructions help the advanced SIMATIC PCS 7 user to create system-
conform driver blocks, which can be placed like standard blocks on system plans and
automatically parameterized and interconnected in HW Config.
ATTENTION
Each of the PCS 7 related products come with product-specific information in the
form of readme files.
SITRAIN Readme files contain information which is not included in manuals due to the degree
of topicality.
Requirements and functional process description 3-4 Siemens AG © 2012
The information given in Readme files takes precedence over all the PCS 7 manuals.
pcs7-readme.rtf
Most important Readme file of PCS 7
Containing information also relevant before PCS 7 installation:
Licensing of software to be installed
Hardware pre-requisites and compatibles
Software requirements regarding the operating system or system settings and the
software to be installed
Compatibility to 3rd party products (software)
Required installation steps/ required upgrade steps
Basic information for update of PCS 7 projects
Notes on usage of the product
Summary of changes compared to the former product version
pcs7sysdocu-readme.pdf
Contains information and additions to the manuals of the PCS 7 system
documentation with higher topicality due to the deadline for generation of electronic
manuals.
Known misprints in delivered manuals are cleared here.
pcs7new.pdf
“What’s new in PCS 7?” contains an extract of all new features and changes in the
current PCS 7 version.
Summarized information given in first section “What’s new” in each product /
operation manual.
Access
Access to PCS to PCSdocumentation
7 System 7 Systembydocumentation
online help by online
Since PCS 7 V6.0 SP3, you can also open the complete system documentation for PCS
help 7 in the online help format within the SIMATIC Manager through the help topics.
You can open the "PCS 7 Basic Documentation" online help with the menu command
“Help > Topics in the SIMATIC Manager.”
SITRAIN
Requirements and functional process description 3-5 Siemens AG © 2012
Course ST-PCS7SYS
You can download the documents
2-8
on the website of Industry Online Support, product
SITRAIN - Siemens AG © 2014
support. Search for “Compendium” as shown in the figure below.
Sie können die Dokumente als Beiträge im Produktsupport des Industry Online Support
herunterladen. Suchen Sie nach dem "Kompendium".
Some parts consist in additional check lists supporting a project documentation.
PCS 7 on Tour is a compact manual with the intend to provide fundamental basics on
the system functions and an approach to engineering and configuring automation tasks.
It covers major components (hardware and software) of the system and intends to
deliver a systematic approach right from the start when you begin to know or use the
system.
The manual PCS 7 on Tour can be ordered via the Siemens Sales Support Process
Automation I IA AS S SUP PA. Please contact your local Siemens promoter or sales
department. The manual is in the following languages available:
German, English, Spanish, Portuguese
The catalogs list those products of the Siemens automation product spectrum which are
Weitere Informationsquellen – system SIMATIC PCS 7.
released for the process control
PCS 7 Kataloge
The products contained in this catalog can also be found in the e-Catalog CA 01.
Catalogs are available in print and for download on the Product Support Portal.
12 10 2
3
4 5 6 7
11
Always available (on the right
above the mySupport Cockpit): 9
11. Mobile Use via App - Secure Siemens Support for yourself for on the road!
With our Industry Online Support App you have access to more than 300,000
documents - anytime and anywhere. Whether you have problems during the
implementation of a project, need help for troubleshooting, want to expand your
system or plan a new plant.
12. The HelpCenter will assist you in the best use of the Siemens Industry Online
Support. Here you find user information and hints to support your day-to-day work
with this portal.
A so-called PCS 7 summary page (quick start, "landing" Page) provides a direct access
to all relevant PCS 7 topics, technical information and solutions.
www.siemens.com/industry/onlinesupport/pcs7
Benefits of the "landing" page:
PCS 7-movies/animations, interactive demonstrations, FAQs, new application
examples and much more are listed and sorted.
A pdf document contains a detailed and graphically enhanced overview of the
available application examples, e.g. as print out in the offer, engineering or presales
phase.
Icons make the assignment of the documents easier, as example archived
projects/code, step by step instructions, performance statements etc.
Version-specific access to PCS 7 entries through the Product Views. Select directly
the desired PCS 7 version, to get all results filtered for this version.
3. Once you have chosen the components you require, you can have the compatibility
list shown by clicking the "Show compatibility" button.
Favorites
Favorites are your personal bookmarks in Online Support. Similar to the favorites or
bookmarks of your browser (e.g., Internet Explorer), they quickly take you to your
preferred entries at any time - from anywhere.
You can select your favorites in Product Support, the forum and the service area and
save them in mySupport, organize them in your own folder structure, open and provide
them with tags (keywords) at any time. You can access your saved favorites either via
the "Favorites" category in mySupport or using the "Favorites" link in the mySupport
cockpit in the right navigation pane.
Tags
When you have marked an entry as a favorite, you can additionally provide it with your
own keywords ("tagging"). From these keywords, a "tag cloud" (keyword cloud) is
automatically generated in the mySupport cockpit; the individual terms in the tag cloud
are simultaneously used as links. The more frequently you use a term as a tag, the
larger this term will be displayed. Click on a tag to simply filter your favorite entries -
there is no faster way to access your information.
Course ST-PCS7SYS
Do you want to be informed of 2new
- 19
information concerning your interests? Then have
SITRAIN - Siemens AG © 2014
Online Support automatically notify you.
If you are interested in a large number of entries, identify them using a filter. If you are
interested in a single entry, mark it as a favorite.
To enable a notification, proceed as follows:
In both mySupport Filters and Favorites, you can set how you want to receive
notifications. To do so, select "Set options" in the toolbar. In the "Notifications" category,
a list of all active notifications is created based on your configuration, which gives you a
quick and easy overview.
The transition to the new Online Support included the conversion of your existing
newsletter subscriptions to respective notifications.
Course ST-PCS7SYS Do 2 - 20
you want to combine documents that are particularly important toSITRAIN
you? - Siemens AG © 2014
In the "Documentation" category of mySupport, you can create your personal
document library. You can use this library online in mySupport or generate it in different
formats for offline use.
Naturally, you can also share your personal library with other mySupport users in
mySupport. This allows you to create a collection of relevant documents for your subject
area very efficiently that you can use together with colleagues. Regardless of whether
you are working alone in an office or with colleagues at different locations or traveling,
you can access your personal collection of documents from anywhere.
Up until now, this function has been offered to you in MyDocumentationManager for
configurable manuals. The integration in mySupport makes it even easier for you to
apply entries to your library. In addition, the entire scope of entries is now available to
you. You can apply all entries from Industry Online Support to your libraries, i.e. also
FAQs or product notes.
And if you have already worked with MyDocumentationManager, all libraries you
have created will, of course, still be available in their entirety in mySupport - none of
your work will be lost.
4 2 3
In your personal library, you can create your own folder structure as you would in the
folder structure of a file board. You can store entries from Online Support in the folders
Course ST-PCS7SYS 2 - 21 SITRAIN - Siemens AG © 2014
and build your personal collection of documents. You can customize the structure of the
library to your needs, for example to the structure of your plant or projects.
You can apply entries to your personal library directly from an entry list or the entry
display. Applying an entry to your personal library generates a copy of the original entry
for your own use. This copy will be available to you until you delete it. This applies even
if the original entry is revised or deleted in Online Support.
1. Once a library has been created, you can change it at any time in "mySupport
documentation". Use the "Configure" function in the context menu to show the
structure of your personal library in a second area in addition to the content area. It
allows you to conveniently make comprehensive changes using drag and drop.
Fully configurable manuals are a special case. When you insert a manual of this
type into a folder, the entry will not only be displayed in your folder, but the entire
chapter structure, including contents, will additionally be applied to your folder. This
allows you to easily navigate through the manual. And if you only need parts of a
manual, you can apply only these specific parts to a folder of your library. You can
also subsequently change and restructure a chapter structure that has been
applied.
2. You can let yourself be informed about changes of the entries which are contained
in your personal documentation automatically. You can activate and adapt the
automatic update service with the button "Settings". You select the language, the
interval (day, week, month, quarter) and the norm according to which warning signs
shall be carried out to upcoming updates (ISO, ANSI
3. Using the update function you can synchronize your personal documentation with
the current state of the entries contained in it. This way your documentation always
remains up-to-date. You can take on or reject upcoming updates with the button
"Updates".
4. My productions: When exporting, the contents of the selected folder and all
subfolders are transferred to a file you can save to your location and process. You
can export the contents of any folder of your library - regardless of whether you
have created the folder yourself or applied it from a default document. (In
MyDocumentationManager, these functions were available to you in "Generate".)
To create a Support Request, different options are available to you in Online Support:
You will find the "Support Request" option in the menu on all Online Support pages.
Alternatively, you can create a new request in mySupport in the "Requests" category.
Or directly click on the following link:
http://www.siemens.com/automation/support-request
Tips for creating a request:
Select your product and use case as accurately as possible; try to avoid selecting
"Other". By doing so, you ensure optimum support by our experts and appropriate
suggested solutions.
Did other users have a similar problem? This step already offers frequent problems
and solutions. Take a look – it will be worth your while!
Describe your problem with as much detail as possible. Pictures or explanatory
attachments allow our experts to consider your problem from all sides and develop
solutions. You can upload multiple attachments up to 10 MB per file.
Before each sending, verify your personal contact information and the data you have
entered. The final step additionally offers the option to print the summary.
As a logged in user, you can track the status of your requests online. To do so, navigate
to "My requests" in the "Requests" category in mySupport.
1
2
Course ST-PCS7SYS
1. On the left side, you will find the so-called conference tree.
2 - 23
It allows you to
SITRAIN - Siemens AG © 2014
navigate through the individual discussion areas.
2. The conference overview is the central discussion area of the Technical Forum.
This is where the community meets to discuss technical questions about Siemens
Industry products.
3. In forum management, you will find your personal control center for the Technical
Forum. It allows you to manage your specific profile data and filters.
Conference filter
Add conferences to your personal filter of preferred conferences.
This allows you to enable a notification that informs you when new topics are started in
these conferences.
In Quicklinks, the Technical Forum additionally offers an overview page that contains all
topics of your preferred conferences.
Managing profile
Profile management provides interesting information and functions:
You get an overview of your activities in the Technical Forum.
You can view your rank, any special permissions and your ranking progress.
You can store a signature and a personal description for your profile in the forum.
You have direct access to the quick links to get an overview of all topics you have
contributed to.
User filter
Have you found a user in the Technical Forum who posts entries that are particularly
interesting? Then add this user to your list of "preferred users".
This allows you to enable a notification that informs you when the user has posted a
new entry.
In Quicklinks, the Technical Forum additionally offers an overview page that contains all
topics of your preferred users.
Topic from
conference overview
Reacting to an
existing entry
Do you want to create or format a new entry? The entry editor provides all the
necessary functions.
You can upload and publish in the forum a file with "Add attachment".
You would like to check before the publication how your entry will actually look? A
preview is available for this purpose.
You would like to look at the topic again to which you create an entry? Please, you
used the link over the input area (right mouse button > open in a new tab or window)
Goal
Find out which current version of virus scanners is compatible with your engineering
software.
Use all information sources available:
Readme files in the installation folder
The compatibility tool of the Industry Online Support
Entries in the Product support
Entries in the Forum
Create a Support Request.
Checkpoint
Checkpoint
Content 3
3 PCS 7 Project handling ........................................................................................... 3
3.1 Learning targets ..................................................................................................................... 3
3.2 Multiproject engineering ......................................................................................................... 3
3.2.1 Storage location for multiprojects in case of distributed engineering .................................... 3
3.2.2 Principle of the multiproject .................................................................................................... 5
3.2.3 Project structures ................................................................................................................... 7
3.2.4 Cross-project functions .......................................................................................................... 9
3.2.5 Multiproject: update projects…networks and connections .................................................. 11
3.2.6 Task and checkpoint ............................................................................................................ 13
3.3 TCiR ..................................................................................................................................... 13
3.3.1 The Master Data Library ...................................................................................................... 13
3.3.2 Central update of block types in charts ............................................................................... 16
3.3.3 Data management in case of activated TCiR ...................................................................... 17
3.3.4 How “TCiR: Download required!” Works ............................................................................. 19
3.3.5 TCiR – Block Update after an Interface Change ................................................................. 20
3.3.6 Type change in RUN with local type update in CFC ........................................................... 23
3.3.7 Consequence of TCiR on the OS: Best Practice Procedure ............................................... 24
3.3.8 Summary TCiR .................................................................................................................... 26
3.3.9 Task and checkpoint ............................................................................................................ 28
3.4 Multiuser engineering - Configuration in the network .......................................................... 29
3.4.1 Preconditions ....................................................................................................................... 30
3.4.2 Parallel working in the AS project ........................................................................................ 31
3.4.3 Overview about distributed project organization .................................................................. 34
3.4.4 Organization in the multiproject net ..................................................................................... 34
3.4.5 Organization without multiproject net .................................................................................. 36
3.4.6 Dividing the multiproject without network interconnection ................................................... 38
3.4.7 Recommendations ............................................................................................................... 39
3.4.8 Tasks and checkpoint .......................................................................................................... 40
3.5 Comparing project versions with the Version Cross Manager ............................................ 41
3.5.1 How to Compare Project Versions ...................................................................................... 42
3.5.2 Result of the comparison ..................................................................................................... 43
3.5.3 Display of Changed States .................................................................................................. 44
3.5.4 Other ways of calling VXM ................................................................................................... 44
3.5.5 Display program changes since last download ................................................................... 45
3.5.6 Tasks and checkpoint .......................................................................................................... 45
3.6 Version Trail / Automatic archiving and readback ............................................................... 46
3.6.1 Option package "SIMATIC PCS 7 Version Trail" ................................................................. 46
3.6.2 Version Trail user interface .................................................................................................. 47
3.6.3 Introduction to automatic jobs for archiving and readback .................................................. 48
3.7 License management .......................................................................................................... 50
3.7.1 License types ....................................................................................................................... 50
3.7.2 Handling licenses with the Automation License Manager ................................................... 50
3.7.3 Remotely using License Keys on a license server .............................................................. 52
3.7.4 Checking License Keys ....................................................................................................... 52
3.7.5 Recovering License Keys .................................................................................................... 53
3.7.6 Calculating the process objects for the SIMATIC station ("AS RT PO") and for the OS ..... 55
3.7.7 Booking back Process Objects ............................................................................................ 56
3.8 Current License model with CPU 410-5H ............................................................................ 57
3.8.1 Overview PA Controller CPU 410 V8.1 ............................................................................... 57
3.8.2 System Expansion Card and System Expansion Packages ............................................... 58
3.8.3 Steps for online upgrade of PO volume in brief ................................................................... 61
3.8.4 Creating the PO Activation file ............................................................................................. 62
3.8.5 Sending the PO-Activation file to Siemens .......................................................................... 65
3.8.6 Transferring the PO-Release file and activating the volume ............................................... 67
3.8.7 Use cases for Upgrade of PO volume on redundant AS ..................................................... 69
3.8.8 Online-check of the System Expansion Card ...................................................................... 70
3.8.9 PO-Upgrade - Summary ...................................................................................................... 71
3.8.10 Checkpoint ........................................................................................................................... 71
3.8.11 Changes in the License information .................................................................................... 72
3.8.12 Further facts for compiling and downloading into CPU 410-5H .......................................... 74
3.8.13 Task and checkpoint ............................................................................................................ 75
3.2
Storage Multiproject
location for engineering
Course ST-PCS7ASE
multiprojects in case of
3-2 SITRAIN - Siemens AG © 2016
distributed
3.2.1 engineering
Storage location for multiprojects in case of distributed engineering
Conditions
When projects within a network are distributed among different computers, the following
prerequisites must always be met:
To work in the network, Windows 2008 Server must be installed on the central
engineering station. The distributed engineering stations can use the Windows 7 or
Windows Server 2008 operating systems.
The storage location of projects within the network is specified in UNC notation: e.g.
Course ST-PCS7ASE \\computername\sharename\storagepath
3-3 SITRAIN - Siemens AG © 2016
and not designated with the letter of the drive
(e.g. D:\projects\storagepath...).
Requirements
If you want to distribute projects on different computers within a network, the following
conditions must always be met:
The projects are located in folders that are shared for read and write access.
The folders in which the multiproject or the projects are to be located must be set
for sharing before the multiproject is set up.
The share names must be unique within the network.
The shares and share names of the resources (folders) involved in the
multiproject must not be changed.
Reason: when a project is inserted into the multiproject, PCS 7 generates a
reference to the location of this project. The reference depends on the share and
share names of the resources involved.
A project can only be found using the share name under which it was included in
the multiproject.
For security reasons complete drives should not be shared.
Folders must only be shared in one hierarchy level.
PCS 7 must be installed on the computers where the folders containing the projects
are located. PCS 7 provides the necessary database server functions for accessing
the projects.
If you include projects for which you have configured messages in a multiproject,
Storage location forthemultiprojects
make sure that inofcase
message number ranges ofdo not overlap if you are
the CPUs
using project-oriented assignment of message numbers. If you use CPU-oriented
distributedmessage
engineering
number assignment, such overlapping does not occur.
If you execute cross-project functions, we recommend consolidating all projects on one
programming device/personal computer.
… prior to the CREATION of the multiproject:
If you want to execute cross-project functions while the projects are distributed on
Share
different computers the
then storage
comply withlocation!
the following:
All the computers on which the projects and the multiproject are located can be
reached over the network during the entire editing time.
While class-project functions are executing, no editing must take place.
If the folder in which you create the multiproject was not shared before creating the
multiproject, the UNC path for the single projects won’t be available in the
Shares are
multiproject. Nevertheless thisonly
can be solved by removing the single projects from the
No additional shares in
multiproject andpermissible
reinserting them
onagain after having shared the containing folder.
subordinate or
one level! superordinate folders!
The figure below shows what the single projects in the multiproject should look like.
Engineering Server
Multiproject
Project 1 Project 4 Project 7 Master Data
Library
AS OS ES
AS AS AS AS
The multiproject functionality of SIMATIC PCS 7 provides the option of flexible and
performant project engineering for plants. The main emphasis is placed on parallel and
time saving editing of individual projects which can be managed, divided and merged
with system support.
Course ST-PCS7ASE 3-4 SITRAIN - Siemens AG © 2016
• Master data library with block types, process tag types, control module types and models
• Updating the Plant Hierarchy across all projects or for selected projects
• Functions "Create/Update block symbols" and "Create/Update diagnostics screen" (for identically
named PH) considering all related AS and OS components in the entire multiproject
• Merging subnets and connections with text references of all contained projects
If projects are part of a multiproject, they can be generated in smaller scope and for
better overview. Inter-project mechanisms ensure that a multiproject can be used as
one project.
Course ST-PCS7ASE Examples of such inter-project 3mechanisms
-5 are: SITRAIN - Siemens AG © 2016
Master data library for central data management of block types, process tag types,
control module types and models for all projects
Updating the Plant Hierarchy across all projects or for selected projects
Considering all related AS and OS components in the entire multiproject for the
functions “Create/Update block symbols“ and “Create/Update diagnostics screen“ (for
identically named PH)
Merging subnets and connections with text references of all contained projects
OS compiling with configuration data of several projects
Save as (copy of the multiproject with all projects)
Archiving (zip-archive of the multiproject with all projects)
Project-specific setup
This type of project division is used preferentially if only few project engineers and
engineering stations are available.
Each individual project contains only one AS and one OS, or all AS and OS which a
project engineer is meant to edit.
From a technical
Project structures: point of view, the project
Project-specific setupcontains AS objects, such as CFC and SFC
plans, as well as OS objects, such as images and reports, as illustrated in the figure
below.
Station-granular setup
The station-granular setup is recommended if an extensive project is being edited by
several project engineers.
As opposed to the project-specific setup, all AS and OS are filed separately (granular) in
Project structures:
an individualStation-granular
project. setup
Hence, in the AS project there are no OS objects, and no AS objects in the OS project.
See [1001] Application description 22258951 MP-MU Engineering - 10_2015, 1.3 for
more information.
Boundary conditions
In order to carry out the subsequent project work as rationally as possible, some
preliminary considerations are necessary.
With regard to the issue of how to properly separate the overall task in part
configurations, one must consider individual conditions of the project itself, as well as
those of the available engineering environment. Here are a few examples:
Number of project engineers: How many automation systems must be configured and
in what time? Where can ratio effects be used when configuring?
The number of available engineering stations: Each project engineer who is
responsible for one or several automation systems, has an ES available.
Networking of the engineering stations: Normally, all engineering stations should be
connected consistently to each other via the terminal bus.
Project complexity: How many areas should be automated in the multiproject. In how
many buildings will there be an ES or an OS server positioned at a later stage?
Which automation systems are assigned to which OS server
Configuration duration/effort: The duration can be controlled by the number of
planned project engineers.
The following rules apply:
Only those project components (AS, OS), which are required for the respective
distributed processing should be temporarily moved to a distributed ES.
Only entire projects can be moved to a distributed ES. If you want to edit and test
individual sections of the plant hierarchy separately from the project, you can apply
the "Branch and merge" concept (refer to the PCS 7 Engineering System manual).
An ES is defined for each operator station, which allows the OS to be compiled and
the OS project to be downloaded.
Based on these considerations and the background information from the above
comparison, the structure of the multiproject can be predefined.
Apply function
There are several ways to call up this function, if you have selected a multiproject, a
project or a hierarchy level in the plant view:
The menu command
(Options >) Plant hierarchy > Update in the Multiproject…
via right-click and select: a dialog window is opened in which you can select the
following options:
Combining all PH of all projects of the multiproject:
All hierarchy folders are determined in the entire multiproject and this total
amount is created in all projects of the multiproject.
Export PH of a project into other projects:
Depending on the selection the plant hierarchy of a project selected as template
(or a hierarchy level) is exported into other projects of the multiproject. The
export target can be selected in a further dialog field. There all projects of the
multiproject - except the template project - are labeled as selected. The projects
not desired as export target can be deactivated here.
Result:
In the target projects existing hierarchy folders without identical names are created new
and assigned with the properties of the template folder.
The recreated folders are labeled as "Links" and are only contained as representatives
for the template folder in the hierarchy - optically this is represented with the link ion at
the hierarchy folder.
Hierarchy folders with identical name are recognized in the target project and not
created new. However, they also receive the properties of the template folder. The
Multiproject: Adjust
migration of aprojects…
project with already existing redundant PH configuration is possible.
Merging networks and connections
3.2.5 Multiproject: update projects…networks and connections
Multiproject
System bus (universal subnet through update)
Project 1 Project 2
ES1 ES2
PC1 PC2
Network 1 Network 2
Connection 1 Connection 2
with reference with reference
P C XYZ P C
C AS XYZ C AS
S P S P
P 01 P 02
U U
Project 1 If project 1 on ES1 is not yet included in the multiproject, you can use NetPro, for
example, to configure "Network 1" as the system bus. Connections originating from
AS01's CPU to a station that is not in the same project 1 are set up as connections to
Course ST-PCS7ASE a station in an "unknown project".
3 - 8 For this type of connection,SITRAIN
a "Connection
- Siemens AGname
© 2016
(reference)" is entered in the Properties dialog box (e.g. "XYZ"). It is called an "open
connection".
Project 2 The following applies correspondingly: ... a "Connection name (reference)" is also
entered in the Properties dialog box (e.g. also "XYZ").
Updating projects
From SIMATIC Manager
Subnets and connections that were originally created in separate projects can be
merged as part of the "project update" via
File -> Multiproject -> Adjust projects
The subnets that originally had their own names (e.g. "Subnet 1" and "Subnet 2") are
merged under a new name (e.g. "system bus").
"Open connections" from the two projects having the same reference are closed.
From NETPRO
Merging Subnets in NetPro
In the SIMATIC Manager, the only In NetPro, you can also assign connections that
connections that are merged are those in the have similar or different connection names.
projects that were configured as "Connection
partner in other project" with identical
connection names (reference).
When merging in the SIMATIC Manager, it is When you merge in NetPro, the partner always
not possible to foresee which connection adapts its connection properties to those of the
partner retains the connection properties and local module. Apart from this, it is also possible
which connection partner adapts its to change the properties of connections in the
connection properties (for example, active dialog box for merging connections in NetPro.
connection establishment).
S7 connections to an unspecified partner are S7 connections to an unspecified partner can
ignored. be merged to a cross-project S7 connection in
NetPro.
Goal
Split the project Proj0x into ASProj0x and OSProj0x by moving AS0x to another project
Task: Multiproject engineering
in the multiproject.
Checkpoint
Checkpoint
3.3 TCiR
3.3.1 The Master Data Library
Centralized data storage in the master data library is a requirement for essential PCS 7
The masterfunctions
data library
such as the Import/Export Assistant, the automatic block import into all S7
programs in the multiproject, etc.
SITRAIN
ATTENTION!
Only blocks from the master data library must be used for configuration. This ensures
Course ST-PCS7ASE 5 - 15
that all S7 programs will use the same block types. Siemens AG © 2012
The master data library also ensures that all project engineers work on the same
database. This setup facilitates coordination and organization during the engineering
phase as well as subsequent project expansions/upgrades.
Source Library
The following libraries can be used as master data library:
Existing standard library (e.g. copy of PCS 7 Library)
Sector-specific library
A newly generated project-specific library.
"Blocks" folder
Adaption ofInathis
system attribute for a block parameter
folder the block types used in the projects are copied from the existing libraries
in the blockand
folder of ifthe
adapted, master
necessary, e.g.data library
attributes (S7_visible, S7_m_c, etc.); or new blocks are
created in this folder.
Example: “Operator
control and monitoring”
system attribute for the
selected parameter
Additional entries
because the parameter
is an APL structure
Course ST-PCS7ASE
1. Open the "Blocks" folder of3 the
- 15
S7 Program in the component view of the master
SITRAIN - Siemens AG © 2016
data library.
2. Open the desired block in the LAD/STL/FBD editor by double clicking the block.
Confirm the message saying that the block is protected with "OK".
3. Open the declaration table of the block and open the properties of the respective
parameter via right mouse button > Properties.
4. Select the tab "Attributes" and change the desired attributes.
"Charts" folder
The same applies to charts (CFC, SFC and SFC types) or CFC templates, e.g. from the
PCS 7 Library or projects.
"OS" folder
The library can also include OS graphics and reports.
Advantages:
It is possible to create models containing the interconnected CFC and SFC charts
AND the pictures for the OS. If the model is copied, or replicas are made using the
IEA, the pictures will be automatically adapted.
It is possible to store process pictures as template in the master data library.
User faceplates can be stored in the master data library.
The OS in the master data library can be used as storage location for project
functions, trend picture templates, reports, scripts, etc…
Global Declarations
E.g. units, enumerations (control strategy in BATCH) and Equipment properties
(SIMATIC BATCH).
Plant View
A special feature of a master data library in the multiproject are the folders displayed in
the plant view
Process tag types and
Models.
Both are generated by means of the "Import/export assistant" or the PCS 7 "New
Project" wizard.
Models
…are templates from hierarchy folder (HF), i.e. a hierarchy folder with any subordinate
hierarchy folders + CFCs + SFCs + graphics (when AS+OS are in the same user
project!) of a subsystem.
Course ST-PCS7ASE
If a project-specific modification3 -(e.g.
16
changed attributes) is implemented with blocks in
SITRAIN - Siemens AG © 2016
the master data library (or library of the MP) the action above in the SIMATIC Manager
offers a central and simple possibility of updating these blocks in the AS or S7
programs. The blocks to be updated are selected in the folder "Blocks" of the (master
data) library and the update process is started via
Updating of block types in charts
Options > Charts > Update block types…
2
3
Step 1(3)
Here it is checked whether these blocks exist in the AS or S7 programs (selectable!) of
the multiproject and whether they differ from the blocks in the master data library (time
stamp).
"Download in RUN" column:
This column displays a check box when the following condition is met:
1. The program is in a CPU 410-5H PA.
2. Downloading of changes is possible for this program, i.e., there is no requirement
that the whole program be downloaded.
By selecting the check box, a type update in RUN can be performed for this program
(possible only in a CPU 410-5H PA). In addition, the “Calculate...” button is displayed in
the "Resources" column.
Step 2(3)
As a result, the programs that contain the block types that differ from the ones in the
master data library are displayed. Furthermore, in the field "Consequences" it is shown
which effects the update has on the respective AS.
The update can now be executed by clicking on "Complete" or it can be canceled.
"WORST CASE": If, for example, the interface of a block type is changed, in the field
"Consequence" it will be indicated that the AS can now only be loaded in the STOP
mode. If this is not possible at the moment, the process can be canceled and the
update can be implemented as soon as an AS STOP is possible.
Step 3(3)
Here the protocol for the "central type update" is output.
The CPU 410-5H Process Automation (CPU 410-5H) supports the type update in RUN
mode. This function is supported by the CPU 410-5H with FW 8.1 or higher and PCS 7
V8.1.
It allows you to update the instances after making interface changes to block types and
download them to the target system in RUN mode. If you are using a different CPU
type, an interface change is still only possible in STOP mode.
The abbreviation “TCiR” is also used for this function. It stands for “Type Change in
RUN”.
To ensure that the changed functions can be integrated into the instances without loss
of data, double data storage is temporarily required.
This applies to DBs and PBC instances. The following tables list the data blocks used in
dependence on the functions executed. Furthermore, temporary work memory is
additionally required when downloading and integrating in the AS.
Initial state
Course ST-PCS7ASE 3 - 18 SITRAIN - Siemens AG © 2016
In the following example, 5 instances of an integrator block are offline in the block folder
and downloaded in the AS. Each instance uses one data block.
The following basic steps are then performed during a subsequent download of changes
of a program with changed interfaces on the block instances:
1. The modified FBs and the new instance DBs are copied to a new memory area of
the CPU RAM without overwriting the old versions.
Course ST-PCS7SYS 16 - 20 SITRAIN - Siemens AG © 2014
A copy table is created and downloaded to the CPU as a job list. The information
for this copy table was collected during the previous central type update with the
“TCiR” option checked.
2. If necessary, the current contents of the previous instance DBs for the old FBs
are copied to the new instance DBs according to the copy table.
3. An integration takes place during which editing is switched from the old to the
new FB versions. For processing the FBs (with the same numbers), the new
addresses are assigned in the memory area. Integration also includes the
handling of the PBC instances.
4. The old instance DBs are deleted. The old memory areas for the FBs are
released.
Cyclic program execution of the CPU is stopped for the entire duration of these 4 basic
steps. It does not continue before they are completed.
The number of changed block types and the required modifications to the S7 program
influence the synchronization time.
1. Start the central update of block types in the SIMATIC Manager via the menu
command:
Options > Charts > Update Block Types…
Course ST-PCS7ASE 3 - 22 SITRAIN - Siemens AG © 2016
A dialog box appears where the “Download in RUN” option is checked for the CPU
410-5H. This dialog box also indicates that this function is only possible for the CPU
410-5H.
2. The "calculating…" button provides you with information on the temporary resource
requirements in the AS in which the type change should be made.
3. Click on the “Next” pushbutton. All modified block types in the selected programs
are determined.
4. Beginning from CFC V8.2 it is possible to download block types with modified
TCiR – Type Change – in the interface using the TCiR option too. All changed
in Runvalues
default parameter
parameter
Durchführen der values are listed in detail with the former and the new default value.
Bausteinaktualisierung
Up to PCS 7 V8.1 a download of such blocks was not possible using TCiR and a
CPU stop was required. Confirming this dialog continues to the next page of the
"Update block types" dialog.
5
6
5. During the Type change in RUN in case of modified default values, the user can
choose between 2 options, which are applied for all modified default values in all
Course ST-PCS7ASE corresponding instances. A3 -partial
24 SITRAIN values
selection of individual default - Siemens or
AG individual
© 2016
Determine the number of instances being capable for monitoring and operation, resp.
relevant for communication jobs in the Chart Reference Data, tab "Statistics".
You get the number of temporary required instances per block type from the tab
"Block types".
Use the extended message configuration dialog of a block to determine the number
of PBC.
See FAQ "How can you determine the quantity framework of the communication
instances (PBC) for PCS 7 automation systems?" for more details.
https://support.industry.siemens.com/cs/de/de/view/2446042/en
However, if there are not enough free data blocks or PBC in the AS, you cannot
download in RUN despite the calculation with the result that “Download in RUN is
possible”.
Before downloading, make sure that the changed blocks meet the TCiR requirements
and no undesired plant states can be caused by the changes.
Local update of block types in CFC requires that the regarding block types were
TCiR – Typemanually
Change ininto
copied Run the –
offline block folder of the AS program.
Local update in CFC
In CFC editor, the "Block types" dialog is opened with the menu command Options >
Block Types....
After
Course ST-PCS7ASE confirming with "Yes", the CFC
3 - 26indicates again the status "TCiR:
SITRAINDownload
- Siemens AG © 2016
required!" The local update procedure does not provide a calculation option to estimate
the temporary required resources.
Consequences
3.3.7 of TCiR
Consequence on the
of TCiR – Best Practice Procedure
OSOS:
on the
Best Practice Procedure
Initial state
OS01 OS02
OS01 OS02
Therefore, the following best practice recommendation can be applied only for system
architectures with more than one OS.
AuswirkungThevon TCiR auf die OS –
main principle of the recommendation is, to compile one of the available OS
Best Practice Vorgehensweise
stations before download into the AS, to get a state, where always one OS has access
to a valid data connection.
State after compilation of OS1 in Project ES01 and download in OS01
OS01 OS02
OS01 OS02
OS01 OS02
TCiR - summary
3.3.8 Summary TCiR
• Do not change I/O names and additionally • Create a project backup before running TCiR.
change the block interface: Loss of the • Before running the TCiR, determine the free
process value because interpretation as a data blocks, PBC resources and the available
new block I/O! memory area.
• Avoid a name change of the input parameter • As more instances a downloaded in one step,
for the “MsgEvId” message number. as more temporary resources are required.
• Additional associated values on ALARM_8P • As more instances a downloaded in one step,
or NOTIFY_8P are possible indeed, but this as longer the process is paused.
extension only takes effect after a restart of • The TCiR download of a block with changed
the CPU for system-related reasons. default value is possible still from PCS7 V8.2.
• The download of changes using TCiR is • PCS7 V8.1 allows changes of default values
executed without startup sequence (OB 100). only by STOP of the CPU.
License check
Note that at updating, more AS RT POs may be needed temporarily.
This is the case if counting of AS RT PO is carried out in the CPU by the assigned memory.
Further hints
Create a project backup before running TCiR. If the resources are exceeded, this
allows you to transfer the backup back to your system.
Before running the TCiR, determine the free data blocks, PBC resources and the
available memory area.
TCiR is only supported by the CPU 410-5H with firmware 8.1 or higher.
Change only as many block types as necessary and as few as possible.
Always perform the block update from the master data library. The temporary
resource requirements are calculated only here.
Create your blocks in SCL in line with the recommendations so that they can later be
changed using TCiR. Before activating “Download in RUN”, make sure that your
blocks are TCiR-capable.
Always check whether the “Download in RUN” option is checked before you run the
“Update block types” function for a CPU 410-5H. Later downloading in RUN is only
possible when the option is checked during the type update.
The Type Change in RUN for blocks of a PCS 7-library (APL and Basis Library) is
only released, if in the AS the blocks of a library version >= V8.1 are running.
See [1028] Application note 96839331 "Process automation with the SIMATIC PCS 7
CPU 410-5H controller" - 04_2016, 2.2 and 2.3 for more details.
Goal
Update your AS program with new block types without need of CPU stop.
Optional task: Check the behavior of TCiR when modifying a parameter attribute.
Checkpoint
Checkpoint
Application
If several project engineers are working from their engineering stations on one project that is
Multiuser engineering
available on a central server or on a PC with a shared drive, they can also work on specific
parts of the project at the same time.
OS1_proj
Several project engineers working on the CFCs Several project engineers working on the following
or SFCs of an AS: objects of an operator station:
• Editing different charts from different chart • Edit various process pictures of an OS.
folders.
• Editing different charts from the same chart • Edit various reports of an OS.
folder.
• Working on the same chart.
• Edit various scripts of an OS.
System requirements
3.4.1 Preconditions
Network structure
To load the AS or test OS functions, the relevant engineering stations must be directly
connected to the system bus. (Routing through the Engineering Server is not possible).
There must be a stable network connection between the participating engineering
stations. All stations must see each other in the network neighborhood or in the
SIMATIC shell.
See [1001] Application description 22258951 MP-MU Engineering - 10_2015 for more
information about Multi-User engineering.
ATTENTION!
The potential danger to a smooth workflow is increased by working via the network. If
the network connection fails during a write process, longer waiting times and possible
inconsistencies in the data management can occur.
Multi-User Engineering –
Parallel working in the AS project
3.4.2 Parallel working in the AS project
Editing… Consequence
• … various charts from different chart folders Mutual interference should not be a problem
• … various charts from the same chart folder • Mutual interference cannot be excluded,
depending on the situation, if CFC test mode
ist used (login/logout actions, deleted blocks)
• Access conflicts when activating CFC test
mode at a running CFC compilation.
• … the same chart • Not recommended because mutual
interference.
• If a chart has already been opened by a project
engineer, each additional project engineer will
be informed of this when opening this chart.
ATTENTION!
If several editors are working on the same chart, the view should be updated
frequently (F5). This ensures that the actual current status is displayed.
In general, this mode of operation should be avoided. Simultaneous access to the same
resources should be confined to short actions, such as assigning parameters of same
connections of a specific block type.
For long read or write actions, the project engineers must coordinate among
themselves.
If a CFC that has already been opened by a user is opened by another user, a message
is displayed.
.
Now the user can decide whether he/she wants to open the chart a second time.
The other users who have already opened the chart are not provided with a message
that an additional user is accessing the chart.
Typical conflict situations within CFC and SFC are, for example:
Getting connection
Assigning parameters to blocks
Placing blocks
Defining steps/transitions
ATTENTION!
In the case of access conflicts outside CFC/SFC, the operations are rejected (no
multiuser-compliant message). Simultaneous working in SIMATIC Manager is not
supported outside PCS 7 ES.
Multi-User Engineering –
Priorities of actions
Conflict handling according to the priorities of the action
See [1001] Application description 22258951 MP-MU Engineering - 10_2015 for more
information about Multi-User engineering.
Distributed
3.4.3 project
Overview organization
about distributed project organization
"Save as..."
Course ST-PCS7ASE
The availability of the communication
3 - 39
partners is particularly important for cross-project
SITRAIN - Siemens AG © 2016
actions, such as the setting up of an AS-AS communication or OS compilation.
The following section deals with distributed configuration with and without shared
network.
In the case of permanent network availability, project parts can be moved for editing to
the distributed engineering stations and nevertheless remain simultaneously in the
multiproject.
The project engineers can then access all components of the multiproject at any time.
Besides the required network connection, all PCs that manage such components must
of course be switched on and be accordingly released.
In each case the projects are moved or returned via the system function "Save as…"
with the option of replacing the specific project integrated into the multiproject by the
generated copy.
For performance reasons, we recommend that you use a supported Windows Server
operating system on the engineering server.
MP P1 • Without reorganization
• Add to multiproject
P2 • Select "Current multiproject" P2
• Replace current project
LIB
• Browse...UNC path
2. Editing
ES server ES-x
MP P1
P2- Link * P2
old
LIB
*) Link visible in the project tooltip or in the MP detailed view as UNC and computer path!
Fetching back projects
Course ST-PCS7ASE
Proceed as follows to move 3the
- 40
project back to the original location:
SITRAIN - Siemens AG © 2016
1. Close P2
P2- P2 link P2
3. P2: Save as… old
LIB
Settings:
• Without reorganization
• Add to multiproject
• Select "Current multiproject"
4. Result
• Replace current project
• Browse...UNC path ES server ES-x
MP P1
P2 P2
LIB
Advantages
An OS server can at any time compile other projects with the data from AS stations.
All used program parts are contained in the master data library, which can be
accessed via the network.
An easy archiving of the entire project including all distributed single projects is
possible on the engineering server.
A largely distributed-station project structure and its distributed organization is the
configuration option that promises the highest performance in cases where there is
permanent network availability.
A backup copy of the moved project is kept on the station where the project is moved
from.
Points to note
If, contrary to expectation, a project is not available in the network, this can lead to
long delays and waiting times.
In executing cross-project functions the project engineers must coordinate with each
other to ensure that work in not being carried out at that time on one of the included
projects. Otherwise conflicts can arise.
For performance reasons on the system bus, engineering stations should be
connected to the same switch if possible. By doing so, the data traffic between
engineering stations doesn't appear on the backbone (ring) of the system bus and by
consequence doesn't have an influence on the other communication on the system
bus (AS-AS and AS-OS).
The multiproject functions of SIMATIC PCS 7 are based on the permanent availability of
all included projects. Long waiting periods can occur if one of the included components
cannot be accessed, for example during the opening of the multiproject or while working
with NetPro.
If a permanent network connection is not available the single projects should be
removed from the multiproject net for distributed editing. Reasons for this are, for
example, that not all computers are permanently in the network or that the projects are
purposely edited outside the network (contract award to engineering office /system
integrator, for example).
The removing and reintegration of the single projects is executed via the system
function "Remove for editing…" or "Reapply after editing…"
Procedure
Remove for editing
Proceed as follows to move a project to another location:
Right-click and select the project: Multiproject > Remove for editing
Right-click and select the project: Multiproject > Remove for editing
Target directory
Original path
SITRAIN
Course ST-PCS7ASE ATTENTION! 5 - 14 Siemens AG © 2012
Make sure not to move the project to a different location on the distributed
engineering station. The function "Reapply after editing…" expects the project on the
same location as it was stored by the "Remove for editing…" function.
Advantages
No unexpected delays or waiting periods occur because of missing projects.
During the distributed editing, the project cannot be accidentally accessed (for
example, by the execution of cross-project functions).
Points to note
In working with NetPro, already configured connections can generate warning
messages owing to the missing communication peers. For the duration of the project
splitting, new connections can be created only unspecified via references.
For the compilation of an OS server, all relevant projects (AS projects and
corresponding OS projects) must be brought together centrally again.
The master data library must be managed as local backup.
The individual projects must be archived locally.
To distribute the multiproject, archive it and shift the created ZIP archive to the
decentralized ES with Windows means. After dearchiving remove the projects which are
not required from the multiproject and delete them.
When you have edited the project on the decentralized ES, remove it from the
multiproject and re-integrate it into the multiproject on the Engineering Server.
Advantages
The project engineer can access the master data library.
The import/export assistant (IEA) functions are available.
During the distributed editing, the project is protected against undesired access on
the Engineering Server (e.g. due to executing interproject functions).
Note
Changes in the master data library may only be made at the Engineering Server. The
changes must be made to all decentralized Engineering Stations then.
If all projects which are not required were deleted according to the recommendation,
connections which have already been configured can create warning messages due
to missing communication partners when you work with NetPro. New connections
can only be created as unspecified connections via references for the period of
project division.
In order to compile an OS server, all relevant projects (AS projects and
corresponding OS projects) must be recombined centrally.
3.4.7 Recommendations
We recommend the following procedure when working with multiprojects:
One engineer manages the multiproject centrally. This engineer creates the
structures for the projects. This person also distributes the projects for distributed
editing and returns them again to the multiproject (including synchronization of the
cross-project data and execution of cross-project functions).
The following activities should only be performed on the central engineering station:
Moving, copying, and deleting the projects of the multiproject
Moving projects out of the multiproject for distributed editing
Merging of the projects into the multiproject following distributed editing
It is not possible to make a general recommendation about how many stations a
project should have. We recommend that projects on a distributed engineering
station have only one 1 AS or 1 OS.
Only move the PCS 7 objects to a distributed engineering station that is actually
necessary for editing. This means that all other objects of the multiproject are
available for editing on other distributed engineering stations.
Keep in mind the number of available project editors when distributing the projects.
ATTENTION!
If there is only one OS in the project, this must always be recompiled on the central
engineering station. This ensures the correct structure of the cross-project
connections to the automation systems.
Goal
Move the ASProj08 to another ES for distributed engineering in the multiproject network.
Task: Move a project to another location using "Remove for editing / Reapply after editing"
Goal
Move the ASProj08 to another ES for distributed engineering without the multiproject
network.
Task: Multi-user engineering
Checkpoint
Checkpoint
SITRAIN
Course ST-PCS7ASE 5 - 23 Siemens AG © 2012
Introduction
The Version Cross Manager (VXM) is a separate application you can order as an
option. The Version Cross Manager enables you to quickly and reliably compare the
project data from two PCS 7 projects in order to identify differences. This feature allows
you to recognize if and what has changed.
Requirements
Archived configuration versions must be compared to determine any changes since the
last supply and acceptance, for example, after it was delivered to the customer or after
certification by the Technical Inspectorate or FDA authorities.
This information is important, for example, in the following areas of application:
A previously accepted project status is to be approved after changes were made and
expansions were added. You therefore need to know the status of changes since the
last acceptance.
The contractual and accepted project status has been expanded due to subsequent
changes in requirements and the expansions are to be verified.
In parallel to the commissioning of a project status at a plant, the status was
expanded at an engineering office. The expansions are to be identified in order to
add them to the current project status.
The documentation of an already completely documented project status is to be
updated. It is to be determined which object documentation requires revision due to
changes.
The process control project data of a plant should be synchronized with the planning
data of the plant. To do this, export the project data in the manufacturer-independent
XML-format and import it into CAx systems (CAD, CAE, E-CAD or E-CAE).
Procedure
Course ST-PCS7ASE 3 - 47 SITRAIN - Siemens AG © 2016
First Object . Make the selection and settings you require in the
"Open" dialog box.
First XML File . Select the XML file you require in the "Open"
dialog box.
5. For B, select:
Compare With Object . Make the selection and settings you require
in the "Select Comparison Object" dialog box.
Compare With XML File . Select the XML file you require in the
"Select Comparison File" dialog box.
6. If you only wish to see specific objects, click the icon and make the required
filter settings.
The VXM reads the selected objects/files in, including all lower-level objects, and
carries out a comparison at the same time.
The two objects are superimposed in a comparison tree. The deviations are
displayed with color coding.
9. Navigate in the hierarchy or detail window to the objects for which you require
detailed change information.
10. Select the menu command
File > Print
to print out the results of the comparison.
Result of
3.5.2 the comparison
Result of the comparison
SITRAIN
Course ST-PCS7ASE
After the comparison you get an overview of all the changes between Siemens
5 - 25
the twoAGproject
© 2012
versions. The changes are indicated with the symbols which can be found in the next
paragraph. Using the toolbar in the VXM editor you can browse the changes.
See [103] PCS 7 V8.2 Engineering System - 03_2016, 13 and the Online help for
more information about the Version Cross Manager.
DisplayDisplay
3.5.5 program changes
program since
changes lastlast
since download
download
Goal
Before downloading changes to the AS, a programmer must be certain of the changes
he is downloading. Therefore it is possible to compare the actual version of the project
with a previously downloaded version.
Task: Version Cross Manager
Checkpoint
Checkpoint
SITRAIN
Course ST-PCS7ASE 5 - 31 Siemens AG © 2012
SIMATIC PCS 7 AS Engineering
Version Trail also takes on the complete management of the version history. This
means that, for example, once you completed a version you cannot change it
anymore. Versioning according to validation aspects is automatically performed by
the system in compliance with defined guidelines. For example, the version number
can be increased in increments of 1. Version Trail makes sure that there is only one
valid version with the same designation in the version history.
You can compare an archived version with an existing project or a second archived
version. For this comparison the Version Cross Manager (VXM) is opened.
You can create automatic archiving jobs for projects, multiprojects, and libraries.
Archive operations will then be performed periodically within the defined time
intervals.
You can create automatic readback jobs for block parameters. The block parameters
will then be read back periodically from the selected AS within the defined time
intervals. A version ID is also provided for readback.
Limitations
Only one instance of Version Trail can be opened.
This means: If you have Version Trail open and an automatic job is started at the same
time, it will not be executed.
Versioned project
Multiproject archives
Storage location
Project archives
Version table
SITRAIN
Course ST-PCS7ASE 5 - 37 Siemens AG © 2012
When an archive is created in Version Trail the lower-level structure of the object to be
archived is automatically integrated into the tree structure, AS/CPU objects being
displayed graphically, since these objects can have their own readback jobs assigned.
Information about the storage location of the project data to be archived is required to
be able to create a versioned archive. A useful comment may also be added. If you
select the object of an archive in Version Trail, using your mouse, both pieces of
information will be displayed in separate output fields.
In the version table you can view the list with all archived versions of this object.
Further icons indicate whether there is an automatic archiving or readback job for a
selected object:
An existing job is deactivated (but not deleted). It will not be executed.
The existing job is active and will automatically be executed.
Folders: These are used exclusively for structured layout and storage of versioned
archives. They may contain versioned archives or additional folders.
Version table
shows all versions of the selected object
the following actions can be performed from the context menu of a version:
Delete version: data is deleted from the hard disk and the entry is removed from
the version table
Retrieve version: the version is unzipped at a desired storage location.
Compare version with: if you selected a project, you can compare it with a
different project status. VXM will automatically be started for this comparison,
provided that VXM has been installed on your ES. Projects cannot be compared
on multiproject level.
Versioned project
Aufgabenplanungsbibliothek
Versioned object1 für SIMATIC VT
Creation of a job with Job SIMATIC VT1
standard parameters
Adaption/
modification
of parameters
Job SIMATIC VT1
Limitations
Only one instance of Version Trail can be opened. If an automatic job (archiving or
readback) is started and Version Trail is already open, the job will not be executed.
The Task Scheduler of earlier Windows versions was completely revised by Microsoft
as of Windows Vista.
The following sections describe the procedure of creating automatic jobs for PCS 7
V8 and Windows 7. If you use PCS 7 V8 with a different operating system the dialog
may be different from the one described in this document.
Lizenz-Grundtyp Lizenz-Typ
SITRAIN
Course ST-PCS7ASE 5 - 84 Siemens AG © 2012
Procedure - Drag-and-drop
1. Select the appropriate view using the menu command View > Manage.
2. On your own or the connected computer, open the storage location where you wish
to insert the license keys.
3. On your own or the connected computer, open the storage location from where you
wish to remove the license keys.
4. Select the license keys, hold down the left mouse button and drag the license keys
to the folder where you wish to insert them. The license keys are transferred.
ATTENTION!
As part of the license key safety system, when license keys are transferred, clusters
identified as "defective" are created on the target drive. You must not reconstruct
these clusters, as this will destroy the license keys.
Remotely
3.7.3 using using
Remotely License KeysKeys
License on aonlicense server
a license server
SITRAIN
Course ST-PCS7ASE 5 - 85 Siemens AG © 2012
Procedure
1. The Automation License Manager must be installed on the local computer and on
the server.
2. Then in the Automation License Manager on the local computer you must connect
the server via the menu command Edit > Connect Computer.
3. Now you can use the licenses located on the server. If the connection to the server
is interrupted, you can continue to work for another 3 hours before the infobox
comes about the missing license. The licenses remain on the server.
4. In order to be able to transfer the license keys from the server to the local PC you
must clear the setting "Protect local license keys" on the server. You get to
the settings via the menu command
File > Customize....
Without the license you get the message "Zugriff verweigert / Access denied".
WARNING:
If this setting is disabled, anyone connected to the server can download the license
keys from the server!
Meaning for
License keys
Meaning for
installed software
SITRAIN
Course ST-PCS7ASE
In the figure above you can find5 -the
86
meaning of the icons used for displaying the status
Siemens AG © 2012
of the license keys
Recovering
3.7.5 License
Recovering KeysKeys
License
SITRAIN
Course ST-PCS7ASE
It might be possible to repair a 5defective
- 87
license key or defective authorization. Use the
Siemens AG © 2012
menu command "License Key > Recover" in the ALM (Automation License Manager) to
recover defective license keys and authorizations respectively. It is only possible to use
this function in agreement with Customer Support. Normally you do not need this
function.
You will be in contact over the phone with the licensing hotline during the entire
recovery procedure.
Please have the following information at hand when you call Customer Support:
For a defective license / authorization:
1. Order number (see Certificate of License or Data Medium Designation)
2. Licensing: name of the license key
3. Request code: the code that must be given to the licensing hotline
The hotline then gives you an activation code:
Enter this activation code and acknowledge with OK to execute the "Recover"
function or
Click on Cancel if the license key is not to be recovered.
To save you and and our hotline unnecessary waiting times you can download the
Repair Request Form, fill it in and send it to your hotline. This form can be
downloaded on the Customer Support Site, entry ID 772175.
3.7.6 Calculating the process objects for the SIMATIC station ("AS RT PO")
and for the OS
The required license key for all SIMATIC stations depends on the total number of
process objects loaded and configured in a project (multiproject).
When an AS is loaded, the loaded process objects are evaluated. The following
procedure shows you how to calculate the number of process objects configured in a
project or multiproject.
The number of process objects loaded into the AS is calculated by the executing
application and is subtracted from the available process objects of the license. The
value for the number of available process objects is always updated by the executing
application. The license key "AS RT PO" of the type "Countable Objects" is used.
You can start a function in the SIMATIC Manager that identifies all of the process
objects configured and booked in the Automation License Manager (ALM). The result is
Calculatingdisplayed
the process objects
in the "PCS 7 licensefor the SIMATIC
information" dialog box. This allows you to check
whether the existing "SIMATIC PCS 7 AS RT PO" license or the license you intend to
station ("ASorder
RTisPO") and for the OS
adequate for your project and the number of process objects you can still add to
your project.
SITRAIN
Course ST-PCS7ASE
The POs of the 2nd count are 5only
- 88
visible in the Information dialog ofSiemens AG © 2012
the SIMATIC
Manager. In this way, it might happen that the limit of configurable process objects
has already been reached even though according to the WinCC Explorer display, not
all the POs are taken.
Booking
3.7.7 back Process
Booking Objects
back Process Objects
Use the menu command Options > Charts > Book Back Process Objects to book
process objects back into the Automation License Manager in cases where these relate
to a program that is no longer going to run in the CPU.
The program is thereby deleted from the CPU.
ATTENTION !
It is particularly important to book back licenses if plant engineering is being
performed at different locations, but the process object licenses are required for the
target plant.
Defective CPU:
A new CPU used to replace a defective CPU will be recognized as the previous
download destination, provided that the data stored in the process object info
corresponds to the serial number of the CPU or the memory card. It will be assumed
that the "correct" CPU is connected for older CPU versions that do not allow a serial
number query.
Ab FW Stand V8.1
• 2. Ethernet/PROFINET Interface nun verfügbar!
• Online Erweiterung der Kapazität in 100 PO Schritten
• Type Change in RUN
• Freigegeben bis 70 °C (nur mit V8.1 Version!)
Austauschbare
System Expansion Card
Die innovative CPU 410-5H Process Automation des AS 410 beherrscht mit ihrer
leistungsstarken Hardware und optimierter
Kurs ST-PCS7ASE 3 - 43 Firmware das SITRAIN
gesamte Leistungsspektrum
- Siemens AG © 2015
der konventionellen Automatisierungssysteme AS 412 bis AS 417.
Ihre Automatisierungsleistung lässt sich dabei über die Anzahl der SIMATIC PCS 7
Prozessobjekte (PO) sehr flexibel skalieren. Dazu dienen System Expansion Cards für
100, 500, 1000, 1600 oder mehr als 2000 Prozessobjekte (PO).
Online
3.8.2Upgrade der Prozessobjekte
System einerSystem
Expansion Card and CPU 410-5H
Expansion Packages
Austausch der Karte, Stop der CPU Online Upgrade, kein Stop der CPU
100
1600 2k+ 1000 PO
PO PO PO
500
PO
CPU 410-5H +
System Expansion Card
Bei der CPU 410-5H wird das Volumen der ladbaren Prozessobjekte in der System
Expansion
Intern / © Siemens AG 2014. Alle Rechte Card
hinterlegt. Ist das maximal ladbare Volumen erreicht, so können keine
vorbehalten.
Seite 2 13.06.2014 weiteren Prozessobjekte in diese AS geladen werden. I IA AS S SUP PA
Um dem Kunden einen günstigen Einstiegspreis anzubieten kann das Volumen der
Aktuelles Lizenzmodell mit von
System Expansion Card der100 CPU
PO bis 2600 PO –
410-5H skaliert werden.
Überblick Der Kunde hat immer die gleiche leistungsstarke CPU410-5H und kann diese
entsprechend seinen Bedürfnissen erweitern. Dazu kauft er lediglich zusätzliche
Expansion Packs.
6 x CPU416-5H 6 x CPU416-5H
5 x CPU414-3 5 x CPU414-3
S7-400 CPU
3 x CPU416-2 3 x CPU416-2
3 x CPU417-4 3 x CPU417-4
Somit benötigen Sie als Ersatzteil lediglich eine CPU 410-5H mit einem geringen PO
Volumen. Ab PCS 7 Version V8.1 kann das Volumen der SEC feingranular in Stufen
von 100 PO bis zur maximalen Anzahl von 2600 PO erhöht werden. Das Upgrade der
SEC wird mittels Automation License Manager (ALM) durchgeführt.
Für die System Expansion Card wird dabei ein Hardware-Ausgabestand ab V2 benötigt.
Es wird mindestens eine ES mit PCS 7 V8.1 Installation, das Projekt mit der
Hardwarekonfiguration der CPU 410-5H FW 8.1 und eine online Verbindung zur CPU
vorausgesetzt.
Beim Erwerb der CPU410-5H ist die CPU in der Erstausstattung mit folgendem
Volumen auf der System Expansion Card erhältlich:
100 PO
500 PO
1000 PO
1600 PO
2600 PO
Die System Expansion Card ist nur im Bundle mit einer CPU 410-5H erhältlich.
2. Vorbereitung
Die ES muss über ein PCS 7-Projekt online auf
ALM mit dem Zielsystem verbinden die hochzurüstende CPU 410 zugreifen können.
(CPU 410, die hochzurüsten ist)
Die License Keys der CPU 410 Expansion Packs
müssen für den ALM auf der ES verfügbar sein.
5. PO-Activation File senden Sie übertragen PO-Activation Files per Service Request an Siemens.
PO-Activation File
Eigene Dokumente > Siemens > http://www.siemens.com/automation/support-
Arbeitsschritte
Automation > beim
PCS7 >Online Upgrade des PO-
Activations request
Volumens
PO-Release File
Eigene Dokumente > Siemens >
support.automation@siemens.com
Automation > PCS7 > Activations
Sie übertragen das PO-Release File in das Verzeichnis im Benutzerprofil des aktuellen Benutzers der ES.
Upgrade mit PO-Release File Per Drag & Drop ziehen Sie
7. Zielsystem das PO-Release File auf das
ALM mit dem Zielsystem verbinden CPU 410-5H Zielsystem.
(CPU 410, die hochzurüsten ist) Das Upgrade wird ausgeführt.
Online Die Dauer ist abhängig von
der Belastung des AS.
1. Der Automation License Manager hat Zugriff auf eine Partition, auf welcher sich die
License Keys der CPU 410 Expansion Packs befinden.
Nach jedem Öffnen des ALM
2. Wählen Siemuss der Vorgang des Zielsysteme verbinden erneut durchgeführt werden.
den Menübefehl
Bearbeiten > Zielsystem verbinden > AS 410verbinden…
Online Upgrade des PO-Volumens –
Im Dialogfeld "AS 410 verbinden" werden in der Liste die Automatisierungssysteme
PO Activationangezeigt,
File erstellen
die mit dem Automation License Manager verbunden sind, bzw. wieder
verbunden werden können.
Kurs ST-PCS7V81 4-7 SITRAIN - Siemens AG © 2014
3. Wenn
Der ALM benötigt Sie ein
ein PCS weiteresinAutomatisierungssystem
7 Projekt, verbinden
welchem die hochzurüstende CPUwollen, klicken Sie
eingebunden ist. auf
die Schaltfläche "Hinzufügen".
Kurs ST-PCS7V81 Wählen Sie über den Dialog4 "PCS
-8 7-Projekt öffnen" das SITRAIN - Siemens AG © 2014
Automatisierungssystem aus, für das Sie das PO-Upgrade durchführen wollen.
Beenden Sie anschließen diesen Dialog mit der Schaltfläche "OK".
Dieser Vorgang setzt voraus, dass die hochzurüstende CPU 410-5H in einem PCS 7-
Projekt eingebunden ist.
Online Upgrade
ACHTUNG !
Benutzendes Experten-Modus nur –
PO-Volumens
Sie den im Notfall und mit Unterstützung der Lizenz-
Hotline.
PO Activation File erstellen
4. Ziehen Sie per Drag & Drop die License Keys der CPU 410 Expansion Packs auf
Kurs ST-PCS7V81 4-9 SITRAIN - Siemens AG © 2014
das Automatisierungssystem, für das Sie das PO-Upgrade durchführen wollen.
Wenn Sie zunächst das falsche Automatisierungssystem gewählt haben, können Sie
in dieser Phase die License Keys der CPU 410 Expansion Packs noch beliebig
verschieben.
5. Im nächsten Schritt ordnen Sie die neuen License Keys der System Expansion
Card zu.
Öffnen Sie in der Baumansicht des Automatisierungssystems den Ordner
"Online".
Markieren Sie eine Lizenz und wählen Sie "License Key > Upgrade".
Result
Nachdem Sie den Upgrade-Vorgang angestoßen haben, sind die License Keys der
betreffenden CPU 410 Expansion Packs fest dieser SEC zugeordnet. Eine
Verschiebung auf ein anderes AS mit einer anderen SEC ist nun nicht mehr möglich.
…vom angemeldeten
Benutzer!
Kurs ST-PCS7V81
Es wurde ein PO-Activation 4File
- 10
angelegt im Ordner: SITRAIN - Siemens AG © 2014
Eigene Dokument > Siemens > Automation > PCS7 > Activations
Die License Keys der ausgewählten CPU 410 Expansion Packs werden gelöscht und
stattdessen ein Stellvertreter-Key für das Activation File angezeigt. Im ALM wird z.B.
angezeigt, dass dieses Activation File eine Volumenerweiterung von 600 auf 700 PO
beinhaltet.
ACHTUNG !
Nachdem Sie ein PO-Activation File für ein AS erstellt haben, erstellen Sie bitte kein
weiteres File, solange die Release-Informationen nicht in das AS übertragen wurden.
Ansonsten verlieren Sie die zugewiesenen CPU 410 Expansion Packs und das
erzeugte PO-Activation File.
Nach dem Erstellen des PO-Activation Files sollten Sie keine größeren
Projektaktivitäten anstoßen, bevor Sie den Vorgang nicht (wie nachfolgend
beschrieben) abgeschlossen haben.
Diese Projektaktivitäten sind z.B. Umbenennung des Projektes oder Umbenennung
des AS, Rückspielen des archivierten Projekts, da das erstellte PO-Activation File
eine Namensinformation des Projekts enthält.
Tragen Sie im Eingabefeld "Upgrade CPU 410" ein und klicken Sie auf die
Schaltfläche "Weiter".
7. Unsere Lösungen
Klicken Sie auf die Schaltfläche "Weiter".
8. Problem beschreiben
Mehrere PO-Activation-Files
sind möglich.
Result
In einer E-Mail erhalten Sie innerhalb von 48 Stunden ein PO-Release-File pro
gesendetes PO-Activation-File.
Result
Kurs ST-PCS7V81
Der Automation License Manager
4 - 12
zeigt für die aktualisierte System Expansion Card die
SITRAIN - Siemens AG © 2014
neue PO-Anzahl an.
Nach einem erfolgten Upgrade werden die angewendeten Dateien im Upgrade-
Ergebnis: Verzeichnis
Online gelöscht
Upgrade des PO-Volumens
(PO-Release-File und PO-Activation-File).
Des Weiteren können Sie das Volumen der SEC sowie die lizenzpflichtigen
Prozessobjekte auch im Simatic Manager abrufen unter:
Extras > PCS 7 Lizenzinformationen
Weiterhin werden diese auch in HW-Config im Baugruppenzustand der CPU angezeigt.
Regel: Den gleichen Typ der CPU Expansion Packs in einer geradzahligen Anzahl auf das red. AS ziehen.
Beispiel:
• 2 x 100 entspricht Volumenerhöhung um 100 PO oder
• 2 x 100 und 2 x 500 entspricht Volumenerhöhung um 600 PO
Im ALM erkennen Sie die redundanten Systeme an der Darstellung der Symbole.
Kurs ST-PCS7V81 4 - 17 SITRAIN - Siemens AG © 2014
Das redundante System wird in der Baumansicht des ALM als ein Objekt dargestellt.
Die Anzahl der Lizenzen sowie auch die Lizenznummern der SEC Karten sind bei
einem redundanten System je System einmal vorhanden. Daher sind in obiger
Abbildung unter der Lizenznummer zwei Nummern durch Semikolon getrennt
dargestellt. Es wird nur ein Activation- bzw. Release-File erzeugt, das beide CPU/ SEC
Informationen enthält.
Eine SEC kann nur im Bundle mit einer CPU 410-5H bestellt werden.
Damit das System in den redundanten Betrieb wechseln kann, muss die PO-Anzahl
vereinheitlicht werden, d.h. auf den größeren Wert:
2. Ermitteln Sie die Differenz der PO auf den beiden SEC Karten.
3. Ziehen Sie per Drag & Drop die entsprechende Anzahl von License Keys der CPU
Expansion Packs auf das Automatisierungssystem.
4. Öffnen Sie in der Baumansicht des Automatisierungssystems den Ordner "Online"
und markieren Sie die Lizenz.
5. Wählen Sie "License Key > Upgrade".
6. Senden Sie das PO-Activation File per E-Mail an Siemens.
7. Spielen Sie nach erhalt das PO-Release File entsprechend der Vorgehensweise bei
einem singulären System das PO-Volumen auf die SEC Karte.
Die Vorgehensweise beim Update eines redundanten Systems unterscheidet sich nicht
von der Vorgehensweise eines singulären Systems.
Beim Vereinheitlichen unterschiedlicher Volumen auf den SEC-Karten in einem
redundanten System weist das Programm automatisch der SEC mit dem geringeren
Volumen die Volumenerhöhung zu.
Online-Überprüfung der SEC Karte
3.8.8 Online-check of the System Expansion Card
Die SEC Karte, sowie z.B. das gleiche Volumen beider SEC Karten bei einem
redundanten System, können Sie mittels ALM überprüfen.
Dazu selektieren Sie für das entsprechende AS "Online" und dann im Feld "License
Keys" – Online den entsprechenden Eintrag.
Sollte ein Defekt vorliegen, so wird neben dem OK Button der Button "Details"
eingeblendet. In den Details erhalten Sie dann den genauen Hinweis für den Defekt
(z.B. Keine online Verbindung von der4ES
Kurs ST-PCS7V81 - 18 zur SEC Karte). SITRAIN - Siemens AG © 2014
3.8.9Zusammenfassende Hinweise
PO-Upgrade - Summary
Wenn für eine CPU ein PO-Activation File erzeugt und Wenn für eine CPU ein PO-Activation File erzeugt und
an die Hotline versandt wurde, dann kein weiteres an die Hotline versandt wurde, dann keine
Update an derselben CPU durchführen, bevor der Namensänderungen an dieser CPU und am Projekt
erste Vorgang nicht abgeschlossen wurde. durchführen, bevor der erste Vorgang nicht
abgeschlossen wurde.
Experten-Modus nur im
Notfall und mit
Unterstützung der Hotline
Kurs ST-PCS7V81
Nachdem Sie ein PO-Activation4 File
- 19
für ein AS erstellt haben, erstellen Sie bitte kein
SITRAIN - Siemens AG © 2014
weiteres File, solange die Release-Informationen nicht in das AS übertragen wurden.
Ansonsten verlieren Sie die zugewiesenen CPU 410 Expansion Packs und das
erzeugte PO-Activation File. Des Weiteren wird das zugehörige Release File
unbrauchbar.
Zwischen dem Erstellen des PO-Activation Files und dem Einspielen des PO-
Release Files sollten Sie keine größeren Projektaktivitäten anstoßen. Dies sind z.B.
Umbenennung des Projektes oder Umbenennung des AS, Rückspielen des
archivierten Projekts, da evtl. die Namen unterschiedlich sind.
Benutzen Sie den Experten-Modus nur im Notfall und mit Unterstützung der Hotline.
Prüfen Sie vor einer größeren Funktionserweiterung, ob das Volumen der SEC
ausreichend ist. So können Sie rechtzeitig die Prozedur zur Volumenerhöhung
angehen.
Versehentlich überschriebene PO-Activation-Files oder deaktivierte CPU 410
Expansion Packs können über die Lizenz-Hotline wieder aktiviert werden.
Checkpoint
3.8.10 Checkpoint
Bein AS Download wird die CPU Kennung und die SEC Kennung auf die ES
gespeichert. Somit kann die CPU oder die SEC ohne Abbuchung von AS RT PO
getauscht werden.
Im SIMATIC Manager können Sie eine Funktion aufrufen, die alle projektierten und PCS
7-lizenzpflichtigen Objekte ermittelt. Damit können Sie überprüfen, ob die erworbenen
oder zu bestellenden PCS 7-Lizenzen für Ihr Projekt ausreichend sind bzw., um wie
viele lizenzpflichtige Objekte sich Ihr Projekt noch erweitern lässt.
8. Selektieren Sie das Multiprojekt oder das Projekt.
4. Wählen Sie im Kontext-Menü den Menübefehl PCS 7 Lizenzinformation…
Alternativ können Sie auch unter dem Menüpunkt "Extras" den Befehl "PCS 7
Lizenzinformation..." auswählen.
Das Dialogfeld "PCS 7 Lizenzinformationen" wird geöffnet.
Im linken Feld werden alle installierten lizenzpflichtigen PCS 7-Komponenten und im
rechten Feld die jeweils dazugehörigen projektierten lizenzpflichtigen Objekte
angezeigt.
Kurs ST-PCS7V81
Die nicht ausreichende Lizenzierung
4 - 20
wird angezeigt durch: SITRAIN - Siemens AG © 2014
Die Meldung wird immer sofort ausgelöst beim Ladevorgang, bei dem die nicht
ausreichende Lizenzierung festgestellt wird, und wenn sich die Differenz durch den
Weitere Ladevorgang ändert.
Besonderheiten Danach
beim erfolgt die Meldung
Übersetzen undimLaden
Abstand von ca. 6 Stunden.
3.8.12 Further facts for compiling and downloading into CPU 410-5H
Beim Übersetzen wird automatisch ein CFC-Plan "@PA-CPU" erstellt, der eine
Instanz des Bausteins "PA_CPU" enthält. Dieser CFC-Plan wird auch in den OB1
eingebaut.
Der Baustein "PA_CPU" ist in der CPU 410-5H PA erforderlich und dient zur
Lizenzüberwachung. Er ist als FB16 in der CFC-Library im Verzeichnis "ELEM_400"
verfügbar.
Beim Laden in die CPU 410-5 PA wird automatisch der CFC-Plan "@PA-CPU" mit
dem Baustein "PA_CPU" geladen.
Goal
During the development, programmers often use a test CPU in their office. While
programming, the charts are downloaded into this test CPU and by consequence,
process objects are booked and your license will be decremented. After the
development phase, commissioning will start and you will have to download the
program into the customer's AS. In order to avoid booking the PO's twice, the PO's have
Task: to bemanagement
License booked back before starting the commissioning on the new CPU.
Checkpoint
Checkpoint
SITRAIN
Course ST-PCS7ASE 5 - 91 Siemens AG © 2012
Content 4
4 AS system specification and hardware configuration ......................................... 3
4.1 Learning target ....................................................................................................................... 3
4.2 Memory concept of the S7-400 CPU's .................................................................................. 3
4.2.1 Overview ................................................................................................................................ 3
4.2.2 Load memory ......................................................................................................................... 4
4.2.3 Work memory (Main memory): .............................................................................................. 5
4.2.4 System memory: .................................................................................................................... 6
4.2.5 Online view for memory allocation ......................................................................................... 7
4.3 Important CPU settings .......................................................................................................... 8
4.3.1 Why using process image partitions (PIP) ............................................................................. 8
4.3.2 Cyclic interrupt OB's <> PIP <> I/O module .......................................................................... 9
4.3.3 Startup behavior .................................................................................................................. 10
4.3.4 Cycle settings....................................................................................................................... 11
4.3.5 Local data settings ............................................................................................................... 12
4.3.6 Default Parameters of the CPUs ......................................................................................... 13
4.3.7 PA Controller CPU 410-5H .................................................................................................. 13
4.3.8 Tasks and checkpoint .......................................................................................................... 14
4.4 Behavior when maximum cycle time exceeded ................................................................... 15
4.4.1 @CPU_RT chart – CPU_RT block type .............................................................................. 15
4.4.2 CPU_RT: Functions ............................................................................................................. 16
4.4.3 Result in the OS: AS block icon / Faceplate ........................................................................ 17
4.4.4 CPU overload scenarios ...................................................................................................... 20
4.4.5 Task and checkpoint ............................................................................................................ 23
4.5 Updating the HW Catalog .................................................................................................... 24
4.5.1 Installation of HSP and HUP................................................................................................ 24
4.5.2 Deploying new hardware as replacement ........................................................................... 24
4.5.3 Integrating third-party DP, PA and HART devices with GSD files ....................................... 25
4.5.4 Integrating third-party DP, PA and HART devices with EDD files ....................................... 26
4.6 Time synchronization ........................................................................................................... 27
4.6.1 Time synchronization in a workgroup .................................................................................. 28
4.6.2 Time synchronization in a domain with one hierarchy ......................................................... 29
4.6.3 Time synchronization in a domain with multiple hierarchies ............................................... 30
4.6.4 Selecting the time master .................................................................................................... 31
4.6.5 Additional settings for the CPU ............................................................................................ 33
4.6.6 Time synchronization in SIMATIC mode: Integrated interface of the CPU 410H ................ 34
4.6.7 Time synchronization in NTP mode (For CPU 41x-3IE) ...................................................... 35
4.7 Redundant (Fault tolerant) Automation Systems................................................................. 37
4.7.1 Redundancy Concept of PCS 7 ........................................................................................... 37
4.7.2 Fault-tolerant solutions for the AS ....................................................................................... 38
4.7.3 Fault-tolerant solutions for the IO ........................................................................................ 39
4.7.4 Fault-tolerant solutions for the IO – CFC libraries ............................................................... 40
4.7.5 Y Link: Gateway between redundant and non-redundant PROFIBUS DP ......................... 41
4.7.6 Connection of PROFIBUS PA to a redundant PROFIBUS DP ........................................... 42
4.7.7 Redundant PROFIBUS PA .................................................................................................. 43
4.7.8 Fault-tolerant solutions for the plant bus ............................................................................. 44
SITRAIN
Course ST-PCS7ASE 4-3 Siemens AG © 2012
The load memory can be divided into the external and the internal load memories.
The user program is buffered on the User programs can be set to RUN despite…
Memory Card despite… • Program size is larger than the internal RAM
• loss of power supply
• missing buffer batteries
The program size is restricted by available The user program is not buffered on the
internal load memory. Memory Card in case of…
The user program cannot be set to RUN, if the • loss of power supply
load memory is too small. • missing buffer batteries
The following points determine the decision on which memory card to use:
Do you wish to retain the user program on the memory card when the power is OFF
and without a back-up battery? If so, this would necessitate the use of a flash
memory card.
ATTENTION!
If you use a flash memory card without back-up batteries, the blocks in the RAM part
of the load memory and the data (main memory and system memory) will be lost
when the power is OFF.
Do you wish to be able to change the user program in RUN mode, and is the
program too big for the internal RAM? If so, this would necessitate the use of a RAM
memory card. When using a RAM memory card, the system must be battery-
operated so as to back up the RAM memory card data and the data in the internal
RAM if there is a power failure.
Size of the process image (in bytes; in the "Cycle/Clock marker" tab)
Communication resources (in the "Memory" tab)
Size of the diagnostics buffer (in the "Diagnostics/Clock" tab)
Quantity of local data for all priority classes ("Memory" tab)
The main memory is reorganized when the system data is loaded into the CPU. As a
result, data blocks which have been generated by SFC are deleted, and the other data
blocks are preset with initial values from the load memory.
Size of the process image 12 bytes per byte in the process Code memory
(inputs) input image
Size of the process image 12 bytes per byte in the process Code memory
(outputs) output image
Size of the diagnostics buffer 32 bytes per entry in the Code memory
diagnostics buffer
Quantity of local data 1 byte per byte of local data in Data memory
the data memory
The system memory (RAM) contains the memory elements which any CPU makes
available to the CPU, such as
markers (M),
times (T) and
counters (Z).
Moreover, the system memory also contains the block stack and the interrupt stack.
There is also temporary memory capacity in the CPU's system memory reserved for the
local data stack, for the diagnostics buffer and for communication resources. This data
in the system memory's temporary memory only remains valid while the block is active.
Once the block has been closed, the data is no longer retained in the main memory
(temporary local data).
Program processing takes place exclusively in the area of the main memory and
system memory.
Wählen Sie in SIMATIC Manager die gewünschte CPU oder führen Sie den Mauszeiger
nach unten und klicken Sie mit der rechten Maustaste auf
Online view on the memory usage
Zielsystem > Baugruppenzustand > Speicher
SITRAIN
Course ST-PCS7ASE 6-3 Siemens AG © 2012
Recommended setting!
Reason: in case of a warm restart, the
current process parameters are not
reset to their initial values.
Course ST-PCS7ASE
Make sure to keep the default setting
5 - 19
for "Warm restart." In thisSITRAIN
case,- Siemens
the current
AG © 2014
process parameters are not reset to their initial values.
Another factor, that plays a role in terms of startup characteristics, is the fact that a
PCS 7 AS is always equipped with a backup battery and a RAM memory card.
See [103] PCS 7 V8.2 Engineering System - 03_2016, 9.9.4.7 for more details
Default setting
Should not be changed
All channel driver blocks (e.g. CH_DI) are configured to a symbolic address from the
process image in PCS 7 and do not access the I/O directly.
Local data is derived from the declaration section of the logic blocks and centrally stored
in the local data storage area. This means that the local data requirement increases
each time instances of FBs or FCs are added to the charts.
On the "Memory" tab, you can define the local data size in the work memory for each
Important CPU settings
individual OB. This value must always be beyond the particular local data requirement.
Local data settings
Each cyclic interrupt OB is assigned a local data size by means of its priority. OB 32, for
example, has the priority 9 and OB 35 the priority 12.
The following table shows the default parameters regarding the performance of the
CPUs for PCS 7 projects. These values are set as defaults for the configuration of a
CPU with PCS 7 software.
They suffice for typical applications but can be changed within limits as required for
configuration.
Standard AS
The CPU 410-5H Process Automation is a controller of the latest generation. This
controller is specifically designed for the SIMATIC PCS 7 control system. As with
previous controllers of the SIMATIC PCS 7 system, the CPU 410-5H Process
Automation can be used in all Process Automation industries. The very flexible
scalability based on PCS 7 process objects makes it possible to cover the entire
performance range from the smallest to the largest controller, in standard, fault-tolerant
and fail-safe applications with only one hardware.
The CPU 410-5H can be used with PCS 7 V8.1 or higher.
To use a CPU410-5H you must create a new configuration. The parameters of a CPU
410-5H are set to PCS 7 default values when a new configuration is created. Some
parameters that were previously freely assignable cannot be changed in the CPU 410-
5H. You can transfer charts from existing PCS 7 projects.
AS410H
See [103] PCS 7 V8.2 Engineering System - 03_2016, 4.7.4 for Default performance
parameters of the CPUs for PCS 7 projects.
See [513] PCS 7 CPU 410-5H Process Automation - System Manual - 09_2014, for
more information about CPU 410-5H.
Goal
PCS7 requires some specific hardware settings. In this exercise you will check and if
Task: Important CPU
necessary settings
modify these settings.
Checkpoint
Checkpoint
Course ST-PCS7ASE
The function block CPU_RT automatically
4 - 13
carries out all necessary steps in order to
SITRAIN - Siemens AG © 2016
reduce the cycle over load of a PCS 7 controller.
When compiling the CFC with "Generate Module Drivers", a chart called "@CPU_RT"
will automatically be inserted. This chart already contains the CPU_RT block. The block
is included in all necessary cycles e.g. OB100, OB1, OB3x and OB8x.
The function of the "CPU_RT" block to determine the performance data requires a CPU
firmware version supporting the system function SFC 78. For single CPUs this is
currently firmware V5.0. For H-CPUs (Fault-tolerant Systems) a firmware version
including SFC 78 is in preparation.
The "CPU_RT" block will be automatically included from the module driver wizard
regardless of the used CPU and CPU FW. With PCS 7 V7.0, and in connection with
the new library, all controllers will get the new cycle overload behavior.
By updating an existing PCS 7 project without using the new functions the CPU_RT
block will not be included by the driver wizard.
For the complete new functionality including cycle over load behavior and cycle
performance analysis, the SFC 78 and the option Asset Management are required.
Depending on the CPU/FW used and whether or not Asset Management is
implemented, the functions of CPU_RT will be displayed and parameterized as follows:
* No operator message "Net time consumption of all OBs exceeds max. limit", as
performance data are not calculated.
If the option Asset Management is available, then the display of the cycle performance
data is provided on the OS/MS.
With a mouse click on the Asset block symbol (Controller) the faceplate will show the
overall controller load.
CPU overload
Result in the OS: AS block icon / Faceplate – Performance
Performance view
Block icon
for AS
Net runtime
Course ST-PCS7ASE
Net runtime is the runtime required
4 - 15
for the computation of the code placed in OB3x if
SITRAIN - Siemens AG © 2016
it would not be interrupted by higher-priority OBs.
Gross runtime
Gross runtime is the runtime required for the computation of the code placed in OB3x
if it is interrupted by higher-priority OBs.
Overall load bar
The vertical bar of the overall utilization in % (overall cycle time of CPU) is the sum of
all net runtimes (cycle times) of all OB3x, OB8x and the OB1
An additional Asset Faceplate is available for the detailed analysis for all different OB
levels.
The total cycle load of a controller should be not more than 70-75% after
commissioning.
Under the assumption that 20% of the cycle time is used for communication and
acyclic events leaves this a spare time of 5-10 % available for further program
expansions and additional communication jobs
See [240] PCS 7 Maintenance Station - Function Manual - 03_2016, 6.11.3.10 and
following for the description of AS faceplate views.
OB3x view
Reset display of
measurements
The "OB3x" view offers you the net as well as the gross runtime (in ms) of the individual
CPU overload Faceplate
cyclic – OB8x OB1: Runtime of the error
interrupt OB's.
OB's and OB1
Course ST-PCS7ASE 4 - 16 SITRAIN - Siemens AG © 2016
View OB8x OB1: Runtime of the error OB's and OB1
OB8x view
The "OB8x OB1" view offers you the net runtime (in ms) of the individual error OB's and
OB1.
Parameter
view
If the option Asset Management is used, the parameterization of the overload behavior
will be carried out in the Asset CPU faceplate.
If the option Asset Management is not available, the parameterizations need to be done
Course ST-PCS7ASE directly on the CPU_RT function block. The function block is included
4 - 18 on theAG
SITRAIN - Siemens @CPU_RT
© 2016
chart. The necessary function block parameters are explained below.
The "@CPU_RT" is a system chart. Please do not delete this systems chart!
SITRAIN
Course ST-PCS7ASE
If the overall utilization, the sum7 -of
50
the average values of all net runtimes (in % of OB3x,
Siemens AG © 2012
OB8x + OB1), exceeds the “Overall Utilization Alarm Limit”, the message “Net Time
Consumption of All OBs Exceeds Max. Limit” will be shown. The maintenance status
MS is set to “Maintenance demand”.
This message is a preventive maintenance message and allows the user to adapt the
CPU program to avoid a CPU overload.
CPUs without SFC 78 support will not signal the excess of the net time consumption.
CPU overload
Scenario 2: OB Request Error (Maintenance required) –
Alarms
SITRAIN
If an OB 1 is subsequently executed again (cycle checkpoint reached), the Maintenance
Course ST-PCS7ASE 7 - 51 Siemens AG © 2012
State will be reset and this control system message will be marked as "going out".
In this case the button will appear in the overview area. Clicking this button will open
SITRAIN
Course ST-PCS7ASE
the "Highest priority alarms" 7window
- 52
in which the cycle time monitoring alarms will be
Siemens AG © 2012
shown.
SITRAIN
Course ST-PCS7ASE
When the configured scan cycle monitoring time (HW Config -> CPU Siemens
7 - 53
Properties) is
AG © 2012
exceeded (PCS 7 default: 6000ms), the message "Cycle time exceeded: 6001ms,
OB1" is output and the maintenance state of the CPU is changed to "Bad or
maintenance alarm“. The following events can lead to a cycle overload:
too high communication load
frequent alarm events
frequent acyclic fault events (flutter alarms)
incorrect setting of time interrupts when making additions to the program
Goal
When generating the module drivers for the very first time during compilation of the
PCS7 program, all error OB's are automatically generated. This causes that the CPU
never goes into STOP mode … unless by a time error due to a CPU overload
(exceeded cycle time of OB1 or OB3x). This exercise shows you the behavior of a
Task: CPU PCS7 program during such a cycle overload.
overload
Checkpoint
Checkpoint
SITRAIN
Course ST-PCS7ASE 7 - 55 Siemens AG © 2012
These module drivers and their proper integration into the S7 program form the basis
of hardware component diagnostics and status information.
New HSPs are released together with new STEP 7 versions. Never install a STEP 7
version which is more recent than the one officially released for the PCS 7 version to
use these HSPs.
See [124] PCS 7 Compendium Part D - Operation and Maintenance - 01_2015, 3.1
about integration of new hardware using HUP/HSP.
If no successor module has yet been listed in the manual titled "PCS 7 – Released
Modules", and no related information appears in the PCS 7 Readme (online), the
successor module can be used in spare part-compatible operation. The replacement
scenario is described in the corresponding delivery release.
4.5.3 Integrating third-party DP, PA and HART devices with GSD files
Field devices made by any manufacturer can be integrated via the standard GSD file
(standard slaves). This type of integration is used for PROFIBUS DP, PROFIBUS PA,
and HART devices.
The configuration is set by means of HW Config. The default parameter assignment for
the device is also defined via the GSD file. Parameter adjustments must then be made
using a proprietary tool; alternatively, in the case of devices integrated via EDD
(Electronic Device Description) files, the adaptations can be made using SIMATIC PDM.
Data can only be exchanged between the master and a field device if the master is
aware of the device-specific parameters and data formats. The field device
manufacturer supplies this "knowledge" in the form of a GSD file.
GSD files contain information about:
Device manufacturer and identification number
Transmission rate and bus parameters
Volume and format of data for cyclic communication
Integrating Inthird-party DP,
HW Config, you can PA and
define whatHART
revision devices
level of the GSD file is installed by right-
with GSD files
clicking on the device to open its object properties, once you have successfully
positioned it on the PROFIBUS.
SITRAIN
Course ST-PCS7ASE 6 - 54 Siemens AG © 2012
Procedure
1. Open the HW Config Tool and close all opened configuration
2. Select Options -> Install GSD file…
3. In the window that pops up, click ‘Browse’ to browse to the GSD-file to be imported
If a new device for which parameters are to be assigned using SIMATIC PDM is
integrated, the GSD and EDD files of the device must be imported using the PDM
application "Manage Device Catalog...”
SIMATIC PCS 7 – AS system specification and hardware configuration
Course folder, V8.2.0, ST-PCS7ASE 4 - 25
SIMATIC PCS 7 AS Engineering
4.5.4 Integrating third-party DP, PA and HART devices with EDD files
SIMATIC PDM can be used to assign the parameters for a field device (made by any
manufacturer). The EDD (Electronic Device Description) file forms the basis for the
device specification and for acyclic communication.
EDDL (Electronic Device Description Language) is a script language specified by the
PROFIBUS Foundation and is the only device description standardized by the IEC (IEC
61804).
The device manufacturer supplies the following in an EDD package:
Device description (EDD file)
Lexicon/user languages
Help files (relating to function and operation)
Manuals (technical documentation)
Integrating third-party DP, PA and HART devices with
EDD files Communication description (GSD file)
Pictures
Procedure
1. Open the SIMATIC PDM Manage Device Catalog tool via
Start > SIMATIC > SIMATIC PDM > Manage device catalog
2. Click ‘Browse’ to browse to the EDD-file to be imported.…
3. Click ‘OK’
Time synchronization with an external time source (e.g. GPS, DDF 77) is required if
the time within the PCS 7 plant is to match the local time.
Central plant clocks (synchronized with an external time source wherever possible)
are high-grade internal time sources for PCS 7 plants.
A time slave can be the time master for lower-level components and systems.
Any domain controllers that are available in a network will synchronize all of the
nodes in this network. A synchronization cycle using domain controllers has a
duration of eight hours as standard. For reasons of precision, additional
synchronization corrections using integrated PCS 7 tools (WinCC time
synchronization) are required. You can define an interval at which the OS
synchronizes its time with that of an external time source.
The WinCC "time synchronization" application can be used to configure an OS server
as a time master, a cooperative time master, and a time slave.
An OS server can be configured as a time master either with or without external time
synchronization.
A direct time synchronization of the plant bus is necessary if the "high-precision time
stamping" function is used for selected signals in an automation system. The
accuracy for high-precision time stamping is insufficient if the central plant clock fails.
The chronological order of the signals displayed remains intact.
See [141] PCS 7 V8.2 Time synchronization - Function Manual - 03_2016, 4.3. for
more details
Time synchronization
4.6.2
in a domain with one hierarchy
Time synchronization in a domain with one hierarchy
With central
Course time master in a Windows domain 4 - 31Without central time master
ST-PCS7ASE in a Windows
SITRAIN - Siemens AG © 2016
with a hierarchy domain with a hierarchy
Time master: Time master:
The SICLOCK central plant clock on the plant bus Domain controller (DC) with PDC emulator
and the terminal bus operation master role.
The central plant clock is either synchronized with
an external signal (e.g. GPS), or operates with the
internal real time clock.
See [141] PCS 7 V8.2 Time synchronization - Function Manual - 03_2016, 4.4. for
more details.
The above example shows time synchronization with the following structure:
Course ST-PCS7ASE 4 - 32 SITRAIN - Siemens AG © 2016
Stratum 0
The time source is an atomic clock. This atomic clock synchronizes the GPS
satellites or the DCF 77 senders, for example.
Stratum 1
The central plant clock (SICLOCK) receives the time via a radio signal (e.g. GPS
decoder or DCF 77 receiver). SICLOCK transfers the time to domain controller 1 in
stratum 2.
Stratum 2
Domain controller 1 is the time slave of the central plant clock. Domain controller 1
transfers the time to several domain controllers in stratum 3. Domain controller 1 is
the time master of the domain controllers in stratum 3.
Stratum 3
The domain controllers in stratum 3 synchronize the time of their own process units in
stratum 4. The domain controllers in stratum 3 are the time masters of their own
process units.
Stratum 4
The process unit components are time slaves.
See [141] PCS 7 V8.2 Time synchronization - Function Manual - 03_2016, 3.6 for
more details.
Selecting theOntime master PCS 7 plant, you require a time master to which the additional
a time-synchronous
plant components can be synchronized. The table below lists the components that are
used as time masters, depending on the network environment:
Time Master With time source Provide time via … Time master forwards Forwards the time to
… the time to … …
See [141] PCS 7 V8.2 Time synchronization - Function Manual - 03_2016, 5.1 for
more information about selecting the central plant clock.
Course ST-PCS7ASE 4 - 33 SITRAIN - Siemens AG © 2016
-1EX20-
Procedure
1. Open the project in SIMATIC Manager.
2. Select the station that will be synchronized.
3. Open the configuration of the hardware.
4. Select the CP 443-1, followed by
Edit > Object Properties.
The "Properties - CP 433-1" dialog box opens.
5. Switch to the "Time-of-Day Synchronization" tab.
6. Activate the "Forward time" check box in the "SIMATIC mode" group.
7. Click "OK".
If you are operating with several SIMATIC 400 stations, repeat this procedure for each
CP.
Procedure
Course ST-PCS7ASE 4 - 35 SITRAIN - Siemens AG © 2016
1. Open the project in SIMATIC Manager and select the station that will be
synchronized.
2. Open the configuration of the hardware. And select the CPU, followed by
Edit > Object properties.
3. The "Properties - CPU..." dialog box opens. Go to the "Diagnostics/Clock" tab.
4. In the "Clock" group select the following:
For "Synchronization in the AS" select the synchronization mode
"As slave".
For "Synchronization to MPI" select the synchronization type "None"
5. Click "OK".
Course ST-PCS7ASE
If the CPU receives MMS time 4messages,
- 36
the local time is synchronized unless the NTP
SITRAIN - Siemens AG © 2016
mode was configured (MMS = Manufacturing Message Specification).
The advantage of this procedure is that it is generally more precise than the NTP mode.
Synchronization role
You can specify whether the clock of the CPU synchronizes other clocks of devices at
the PROFIBUS or not (setting options depend on the interface).
As a slave: The clock is synchronized by another clock.
As a master: The clock synchronizes other clocks as the master.
None: There is no synchronization.
Time interval
Select the interval at which synchronization is to be carried out (only if "As a master"
was selected as the synchronization role).
The CPU with integrated Ethernet interface can only be synchronized via the NTP
mode. We recommend using a SICLOCK TC 400 as an external clock.
Please note the following restriction that is applicable in this case: The SICLOCK
supports a maximum of 50 NTP requests/sec. In the case of previous CPUs, we
recommend that you continue to use S7 mode. These CPU types must not be used in
PCS 7 configurations with only a plant bus (and without a terminal bus).
NTP mode is not yet supported by all PCS 7 components. As a result, both modes must
be used simultaneously in order to perform time synchronization with the IE bundles. If
both time servers are operated on a single PC, poor priority settings can lead to a time
offset. In this case, an effective remedy would be to use a SICLOCK, which supports
both modes.
See [141] PCS 7 V8.2 Time synchronization - Function Manual - 03_2016, 6.1 for
more reasons to choose NTP mode.
The following describes the configuration of the time synchronization for the CPU types
with integrated Ethernet interface.
Requirements
These CPUs can only be used in PCS 7 configurations with a plant bus and a
terminal bus.
CPU with integrated Ethernet interface
Time synchronization
Example: – NTP mode
For CPU 41x-3 PN/DP
CPU 416-3 PN/DP
CPU 414-3 PN/DP
CPU Properties
Properties of integrated
Ethernet interface
Redundancy
4.7.1 Concept of PCS
Redundancy Concept 77
of PCS
6 7
9
Course ST-PCS7ASE The PCS 7 fault-tolerant components 4 - 38
enable you to achieve the desired form ofSITRAIN
fault - Siemens AG
tolerance in all automation levels:
Operator stations, BATCH stations, Route Control stations, maintenance stations,
central archive server (control level)
Bus system
Automation system (process level)
Distributed I/O (field level)
1. Several clients (OS clients, BATCH clients, Route Control clients) can access data
on a server (OS server, BATCH server, Route Control server).
2. Communication between the operator stations (client and server) and
communication with the engineering station is over a redundant, fault-tolerant
terminal bus (Industrial Ethernet). The clients and server are connected to the
terminal bus via switches.
3. The servers (OS server, BATCH server, Route Control server, maintenance server,
central archive server) can, when necessary, be set up redundantly.
4. Automation systems communicate with the OS servers/Route Control servers and
engineering stations and among themselves over the redundant, fault-tolerant plant
bus (Industrial Ethernet). The automation system, server and engineering station
are connected to the plant bus via switches.
5. Each part of the redundant, fault-tolerant S7-400H automation systems is
connected to the plant bus with an Ethernet communications processor (CP). Each
part of the AS be connected to several PROFIBUS DP chains. The internal
PROFIBUS DP interfaces or additional communications processors are used for the
attachment.
6. The redundant connection to the DP master system is achieved using two 153-2 IM
modules in each ET 200M.
7. Using redundant digital or analog input/output modules, you can evaluate signals
from sensors/ actuators. If one of the two redundant modules fails, the input/output
signal of the functioning module are evaluated.
8. Fieldbus systems can be connected to the redundant PROFIBUS DP. The
configuration of a redundant fieldbus can be realized with a redundant gateway (for
example, PA link). The field devices are connected to the subsystem (for example,
PROFIBUS PA) via AFD, active field distributors, (or AFS when ring/coupler
redundancy is used).
9. The Y Link allows you to connect non-redundant PROFIBUS distributed I/O devices
to a redundant PROFIBUS DP.
Redundant Automation Systems
Fault-tolerant solutions for the AS
4.7.2 Fault-tolerant solutions for the AS
With this solution, a second backup CPU, which is event-synchronized to the master
CPU, performs the same processing tasks of the user program as the master. If the
active master CPU fails, the standby CPU continues processing the user program
without delay. This type of standby is referred to as "Hot standby".
There are always two central processing units and power supplies in an S7-400H. The
communications processors and I/O modules are expansion modules.
See [511] PCS 7 V8.2 Fault-tolerant Process Control Systems - Function Manual -
03_2016, 4.2 for more details.
Active redundancy
The automation system consists of two redundantly configured subsystems, which are
synchronized through fiber-optic cables. The two subsystems form a fault-tolerant
automation system that operates according to the principle of active redundancy.
Active redundancy means that all the redundant equipment is permanently in operation
and also takes part in acquisition of the process data. The active redundancy partner is
responsible for executing the control task. The user programs loaded in both CPUs are
fully identical and are run synchronously by both CPUs.
If the active CPU fails, the automation system automatically switches to the redundant
CPU. The failover has no effect on the ongoing process because it is bumpless.
See [511] PCS 7 V8.2 Fault-tolerant Process Control Systems - Function Manual -
03_2016, 7 for more details about Failure, Switchover and Return of Fault-tolerant
Components.
Redundant
4.7.3 Automation
Fault-tolerant Systems
solutions for the IO
Fault-tolerant solutions for the I/O
The availability of the I/O can be increased through the following configuration options:
Symmetrical design: same slots, identical interfaces, same Profibus addresses of DP-slaves,
identical modules (MLFB, FW-version)!
Course ST-PCS7ASE
Single-channel switched I/O (distributed I/O)
4 - 40 SITRAIN - Siemens AG © 2016
Single-channel switched I/O describes the situation when the input/output module
(SM) used to process a process signal exists only once. The communication path to
the single channel I/O is redundant and fails over to the functioning communication
path if one of the paths goes down.
Redundant I/O (distributed I/O)
Redundant I/O describes the situation when the input/output modules (SM) for
processing a process signal are doubly available and can be addressed by both
CPUs. This ensures that the CPU signal or process signal will continue to be
processed by a functioning module even when its partner fails.
See [511] PCS 7 V8.2 Fault-tolerant Process Control Systems - Function Manual –
03_2016, 4.1 for more details
Concept
All redundancy-capable modules released for PCS 7 now support the channel group
specific redundancy via the new library “Redundant IO CGP V5.2“
See [211] PCS 7 V8.2 Released Modules - Catalog Overview - 03_2016, for the
complete list of modules.
Seesolutions
Fault-tolerant [512] SIMATIC forS7-400H – CFC libraries
the IOFault-tolerant systems - 07_2014, 15.5 for more details
about other options for connecting redundant I/Os.
Formerly known as
"Redundant IO CGP".
Only listed for
compatibility reasons.
Formerly known as
"Redundant IO (V1)".
Only listed for
compatibility reasons.
Course ST-PCS7ASE
Only the library “Redundant IO CGP V5.2” is now used in PCS
4 - 41
7 V8.1.
SITRAIN - Siemens AG © 2016
Support for channel group specific passivation for all modules. The characteristics of
the module determine if the channel group contains one channel, more than one or
all channels.
The compiler option ‘Generate module driver’ uses this library for all redundant
ET200M modules only.
Within a multi-project it is possible to use the new drivers of the ‘Redundant IO CGO
V50’ library in a project (with use of new functions after upgrading), and the old drivers
can be used in a different project (without using new functions).
Using the same blocks from different libraries is not allowed within in project or even
more inside a CPU.
CGP: Chanel Group passivation
Y Link: Gateway
MGP: between redundant
Module Group passivation and non-
redundant PROFIBUS DP
4.7.5 Y Link: Gateway between redundant and non-redundant PROFIBUS DP
The Y Link consists of two IM 153-2 interface modules and an Y coupler which are
interconnected through the corresponding bus modules (BM IM/IM and BM Y coupler).
Course ST-PCS7ASE 4 - 42 SITRAIN - Siemens AG © 2016
Functionality
The Y Link creates a gateway from the redundant DP master system of a S7-400H to a
non-redundant DP master system. This enables devices with only one PROFIBUS DP
interface to be connected to a redundant DP master system as switched I/O.
The new generation of the Y Link no longer requires a repeater and is capable of
forwarding diagnostics requests from the corresponding function modules or I/O
modules to the CPU.
DPV1 slaves can be connected downstream from the Y Link in addition to the standard
PROFIBUS DP slaves.
See [511] PCS 7 V8.2 Fault-tolerant Process Control Systems - Function Manual -
03_2016, 4.3.5.3 and 5.4.5 for more details how to configure the Y Link.
The DP/PA Link allows a connection between PROFIBUS DP and PROFIBUS PA. The
DP/PA Link consists of the IM 153-2 interface module and one or more FDC 157 DP/PA
couplers that are interconnected through the backplane bus.
Functionality
Course ST-PCS7ASE The DP/PA Coupler is a transceiver
4 - 43 that interconnects PROFIBUS DP
SITRAIN and PROFIBUS
- Siemens AG © 2016
PA and decouples the various transmission rates. It is a slave on the PROFIBUS DP
and a master on the PROFIBUS PA. Seen from the automation system, the DP/PA Link
is a modular slave. The individual modules of this slave are the field devices that are
connected to the lower-level PROFIBUS PA lines.
In the automation system, data are transmitted via PROFIBUS DP at a maximum speed
of 12 Mbps with negligible delay. This is currently the fastest connection between
PROFIBUS DP and PROFIBUS PA and can be used by all automation devices with a
PROFIBUS DP interface.
The DP/PA Link decouples the various transmission rates of the bus systems and
brings the lower-level PA devices together at one PROFIBUS DP address. All DP
masters can take advantage of this feature.
See [511] PCS 7 V8.2 Fault-tolerant Process Control Systems - Function Manual -
03_2016, 4.3.5.4 and 5.4.6 for more details.
Redundanter PROFIBUS PA
4.7.7 Redundant PROFIBUS PA
Course ST-PCS7ASE
Functionality 4 - 44 SITRAIN - Siemens AG © 2016
ATTENTION!
Mixed configurations
You can connect only one redundant DP/PA coupler pair per DP/PA link. In mixed
configurations, you can operate up to 3 additional non-redundant DP/PA couplers.
The coupler pair (FDC 157-0 DP/PA coupler) should be installed for redundant
operation in the last two slots of the ET200 station.
See [511] PCS 7 V8.2 Fault-tolerant Process Control Systems - Function Manual -
03_2016, 4.3.5.5 for more details.
Ring 1 shows the functionally correct structure (shared switches for AS and OS).
Bus1 shows the functionally correct configuration (shared switches for AS and OS).
Ring 2 shows the typical structure in PCS 7 plants (separate switches for AS and
Bus2 shows the typical configuration in PCS 7 plants (separate switches for AS and OS).
OS).
See [511] PCS 7 V8.2 Fault-tolerant Process Control Systems - Function Manual -
03_2016, 4.3.4.2 and 4.3.4.3 for more details.
SCALANCE X414-3E as
redundancy manager
Redundancy manager
Example
Example of aofring
Course ST-PCS7ASE
a ringstructure
structure with
withSCALANCE
SCALANCEswitches
4 - 46switches SITRAIN - Siemens AG © 2016
Standby-Manager
• allows a redundant coupling of networks
• Redundant coupling of networks is only possible if 2 devices (switches) within a network segment
support the standby manager function.
• One network component becomes the standby manager (master) and the other standby manager
(slave).
• When operation is error-free, the data link running between the redundant networks is active for the
standby manager (master). If this data link fails (e.g., due to a defective device or cable break), the
standby manager (slave) activates its data link while the fault remains pending.
See [511] PCS 7 V8.2 Fault-tolerant Process Control Systems - Function Manual -
03_2016, 4.3.1 for more details.
4.8PCS 7 PROFIBUS
PROFIBUS andand PROFINET
PROFINET –in SIMATIC PCS 7 by comparison
SIMATIC
4.8.1 PCS 7PCS
SIMATIC V8.1 Systemarchitecture
7 System architecture
PCS
Training7 PROFIBUS
documentation and PROFINET 4 - 54
SP-PCS7CWS SITRAIN - Siemens AG © 2015
Requirements
4.8.2 Requirements to PROFINET IO atIOthe
to PROFINET PA PA
at the
IO-Controller 1 IO-Controller 3
IO-Controller 2
Backup
Clock Master PROFINET
HART
PROFIBUS PA
Proxy
PROFIBUS DP PROFINET IO
/ RS 485 / Ind. Ethernet
• PROFINET is always
Slaves „switched Ethernet“
Limits
Rules
PROFIBUS DP PROFINET IO
• 32 stations on one copper segment, Repeater • Max. electrical distance between two nodes
counts as device! is 100m, this is an IEEE802.3 rule!
• Terminate each segment (first and last node) • Max. 64 nodes in a line.
• Notice shielding on the connectors and when
going in cabinet
• 10cm distance between cables higher 110V if
not isolate with i.e. grounded metal plate, if not
possible use FO!
• On high Baudrate no spur lines, no cables
shorter 1m
• Segment length depends on Baudrate!
Redundancy Manager
Network Access Point (NAP) A NAP equates to an interface of one device, not to be mixed
up with a port.
AR 1
System redundancy –
Terms and conditions S1-Device
IO-Controller 1 IO-Controller 2
IO-Controller 1 IO-Controller 2
AR 2
System redundancy –
Terms and conditions
AR 1
R1-Device
System
Training redundancy
documentation R2
SP-PCS7CWS • The system redundancy
4 - 64 R2 exist in principle ofSITRAIN
two parallel S2
- Siemens AG © 2015
systems.
Not supported by PCS 7! • Therefor it needs 4 IO-Controller with 4 AR in the system.
• It exist two physical and logical separate networks.
AS 1 AS 2
AR 1.2
AR 2.2
AR 1.1 R2-Device
AR 2.1
Training documentation SP-PCS7CWS 4 - 65 SITRAIN - Siemens AG © 2015
Comparison
4.8.5 of topologies
Comparison of topologies
SIMOCODE
ET 200M
Link to single
slaves
Y-Link
SIMOCODE
DP/PA-
Link DP/PA-
AFD Link
PROFIBUS PA
AFD AFD
CPU 410-5H
MRP ring
PROFINET ET 200M PN
MRP
ET 200M PN
Weighting system
ET 200SP PN
SIMOCODE PN Link to PROFIBUS PA via
2 ET 200M PN
3 IE/PB Link and DP/PA-coupler
4 IE/PB-Link DP/PA
Coupler
IO-Controller 1 IO-Controller 2
Profinet IO Topologie
The network in PCS will
disruption 7 be compensated by the MRP ring. All devices will
communicate still with IO-Controller 1.
IO-Controller 1 IO-Controller 2
MRP
The first failure caused by a network disruption will be compensated by the MRP ring.
All devices will communicate still with IO-Controller 1.
The second failure caused by another network disruption can be compensated by
system redundancy S2. Both IO-Controllers communicate in parallel with the devices
being available for them.
Training documentation SP-PCS7CWS 4 - 69 SITRAIN - Siemens AG © 2015
Checkpoint
4.9 Checkpoint
Content 5
5 Type-Instance Conceptions in PCS 7 V8.2 ............................................................ 3
5.1 Learning targets ..................................................................................................................... 3
5.2 Import-Export-Assistant (IEA) and IEA File Editor ................................................................. 3
5.2.1 Process Tag Types: Overview of the procedures .................................................................. 5
5.2.2 Creating a process tag type ................................................................................................... 6
5.2.3 Create / Assign File Template ............................................................................................... 7
5.2.4 Structure of the import file and presentation in the IEA File Editor ...................................... 13
5.2.5 Using Microsoft Excel to edit import files ............................................................................. 17
5.2.6 Importing the process tags in the plant view ....................................................................... 19
5.2.7 Task ..................................................................................................................................... 21
5.2.8 Modifying a process tag type and updating the process tags ............................................. 22
5.2.9 Designate existing charts as process tags .......................................................................... 24
5.2.10 Export of existing process tags ............................................................................................ 25
5.2.11 Changing process tag types without automatic update ....................................................... 26
5.3 Tasks and checkpoints ........................................................................................................ 28
5.4 New type conception: Control Module Types ...................................................................... 29
5.4.1 Comparison to process tag types ........................................................................................ 29
5.4.2 Creating Control Module Types from standard Process Tag Types ................................... 31
5.4.3 Create a new control module type starting from an empty template ................................... 33
5.5 Editing the technological I/Os .............................................................................................. 34
5.5.1 Possible objects ................................................................................................................... 35
5.5.2 Editing the technological I/Os with a shortcut menu ............................................................ 35
5.5.3 Editing the technological I/Os using drag & drop................................................................. 36
5.5.4 Data types for control variables and generic data ............................................................... 36
5.5.5 Attributes .............................................................................................................................. 37
5.6 Task ..................................................................................................................................... 42
5.7 Synchronizing Control Module Types .................................................................................. 43
5.7.1 Synchronization means … ................................................................................................... 43
5.7.2 Procedure ............................................................................................................................ 45
5.8 Summary for the synchronization behavior ........................................................................ 47
5.8.1 Changing objects in the technological I/Os ......................................................................... 48
5.8.2 Changing values or interconnections .................................................................................. 49
5.8.3 Changing properties and attributes...................................................................................... 50
5.9 Control module variants ....................................................................................................... 51
5.9.1 Optional blocks .................................................................................................................... 51
5.9.2 Variants of a manually copied control module ..................................................................... 52
5.9.3 Optional blocks connected to the same input ...................................................................... 54
5.10 Tasks and checkpoint .......................................................................................................... 57
Pre-requisite
A master data library is required to use the function of the IEA.
Export file
PT
Export PT
PT
When data has been changed in the Process Tags
Process tags are derived as a large number of individual instances from pre-defined
process tag types by use of the Import-Export assistant.
Trainingsunterlage SP-PCS7CWS 5-5 SITRAIN - Siemens AG © 2015
This tool allows to create and to edit a so-called import file. After edition (using IEA, or
any editor like Notepad, Excel), the re-import of the modified file results in automated
creation of a large numbers of process tags correctly placed in the plant hierarchy.
s7jieaEx.exe
The "s7jieaEx.exe" IEA file editor is a separate application. You can also use it
separately from the PCS 7 installation. You can copy it and make it available to system
engineers.
The wizard:
I/O points:
Category is an additional edit box at an I/O used to assign the I/O to a specific
category. You use this category to sort or filter these I/Os in the process object view.
The parameter and signal categories are found in two text files, which you can
edit/expand according to your specific requirements. The "s7jcategory_p.txt" and
"s7jcategory_s.txt" files are found in the "s7bin" folder, in your installation path.
Result:
The new process tag type is stored in the master data library. The CFC chart that is the
source of the process tag type is stored in the S7 program, where you can reuse it or, if
it is no longer required, delete it.
After the completion of this creation procedure, the Process Tag Type will be present in
the Master Data Library:
The wizard:
Select the
required I/O
points/messages
If you select <no import file assigned> from the “Import file” drop-down list, the
“Column title” column can be edited. You can change the titles and then generate the
template file.
In the "Importing" column, a check mark indicates which I/O points exist in the import
file. If no check mark is displayed, the I/O point does exist in the process tag type but
not in the currently assigned import file.
The file will have a default name based on the Process Tag Type name. The default
storage location is the Global folder of the library storage path.
Option Meaning
Trainingsunterlage SP-PCS7CWS 5 - 10 SITRAIN - Siemens AG © 2015
Function identifier The IEA enters the function identifier (FID) in the text box (for DOCPRO)
TAG location The IEA enters the TAG location (TAGLocation) in the text box (for DOCPRO)
Sampling time The sampling time of the block. It is derived from the cycle time of the OB multiplied
by the reduction ratio of the runtime group.
Block name Instance block name to be received by the block via import.
Block group Identifier for the blocks that are assigned to a specific alarm group, which is used for
the mode-dependent automatic hiding of alarms.
Option Meaning
CWS 5 - 10 SITRAIN - Siemens AG © 2015
Value Value for the chart/block I/O (e.g., 8.5).
Enumeration Enumeration for I/Os with data type BOOL, BYTE, WORD,
DWORD, INT, DINT. Value: Name of the enumeration
MES relevant Identifier for I/Os that are relevant for MES (true)
or not relevant (false)
Archive I/O whose process value will be archived by the WinCC archive system during
runtime. Values: 'false' = No Archiving,
'shortterm' = Archiving, 'longterm' = Long-term archiving
Option Meaning
Trainingsunterlage SP-PCS7CWS 5 - 11 SITRAIN - Siemens AG © 2015
Value Value for the chart/block I/O (e.g., 8.5).
Symbol name Name of the symbol used for the interconnection. With shared addresses, you
can decide whether or not to enter the symbol name in the symbol table during
import.
Symbol comment Comment for the symbol that is entered in the symbol table.
When you select the "Symbol comment" option, the "Symbol name" is also set
simultaneously.
Enumeration Enumeration for I/Os with data type BOOL, BYTE, WORD,
DWORD, INT, DINT. Value: Name of the enumeration
MES relevant Identifier for I/Os that are relevant for MES (true)
or not relevant (false)
Option Meaning
CWS 5 - 11 SITRAIN - Siemens AG © 2015
Priority Message priority. The operator can call this function to filter messages according
to their priority.
It is recommended to copy the template file and continue with the copy.
Example in the figure above: LIA3x400_First_Run
Because of the matching column title in the import file and process tag type, the
assignment between the I/O points in the import file and process tag type is made
automatically:
The import file is assigned to the process tag type.
5.2.4 Structure of the import file and presentation in the IEA File Editor
ImportMode; Project; Hierarchy; FID; TAG Chart; High limit; Measured value; High limit
location; alarm;
AS assignment
Parameter value
Textual interconnection,
only possible if a textual Target of the textual
interconnection exists in the interconnection
process tag type for this block IO
Message text
1 column in the
Numeric values Excel sheet,
Column headers must be IEA syntax for with correct cell content
similar to the process tag type the keywords decimal symbol separated by
delimiter
3 columns in the
import file
1 column group in
the import file
Prerequisite
The import/export data are available as text files in CSV format. CSV format is
supported by many applications (Microsoft Excel, Access, etc.) and is thus suitable as a
general data interface between planning tools and the ES.
The IEA expects these files to have the file extension “*.IEA”. If necessary, you must
change this file extension.
CSV stands for "Comma Separated Value" and is an ASCII text format for storing
tabular data. The comma or semicolon is used as the list separator, depending on the
setting made in the Windows Control Panel. Pressing the enter key creates a new row.
You can create and edit a CSV file in a text editor or using spreadsheet programs, such
as Microsoft Excel, or as an export file from a database, such as dBase, Microsoft
Access, etc. You can edit the file with the .IEA extension conveniently using the IEA file
editor.
If you double click on a CSV-File directly in the Windows Explorer the content is only
ATTENTION!
Changing the column structure of an import file in Excel can damage the data
consistency and result in a corrupt import file.
A column inside of a column group of the IEA is not corresponding to an own column
in the Excel sheet. Furthermore, the column headers in the import file must have the
IEA compatible syntax.
The advantage of this approach is that the IEA Editor ensures consistent structure of
the import file.
The wizard:
The import
Trainingsunterlage SP-PCS7CWS procedure will make5 -as
21 many copies of the process tag type
SITRAIN as there
- Siemens are
AG © 2015
rows in the import file and will make changes in every copy according to the data in the
corresponding rows in the import file.
Before importing, check the language set for display units. If you have created the
model in German and the current SIMATIC Manager setting is "English", the German
message texts will be written into the English text file.
Starting point is again the chart LIA3x4 in the Master Data Library:
10. Select the required hierarchy folder, project node, process tag library (hierarchy
folder in the master data library) or process tag type.
11. Select the menu command Options > Process Tags > Import...
Import Log
Log File
The "Log file" edit box displays the path of the log file that logs all the events and errors
that have occurred during import. Use "Other file..." to open a dialog box in which you
can select another log file.
Final result
The Import Export Assistant (IEA) –
New hierarchy folder with new charts
Import the modified Import file: Final Result
Data in the chart due to the data in the import file
Textual interconnection
was connected to the Values were assigned to
target instance the parameters
See [103] PCS 7 V8.1 Engineering System – 11_2014, 8.12.7 for more details
5.2.7 Task
Task: Product concentration monitoring for B410 und B420 using the IEA
Goal
You configure the process tags XIA414_1…3 and XIA424_1…3 for the product
concentration in the buffer tanks using the Import/Export Assistant.
Starting point is an existing process tag type for Analog Monitoring.
5.2.8
Import Modifying a process tag
/ Export Assistant – type and updating the process tags
Consistency of process tag type and import file
Consistency between process tag type and import file
I/O Selection in the Process Tag Type: I/O (Column) selection in the Import File:
Columns, later
inserted in the
import file
1 2 3
12. If there are no process tags of the modified process tag type in the project, click
"Finish".
Trainingsunterlage SP-PCS7CWS 5 - 24 SITRAIN - Siemens AG © 2015
The assistant is closed.
13. Otherwise: Click on "Next".
The dialog page 3(3), "Do you want to complete the process tag type and apply the
changes to existing process tags?" opens.
14. Click "Finish".
You receive the log of changes.
15. Click "Exit".
The changes to the process tag type and process tags are complete.
The assistant is closed.
Please note, that the relation between process tag types and process tags is
specified via the process tag connectors and I/O connectors for messages.
Updating process tags means to update number and names of these connectors.
Changes made in the chart of the process tag type (e.g. interconnections, new
blocks, deleted blocks, etc…) will be ignored when you update the process tags.
For this, the buttons and/or can be used in an already existing import file.
This saves
Update import fileyou
to from creating
match thea new
new import file andtag
process having to copy information from the
type
old to the new import file.
Use case 1
You have created a CFC chart, for example, you have configured a motor control, and
manually copied this chart several times. The copies have been modified or adapted
according to the different requirements.
Use case 2
A CFC chart was a process tag. You have cleared the assignment to the process tag
type for this CFC chart via its object properties. To do this, you have selected the menu
command Object Properties and selected the chart in the “Process tag type” tab and
clicked “Clear”.
In both use cases you want to use the IEA functions in the future and create additional
process tags via import. The charts created previously are still to be used and
designated as process tags, too.
Once you have created process tags by importing or copying in SIMATIC Manager and,
for example, edited various parameter and signal values in the testing and
commissioning phase, export current data in the same way they were imported.
You can use the import/export assistant to export process tag data. All accessible
projects in the multiproject are taken into account.
If you have selected a higher-level hierarchy folder or the project node containing
process tags at lower levels, all the lower-level process tags are selected for export and
the data are exported.
Each process tag type is assigned an export file, each process tag of the process tag
type is assigned a row in the corresponding export file.
The structure of the export file corresponds to that of the import file.
You must assign a valid import file to the process tag type. The structure of the
individual column groups in the import file is also applied to the export file.
Procedure
16. Select the hierarchy folder of the required model/process tag and select the menu
command
Options > Models > Export… or
Options > Process Tags > Export… to perform the export.
The models/process tags will now be found and listed.
17. On the next dialog page, check whether the correct export files are assigned for the
models/process tags shown.
If you have selected a higher-level hierarchy folder containing process tags at lower
levels, you will see the hierarchy paths of all lower-level process tags here. The
export is executed for all the process tags in this list.
Process tags that you do not want to export must be removed from this list.
If the path name contains the prefix "???", the IEA cannot open or create the export
file in this path, for example, because a drive that does not exist was specified. In
this case, click on "Other file..." to locate a suitable path for the export file.
Use backup copies to avoid the overwriting of assigned import / export files.
18. On the final dialog page, select the log file and activate or deactivate the filter to
only log error messages and the “Ready” message.
Exit the export by clicking "Finish".
Result
The selected export files are completely overwritten or, if they do not yet exist, created
during export.
Use backup copies to avoid the overwriting of assigned import / export files in an
earlier stage.
Existing process tags are updated automatically when changes in the process tag type
are made.
But there changes to the process tag type, where the process tags are no longer
updated automatically, e.g.:
the adding of new block to the process tag type,
realization of new interconnections or changes to the parameters.
Please note that the changes described here have no effect on the import file. No new
parameters or signals of the import file are added.
Despite these restrictions, there is an approach to replace the corresponding process
tags.
Prerequisites
There are process tags in the project and the changed process tag type is in the
master data library.
There is an import file containing the current values from the process tags in the
project.
Use the function "Export…" to create a new import file representing the current status
of the corresponding process tags at the declared process tag connectors.
Existing process tag = existing I/O points for parameters, signals and messages
type
The export file
• get the structure from the import file,
PT
PT • but does contain current values of the
PT process tags at the I/O points
Import file
ATTENTION!
During the import, first all rows with the keyword "delete" are executed and the
corresponding objects are deleted. After, the new objects are created. Existing
instance-specific interconnections to these charts are lost.
Result
After successful completion of the import procedure all the process tags are recreated at
exactly the same point in the plant hierarchy and the above-described changes are
available.
Goal
The valves in the material tanks are already programmed as CFC charts in the plant
view. The goal of this exercise is to create a process tag type for the valves in the rest of
the plant and adopt the existing CFC charts as process tags.
Goal
The process tag type for the valve should be extended with the static monitoring time
without losing information in the existing process tags. In this task, you will first make an
export of the existing process tags, based on the already assigned import file. Then, you
can add the required signal/parameter to the process tag type and modify the import file
accordingly.
Checkpoint
Checkpoint
Overview
Control Module
In PCSTypes (CMT)
7, there are process tags and control modules, and their associated types.
ComparisonA process
to Process
tag type Tag Types
or a control module type is a CFC configured for a specific process
control function for the basic automation of a process engineering plant.
Process tags
The following properties are available for using process tags and their types:
When an instance is created and configured from a process tag type, instance-specific
changes are lost when the process tags are imported again with the Import/Export
Assistant.
Multiple process tag types are required for the same technological function, such as
"Measurement", when different input blocks are used, for example. It is not possible to
create different variations of process tags from a single process tag type.
Control modules
When control modules and control module types are used, the above-mentioned
properties do not apply. This is why a control module has the following advantages in
comparison to a process tag:
Instance-specific changes to the instance, the control module, are not lost during
synchronization of type and instance.
It is possible to create different instances from a control module type. The control
module type can also include optional blocks. When the instances are created, you can
determine which of these optional blocks should be inserted into each instance.
PT „M316“ CM „M316“
new PT
„Motor“
Process Tag Types versus Control Module Types –
Features of PT/PTT and CM/CMT
The following table compares the features of PT/PTT and CM/CMT.
Change tracking Only with special tools Yes, with the comparison function
of the automation interface.
Variant support No, because a PTT is needed for each Yes, via CMT with selectable
variant variants (options)
Enhanced functions Yes, by adapting the PTT and Yes, very comfortable due to the
instantiating with the IEA extended functionality of the CMT
Caution: The export file must be and comparison with the
adapted to the new function. instances.
Type configuration Easy, by placing and interconnecting Somewhat more extensive, as the
the required blocks. technological I/Os have to be also
defined.
You can drag several interconnections to one input with control module types, which
is not possible with a CFC. The prerequisite for this is that the "Optional" attribute is
activated in the control module type to be configured as interconnection target.
1 Directly from chart 2 From a process tag type 3 As new and empty object
(template from library)
You can create control module types (CMT) from standard process tag types provided
that the master data library contains the hierarchy folder Process tag types.
Training Documentation SP-PCS7CWS SITRAIN - Siemens AG © 2015
23. Select the hierarchy folder 5Process
- 32
tag types in the plant view of the master data
library and select in the context menu:
Control modules > Create control module from process tag type…
24. A dialog opens which shows all available process tag types in the currently selected
master data library. Select the desired process tag types using the checkboxes.
25. Click the Create button to generate the associated CMT from the selected process
tag types. The process tag types remain unchanged. If the process tag types are
also located in the folder Process tag types, they are still there after the CMT has
been created.
26. Click the Select... button to open any other library for selecting process tag types.
SIMATIC PCS 7 – Type-Instance Conceptions in PCS 7 V8.2
Course folder, V8.2.0, ST-PCS7ASE 5 - 31
Control Module Types (CMT)
SIMATIC PCS 7 AS Engineering
Select process tag types in another library
Result
The new CMT and the PTT which was used as starting point cannot have the same
name. The system adds automatically a number in brackets.
Control modules are color-coded in the CFC Editor. The following objects are available
in the technological I/Os:
In the CFC Editor, elements that belong to the definition of the control module type,
such as blocks and connections, are highlighted in color. You may customize the
colors used with the menu command:
Options > Settings > Colors…
In the following dialog box select the object "Blocks and I/Os of the control module
type" under "Objects".
Attributes
The "Attributes" area shows the available attributes of an object (name, option, value,
unit, etc.) and assigned CM or linked interconnections.
Each object has different attributes. While the name of the connection is being assigned
Control Module Typesfunction
or the "Optional" (CMT)is being set in a block or block group, a process value and/or a
unit can be preset at a lower-level parameter.
Create a new control module type
5.4.3 Create a new control module type starting from an empty template
You can create a CMT as an empty template in the master data library.
To do so, select the hierarchy folder Process tag types in the plant view and select in
the context menu:
Insert new object > Control module type
Training Documentation SP-PCS7CWS 5 - 35 SITRAIN - Siemens AG © 2015
standard functions are mapped to control modules. The AND, OR, XOR and NOT
standard functions are predefined in PCS 7. They are available on the "Templates" tab
of the template catalog, provided a control module has been created.
You may define other standard functions. This is done by creating a control module that
has an interface which exactly corresponds to the definition in COMOS. The names of
the control modules and control variables and their data type must match precisely. The
Control check box
Module for the(CMT)
Types "Standard function" attribute must be selected. The PCS 7-specific
implementation of the standard function is defined in the corresponding CFC.
Technological I/Os
Show the
technological I/Os
To open the technological I/Os, click the button or choose the menu command:
View > Technological I/Os
Course ST-PCS7ASE 7-8 SITRAIN - Siemens AG © 2014
The left hand side shows all available objects of the control module type, whereas the
right hand side shows the properties of the selected object.
You can also insert a block from the CFC Editor to the hierarchy of the control module
with drag-and-drop. This block will automatically be given the name of the block and
assigned to it.
The attributes and assignments are located in the right area. The attributes that are
Control Module
displayed depend Types (CMT)
on whether a control module, a control tag or a message is selected.
You can fill the text boxes, depending
Editing the technological I/Os using on the attribute,
drag & dropwith a free text, with drag-and-
drop from the CFC Editor or from a drop-down menu. You cannot edit grayed out boxes.
A control variable is either of the "Parameter" or "Signal" variable type, depending on its
assigned block I/O.
Only the REAL, BOOL, INT and DINT data types are valid for the "Signal" variable type
because these define an I/O channel request.
However, the data type at the assigned driver block may also be BYTE or WORD. In
such a case, the data type is mapped as follows:
BYTE at the driver block is equivalent to BOOL at the control variable
WORD at the driver block is equivalent to REAL at the control variable
Along with the standard data types, standard functions may be assigned generic data
types ANY_BIT, ANY_NUM, ANY_REAL or ANY_INT. These are displayed in the
technological editor by the "Data type" attribute of control variables. The following rules
apply if a control variable with a generic data type is assigned to a block I/O in the CFC:
ANY_BIT is assigned BOOL, BYTE, WORD, or DWORD.
ANY_NUM is assigned REAL, INT or DINT.
ANY_REAL is assigned REAL.
ANY_INT is assigned INT or DINT.
Only block I/Os that fulfill the rules described above can be assigned. The user has to
perform the assignment manually.
You can only fill the text boxes of the "Assignment" column with drag-and-drop of
connections or blocks from the CFC Editor or with a right-click on the text box and by
selecting a shortcut menu.
See [302] PCS 7 V8.1 CFC for SIMATIC S7 - Function Manual - 08_2014 chapter
9.11.5, for more details on the other objects in the control module types.
Course ST-PCS7ASE
This is a necessary step for specifying
7 - 13
the CFC chart name from Advanced ES. The
SITRAIN - Siemens AG © 2014
latter can only write information to the Attribute values of the attributes of the top level
control module, but it cannot write information directly to the CFC chart. By making the
above shown assignment, the control module name coming from Advanced ES is
forwarded to the name of the CFC chart.
Control Module Types (CMT)
Assigning CM information to block instances
Example: Assign CM information to block instances
Course ST-PCS7ASE
As mentioned above, Advanced ES can write information to the
7 - 17
Comment attribute of
SITRAIN - Siemens AG © 2014
the top level control module, called MotorLean in the picture above. By dragging the
Motor instance onto the Assignment column, the control module comment is
forwarded to the Motor instance comment.
In this way, this comment is included in the alarms in the OS and with the new V8 APL
block icons this comment will be used as tooltip text of the block icon.
5.6 Task
Goal
Create a Control Module Type from the existing chart V311. You replace the existing
process tags V311…V341 by the corresponding instances (CMs) of the CMT.
1. Create CMT: Functions which shall not be used in each instance get the attribute “Optional”
2. Instantiate: Select Optional Functions to create Variants
3. Changes in Type: Synchronize in all variants
Type (Motor)
M
FBKRun x1 x1
Permit OUT
Instance Variante 2 (M336) Instance Variante 3 (M346)
M M
x1 FBKRun FBKRun
Intlock
Optional
Intlock x1 Intlock x1
Intlock
Intlock Intlock
2 input
OUT OUT
Typ (Motor)
M
FBKRun
OUT
Intlock
Intlock Intlock
4 input
OUT OUT
Intlock Intlock
8 input 4 input
Intlock
8 input
Optional
Training Documentation SP-PCS7CWS 5 - 48 SITRAIN - Siemens AG © 2015
Synchronization
5.7.2 Procedure after modifying the CMT
1
This dialog is part of the
automation interface
5
Show only differences Special button only for
synchronization of
Open table view Refresh the view plant types
Scroll through the differences
Filter settings, such as deselecting instances, are discarded after closing the
automation interfaces.
30. Click on the button "Synchronize" to open a Data transfer dialog window.
31. Select the instances (CMs) to be synchronized.
32. Start the synchronization.
If two blocks are connected to each other in the Type and the destination connection
is defined as "Technical connection", the change is kept when synchronizing when
the connection in the instance is deleted.
If the two connections are not defined as "Technological I/Os" in the Type and the
connection is deleted in the instance, the original state is restored after
synchronization.
Synchronization
5.8 Summarybehavior
for the synchronization behavior
Installation pointer (run sequence ), for new objects (function blocks and/or function charts):
• When synchronizing to the CM, if the newly inserted objects in CMT are placed
in the main sequence group, they are inserted directly behind the same
predecessor blocks that are also available in the CMT.
• The installation pointer in the CM is ignored and remains unchanged.
-PCS7CWS 3 - 63 Siem
Course ST-PCS7ASE
Proceed as follows to make an7instance
- 82
optional in a control module type:
SITRAIN - Siemens AG © 2014
37. Drag & drop the instance from the CFC work area to the technological I/Os.
A lower level control module is created.
38. Rename this control module.
39. Select the control module and activate the check box of the Optional attribute.
Control module variants
Blocks configured in this way are not used by default in the control module instance.
VariantsVariants
5.9.2 of a manually copied
of a manually control
copied module
control module
Blocks identified as "optional" are not available in the CM after creation. If you want to
use optional blocks in the CM, you can activate them specifically for the instance.
To do so, proceed as follows:
40. Open the configuration area for the Technological I/Os using the icon or the context
menu:
View > Technological I/Os
41. Here you can open the Variants dialog in the context menu of the topmost folder.
The dialog box shows all optional blocks available in the CM.
42. Use the checkboxes to select the optional blocks required for the CM and enable
them with "OK".
Principle
In the following example, there are two optional interlock blocks (one with 2 inputs and
Control module variants
one with 4 inputs). Each interlock block has an Out output parameter which should be
interconnected
Optional blocks connected to the Intlock
to the input parameter
same inputof the MotL block.
It is obvious that in the resulting control module instance only one of the two interlock
blocks can be activated.
Merely schematic
representation
Instance with:
Interlock02: visible
Interlock04: invisible
Instance with:
Interlock02: invisible
Interlock04: visible
Course ST-PCS7ASE
In the figure above, this idea is7schematically
- 85
shown. Of course, it is not possible to
SITRAIN - Siemens AG © 2014
configure this function in this way, but proceed as follows:
Prerequisite
A control module type, consisting of:
An Intlk02 instance, an Intlk04 instance and a MotL instance.
Procedure
43. Drag & drop the two Interlock blocks to the technological I/Os in order to create two
lower-level control modules.
44. Rename both control modules to Interlock02, resp. Interlock04.
45. Drag & drop the Out output parameter of both Interlock blocks onto the respective
control module.
Two lower level control tags are created.
46. Rename these control tags to Out.
47. Drag & drop the Intlock input parameters to the technological I/Os.
A new control tag is created.
This second
interconnection is
created by dragging
'Intlock' onto 'Out'
Course ST-PCS7ASE
50. Activate the Optional checkbox
7 - 86
for both control modules. SITRAIN - Siemens AG © 2014
Variant selection
Control module variants
After copying the chart and opening this copy, none of the Interlock instances will be
Optional blocks – Example:
visible. Right click the top-level
Variant control module and select Variants. In the following
selection
window, you select which of the two interlock instances should be used.
Default after
opening the
control module
instance
Goal
The reactor inlet valves of R310…R340 are manually modified from chart to chart.
Despite this, the control module type for these valves is to be changed and
synchronized to these charts.
Checkpoint
Checkpoint
Content 6
6 Technological Engineering using the APL ............................................................ 2
6.1 Learning targets ..................................................................................................................... 2
6.2 Motivation and positioning for the Advanced Process Library ............................................... 2
6.2.1 Why has Siemens started to develop the Advanced Process Library? ................................. 2
6.2.2 Libraries available with introduction of APL in SIMATIC PCS 7 ............................................ 4
6.3 General engineering functions using the APL ....................................................................... 8
6.3.1 Structures and Signal Status (ST) ......................................................................................... 8
6.3.2 Feature Parameter ............................................................................................................... 11
6.3.3 Units in the APL ................................................................................................................... 12
6.3.4 Design of APL Block Icons .................................................................................................. 13
6.3.5 Design of APL Faceplates ................................................................................................... 15
6.4 Operating modes of APL ..................................................................................................... 16
6.4.1 Overview of the operating modes of APL ............................................................................ 16
6.4.2 Status diagram for the operating modes of APL .................................................................. 17
6.4.3 Operating mode "Manual" and "Automatic" ......................................................................... 19
6.4.4 Operating mode "Local" ....................................................................................................... 20
6.4.5 Simulating, Forcing, Tracking .............................................................................................. 21
6.4.6 Priorities of operating modes and control functions............................................................. 21
6.5 APL Templates .................................................................................................................... 22
6.5.1 Monitoring the feedbacks..................................................................................................... 23
6.5.2 Error handling ...................................................................................................................... 24
6.6 Task and checkpoint ............................................................................................................ 25
6.7 Configuration of dose functions using APL .......................................................................... 26
6.8 DoseL block of the APL in brief ........................................................................................... 28
6.8.1 Dosing states and commands ............................................................................................. 29
6.8.2 Dosing types "flow" and "weight" ......................................................................................... 31
6.8.3 Functional principle of dosing type "Weight" ....................................................................... 32
6.8.4 Functional principle of dosing type "Flow" ........................................................................... 33
6.8.5 Operation of dose block ....................................................................................................... 34
6.8.6 Dribbling ............................................................................................................................... 36
6.8.7 Post dosing .......................................................................................................................... 38
6.8.8 Creep flow ............................................................................................................................ 39
6.9 Collaboration of DoseL and Analog valve / Flow controller ................................................. 40
6.9.1 Application of PID controllers for controlling the dose flow ................................................. 40
6.9.2 Direct application of analog valves for setting the dose flow ............................................... 40
6.10 Task and Checkpoint ........................................................................................................... 43
• The PCS 7 Library has getting on in years and is no longer „state of the art“ (Release with
PCS 7 V3.0).
• New functions (e.g. Feature parameter) were only in addition possible
• Realization of maintenance functionalities led to the necessity of structure changes
• New customer requirements to functions and structure
• Resource consumption and performance does not meet the requirements any more
• Expansion of the standard functionalities are necessarily to minimized custom-designed
expansions of the library
Diagnostic Drivers
e.g. MOD_1
PCS 7 Advanced
PCS 7 Library V7.1 Process Library V8.1
Only correct
versions are
able to
cooperate!
Technological functions Technological functions
ChnBlocks for PCS 7 V8 Channel Drivers Version 7
Operation and Control Operation and Control
The PCS 7 Advanced Process Library (APL) is a block library for PCS 7 being
Training documentation introduced
in PCS 7 Version 7.1.
SP-PCS7CWS 3 - 7It principally contains all blocks and- Siemens
SITRAIN functions
AG ©of the
2015
former PCS 7 Standard Library. It also offers additional functions in existing blocks as
well as completely new blocks.
The PCS 7 Standard Library, however, is still available. It is also possible to use both
libraries at the same time (i.e. use blocks from both libraries in a CFC).
Because the PCS 7 Standard Library and the PCS 7 APL can be installed either
separately or together, shared blocks are stored in the PCS 7 Basic Library. This
consists largely of driver blocks.
Versioning
The former PCS 7 Standard Library was still updated for a defined time by reasons of
maintenance and compatibility.
The former PCS 7 Library is no longer installed automatically via the frame setup with
the release of PCS 7 V8.0. It is provided in the directory "Additional Products" on the
PCS 7 DVD and can be installed manually by the user if required.
With the release of PCS 7 V8.1, the former PCS 7 Library is not available as version
V8.1, but only as last released version V7.1.3.
The product update of the APL can require own APL service packs inside of a product
update period of PCS 7, resulting in differences for service pack versions between APL
and PCS 7.
As example, PCS 7 V7.1 SP1 includes the APL V7.1 SP3.
Standard Library. The version number of these channel driver blocks may deviate from
the version number of the library:
Use of the functions in the APL version V8.0 requires the installation of channel driver
blocks of version V7.0, because only these are able to cooperate with the Basic
Library V8.0.
Therefore, the PCS 7 Standard Library V7.1, delivered with PCS 7 V8.0, included an
additional folder with channel driver blocks V7.0.
Upgrade scenarios for libraries of PCS 7 V8.0 with
The following figure describes an application example, where in a mixed operation of
use of new functions
APL V8.0 and PCS 7 Standard Library (with the latest updated version) the new
functions of PCS 7 V8.0 can be used.
New asset & diagnostic New technological Updated version
functions functions
In contrast, the following figure shows the application case for a mixed operation of
APL V8.0 and PCS 7 Standard Library without use of new functions of PCS 7 V8.0.
Upgrade scenarios for libraries of PCS 7 V8.0
An older version of the Basic Library and compatible versions of the driver blocks
without use of new
have functions
to be used in this scenario. The project is continued with old functionalities, and
the libraries have to be installed manually.
Old asset & diagnostic New technological Updated version
functions functions
installed manually
When using Windows 7, only the PCS 7 Library of the PCS 7 V8.0 DVD can be
installed.
Further Usage
Training documentation of PCS 7 Library from
SP-PCS7CWS 3-9 PCS 7 V8.1 – SITRAIN - Siemens AG © 2015
PCS 7 Library V7.1.3.2 installing: -> PCS 7 DVD V8.1, folder: "Additional Products"
For engineering use channel blocks of this Library (V7.0).
Independent of the version due to additional installed XML meta data (e.g.
diagnostics).
Compatibility for earlier and following PCS 7 versions
See [111] PCS 7 V7.1 Standard Library - 03_2009, for more details on the former
PCS 7 Standard Library.
See [112] PCS 7 V8.1 Basic Library - 07_2014, for more details on PCS 7 Basic
Library.
See [113] PCS 7 V8.1 Advanced Process Library - 07_2014, for more details on
PCS 7 APL.
See [114] PCS 7 Libraries APL Style Guide - Programming Manual - 10_2010, for
more details on design specifications and rules that you require to adapt project-
specific blocks in conformance with APL.
6.3 General
Engineering the APL – functions using the APL
withengineering
Structures and Signal status (ST)
6.3.1 Structures and Signal Status (ST)
Customer Benefit
• Consistent use of Signal Status
• The signal provides directly the quality of the
process value
A new feature of APL is the use of structures. Each process interconnectable parameter
of a block is of the Structure type. This structure consists at least of 2 bytes, whereby at
least one byte determines the actual value (e.g. type BOOL) and one byte characterizes
the signal status (ST) of the transferred signal.
Training documentation SP-PCS7CWS 3 - 11 SITRAIN - Siemens AG © 2015
Analog Value [STRUCT]: Value [REAL] +1 Byte Signal Status (ST) [16#...]
Engineering with the APL –
Binary Value [STRUCT]: Value [BOOL] + 1 Byte Signal Status (ST) [16#...]
Structures and Signal Status (ST)
The following figure shows interconnectable parameters in the CFC and their structure.
Analog value
Binary value
0 16#60 Simulation
6 16#80 Good
In technological blocks, a group status is formed from the input parameters (see
description of the relevant blocks) according to the priority table below.
Training documentation SP-PCS7CWS 3 - 14 SITRAIN - Siemens AG © 2015
Note: Priority "0" is the highest priority, "6" the lowest.
This group status is displayed in the status bar of the faceplate and of the block icon.
• Redundancy blocks
• Blocks with configurable status
prioritization
• Interlock blocks
• Mathematical blocks Block status
worse
• PCS 7 channel blocks
• Channel blocks for field devices
The priority list for digital logic blocks or Priorities e.g. for technologic Priorities for
interlock blocks is not shown here! blocks, analog logic blocks redundancy
blocks
All blocks of a group use the same priority specifications and form the signal status of the
process outputs based on them.
If multiple process inputs are involved in calculating a process output, the signal status
is formed according to prioritization defined by function block groups.
The highest priority is the signal status with the value 0.
The status / quality of control inputs for logic functions and parameters have no
influence on the status / quality of process values and logic functions of the blocks.
The status / quality of process values inherit the results of mathematic and logic
functions, which are directly related to the process value.
The status/quality of process values immediately inherit the results of monitoring and
limiting functions directly related to the process value.
If process values are connected via a channel driver (Pcs7AnIn, Pcs7DiIn, Pcs7DiOu,
etc.) directly with the technological function block (e.g. MotL), the Signal Status is
displayed directly in the faceplate.
For other blocks such as And04 or Or04 the Signal Status is passed on to the output
according to logic.
When the Signal Status of the outputs is formed the following is taken into
consideration:
If any input of a gate causes a signal change at the output, the worst Signal
Status of the input must be taken as every signal can influence the output.
If several inputs have equal priority with the effect that the output cannot change,
these inputs will take the best Signal Status as the output is clearly defined by this
signal.
See [113] PCS 7 V8.1 Advanced Process Library - 07_2014, 1.1.5 for more details on
formation of the Signal Status.
In the APL most blocks have a Feature input parameter. This input can be used to
Training documentationinfluence the
way in which the block
SP-PCS7CWS 3 - 25 works. The Feature parameter
SITRAINenables the© 2015
- Siemens AG
manufacturer to realize sector-specific customer requirements as well as adjust them
afterwards. Furthermore, function expansions can be integrated retrospectively via this
parameter.
It is a structure which consists of 32 Boolean elements which can be used for setting
various behaviors at the block. For the 32 Boolean elements there are pre-assigned bits
and reserve bits. The reserve bits can be assigned by the manufacturer (Siemens) at a
later point in time.
The configuration of the individual bits of the feature parameter occur by double-clicking
the "Feature" input at the block (offline/online) as displayed above. Normally, the feature
bits should be configured in the Master Data Library in order to achieve consistency in
the multi-project.
Any change of settings on the feature parameter does not influence the block
interface. This allows modifying the block behavior without CPU stop. Advantages of
the reserve bits: Block changes can be loaded without CPU stop. The original block
behavior can further be used.
The APL-specific procedure for setting the unit for analog signals shall be illustrated at
the example of both blocks Pcs7AnIn (channel driver) and MonAnL (limit value block).
Trainingsunterlage SP-PCS7CWS 3 - 25 SITRAIN - Siemens AG © 2015
The unit is represented by means of an identification number at the input PV_InUnit.
Data type, possible identification numbers see Help on the “MonAnl” block under the
keywords “Functions of MonAnl, select unit”.
Number “1342” for example represents the unit “%”. The input channel driver forwards
the unit of "PV_InUnit" to its output "PV_OutUnit". By interconnection to the
"PV_Unit" connection of the limit block the unit “%” is then displayed in the
visualization of the limit value block.
Other advantages
Based on PA specification according PNO and HCF
No text but integer value (multilingual on OS)
Can be transferred via connection in CFC
Can be changed online without OS compile
Language neutral
If PV_Unit input of the MonAnl is configured with 0, the unit can also be specified
according to the current method (attribute “S7_unit” of this connection or in the CFC
the “Unit” column of this connection in the Properties table of the “MonAnl”
connections). Not listed units can be used this way.
See [113] PCS 7 V8.1 Advanced Process Library – 07_2014, 1.1.12.5 for more
details.
Compared with the PCS 7 Standard Library the design of the block icons in the APL has
Design of APL Block
changed Icons (APL
and expanded V8.1)
considerably.
Two different types of block icons exist in APL V8.1:
(always in case
of valves and
drives)
Alarm is triggered
Manual / Automatic / Program / Local / OOS
Internal / External
Signal Status
Bypass active / Forcing / Tracking
Block is interlocked
instance-specific name
(hidden / unhidden)
Status display
The operating status of a device can be indicated by an operable icon. You can use this
icon to open the operating window of the associated faceplate and set the device to a
new operating state. You can start a motor or open a valve, for example. This requires
that you have the appropriate operator permissions.
Left click: You open the standard view of the corresponding faceplate
Right-click on the icon of the status display. The operating window of the
corresponding faceplate opens. Click on the button for the desired operating state.
Display and
operation
Commands and
Status operating modes
displays
Interlocks
Button for
additional
faceplate
Auxiliary values
Operating (max. 2)
area
1 2 3 4 6
1 2 4 6 7 5
1. Group display
3 5 2. Status displays (beginning from left)
• Lock alarms via faceplate
1. Group display
• Suppress alarms via FB
2. Lock alarms via faceplate
• Acknowledge alarms
3. Acknowledge alarms
• Worst Signal Status
4. Suppress alarms via FB
• Batch display
5. Block instance allocated by SIMATIC BATCH
• Active alarm delay
6. View selection
• Maintenance request and release
7. Loop View
• Memo display
3. Open views of the faceplate
4. More available views of the faceplate
5. Back to the block icon (e.g. from another picture)
6. Pin the view
The operating modes are mainly assigned to the block families (drives, channel,
convert, etc.). Three categories are distinguished below:
1. Motors, valves and dosage feeders
2. Controls
Operating modes –without
3. Blocks Overview
“manual” and “automatic mode” (e.g. MonAnL)
Basically the operating modes can be set directly by the operator in the faceplate. In
order to select a particular operating mode the respective conditions must also be
fulfilled (e.g. operator authorization, etc).
Controller
Automatic mode
Manual mode
Program operation
Out of service
Status diagram
6.4.2 for theforoperating
Status diagram modes
the operating modes of APL
Used for
Used for motors,
controllers only
valves, and
dosing units
In "Manual mode" the device is controlled manually by the operator. The operator
decides how the manipulated variable (output signal) for the block is changed. The
manipulated variable can be analog or binary.
In "Automatic mode" the motors, valves and dosage feeders must be controlled by the
Switchover between
block algorithm via inputsoperating modes manual
which are interconnected and by the SFC.
or controlled
automatic
In "Automatic mode" the output signal of the control is automatically calculated by the
block algorithm.
ModLiOp = 0 ModLiOp = 1
Localsetting 0 1 2 3 4
1 2
• Local switchover via external signal • Local switchover via external signal
• Control signal from CFC block in AS • Control signals from MCC, CFC block in AS is tracked
3 4
See [113] PCS 7 V8.1 Advanced Process Library – 07_2014, 1.1.9 for a description
of these „Feature“-Bits. Also check the online help.
6.4.5 Simulating,
Simulating, Forcing,
Forcing, Tracking
Tracking
Simulating signals
There are two different forms of simulation: block-internal and block-external simulation
• In case of block-external simulation, a signal with simulation state is applied at an input parameter.
• Block-internal simulation means that the "simulation" function is running in the block itself.
• The technological functions are not influenced.
• All the process-related output signals receive the "simulation" status.
To ensure that drives can assume a safe state with different modes and control
functions (Quick Stop/Forcing of operating states), the control commands or modes
Priorities ofmust
operating modes
be assigned different and control functions
priorities.
Thus a drive which is switched off, for example, by the operator at the local control must
not be switched on by an automatic mode command. The priorities for the modes and
functions of the motor are given in the following picture. The hand mode and the
automatic mode have the lowest priority here.
Out of Service
BypProt = 0
Local mode LockAct
Localsetting = 2/4)
Priority
Forced operating
State
(Forcing)
Templates
6.5 APL Templates
Templates (standard types, standard solutions) are provided to support you in the
configuration of a PCS 7 plant in case of recurring technological functions.
The PCS 7 libraries (PCS 7 Advanced Process Library, PCS 7 Basic Library) contain
templates for base control functions (e.g. motor control, valve control, Standard PID
Training documentation control loop) as well as for advanced
SP-PCS7CWS 3 - 26 control functions (e.g. PID control
SITRAIN loop AG
- Siemens with control
© 2015
performance monitoring).
A template is a prepared chart containing already all blocks necessary for the process
tag, in other words not only technologic blocks for the control function, but also driver
blocks and additional logic.
Example ValveLean
Example ValveLean (PCS 7 APL V8.1)
Bad process
„Maintenance
value Connection
release“ status
to output
„Out of service“
status
Textual
interconnection Logic to form the control
system fault
The effectiveness of control signals is not of course known to a technological block. The
internal block logic can recognize and take into account the effectiveness of the control
signal with the help of block inputs for feedback signals. You can use the following
monitoring functions:
Monitoring the start-up and stop characteristics for motors or the runtime of valves
Monitoring of the startup characteristics is implemented using the parameter
MonTiDynamic. The monitoring time specifies the period within which the feedback
value, for example, FbkStart with motors, must be available in response to a control
signal. If this is not the case, the text "Control error" is displayed in the standard view of
the faceplate. An error message is generated at the same time.
The block then goes to its neutral position. In the case of motors, this is always the stop
state. With other blocks, this is an neutral position you have specified (SafePos
parameter). The block signals this at the corresponding output parameter of the error
message with 1, for example, with MonDynErr = 1 for motors.
Parameters are set in seconds.
Disabling Monitoring
You can activate or deactivate the monitoring of feedbacks.
The monitoring function is enabled via the Monitor = 1 input.
Static and dynamic errors are reset by disabling the monitoring (Monitor = 0). If you
reactivate monitoring during the plant runtime, only dynamic monitoring
(MonTiDynamic) will be performed.
Disabling feedback
You can also disable feedback completely. If you operate a block without feedback, use
the parameter NoFbkxxx = 1. This means, for example, that you do not have any
feedbacks for the opened state of the valve. Monitoring is thus disabled for this
feedback. The feedback at the block is adjusted according to the control signal.
The channel and technologic blocks feature error handling routines. A distinction must
be made between the following areas:
Error numbers
External process control error (CSF)
Process-specific errors
Invalid signal states
Mode switchover error
Errors in channel blocks
Error numbers
Most blocks have an output parameter ErrorNum that can be used to output internal
error states of the block as error numbers.
With some blocks, input parameters are checked for permissible values. If the block
algorithm detects an invalid combination of input signals, then an error number
(ErrorNum) is output depending on the block type.
For example, a valve cannot respond to commands for opening and closing at the same
time.
The signal status of the individual signals is not taken into consideration for forming
the group error. The outputs therefore always have the status, 16#80.
Task
Walk-through the APL Start project
Test several functions and familiarize yourself with the operation of APL block icons and
faceplates.
Checkpoint
Checkpoint
How …
do you parameterize the PCS 7 APL
channel driver so that the output
process value is inverted?
Quantity
Dribble
correction
Dosing flow
in kg/time
Underdosing – Dosing finishes
Decision for further dosing immediately
SP fine feed
minus dribble
SP coarse feed
Dribbling
Fine
feed
flow
Dribble
Coarse dosing
flow
Dribbling
If, for procedural reasons, a dribbling quantity is expected after the closing of the valve
when dosing is stopped (in particular with the dosing type "weigh"), a dribbling quantity
as well as a dribbling time can be configured.
If, for example, 100 kg are to be dosed as setpoint and it is expected that after the
closing of the valve another 5 kg will dribble within approx. 5 seconds, a dribbling
quantity of 5 kg and a dribbling time (corresponding to the waiting time) of 7 seconds (>
5 seconds) are configured.
The consequence is that the dosing will be stopped already at 95 kg and then it will be
waited for 7 seconds. During this period, the function block will be in the "Dribble" state.
Only after this dribbling time will it be checked whether the dosed quantity is within the
tolerance range. If the dosing quantity is outside the tolerance, underdosing or
overdosing will be signaled.
Post dosing
In the case of underdosing, a post dosing can be started with the "Continue" command.
This post dosing will run for a configured time, the so-called duration of post dosing. If
the process value is within the tolerance limits, the dribbling time will be terminated
prematurely and the dosing will change to the "End" state.
A dosing can be terminated at any time with underdosing (dosing quantity not within the
tolerance range) via the "Unterdos Quit" button. The dosage feeder will then changes
from the "Off" state to the "End" state.
Creep flow
Creep flow means that despite an inactive dosing process a dose flow >0 can be
observed. Possible reasons are valves being not sealed.
See [113] PCS 7 V8.1 Advanced Process Library - 07_2014, 5.1.3 for more details
Dosing status
The block provides the following states:
"End"
"On"
"Dribbling"
"Off"
"Pause"
state change
The following commands can initiate a state change:
"Start"
"Cancel"
Dosing can only be started if the dosing setpoint is greater than the current dosing
quantity (DQ_Out) or if Feature Bit 6 (Resetting the dosing quantity when dosing
starts) is set and no interlock is pending.
The command for start dosing in Automatic mode is an edge. It is executed only in
the status "End".
Weight Flow
Start
AS
End Dq
AS
AS End
Dq
Start
Functional
6.8.3 principle
Functional of dosing
principle type
of dosing “Weight"
type "Weight"
DoseL
Feature
Tare function: actual scale value is transferred to the tare memory DQ_Tare.
Tare
The dosing quantity is determined for a scale dosing in the "Start" state following a
positive edge at the input parameter StandStill. The StandStill input parameter
is a feedback signal of the scale.
The process of determining the dosing quantity stops after the dosing quantity is reset in
the "End" state.
If the signal is no longer available, you need to configure StandStill with 1
permanently; the dosing quantity will then be determined right at the start of the dosing.
The DQ_Out output parameter is the dosing quantity and not the actual scale value.
In the "End" state (= following resetting of the dosing quantity), nothing further is
displayed, since the dosing procedure is complete.
When dosing starts, the actual scale value is transferred to the tare memory, and
therefore the dosing quantity always remains 0 after the start of dosing. Therefore,
the actual scale value is not displayed in the "End" state.
DoseL
Feature
Dosing quantity: is implemented using the trapezoid rule, time basis of the measured value acquisition can
be converted by dimensionless conversion factor TI
Average calculation : serves to smooth systematically pulsating measuring signals; 1 <= NumSample <=16
Where
PV_Out(t) = PV · Gain
The integration of the flow for the dosing quantity is implemented using the trapezoid
rule.
Compared to the summation of rectangles rule, in which the values are simply added
up, the procedural error in the case of the trapezoid rule is smaller for the
determination of the numerical integral value.
Operation
6.8.5 of Dose
Operation of block
dose block
Display of
dosing status
Feature Bit 15
Displayed unit in % or
following input PV_Unit
Quantity setpoints
The block always requires the setpoint for the dosing quantity (dosing setpoint). All
I/Os for the dosing setpoint start with DQ_.... The dosing setpoint is comprised of the
coarse and fine setpoints for the coarse/fine flow control.
All I/Os for the fine setpoint start with DQ2_.... The coarse setpoint is generated
internally from the dosing and fine setpoints and is displayed at the output with
DQ1_SP.
If no fine setpoint is available, the coarse setpoint is equal to the dosing setpoint.
In case of dosing type "weight" (scale mode) it is not possible to input analog flow
rate setpoint for coarse and fine flow. The flow setpoint view cannot be selected.
Exception: The calculation of the flow rate for dosing by scale is activated (Feature
Bit 7 = 1). In that case the flow setpoint view is available, but it is not possible to input
setpoints. The calculated value for current flow rate is displayed in this view.
Feature Bit8 "Use an internal or external setpoint for the absolute fine dosing quantity"
Use this Feature bit to determine whether the doser processes the internal and external
setpoint for the fine dosing quantity in an absolute manner and is displayed or operated
in an absolute manner in the faceplate.
The default setting is 0.
Bit = 0: Deactivated. The internal and external I/Os as well as the display and
operation of the fine dosing quantity setpoint are processed in the % unit.
Bit = 1: Activated: The internal and external I/Os as well as the display and operation
of the fine dosing quantity setpoint are processed in the unit that was set using the
parameter DQ_Unit.
Dribbling
6.8.6Training Documentation
Dribbling SP-PCS7CWS 7 - 11 SITRAIN - Siemens AG © 2015
Feature Bit 27 = 1 (Enable configuration of the dribbling quantity): Dribbling parameters can
changed during dosing in progress as long the dribbling has not yet been
started.
Automatic determination of dribbling quantity: Determines the dribbling quantity from previous
dosing actions automatically.
Dribbling
Operation of dribbling parameters in the Parameter view
Dosing quantity
setpoint 100 L
After 20 sec
dosing finishes.
Expected
dribbling
quantity 5L
Post dosing
6.8.7 Post dosing
P_DoseTime
Tolerance band
is exceeded
Time
Coarse-/ Fine dosing Dribbling Post Re-tried
dosing dribbling
Duration of Duration of
dribbling post dosing
phase
RelaxTime P_DoseTime
More Scenarios: Post dosing quantity < Dribbling quantity Post dosing for time P_DoseTime
and P_DoseTime = 0 Post dosing by setting of
Ctrl/Ctrl2 = 1 for one cycle
Flow dosing with 1 PID controller Flow dosing with 2 PID controllers
• Feature Bit 5 = 0
• MeterType without relevance
PIDConL1
DoseL
PIDConL DoseL
PIDConL2
• Analog control output SP provides the setpoint • Analog control output SP1 provides the
for coarse flow and fine flow (step-by-step) setpoint for coarse flow
• Dribbling not necessary, because sensor / • Analog control output SP2 provides the
actuator are together setpoint for fine flow
DoseL VlvAnL
MV
SP MV_Ext
SP1
Rbk
SP2
Preview
„Auto“
de-energized
state
Use of end
position switches
The control valve is brought to a specified position using an analog activation signal.
Training Documentation SP-PCS7CWS 7 - 18 SITRAIN - Siemens AG © 2015
The activation signal can be formed by a ramp function in this case.
The block forms the manipulated variable error from the difference between the
activation signal and the acquired position feedback and can monitor it for adherence to
high and low limits.
The control valve is monitored for the "Open"/"Closed" position. The block can be
connected with a digital limit switch for this purpose. The block can generate the digital
position signals itself through the adjustable limits for the "Open"/"Closed" position.
Missing feedback can be derived from the control in the block.
controls the
Auxiliary auxiliary valve
valve
Solenoid valve
/ Control valve
Compressed
air supply
Task: Configuration of dosing material 1…3 into the Dose tank D210
Goal
Until now, the dosing of material was realized using a sequential function control.
You change the dosing configuration now to use of the DoseL block. Hereby, each
material is dosed with another dosing application:
Material1: Dosing type "Flow" with 2 binary valves for coarse feed and fine feed
Material 2: Dosing type "Weight (filling)" with 2 binary valves for coarse feed and fine
feed
Material 3: Dosing type "Flow" with analog valve (without PID controller and without
auxiliary valve)
Checkpoint
Checkpoint
Content 7
7 Advanced Process Control (APC) with APL ......................................................... 3
7.1 Learning targets ..................................................................................................................... 3
7.2 Characterizing Control Loops ................................................................................................ 3
7.2.1 Stable and Unstable Control Loops ....................................................................................... 3
7.2.2 Examples of Unstable Control Loops .................................................................................... 5
7.2.3 Determining the step response – Possible loop reactions .................................................... 6
7.2.4 Loops with a pure lag time behaviour .................................................................................... 7
7.2.5 First statements about the loop behavior .............................................................................. 8
7.3 Overview of the APC tools in the PCS 7 Libraries ................................................................. 8
7.3.1 Procedure to Improve Plant Performance ............................................................................. 9
7.3.2 Control performance management ...................................................................................... 10
7.3.3 Extensions to PID Control .................................................................................................... 11
7.3.4 Cost Benefit Analysis ........................................................................................................... 15
7.3.5 Objectives for APC solutions ............................................................................................... 15
7.3.6 Further information .............................................................................................................. 15
7.3.7 Available Example Project in PCS 7 with APC-Templates .................................................. 17
7.3.8 Available APC-Templates in PCS 7..................................................................................... 18
7.4 PID algorithm ....................................................................................................................... 19
7.4.1 P-action ................................................................................................................................ 19
7.4.2 PI-action ............................................................................................................................... 21
7.4.3 PD-action ............................................................................................................................. 22
7.4.4 PID-action ............................................................................................................................ 23
7.4.5 Note on selecting the controller type ................................................................................... 24
7.4.6 Deadband ............................................................................................................................ 25
7.4.7 Filtering ................................................................................................................................ 26
7.4.8 PID Controller Block in the APL: PIDConL in Brief .............................................................. 27
7.4.9 Signal Filter Block in the APL: Smooth ................................................................................ 30
7.5 Control Performance Monitoring (CPM) .............................................................................. 32
7.5.1 Control Performance Index .................................................................................................. 32
7.5.2 Control Performance Monitoring in the APL: ConPerMon in Brief ...................................... 34
7.5.3 Configuring AS functions ..................................................................................................... 36
7.5.4 Configuring OS functions ..................................................................................................... 37
7.5.5 Startup of the CPM .............................................................................................................. 38
7.5.6 Evaluation of stochastic characteristics of the control performance (Steady state) ............ 39
7.5.7 Step evaluation .................................................................................................................... 42
7.5.8 Alternatives for determining the benchmark ........................................................................ 43
7.6 Controller optimization using the PID Tuner ........................................................................ 44
7.6.1 Introduction .......................................................................................................................... 44
7.6.2 Procedure for tuning a controller ......................................................................................... 45
7.7 Task and checkpoint ............................................................................................................ 51
7.2 Characterizing
Characterizing Control Loops
Control Loops
Stable and
7.2.1 Unstable
Stable Control
and Unstable Loops
Control Loops
Course ST-PCS7ASE 7-2 SITRAIN - Siemens AG © 2016
SITRAIN
Course ST-PCS7ASE
Most of the control loops in process
11 - 3
plants show a stable behavior Siemens
- after a stepwise
AG © 2012
change in the manipulated variable the control variable shows a transient behavior
reaching a new steady state after some time. The controlled process is “stable” with
respect to systems dynamics, even without a controller.
Other instabilities
There are other forms of instability besides the integrating behavior, e.g. increasing
oscillations. Such behaviors can rather be found in mechanical systems (e.g. the
famous inverse pendulum). In process plants, such instabilities if appearing at all, are
mostly due to inappropriate controller tunings, and only rarely appear in open loop.
Consequences
Unstable control loops cannot be stabilized without a controller. Therefore, switching a
controller in such a loop to manual mode is not allowed for a longer time.
Hence, the recording of measurement data for the process identification (e.g. for the
PID tuner or the MPC configurator) via step experiments in open control loop is not
possible. The model type and the control algorithm of the MPC function block are also
inappropriate for unstable control loops. Therefore, the unstable part transfer functions
have to be stabilized by subordinated slave controllers before the application of the
MPC.
Level Control
If the level of a tank with continuous feed is to be controlled via an adjustable drain as
actuator (e.g. pump or valve with or without flow control), the control loop shows
integrating behavior.
An equilibrium condition of the level only exists if the drain is exactly equal to the feed.
The level permanently decreases until the tank is empty, if the drain is increased
Characterizing
stepwise starting atControl Loops
this equilibrium condition. In contrast the level permanently
Examples of the
increases until Unstable Control
tank overflows, if the Loops – Fixedstepwise
drain is decreased Drain starting at the
equilibrium condition.
Fixed drain Fixed drain with Natural drain Drain with flow
with pump pump and valve with flow control control and pump
VFeed VFeed VFeed VFeed
Important:
Always control loop with integral behaviour
Nonlinearities caused by pump and valve characteristics
SITRAIN
Course ST-PCS7ASE 11 - 4 Siemens AG © 2012
Position Control
The control loop shows integrating behavior if the position of mechanical parts is
controlled and the speed of the actuator is available as manipulated variable. An
"equilibrium condition" without move in the position only exists for a speed equal to zero.
The valve actuator is a common example for position control in process plants.
However, the valve position controllers are mostly integrated in the corresponding
actuators and hence not an issue for the DCS.
D
C
A
50% Manipulated value [%]
Time
Source: J. Müller, B.-M. Pfeiffer, R. Wieser: "Regeln mit Simatic - Praxisbuch für Regelungen mit SIMATIC S7 und SIMATIC PCS7 für die
Prozessautomatisierung" 4. Aufl. 2011, Publicis Publishing, ISBN 978-3895783401
SITRAIN Determining the step response of the process is the most important tool during the
Course ST-PCS7ASE
commissioning of control loops11is.- 5This test provides very important information
Siemens AG © 2012
for the
parameterization of the controller.
The step response of the loop is the reaction at the measured value of the process to a
stepwise change of the manipulated variable (actuator) with open loop. This response is
the result of the sum of all factors in the loop, e.g. dead times, time delays and
integration times and process gain factors.
For the procedure of determining the step response, it is important to start from a stable
state and to wait for a stable state after the step change.
An unambiguous classification of all control loops existing in practice is almost
impossible. There are different control loop types, which have to be treated separately.
The step response not only provides the information about the loop type, but the user
can also derive a number of time constants and identifiers from the recordings, which
will be important for configuring the controller.
First recording
In order to determine the step response, you should apply a constant manual output
(e.g. 50%) and wait for the process to settle resulting in a stable situation.
80
Manipulated value [%]
60
XO
XI
40
20
0
Time
TU TG
Source: J. Müller, B.-M. Pfeiffer, R. Wieser: "Regeln mit Simatic - Praxisbuch für Regelungen mit SIMATIC S7 und SIMATIC PCS7 für die
Prozessautomatisierung" 4. Aufl. 2011, Publicis Publishing, ISBN 978-3895783401
SITRAIN
Course ST-PCS7ASE
After activating the recording device
11 - 6
a constant manual output value (e.g. 20%) should
Siemens AG © 2012
be issued. Then you have to wait for a stable state in the process. Afterwards, another
constant output value (e.g. 80%) should be output and again, you have to wait until a
stable state is reached. The loop gain can be calculated as follows:
Kps = XI [%] / XO [%]
XI is the absolute value of the actuator step and XO is the absolute value of the step
response. The settling time TG and the dead time TU are determined graphically. To do
so, you have to draw a tangent line in the point of inflection of the measured value trend.
The intersections between this tangent line and the values X 1 (old measured value) and
X2 (new measured value) determine the time values T G and TU.
If this procedure is repeated with further, higher manipulated values, a manipulated
value can surely be found, of which the resulting measured value is in the neighborhood
of the planned setpoint. Afterwards, the same steps are executed in reversed order (e.g.
manipulated value 80%, 50%, 20% and finally 0%).
2000 Planned
setpoint
1600
1200
800
400
0
Manipulated value [%] Time [s]
100
80
60
40
20
0
Time [s]
Source: J. Müller, B.-M. Pfeiffer, R. Wieser: "Regeln mit Simatic - Praxisbuch für Regelungen mit SIMATIC S7 und SIMATIC PCS7
für die Prozessautomatisierung" 4. Aufl. 2011, Publicis Publishing, ISBN 978-3895783401
SITRAIN
Course ST-PCS7ASE
After analyzing the recordings of this procedure, it is possible to makeSiemens
11 - 7
the first
AG © 2012
statements about the loop behavior.
The loop is symmetrical. The most important time constants are more or less the same
in positive resp. negative direction. Furthermore, the loop is linear, which means that the
most important time constants are the same at 20% and at 80% and have a resulting
value of about 15s. The loop shows pure time lag behavior (of lower order) and the
actuator is well dimensioned.
An actuator output of 50% to 80% delivers the desired setpoint. The actuator has
enough positioning reserve in both directions. Raising the output value by 33% (from
66% to 100%) results in a pressure raise of 850 mbar. In relation to the total range of
2500 mbar, this also corresponds to 33% which results in a loop gain of about 1,0. The
control loop can be adequately controlled (T G / TU > 10).
For the improvement of plant performance using APC tools, a typical procedure with
several steps is established. This description however has to be considered as a rough
framework: during individual applications some steps can be skipped because prior
knowledge is available, or some intermediate steps or iterations are required.
Some extensions to PID control like override control, cascade control, ratio control or
split range control are of structural nature: they are not visible in the figure above, but
they are applied if the respective structure is found in the setting of the task.
If all trials in the SISO case fail, the allocation of MVs and CVs has to be checked, or
actually there is a need for MIMO control (orange arrow).
After successful commissioning, APC functions as well as conventional control loops
should be subject to control performance monitoring (green arrow).
SIMATIC PCS 7 – Advanced Process Control (APC) with APL
Course folder, V8.2.0, ST-PCS7ASE 7-9
SIMATIC PCS 7 AS Engineering
ConPerMon
Each control loop to be monitored is by default equipped with a dedicated performance
monitoring function block (ConPerMon), like designated in the process tag types of the
Advanced Process Library. Using these process tag types, the engineering effort for
manual linking of monitoring and controller function blocks can be reduced.
In steady state process operation this monitoring function block calculates the following
stochastic features of control performance:
Mean value, variance and standard deviation of controlled variable,
Mean value of the manipulated variable and control deviation, Control performance
index,
Estimated steady state process gain.
For setpoint steps, the following deterministic features of control performance are
evaluated:
Rise time, settling time and settling ratio,
Overshoot absolute and relative to the step height.
Other statistical and graphic evaluations of the signals in the control loop over longer,
freely selectable periods are available in the faceplate of the ConPerMon block.
This generic term summarizes different solution approaches that can be realized by
clever combination of PID controllers with other standard function blocks, and that are
offered as process tag types in PCS 7 Advanced Process Library.
Examples
Override Control
PID Gain-Scheduling
Split-range Control
Smith Predictor Control for Dead time Processes
Dynamic Disturbance Compensation (Lead-Lag Feed forward Control)
SITRAIN
SP-PCS7ZWS / 04 Introduction of APC Tools Page 14 Siemens AG © 2011
A cascade
Cascade Control control involves two or more PID controllers connected in series. The
manipulated variable of the primary controller is interconnected to the external
A cascade control involves two or more PID controllers connected in series. The
setpoint of the secondary controller so that both control loops are nested.
manipulated variable of the primary controller is interconnected to the external setpoint
of the secondary controller so that both control loops are nested.
Input Output
disturbance disturbance
Setpoint Override
Master Control
Controller
Slave
Auxiliary Main Process
Controlled
Controller Variable
Process
SITRAIN
SP-PCS7ZWS / 04 Introduction of APC Tools Page 16 Siemen
PID Gain-Scheduling
Many processes have a non-linear response due to non-linear physical, chemical or
thermodynamic effects. When such a process needs to be kept in the close vicinity of a
fixed operating point, the transfer response can be linearized around this operating
point. A linear PID controller can be designed for this linearized transfer function. If,
however, the process has a strongly non-linear response and/or operates at different
operating points, no constantly good control response can be expected throughout the
entire operating range. Due to the non-linearity, various gain factors or process time
constants are in effect at different operating points. In keeping with this, different
controller parameters will be considered to be optimum.
“How to Improve the Performance of your Plant Using the Appropriate Tools of
SIMATIC PCS 7 APC-Portfolio?”
A white paper issued by Siemens in October 2008
© Siemens AG 2008. All rights reserved.
Template Descriptions in the Manuals of PCS 7 Standard and Advanced Process
Library:
Further Information
SITRAIN
Course ST-PCS7ASE 11 - 24 Siemens AG © 2012
SITRAIN
Course ST-PCS7ASE 11 - 24 Siemens AG © 2012
APC templates
7.3.8 Availablein PCS7 LibraryinV7.1
APC-Templates PCS 7
APC templates in
PCS 7 Library V7.1
SITRAIN
SP-PCS7ZWS / 05 Control Performance Management Page 3 Siemens AG © 2011
Control deviation (error)
The difference between the command variable w (setpoint) and the controlled variable x
(process variable) gives the actual input variable for a controller.
Pout K P et
A high proportional gain results in a large change in the output for a given change in the
error. If the proportional gain is too high, the system can become unstable. In contrast, a
small gain results in a small output response to a large input error, and a less
responsive or less sensitive controller.
Offset
The most important characteristic of a pure P-control is the offset. A pure proportional
controller will not always settle at its target value, but may retain a steady-state error.
Bias
The steady-state error is an inherent defect of purely proportional control. It may be
mitigated by adding a compensating bias term. This means in case of a droop, to set
the controller setpoint above the true desired value.
P-term
The better way for the elimination of the steady-state error is the combination or
corrected by adding an integral term.
If the proportional gain is too low, the control action may be too small when responding
to system disturbances. Tuning theory and industrial practice indicate that the
proportional term should contribute the bulk of the output change.
I out K i e d
t
Integral term
0
SITRAIN
SP-PCS7ZWS / 05 Control Performance Management Page 4 Siemens AG © 2011
The “pure” integral controller
The control deviation is accumulated over the time (integration). The sum is multiplied
by a constant Ki, also called the integral gain.
I out K i e d
t
0
As long the control deviation is applied, the manipulated variable is increasing.
A purely integral control is slow in comparison to any other control algorithm, but it is
able to eliminate completely the control deviation.
Integral term
Adding an integral term to a P-controller eliminates his typical characteristic of the
steady-state error and retains the fast response.
et
d
Derivative term Dout K d
dt
SITRAIN
SP-PCS7ZWS / 05 Control Performance Management Page 5 Siemens AG © 2011
D-action (Derivative term)
The D-action considers the slope of the control deviation by calculation of a rate of
change. In other words, the derivative with respect to time is formed and multiplied by a
constant Kd, also called the derivative gain.
et
d
Dout K d
dt
The D-action makes a controller able to react already on the “annunciation of a change”.
The controller can react on deviations faster than other algorithms.
Sensitivity to noise
If the sensor signal is noisy, the noise is amplified by the derivative term. Inn case of a
large derivative gain and sufficient noise amplitude of the input signal, the control loop
(the process!) can become instable.
Offset
The disadvantage of purely proportional controllers, the steady-state error, also exists
for a PD-controller!
P K P et
K i e d
t
I 0
et
d
D Kd
dt
SITRAIN
Graphic
SP-PCS7ZWS / 05 Control representation
Performance Management ofPage
the 6PID-algorithm Siemens AG © 2011
Graphic representation of the PID-algorithm
Ideal parallel type: Standard type:
Kp
Ki Kp 1 / TN
Kd TV
Possible conversions:
Standard PID form
Ki encountered
is most often K p / TN in industry. TN K p / Ki
Kp gain is K d K p to
applied TVthe I , and D terms
out out
TV K d / K p
MV t K p et e d Td et
1 t d
Ti 0 dt
In this standard form, the parameters have a clear physical meaning:
Ti is the integral action time (TN in the standard library, TI in the APL)
Td is the derivative action time (TV in the standard library, TD in the APL)
K i K p Ti and K d K pTd
7.4.6 Deadband
Source: J. Müller, B.-M. Pfeiffer, R. Wieser: "Regeln mit Simatic - Praxisbuch für Regelungen mit SIMATIC S7 und SIMATIC PCS7
für die Prozessautomatisierung" 4. Aufl. 2011, Publicis Publishing, ISBN 978-3895783401
The deadband is used for suppressing very small control errors. It’s an area of
a signal range or band where no action occurs (the system is dead). The purpose is to
SITRAIN
prevent oscillation or repeated activation-deactivation cycles (called 'hunting'
Course ST-PCS7ASE in proportional control systems).
11 - 35 Siemens AG © 2012
The picture above is an example of a 5% deadband function for the control error.
The control error is formed from the effective setpoint SP and the process value
PV (ER = SP - PV_Out) and is available at the ER output.
0,63 V(t)
0
TM_LAG t
U = 0 wenn t < 0
Input step:
U = 1 wenn t > 0
Disturbances at the measured value (PV) (e.g. high-frequent superpositions in the
infeed, unallowed reference potential changes, disturbance induction in the
SITRAIN
Course ST-PCS7ASE measurement wiring …) can be 11 suppressed
- 37 or at least reduced by using filterAGfunctions.
Siemens © 2012
The easiest and most used example of such is filter is the first order lag (PT1).
Other possible filters are:
Second order filter
The second order filter uses half your time constant in each of the two cascaded first
order filters. This results in an overall time constant equivalent to a first order filter.
Butterworth second order filter
The Butterworth is a high performance second order filter. It is a good filter to
eliminate noise since it causes the lowest quantity of phase addition for the highest
quantity of noise reduction for any of the filters. On a step change, a Butterworth will
have a smaller overshoot.
Averaging filter
The averaging filter is a moving average filter - for every sample interval it gives the
values average of the previous time constant. If you have a specific frequency you
would like to remove, setting the averaging filter time equals to the period of the noise
or to a multiple of the values and should completely remove it (period is the inverse of
frequency).
The block is a PID controller with continuous output signal (manipulated variable). It is
used to activate a final controlling element with continuous action input.
The block functions following the PID algorithm with a delayed D action and an
integrator with double precision.
Program mode for closed-loop controllers - interface for higher-level control functions
The interface for primary controller functions (external Advanced Control software
package) provides primary controller functions, which run on an external PC as an OPC
client, the option of using the control from the controller function block and specifying
the setpoint or manipulated variable from a remote location. This procedure is called
program mode.
You can use the Feature bit 19 (Enabling program mode) to specify whether or not the
controller block is intended for program mode.
Program mode requires an enable signal (input parameter AdvCoEn = 1) from a central
control block. If this enable signal goes from 1 to 0, for example, due to errors in the
OPC communication, the controller block returns to the operating mode it had before
program mode.
Program mode with manipulated value (in manual mode only, not for step
controllers without position feedback)
If you set the input parameter AdvCoModSP = 0, the analog value provided by the
OPC client (AdvCoMV) is used as an external manipulated value for the controller.
The algorithm of the PID controller is bypassed. The controller and faceplate
otherwise react as they do with tracking (MV_TrkOn = 1).
Requirements for program mode with manipulated value:
AdvCoModSP = 0,
AdvCoEn = 1,
The controller is in manual mode.
Feature parameter
1 = Filter active
Restart the filter algorithm
How it works
Course ST-PCS7ASE 7 - 40 SITRAIN - Siemens AG © 2016
The block is used as a low pass filter. This filter allows the signal portions with
frequencies below the cutoff frequency to pass practically unattenuated, whereas
portions with high frequencies are attenuated. The enables you filter out high frequency
interference in the signal (for example, signal noise) and smooth the signal.
In comparison to a first order low pass filter, the Butterworth filter has the advantage that
the transition from the passing section to the blocking section is sharper in the Bode
diagram. If the frequency area of the interference is known, it can be filtered out with
minimal influence on the wanted signal.
The maverick detection monitors adjacent signals. If signal mavericks are detected, they
are not processed any further. The block outputs the last valid signal.
The signal status is passed from the input directly to the output.
This block provides the standard function Forming and outputting the signal status for
mathematical blocks. The signal status for the block is formed using the parameter
PV.ST and output at the output parameter CleanPV.
You can find additional information on forming the signal status under Forming and
outputting the signal status for mathematical blocks.
Configuration
Use the CFC editor to install the block in a cyclic interrupt OB (OB30 to OB38). The
block is also installed automatically in the startup OB (OB100).
You then set the filter time constant for the low pass filter to achieve the desired effect.
To set the filter time constant, it is helpful to observe the original and filtered signals in
the CFC trend plotter. The filtered signal should be smoothed as required but not too
delayed. An increase in the filter time constant increases the smoothing effect but also
increases the delay. Typical starting values for the time constant are around ten times
the sample rate of the signal.
There is a sample project for the Smooth block (APL_Example_xx, xx refers to the
language variant) with an application case for this block:
Setpoint [%] Source: J. Müller, B.-M. Pfeiffer, R. Wieser: "Regeln mit Simatic -
Praxisbuch für Regelungen mit SIMATIC S7 und SIMATIC PCS7 für die
Process value [%] Prozessautomatisierung" 4. Aufl. 2011, Publicis Publishing, ISBN 978-
3895783401
100
80
60
40
20
Time
0
In general, the control performance is a measure for the quality of the control function
SITRAIN or, more scientifically, the control performance is a measure for the sum of all control
Course ST-PCS7ASE 11 - 40 Siemens AG © 2012
errors after a setpoint change resp. after a disturbance. The picture above shows two
different process reactions to the same setpoint step with different controller settings.
The “aggressive” controller setting is indicated in gray, while the more “conservative,
sluggish” controller setting is indicated as hatched. The bigger the surface between the
setpoint and the process value, the worse the control performance is, according to the
“linear absolute value quality criterion”. In the picture, both surfaces are roughly equal,
so both settings are equally good, resp. bad.
In practice, the more sluggish setting is used much more often than the aggressive
setting, because this behavior spares the plant.
See [1005] Application note 32486166 CPM - 11_2008 for more information about
control performance monitoring.
Variance of the
process value
Course ST-PCS7ASE
Due to the approach, the variance
7 - 42
PV_Variance as second moment requires the
SITRAIN - Siemens AG © 2016
calculation of differences of each current measured value from (constant!) mean value.
The standard deviation as the square root of the variance is easier to interpret because
it has the same physical unit as the measured value.
Within the function block, however, a variant of the calculation is used that saves
computing time.
The control performance index CPI (Control Performance Index) in the unit [%]
describes the current variance of the controlled variable relative to a benchmark.
The CPI moves in the 0…100% range. If the current variance corresponds to the
benchmark, the index reaches the value 100. If, on the other hand, the current variance
increases, the control performance index drops accordingly. Ideally, the benchmark is
obtained in a defined good state of the control loop.
Definition of limits
for control
performance and
overshoots
Evaluation of Evaluation of a
steady-state step response
control behavior
Manipulated
value
Naming convention:
Setpoint
add “_cpm”
Run sequence:
1 controller
2 ConPerMOn
Process
value
Control loop
closed?
General Procedure
To configure the CPM block in CFC, proceed as follows:
1. Open the plan with the PID controller block in the CFC editor.
2. Declare the PID controller block as the predecessor for installing the next block.
To do this click with the right mouse-button and select "Predecessor for Insertion
Position“ from the submenu.
3. In the dialog box "Predecessor for Insert Position" you select to which OB the
subsequent blocks are installed (in this example OB35, i.e. the 100ms cycle).
4. The field with the runtime properties in the block header is then shaded in green.
5. Draw the CPM block from the block catalog next to the PID controller block via Drag
& Drop. You find it in the “CONTROL” family.
6. Open the properties dialog of the CPM block and change its label to the name of the
PID controller block followed by “_cpm”.
7. Interconnect the CPM block with the PID controller block.
8. Compile the S7 program and load it into the automating system.
Direct jump
button with
standard text
Course ST-PCS7ASE
Apart from the OS compilation 7no special configuration steps are
- 46
necessary.
SITRAIN - Siemens AG © 2016
Initialize ConPerMon
Start the
initialization from ConPerMon initialized
the Parameter view CPI ≈ 100%
Initialization of CPM
Course ST-PCS7ASE 7 - 47 SITRAIN - Siemens AG © 2016
If the controller
is set perfectly,
has achieved a steady state,
the time window has been defined and filled with values from the steady state,
the ConPerMon block can be initialized. You do this by clicking the "Initialize" button in
the parameter view of the ConPerMon faceplate or by setting the InitRefVar = 1
parameter in the CFC block. This saves the PV_Variance parameter in the current
time window as a reference value for calculating the control quality in the block along
with reference values for manipulated variable and process variable.
The CPI moves in the 0 …100% range. If the current variance corresponds to the
benchmark, the index reaches the value 100. If, on the other hand, the current variance
increases, the control performance index drops accordingly. Ideally, the benchmark is
obtained in a defined good state of the control loop and stored when the ConPerMon
block is initialized.
It does not matter if the CPI temporarily reaches values higher than 100%. A CPI >
Course ST-PCS7ASE 7 - 48
100% only means that the variance of the controlled variable isSITRAIN - Siemens AG © 2016
currently somewhat
lower than in the reference state. Other alternatives for determining the benchmark will
be explained in a separate section.
CPI suppression
ConPerMon
If a step change in the setpoint is detected in a control loop, the ConPerMon block
freezes the CPI value and automatically suppresses all messages relating to this. As the
user, you can also force the suppression of the messages manually via the binary input:
ManSupprCPI = 1
Course ST-PCS7ASE 7 - 49 SITRAIN - Siemens AG © 2016
This setting is useful to avoid false alarms when known disturbances occur, for example
at a load change in a Conti process or a dosing procedure in a Batch process.
Optional filtering
If you consider that the calculated CPI signal is too strongly affected by noise, you can
smooth it using the integrated level pass filter (parameter CPI_FiltFactor) with the
filter time constant TimeWindow x CPI_FiltFactor.
Increase of CPI
• The time window was changed.
• CPI signal was smoothed before.
• Reference standard deviation > current value
The mean value of the control deviation in the sliding time frame is displayed in the
standard view of the CPM faceplate. For a controller with I-part (PI or PID controller) is
should be almost equal zero. If not the following problem causes are possible:
The performance of the final control element is insufficient. As a result the controller
keeps going to the limit with its actuating signal. This may be due to unfavorably
dimensioned final control elements, changed operating conditions or also due to
wear.
The manipulated variable required by the controller will not be effective in the process
as the final control element is defective or the communication is disconnected, for
example.
An important parameter for monitoring the control performance is the overshoot. Too
large overshoots of the step response are due to a wrong gain setting of the controller
or changed control process. If the overshoot is too large, it helps in many cases to
reduce the gain of the controller.
ConPerMon
7.6 Controller
Controller optimization
optimization using
using the the PID Tuner
PID Tuner
7.6.1 Introduction
Using the PID tuner, you can tune the following control blocks:
Using the PID tuner, you can tune the following control blocks:
CTRL_PID PIDConL
FMCS_PID PIDConR
PIDStepL
A prerequisite for control by the PID tuner is that the selected controller block is
functionally compatible to a controller block from the PCS 7 library and known by the
PID tuner.
The controller modules FM 355-2 C and FM 355-2 S have their own controller
optimization. Therefore, the PCS7 PID Tuner is not designed for optimization of the
Course ST-PCS7ASE FMT_PID block. 7 - 53 SITRAIN - Siemens AG © 2016
The PCS7 PID Tuner requires that the symbolic name CTRL_PID, CTRL_S,
PIDConL, PIDConR, PIDStepL or FMCS_PID is listed in the symbol table.
How it works
With the "Controller tuning" function, you determine the optimum controller settings for a
particular process. A wizard guides you through the individual steps.
The measured data of the controlled system is recorded. The optimum PID parameters
are calculated based on this data and prepared for further use.
You will find additional information on the use of the PID tuner in the corresponding
HELP file. You can call up this help by selecting a block on the chart in CFC and
activating the menu command
Edit > Controller Optimization
See FAQ “procedure for controller optimization with the PCS7 PID tuner” for more
details:
https://support.industry.siemens.com/cs/ww/de/view/8031495/en
Enable optimization
in the OS-Faceplate
or
in the CFC-Chart
PID tuner
Start the PID Tuner
Start the PID Tuner
2. Start Optimization
PID Controller
The PID Tuner will access to the instance DB of the controller block. The CFC should
be compiled and downloaded before PID tuning. There must be a connection
between the programming device or PC and the CPU.
Curve recorder:
Actual values
shown as trend
csv files are used
to archive the trend
values
Start Controller
Optimization
Course ST-PCS7ASE
Using the "Curve Recorder" function,
7 - 57
you record the changes in the values of the control
SITRAIN - Siemens AG © 2016
loop parameters over a specified period of time and display these values as curves.
You can select up to four parameters for the recording (not with PID controllers).
You can simultaneously archive the curves to files during the recording. You can then
view and process the archived curves at a later time, for example, with MS Excel.
When you are optimizing the PID controller parameters, the parameters are
permanently assigned to setpoint, actual value and manipulated variable. The fourth
curve field remains constantly grayed out.
When you select a curve with the curve selection switch, the scaling of the curve is
displayed. This is the scaling you have set in the "Settings" dialog box.
The controller parameter assignment (the main window of the standard PID control)
can also be manipulated if you have opened one or more windows of the curve
recorder.
PID tuner
Step 2: Set process to starting point
Step 2: Set process to starting point
Select Operating mode
Open control
loop behaviour Enter starting
setpoint
PID tuner
You are intervening in the process in this situation!
Step 3: Enter the new setpoint
“old”
Setpoint “new”
Setpoint
Process trigger
“Reset” or “No reset”
Here, you have the option of removing or maintaining the process excitation achieved in
Step 3. If you have brought the process excitation to the future operating point, it is
advisable not to remove the process excitation.
If you want to remove the process excitation, enter the previous values for the
manipulated variable or setpoint.
Course ST-PCS7ASE 7 - 62 SITRAIN
SIMATIC PCS 7 – Advanced - Siemens
Process AG © 2016
Control (APC) with APL
7 - 48 Course folder, V8.2.0, ST-PCS7ASE
PID tuner
Step 6: Specify the controller characteristic SIMATIC PCS 7 AS Engineering
Choose Controller
design
a slight overshoot of the actual value occurs in the closed control loop despite a
periodic settling.
PID tuner
Step 7: results and selection of the controller type
Step 7: Results and selection of the controller type
Identification
result
Select
controller Type
Results stored
in csv files
Course ST-PCS7ASE
Upper trend display field: The trend of the actual value (green)
7 - 64
is shown together with
SITRAIN - Siemens AG © 2016
the trend derived from the simulated process model (red). The better the model
describes the characteristics of the real process, the better the trends of the output
data match each other.
Lower trend display field: The corresponding manipulated variable trend is displayed.
New PID
parameters
Start
simulation
You can simulate the optimized controller with the process model to determine if the
controller has the desired controller characteristics.
When simulation is started, the closed control loop is simulated with the displayed
parameters for the controller and process model and the result is displayed in a graphic
window. During the simulation, the characteristics of the controller is displayed as
realistically as possible, including the delay of the D component and the sampling
Course ST-PCS7ASE effects although the manipulated variable limits and setpoint ramps
7 - 65 SITRAINare not taken
- Siemens into
AG © 2016
consideration.
Deviations may occur between the simulation and the characteristics of the real control
loop due to inaccuracies in the identification of the process model or due to non-
modeled disturbances (including measurement noise).
Therefore, start the simulation with modified controller parameters as many times as
needed until you find satisfactory controller characteristics.
Download
parameters
The old and new controller parameters are displayed in the fields. The old controller
parameters correspond to the offline data from CFC.
The time lag of the D component is always set to one fifth of the derivative action time
and is not displayed.
7.7Course ST-PCS7ASE
Task and checkpoint 7 - 66 SITRAIN - Siemens AG © 2016
Goal
The parameters of the PID controller in the loop TICA315 are not optimal. Use the PID
tuner to optimize the controller and use the "Control performance monitoring" to check
Task: whether
Control the behavior has
performance improved.
monitoring
Checkpoint
Checkpoint
Content 8
8 SFC Advanced ......................................................................................................... 3
8.1 Learning targets ..................................................................................................................... 3
8.2 Introduction ............................................................................................................................ 3
8.3 Interconnecting SFC and CFC charts .................................................................................... 4
8.3.1 Variable browser and PCS7 Library V7.1 .............................................................................. 4
8.3.2 Variable browser and structures in PCS7 Advanced Process Library V8.0 .......................... 5
8.3.3 Drag and drop from CFC with PCS7 Library V7.1 ................................................................. 5
8.3.4 Drag and drop from CFC with PCS7 Advanced Process Library V8.0.................................. 6
8.4 External view of the SFC Chart ............................................................................................. 6
8.5 Interconnecting the external view in the CFC editor .............................................................. 7
8.6 Operating State Logic (OSL) ................................................................................................. 8
8.6.1 Diagram of the state changes for SFC OSL .......................................................................... 8
8.6.2 Diagram of the state changes for sequencer OSL ................................................................ 9
8.7 Priority of sequencers .......................................................................................................... 10
8.8 Introduction to SFC Types ................................................................................................... 11
8.8.1 SFC chart and SFC type compared .................................................................................... 11
8.8.2 Creating SFC types in the Component View ....................................................................... 11
8.8.3 Creating the SFC instance in CFC ...................................................................................... 12
8.9 Characteristics of SFC types ............................................................................................... 14
8.9.1 Characteristics – Chart I/O's ................................................................................................ 14
8.9.2 Characteristics – Process values......................................................................................... 16
8.9.3 Characteristics – Control values .......................................................................................... 17
8.9.4 Characteristics – Parameters .............................................................................................. 17
8.9.5 Characteristics – Setpoints .................................................................................................. 18
8.9.6 Characteristics – Block contacts .......................................................................................... 20
8.9.7 Task and checkpoint ............................................................................................................ 22
8.9.8 Characteristics – Control Strategy (CS) .............................................................................. 24
8.9.9 Setpoints and Control strategies in the OS ......................................................................... 26
8.9.10 Characteristics – Timers ...................................................................................................... 27
8.9.11 Task and checkpoint ............................................................................................................ 28
8.9.12 Characteristics – Bit memory ............................................................................................... 28
8.9.13 Task and checkpoint ............................................................................................................ 29
8.9.14 Characteristics – Note Texts................................................................................................ 30
8.9.15 Characteristics – Position Texts .......................................................................................... 31
8.9.16 Note Texts and Position Texts in the OS ............................................................................. 32
8.9.17 Task and checkpoint ............................................................................................................ 32
8.10 SFC Templates .................................................................................................................... 33
8 SFC Advanced
8.1Learning target targets
Learning
8.2 Introduction
Hierarchical software structures are usually created during the automation of batch
processes. These structures are described in standards (see NAMUR NE33, ISA
S88.01).
SITRAIN Both higher-level recipe control and the group control level have an important role to
Course ST-PCS7ASE 9 - 2 software structures, with the latter being
play when it comes to hierarchical Siemensof
AGparticular
© 2012
significance in terms of engineering work. The software blocks used here are known
internationally (S88) as equipment modules (EM) and equipment phases (EPH), whilst
in German-speaking countries (NAMUR) they are known as "Technische Einrichtungen"
and "Technische Funktionen".
See [123] PCS 7 Compendium Part C - Technical Functions with SFC Types -
01_2015 for more details.
8.3Interconnecting
Interconnecting
SFC andSFCCFCand CFC charts
charts
VariableVariable
8.3.1 browser and PCS7
browser Library
and PCS7 V7.1
Library V7.1
Procedure
SITRAIN
Course ST-PCS7ASE Click "Browse". The "Browse"
9-3dialog box opens. The dialog box has four AG
Siemens different
© 2012
tabs: Plant View, Component View, Runtime Groups, Icons
When you browse (through CFC charts in the Plant or Component view, for
example), all the available objects of the chart folder are found and displayed.
You limit the list of inputs/outputs by clicking "Filter...” Then, only the inputs/outputs
relating to the current configuration are shown.
See [304] PCS 7 V8.2 SFC for SIMATIC S7 - Programming and Operating Manual -
12_2015, 12.4.2.5 for more details on filtering
SITRAIN
Course ST-PCS7ASE 9-4 Siemens AG © 2012
Procedure
In the steps and transitions of the SFC it is possible to select the structure, value or
status. If, for example, the process value of an analog measuring point is to be read, the
value of the output PV_Out is to be evaluated.
To do so, the block has to be selected first and then the corresponding connection.
Since PV_Out is a structure, double-clicking PV_Out STRUCT would mean that the
Interconnecting
structureSFC and
is taken CFC
over to thecharts
transition. The structure can be opened and the value or
status can then be selected via right mouse click > Open Structure.
Drag and drop from CFC with PCS7 Library V7.1
8.3.3 Drag and drop from CFC with PCS7 Library V7.1
The engineering of the commands in the step blocks is often done in such a way that
the CFC chart and the SFC are opened simultaneously. The block I/O of the block on
the CFC chart is selected and dragged directly into the command line of the SFC chart.
Value is added
automatically
Procedure
The procedure described in the previous paragraph is also possible with the APL
blocks. The .Value structure component is added automatically starting from PCS 7
Course ST-PCS7ASE V7.1 SP2. 9-6 SITRAIN - Siemens AG © 2014
Display
The external view of the SFC chart represents the SFC chart in a CFC chart as a block
with its interface. To distinguish it from CFC blocks and nested charts, the external view
has the "SFC chart" icon in the header.
Purpose
In the external view, you can assign parameters for and interconnect the interface of the
SFC chart for AUTO mode so that the status of the SFC chart can be determined and
the control signals can be derived from it for the SFC chart. This allows you to influence
the processing of the SFC chart via the user program.
If the SFC chart is used in MANUAL mode, only the inputs/outputs that are also
processed in MANUAL mode are relevant in the external view.
External view of the SFC Chart
8.5Interconnecting the external
Interconnecting view in the
the external CFC
view editor
in the CFC editor
Interconnection
You can provide the inputs/outputs with textual interconnection and/or interconnect
them with compatible inputs/outputs of other objects or with shared addresses. You
make all interconnections in the sheet bar. You cannot place any object, such as blocks,
in this window.
See [304] PCS 7 V8.2 SFC for SIMATIC S7 - Programming and Operating Manual -
12_2015, 13.1 for A complete description on the inputs and outputs of the SFC chart
See [123] PCS 7 Compendium Part C - Technical Functions with SFC Types -
01_2015, 4 for useful information on operating states and state changes.
A complete description on the operating states and the state changes of the SFC
OSL can be found in
[304] PCS 7 V8.2 SFC for SIMATIC S7 - Programming and Operating Manual -
12_2015, 16.2.5.
Overview
The sequencer OSL controls processing of sequencers.
The operating state logic of the sequencer is defined by the Diagram of the state
changes for sequencer OSL (shown below).
The sequencer OSL is executed independent of the SFC-OSL when a sequencer is
processed. This means that the sequencer has a state which differs from the SFC state.
For example, the state of the SFC OSL can be "Holding", whereas the state of the
sequencer OSL is "Run" (due to the processing of the sequencer to the "Holding" state).
Operating State Logic (OSL)
The processing of the sequencer OSL is subordinated to the SFC OSL. This means that
Diagram of the
thestate
state changes
change for usually
in the SFC OSL sequencer
effects theOSL
state change in the sequencer
OSL.
SITRAIN
Course ST-PCS7ASE 9 - 10 Siemens AG © 2012
A complete description on the states of the sequencer OSL and the state changes of
the SFC OSL can be found in [304] PCS 7 V8.2 SFC for SIMATIC S7 - Programming
and Operating Manual - 12_2015, 16.2.5.2.
8.7PriorityPriority
of sequencers
of sequencers
SITRAIN
Course ST-PCS7ASE 9 - 11 Siemens AG © 2012
Executing sequencers
If the SFC status is unchanged, the sequencer whose start condition is fulfilled and has
the highest priority of all sequencers with a fulfilled start condition is executed.
If there are several sequences with a fulfilled start condition and the same priority, then
the sequencer with the tab furthest left in the editor is executed (similar to the
processing of alternative branches).
If the sequencer that was processed up to now is different from the sequencer that is to
start processed now, the previous sequencer is aborted and the new sequencer starts.
The start condition triggers the start of a sequencer. While the sequencer is being
processed, it is not necessary for the start condition to remain fulfilled. The sequencer is
processed until it is completed or until a sequencer with a higher priority and fulfilled
start condition has to be processed or the sequencer is aborted or held due to a state
change.
In the "Idle," "Completed," "Aborted," "Stopped," "Held," "Held (Error)," "Error," and
"Run" states (when SELFCOMP=0), sequencers are processed until you exit the state
by means of a command. A sequencer can, therefore, be repeated any number of times
when the corresponding start condition is fulfilled and no command is pending. To
prevent this behaviour, you can configure the final transition of the sequencer with an
unfulfilled condition. This causes the sequencer to "hang" at this transition and to exit
only following a command.
Common features
An SFC chart and an SFC type have the following common features:
Standard interface for external control of the SFC (MANUAL/AUTO)
Sequencers for formulating the control function of the SFC
Differences
An SFC chart and an SFC type differ as follows:
SITRAIN
Course ST-PCS7ASE
You create a new SFC type in the
9 - 13
following ways: Siemens AG © 2012
In the Component view of the SIMATIC Manager
In the SFC Editor
Result
The type is given a default name by the system, for example SFC_Type(1), which you
can change.
The next free FB number is automatically reserved for the SFC type and the type
template (FB 247) is copied to the block folder with this number. This allows you to
configure messages and instances for the type once it is created without having to
compile the type. The FB number can be modified later in the object properties dialog
box.
When you first create an SFC type, the blocks required for compilation and for execution
in the AS are copied to the current program and then managed in the ES. The blocks
are included in the supplied block library.
SFC types cannot be assigned to a hierarchy folder in the plant view since they
themselves are not relevant to execution (from the perspective of the process to be
automated).
SFC Types
Creating
8.8.3
the SFC instance in CFC
Creating the SFC instance in CFC
Introduction
The SFC types available in the chart folder are displayed in the CFC block catalog.
They are either in the All blocks directory or in the directory of the family, if they are
assigned to a family, otherwise, they are in the Other blocks directory.
You can also insert SFC types in the CFC chart from the libraries (for example, SFC
library or master data library).
To edit the Family, select the SFC type in the component view and use the menu
command
Right mouse click > Object Properties.
Procedure
In CFC, drag the SFC type into the CFC chart from the block catalog or from a library.
Result
The SFC instance is represented like a CFC instance block. If there is not enough
space to position the SFC instance, it is displayed as an "overlapping block" (light gray
and without visible inputs/outputs). After moving them to a free position in the chart, the
overlapping blocks are displayed as normal blocks again.
You can rename, assign parameters for, and interconnect the SFC instance in the CFC
chart.
8.9SFC Types
Characteristics of SFC types
Characteristics
8.9.1 vs. Chart
Characteristics I/O's
– Chart I/O's
Characteristics
Chart I/O's
SITRAIN
Course ST-PCS7ASE 9 - 15 Siemens AG © 2012
Directly in the interface editor: Call this editor with icon or via menu command
View > Inputs/Outputs
In the characteristics editor: Call with the icon or via menu command
View > Characteristics
The interface editor and the characteristics editor box are displayed alternatively. This
means that it is not possible to define technological characteristics and interface
inputs/outputs at the same time. You can define characteristics and inputs/outputs in
any order.
You define individual inputs/outputs in the interface editor. These are available in
addition to the inputs/outputs defined in the characteristics editor. These
inputs/outputs are unknown to the characteristics editor and cannot be handled there.
Setpoints, for example, are created and assigned values during the definition of
characteristics. From this definition, the characteristics editor generates the required
inputs/outputs, which are displayed in the interface editor after it is opened and can be
used to configure the sequential logic.
You cannot change the I/Os generated by the characteristics editor in the interface
editor (except system attributes, initial value, comment).
SIMATIC PCS 7 – SFC Advanced
8 - 14 Course folder, V8.2.0, ST-PCS7ASE
SIMATIC PCS 7 AS Engineering
If you perform the download with the SIMATIC Manager function "Compile and
download objects" and the SFCs need to be disabled for this, the SFCs will not be
disabled. In this case, the download will not be performed and an error message is
entered in the log.
While changes are being downloaded, the SFC instances cannot be processed in the
automation system, and the SFC instances cannot be accessed via the interconnections
in the CFC.
You do not have to disable the SFC instances to rename I/Os and characteristics or to
change units and limits.
Changes in the topology (step/transition sequence, jump destination) and the step or
transition configurations are made in the SFC type and do not become effective in the
SFC instances until they are compiled and downloaded. You can download inactive
sequencers following changes to the topology at any time. If you want to download
active sequencers following changes to the topology, you must first disable the SFC
instances before downloading. You can download changes to the step and transition
configuration at any time even if SFC instances of the SFC type are currently being
processed in the automation system.
After changing the configuration, you need to compile the OS to ensure that the current
data is available on the OS.
Process values are used to connect process signals (e.g. level) to the sequencer and to
control the SFC type.
Process values are primarily used for step enabling conditions in step sequencers.
I/O Meaning
"name" Process value input
Control values are used to control blocks which are not connected to the phase via the
CM (Control Module – Block Contact) interface. This can be used, for example, to
separate a cascade controller.
Setpoints can be used to influence the behavior of the control strategies and the control
of the SFC type. They can be specified by means of operator input or by a higher-level
Course ST-PCS7ASE control (SIMATIC BATCH, for example).
9 - 21 Setpoints can be assigned
SITRAINto individual
- Siemens control
AG © 2014
strategies.
When a setpoint is defined, an input is automatically created for the associated actual
value. Setpoints of an SFC type contain block contacts for process and control values.
The setpoints of an equipment module are batch-relevant and are referred to as
– Characteristics
SFC Types parameters on the higher-level control (e.g. SIMATIC BATCH), although they should not
Setpoints; Use of thewith
be confused the parameters
important of the SFCI/O's
Setpoint type.
See [304] PCS 7 V8.2 SFC for SIMATIC S7 - Programming and Operating Manual -
12_2015, 13.2.6.2 (section “Setpoints characteristic”) for more information on this
subject.
Course ST-PCS7ASE
Block contacts are blocks on the control module. The control module
9 - 23
(CM) is activated
SITRAIN - Siemens AG © 2014
by the SFC type. As well as block activation, feedback on the relevant state is also
required. These activations and feedbacks are connected to the SFC type via interface
elements.
A cohesive group of interface elements is called a block contact.
In order to be able to use block contacts to connect basic control blocks, you must
specify at block type level the relevant I/Os for creating a link to an SFC type.
This is achieved by assigning the "S7_contact = true" system attribute to the block I/O.
The technological blocks from the PCS 7 Library are prepared accordingly. If required,
you can make project-specific modifications to the block types supplied in terms of the
relevant I/Os.
If you subsequently add or change system attribute "S7_contact" for the I/O of a block
type that is used as a block contact in the SFC type, this has no effect on the block
inputs/outputs of the SFC type.
If you want these changes to be adopted for the SFC type, note the following:
Import the changed block type in the CFC with the menu command Options >
Block Types. All block instances of the type are updated during the import.
Update the block contacts in the SFC with the menu command
Options > Block Contacts
This menu command applies the changes to the interface of the SFC type and to all
SFC instances.
Goal
Task: SFC types
Complete the steps and transitions regarding heating and draining for reactor R3x0.
Checkpoint
Checkpoint
SITRAIN
Course ST-PCS7ASE 9 - 36 Siemens AG © 2012
ATTENTION!
If you no longer want to use a control strategy, do not delete the control strategy;
rather, rename it as "not used", for example. The numbering and functionality of the
other control strategies is then retained.
See [304], 15.4 (section Changing the control strategy and setpoints for an SFC
instance) for more information on this subject.
SFC Types – Characteristics
Control Strategy (CS) in the OS-faceplate
Selection of Control strategy by the Operator
In automatic mode, the control strategy is chosen by the interface by means of the input
parameter CS. In manual mode, the control strategy is chosen by the operator in the
faceplate. It can be selected in the drop down menu in the view "Prepared values".
Setpoints are visible in two views in the faceplate – actual values and prepared values.
In the "actual values" view you can find the setpoint values and measured values for the
actual execution of the sequencer. In the "prepared values" view, the operator can
prepare the setpoints for the next execution of the sequencer (after the next start
SFC Types – Characteristics
command).
Setpoints and Control
Moreover, strategies
only the in theto OS
setpoints assigned the selected control strategy are visible in the
faceplate.
Times can be implemented using a default time module (TIMER_P). If the SFC type is
used, then this time module is automatically embedded for editing times.
For more information on this subject, refer to the online help on the TIMER_P CFC
block type.
Goal
Create a second control strategy for cleaning the dose tank and the reactor.
Task: Control strategies
Checkpoint
Checkpoint
SITRAIN
Course ST-PCS7ASE 9 - 30 Siemens AG © 2012
Bit memories serve as a clipboard for values. They are created as static variables,
which are not visible on the interface display in CFC.
Bit memory is an internal variable that does not appear as a visible I/O on the
interface. As a result, for example, you cannot use the "Browse" dialog box or the
interface editor to incorporate this variable in the addresses of the step/transition
properties. You have to enter the I/O name for the bit memory with the keyboard or
drag & drop them from the characteristics window.
Goal
Task: Hold Hold
the the
process
SFC typein a safe
in such way
a way that the process is held as well.
Checkpoint
Checkpoint
SITRAIN
Course ST-PCS7ASE 9 - 33 Siemens AG © 2012
Note texts are used for displaying additional notes on the operator station (OS). They
can also be used to display additional information in tandem with a message in the
event of an error. Configuration work needs to be carried out in order to utilize this
function.
The texts, which are predefined in the characteristics dialog, can be displayed simply by
Course ST-PCS7ASE
setting an output (OPTIPNO) on the interface. These note texts
9 - 36
can be acknowledged
SITRAIN - Siemens AG © 2014
by the operator. A note text is not connected to the signaling system; it is used for
operator prompting (provided that it has been integrated in the signaling system via the
configuration as operator prompting, for example, otherwise the text will only be visible
as additional information).
Using the assignment of a note text number in a step action, the corresponding note text
is displayed in the SFC faceplate.
Position texts (posis) are used for displaying the current sequence state on the operator
station (OS). Position texts can be set in the sequential control system and displayed on
the SFC type faceplate. Furthermore, the position text can be used in a higher-level
control to query an interim state, for example. An example is the querying of rough/fine
dosing.
When a position text number is assigned in a step action, the corresponding position
Course ST-PCS7ASE 9 - 37 SITRAIN - Siemens AG © 2014
text is displayed in the SFC faceplate.
Goal
Provide additional information in the faceplate for the operator.
Whenever a control strategy starts, a note text must be issued. Moreover, a position text
Task: Note must
andbeposition
issued whenever
textsthe state of a control module changes.
Checkpoint
Checkpoint
SFC Templates
8.10 SFC Templates
Course ST-PCS7ASE
Several SFC templates are available
8 - 39
in the "SFC Library" by the menu command
SITRAIN - Siemens AG © 2016
SFC Library >Blocks+Templates> Templates
The TypeStates SFC type already contains several sequencers for state-oriented
processing of the sequential control system.
You will also find the ChartStates CFC chart with several sequencers for state-
oriented processing of the sequential control system.
Finally, you will find the TypeCtrlStrategy SFC type. It contains a control strategy-
oriented processing of the sequential control system. You can copy these templates
and change them to suit your purposes.
Content 9
9 Syntax Rules ............................................................................................................ 3
9.1 Special characters ................................................................................................................. 3
9.1.1 General Background Information ........................................................................................... 3
9.1.2 PC(s) ...................................................................................................................................... 4
9.1.3 ES .......................................................................................................................................... 4
9.1.4 OS .......................................................................................................................................... 5
9.2 Maximum Length for Names.................................................................................................. 6
9.2.1 ES – CFC ............................................................................................................................... 6
9.2.2 ES – SFC ............................................................................................................................... 6
9.2.3 ES – Blocks............................................................................................................................ 6
9.2.4 ES - General Naming in Project............................................................................................. 7
9.2.5 OS – Alarm Logging .............................................................................................................. 7
9.2.6 OS – Pictures and Variables.................................................................................................. 7
9.3 Rules for Naming in the PH ................................................................................................... 8
9 Syntax Rules
9.1 Special characters
This section provides information on which special characters should not be used in
your PCS 7 projects.
PCS 7 OS utilizes WinCC in its underlying software and structures the PC, ES, and OS
into common interrelated groups. Therefore the naming within all three of these groups
must follow standards different from typical WinCC standards. The standards apply
specifically to the use of Special Characters (signs).
Each of the three components (PC, ES, & OS) has its own naming requirements which
must be followed. The following Tables indicate the Special Characters (signs) which
should not be used. The underscore (_) is allowed for naming. Within the WinCC
portion of the OS, you may use the ASCII Character set (although, do not use National
special character sets). Avoid all special characters in object names, particularly, if the
object names are used in Scripts. The following tables show the characters which you
may not use in WinCC components, designations and specified names.
Additionally, Microsoft Excel interprets texts with special characters as formulas. For
this reason these characters should not be used as part of object naming schemes
(e.g., “=”, “+”, ‘-“) for group name, variables, texts, etc.
9.1.2 PC(s)
9.1.3 ES
9.1.4 OS
9.2.1 ES – CFC
9.2.2 ES – SFC
9.2.3 ES – Blocks
In the OS, you will configure messages using the alarm logging editor. Using the editor,
you configure the length of texts for messaging. The following table provides the
maximum character lengths allowed.
The OS Pictures and Variable naming lengths must also be considered at project start.
The following table provides the maximum lengths guidance.
Note
The characters [ ' ] [ . ] [ % ] [ \ ] [ * ] [ ? ] [ : ] [spaces] within a name are converted to
the substitute character $ when you compile the OS.
The ES separator [ \ ] is converted to the [ / ] character.
If, for example, you assign the name "TICA:1" for a CFC chart (this becomes
"TICA$1" on the OS) and the name "TICA*1" for another CFC chart, (also becomes
"TICA$1"), you will receive an error message when you transfer the second chart
because the chart name already exists.
The maximum length of a tag name is 128 characters. Remember, however, that
many of the editing windows on the OS can not display 128 characters in their
entirety. You should therefore restrict the length of the HID.
Remember that special characters associated with certain national languages take
up two characters, thus reducing the maximum name length accordingly.
Remember that the length of the texts transferred depends on the maximum text
length of a target block in the OS (Tag Logging, for example, event 50 characters;
origin 32 characters). When compiling the "OS" texts up to a maximum length of 255
characters are transferred.
Remedy:
Increase the maximum character length of the user text field or select a shorter HID.
The message texts of the transfer messages are made up of the hierarchy path, chart
name, and the block name (if you decided to include the names in the HID).
Content 10
10 Tasks ........................................................................................................................ 3
10.1 Retrieve the training project ................................................................................................... 3
10.2 Project-specific to station-granular setup .............................................................................. 4
10.3 Type Change in Run .............................................................................................................. 5
10.4 Move a project to another location using "Save as..." ........................................................... 7
10.5 Move a project to another location using "Remove for editing / Reapply after editing" ......... 8
10.6 Display changes since the last download .............................................................................. 9
10.7 Download to a new CPU ...................................................................................................... 10
10.8 (Optional) S7 Block Privacy ................................................................................................. 11
10.9 Hardware settings ................................................................................................................ 12
10.10 CPU overload....................................................................................................................... 13
10.11 Product concentration monitoring for B410 und B420 using the IEA .................................. 14
10.12 Adopt existing charts as process tags ................................................................................. 16
10.13 Export process tags and modify process tag type ............................................................... 17
10.14 Manual creation of CMT for the reactor inlet valves ............................................................ 18
10.15 Synchronization of modified CMT ........................................................................................ 20
10.16 Walk-through the APL Start project ..................................................................................... 22
10.17 OS operator permissions and time triggered draining of R340 ........................................... 23
10.18 Configuration of dosing material 1…3 into the Dose tank D210 ......................................... 25
10.19 Optimization of the PID Controller ....................................................................................... 26
10.20 Heating and draining R3x0 .................................................................................................. 28
10.21 Cleaning control strategy ..................................................................................................... 30
10.22 Sequencer for holding and resuming ................................................................................... 31
10.23 Operator notifications ........................................................................................................... 32
10.24 (Optional) Calculate cycle time and memory requirements ................................................. 33
10 Tasks
10.1 Retrieve the training project
Goal
Retrieve the archived multiproject as the starting point for implementing the training
application.
Main steps
1. On your D-drive, create a new folder with the name "your name_training".
3. Execute the application "SimaticRights.exe" for this folder. Ask the trainer for the exact
location of the file.
4. Check the settings for default storage location, language, message number assignment
and archiving.
6. Rename Team0x, Proj0x, AS0x, AS0xProg, PC0x, OS0x and Lib0x in the component
view of the multiproject by replacing the x by your team number (e.g. Team0x
Team02 if your team number is 2).
8. Open the hardware configuration of PC0x and enter the correct MAC address for IE
general. In case you are using a CP1613/CP1623 in your ES, replace the IE general by
the respective CP and set the MAC address.
10. Open the hardware configuration of AS0x and replace the modules if you detect any
differences to your actual hardware. Set the MAC address of your Ethernet CP to 08-00-
06-01-00-0x, where x is your team number.
11. Compile and download the AS hardware configuration. You might need to change the
PG/PC interface temporarily.
Goal
Split the project Proj0x into ASProj0x and OSProj0x by moving AS0x to another project
in the multiproject.
Main steps
1. Create a new user project called ASProj0x in the multiproject and rename the project
Proj0x to OSProj0x. Make sure that this project is stored in the same folder as the other
components of the multiproject.
4. Open NETPRO from the project ASProj0x and connect the CP443-1 to SystemBus.
6. Check the connection Conn_AS0x between the WinCC Application and the CPU.
Replace the x in the connection name with your team number. Save & compile
NETPRO in both projects.
Goal
Update your AS program with new block types without need of CPU stop.
Procedure
2. Create a new chart. Configure a simple technological function to let a lamp of the signal
box blinking in the interval of OB33. This is only to monitor any effects of the type
change in Run feature.
3. Create anymore charts with instances of the AMOUNT block. There is no need for
interconnections. These instances are only for testing purposes.
6. Modify the SCL source of the AMOUNT block in order to realize the required simple
subtraction in the SCL code of the block type. The result of the internal calculation
should be available at a block output SP_Out2.
You may copy the code lines used for the declaration and calculation of the already
existing block output SP_Out in order to create a new block output.
You change also the version number in the block header to keep an overview about
the versions of the modified block type
Compile the SCL source in your library.
7. With respect to the modified block type you update all charts and perform a download of
changes without CPU stop.
8. At this moment still do not compile the OS. First, test the functions in CFC test mode
and check also the OS runtime. What is the result in the OS?
9. Now compile the OS and check the runtime again. The OS runtime should be restarted.
You may repeat this part of the exercise anymore by deactivate / activate the additional
parameter in the SCL source (by comment).
Explore during these repetitions, when exactly new instance DB numbers are defined,
and when the new instance DBs are created.
Optional task:
Check the TCiR behavior after modifications of the default value for a parameter. For
this purpose, you may change the default values for Percent1, Percent2, Totalkg
or SP_In in the SCL source of the AMOUNT block.
Goal
Move the ASProj0x to another ES for distributed engineering in the multiproject network.
Main steps
1. Select the single project containing the AS and use the "Save as…" procedure as
described in the theoretical part to move the single project to another engineering
station. If another engineering station is not available, you can move the project to
another location on your own engineering station.
2. Open the project on the other location and modify any parameter in CFC (e.g.
monitoring time of the valves or motor).
3. If available, open the project on both engineering stations at the same time and modify
the same CFC chart. Note that the moved project is still available from the multiproject
on the central engineering station as long as the network connection is available.
4. Compile the charts on one engineering station and try to modify a parameter on the
other engineering station at the same time. A window with a conflict message should
appear.
5. Finally, move back the project to its original location using the "Save as…" procedure
and check whether your modifications are still present.
Goal
Move the ASProj0x to another ES for distributed engineering without the multiproject
network.
Main steps
1. Select the single project containing the AS and use the "Remove for editing…"
procedure as described in the theoretical part to move the single project to another
engineering station. If another engineering station is not available, you can move the
project to another location on your own engineering station.
2. Note that the project is not available any more in the multiproject on the central
engineering station.
3. Open the project on the other location and modify any parameter in CFC (e.g.
monitoring time of the valves or motor).
4. Finally, move back the project to its original location using the "Reapply after editing…"
procedure and check the modification made on the other location.
Goal
Before downloading changes to the AS, a programmer must be certain of the changes
he is downloading. Therefore it is possible to compare the actual version of the project
with a previously downloaded version.
Main steps
3. Activate the check box "Generate image of downloaded program for comparison".
4. Compile and download the actual version of the program to the CPU (an XML file will be
generated based on the actual version).
5. Open a CFC chart, a SFC chart, hardware configuration … and make some changes (or
ask someone else to make some changes in your project).
7. Click the download button, select "Changes only" and click the button "Show Changes"
8. A new XML file will be generated based on the new version and both XML files will be
compared.
9. In the window that appears you will be able to identify the changes since the last
download.
Goal
During the development, programmers often use a test CPU in their office. While
programming, the charts are downloaded into this test CPU and by consequence,
process objects are booked and your license will be decremented. After the
development phase, commissioning will start and you will have to download the
program into the customer's AS. In order to avoid booking the PO's twice, the PO's have
to be booked back before starting the commissioning on the new CPU.
Main steps
1. Open the Automation License Manager and check the PO count for the license key AS
RT PO. The same information can be found by using the PCS7 license information tool
in the SIMATIC Manager.
2. Select the "Charts" folder of your project and select "Options Charts Book Back
Process Objects"
3. Note that the online program will be deleted for booking back the PO's.
4. Check the Automation License Manager or the PCS7 license information tool in the
SIMATIC Manager again to display the number of available PO's on your engineering
station.
Goal
Explore the possibilities of S7 block Privacy.
Main steps
Block encryption
3. Enter an encryption key and confirm it. Leave the option for decompilation checked.
4. Open the block FB2500. The SCL code will be shown. Obviously this is not wanted for
encrypted blocks…
8. Open the block FB2500 again. You will notice that the block is protected.
Block decryption
10. Open the block a last time. Notice the programming language…
Goal
PCS7 requires some specific hardware settings. In this exercise you will check and if
necessary modify these settings.
Main steps
1. Make sure all input and output modules as well as OB32 are assigned to process image
partition 2.
2. Activate diagnostics for all input and output modules if possible regarding hardware
wiring.
3. Open the chart V511 and check in CFC test mode whether the inputs/outputs are
updated..
Goal
When generating the module drivers for the very first time during compilation of the
PCS7 program, all error OB's are automatically generated. This ensures that the CPU
never goes into STOP mode … unless by a time error due to a CPU overload
(exceeded cycle time of OB1 or OB3x). This exercise shows you the behavior of a
PCS7 program during such a cycle overload.
Main steps
1. In the Charts folder of AS0x you will find the charts Load_OB1, Load_OB32 and
Load_OB35. These charts contain one block containing a loop, which generates a cycle
time increase, depending on the number of executed loops. The execution of the loop
can be switched on and off with the input parameter OnOff and the number of loops can
be defined with the input parameter NrOfLoops.
Open the faceplate by clicking and open the view "OB3x". Check the cycle
times for OB32 and OB35.
Keep track of the cycle times in the OB3x view and the overall CPU load in the
Performance view while you gradually increase the number of loops in the chart
Load_OB1, Load_OB32 or Load_OB35 (of course with OnOff = 1). These cycle
times can also be found in the chart @CPU_RT as output parameters of the CPU_RT
block (note that these parameters might be invisible and not dynamic in test mode).
Pay attention not to make your increases too big in order to be able to distinguish the
three overload scenarios.
Goal
You configure the process tags XIA414_1…3 and XIA424_1…3 for the product
concentration in the buffer tanks using the Import/Export Assistant.
Starting point is an existing process tag type for Analog Monitoring.
Procedure
11. Create the import file for the process tag type:
Create a new import file with meaningful name (e.g. XIA4x4_y). The instances will
differ at the naming positions x (1 or 2) and y (1…3).
Open the import file and insert a column "ImportMode".
At this time the import file contains only one row. Duplicate the row to prepare the 6
instances XIA414_1, XIA414_2, XIA 414_3, XIA 424_1, XIA 424_2 and XIA 424_3.
Set the ImportMode to "Ignore" for the starting row.
The following steps can be carried out by use of Microsoft Excel in the file format
CSV as alternative option.
Modify the rows for the instances in a kind that these instances are created in the
proper plant hierarchy folders with the correct symbolic interconnections.
Save a backup version of your import file.
12. Import the file to create the process tags in the project.
Check in the plant view, if all charts are located in the correct folders and have
correct names.
Compile and download the charts.
Compile the OS.
Goal
The valves in the material tanks are already programmed as CFC charts in the plant
view. The goal of this exercise is to create a process tag type for the valves in the rest of
the plant and adopt the existing CFC charts as process tags.
Procedure
5. You create a process tag type from one of the existing material tank valves. You modify
the name of the process tag type and use the following I/O points for signals and
accordingly parameters:
6. Open the chart of the process tag type and delete the textual interconnections to the
block inputs ModLiOp and AutModLi at the VlvL block.
7. Assign an import file to the process tag type and modify the file to allow the adaption of
existing charts:
PH Chart
Johnsson\Materialtanks\M110\ V112
Johnsson\Materialtanks\M120\ V122
Johnsson\Materialtanks\M130\ V132
Delete the content of all other cells to avoid an overwriting of information which is
already configured in the charts.
Goal
The process tag type for the valve should be extended with the static monitoring time
without losing information in the existing process tags. In this task, you will first make an
export of the existing process tags, based on the already assigned import file. Then, you
can add the required signal/parameter to the process tag type and modify the import file
accordingly.
Procedure
1. Export the process tags, which you adopted in the task before. As default, the export file
is created with the name "<name of process tag type>_Exp.iea", containing all signals
and parameters according to the defined I/O points. Open this export file to check the
content.
15. Assign the export file to the modified process tag type as import file. Pay attention to the
empty check box of the I/O point for the static monitoring time.
16. Open the import file and add a new parameter column. Rename the column header to
"Valve.MonTiStatic" and define the values for the instances.
17. Save and close the import file. Supposing that the column header has the correct syntax
you will realize, the check box of the I/O point for the static monitoring time is now
activated.
18. Perform a reimport of the process tags and check the correct configuration of the static
monitoring time in the charts.
Goal
Create a Control Module Type from the existing chart V311. You replace the existing
process tags V311…V341 by the corresponding instances (CMs) of the CMT.
Procedure
1. Create a new process tag type beginning from chart V311 similar to the tasks before.
You need the following I/O points:
PV_In of the digital input channel block FbkClose (signal)
PV_In of the digital input channel block FbkOpen (signal)
PV_Out of the digital output channel block Output (signal)
MonTiDynamic of the Valve block (parameter)
Rename the process tag type meaningfully, e.g. V3x1
Make sure, the run sequence group of the chart is located in OB35.
2. Create now a Control Module Type from the process tag type V3x1.
In the plant view of the SIMATIC Manager navigate master data library and select the
context menu command
Plant Types > Create Control Module Type from Process Tag Type…
There appears a dialog with a list of available process tag types. Select the desired
process tag type and confirm with "Create".
The new created CMT has the same name like the process tag type, completed by
an automatically generated extension. Both objects must not have the same name.
5. The instances V321 and V331 needs the following variation, to be configured in CFC:
MonTiDynamic = 10 sec (monitoring time at VlvL block in V321)
If the dose tank D230 is empty, the locking input Permit of the valve V331 shall be
locked.
You need an additional interlock block Intlk02 (family Interlck) and a compare block
CompAn02 (family LogicAn) for the modification in the chart V331.
19. Compile and download the program and test the function.
Ctrl InOh
InCnt
Interlock Permit
Intlk02
Intlock
ExtMsg1 HrsHiL1A
ExtMsg2 CntHiL1A
Procedure
Trainingsunterlage SP-PCS7CWS 5 - 62 SITRAIN - Siemens AG © 2015
1. Open the chart of the new created CMT for the reactor inlet valve.
2. Insert the necessary block instances in the chart including the interconnections to the
valve block.
The first interlock block has to be interconnected to the Permit input of the valve.
The second interlock block has to be interconnected to the Intlock input of the
valve.
Rename the interlock block instances corresponding to the locking type.
Use the CntOhSc block of the APL as the counter.
Interconnect the InCnt input to a switching valve output, to read the valve
action.
The input parameter InOh needs the same information from the valve block, to
determine the operating hours. Both input parameters can be interconnected to
the same valve output.
Optionally, you can interconnect the output of the limit monitoring of the counter
block to the inputs for external event signals of the valve block.
Set the input parameter UpOp to "1", to activate the counting.
3. Open the "Technological I/Os" area of the CMT in the CFC editor and create the
required CMT interface objects by Drag&Drop of the new blocks. Use the same
procedure to create the subordinated parameters (locking inputs of both interlock
blocks).
5. The internal interconnections between the interlock blocks, the counter block and the
valve block must be represented in the CMT interface as well. You may use again the
Drag&Drop procedure for this purpose.
6. Synchronize the modified CMT with the existing CMs in the plant hierarchy.
Start the synchronization via the context meu command
"Plant Types > Synchronize…" in the Plant view of the user project.
Select the CMT to be synchronized and start the synchronization.
Check the CMs. Until now you did not assign variations.
20. Assign different variations to the CMs in the reactors R320…R340 combining the
interlocking functions and the counter.
Interconnect the locking input parameters to the level limit monitoring of the
corresponding dose tanks.
21. Compile and download the program and test the function.
Goal
You test several functions and make yourself familiar with the operation of the APL.
Procedure
1. The operating mode of all blocks can be switched over individually in the starting
project.
Test the switchover between manual mode and automatic mode for valves and
pumps of the material tanks:
If these valves and pumps are in automatic mode, then they should react
automatically on material requests: Valve is opening and the pump is starting, if a
dose valve for the corresponding material is opened.
2. Configure a central switchover of the operating mode for all valves and pumps of the
material tanks by use of an APL operator block.
Open the chart "M-General" in the hierarchy folder Materialtanks/M-General.
You will find there: one inverter block Not01 and two Or04 blocks.
Insert an operator control block OpDi03. Rename the instance and interconnect the
outputs Out1…Out3 of the OpDi03 with the inputs of the already existing logical
blocks:
The Out1 output shall enable the switchover of the operating mode (ModLiOp at the
technological blocks).
The Out2 output shall be responsible for a central switchover to manual mode via
link (ManModLi at the technological blocks).
The Out3 output shall be responsible for a central switchover to automatic mode via
link (AutModLi at the technological blocks).
Open the block properties dialog of the OpDi03 and make the input parameters
SetOp1...SetOp3 visible.
Open the I/O properties dialog of each of these input parameters and configure a
meaningful labelling text (e.g. "At the block", "Manual", "Automatic").
5. The 3 material tank pumps have to abide a warning time (e.g. 2 sec), before they start in
automatic mode.
6. The temperature controller TICA315 shall track the internal setpoint SP_Int to the
process value PV if running in manual mode. This function allows a bumpless transfer
from manual mode (input of manipulated value, open control loop) to automatic mode
(input of internal setpoint, closed control loop).
ExtMsgxx
ExtValyy
Procedure
2. Insert an instance of the TimeTrig block and of the StrctCom block in this chart.
3. Determine the necessary bits of the OS_Perm parameter to be changed by use of block
help for the TimeTrig block. The goal is, to inhibit operation and parameterization of the
periodical trigger in the faceplate.
4. Configure a block logic providing the required bits for the OS_Perm parameter if the
following conditions are true:
The level of reactor R340 is larger than 0.
The draining valve V342 and the draining pump P343 are in automatic mode.
5. Interconnect the result of this logic to the StrctCom block and furthermore the output of
this block to the relevant OS_Perm input parameter of the TimeTrig block. Do not forget
to make a static parameterization of all other bits of the OS_Perm directly at the
StrctCom block.
8. Insert an instance of the StrgToBy block in the chart LIA344. Interconnect this block to
the input ExtVaxxx for associated values of external messages at the MonAnL block.
9. Open the "PCS7 Message Configuration" dialog of the MonAnL block and configure the
message text for SIGx in a kind that the associated value is interpreted as String and is
integrated in the message text.
You can type a static text behind the place holder for the block comment. The
forwarded associated value will become the (dynamic) part of the message text as
long the correct format syntax is used.
See [641] SIMATIC - Programming with STEP 7 - 03_2006, 16.4 for tips for editing
messages
10. Compile and download the AS program and compile the OS.
12. Interconnect the Trigger output of the TimeTrig block to the ExtMsgx input for
external messages of the MonAnL in the level monitoring of LIA344, as well to the
control input to start the sequential control for draining of reactor R340.
13. Compile and download the AS program and test the function.
The sequential control must be in automatic mode, if you test the automatic draining
function. Furthermore, a SFC cannot be started as long as a start disable bit is active.
Make sure that the output QDIS_START is visible for test purposes.
QDIS_START = 1 means start disable is active.
See [304] PCS 7 V8.2 SFC for SIMATIC S7 - Programming and Operating Manual -
12_2015, 16.3.4 for more start conditions of a SFC (chart / instance).
10.18 Configuration of dosing material 1…3 into the Dose tank D210
Goal
Until now, the dosing of material was realized using a sequential function control.
You change the dosing configuration now to use of the DoseL block. Hereby, each
material is dosed with another dosing application:
Material1: Dosing type "Flow" with 2 binary valves for coarse feed and fine feed
Material 2: Dosing type "Weight (filling)" with 2 binary valves for coarse feed and fine
feed
Material 3: Dosing type "Flow" with analog valve (without PID controller and without
auxiliary valve)
Procedure
1. Create new charts "Material1"…"Material3". Insert a DoseL block instance (from the
APL) in each of these charts.
2. For Material1 (Flow mode with coarse dosing / fine dosing via V211/VF211):
Configure the interconnection to the process value (here: flow measured by FIA216).
Configure the control of the binary valves for coarse flow / fine flow.
Set the Feature Bit5 for the correct dosing type of the dose block.
Set the Feature Bit8 for the desired fine dosing quantity (relative or absolute)
Set the Feature Bit6 for automatic reset dosing quantity at start of dosing.
22. Compile and download the S7 program and compile the OS. Test the basic function.
25. Optimize the dosing function by suitable parameterization for dribbling resp. post
dosing.
Goal
The parameters of the PID controller in the loop TICA315 are not optimal. Use the PID
tuner to optimize the controller and use the "Control performance monitoring" to check
whether the behavior has improved.
Main steps
Goal
Complete the steps and transitions regarding heating and draining for reactor R3x0.
Main steps
1. Add the attribute S7_contact = true to the output parameter ER of the PIDConL Block
type in the master data library, update the block type in the multiproject. By doing so,
this parameter can be used to check whether the temperature in the transition
Temp=OK is reached.
5. Add a process value characteristic "R3x0_Lvl" of the data type REAL for reading the
reactor level.
7. Complete the steps StartHeat and StopHeat and the transitions Temp=OK,
ValveClosed and Empty as described in the step and transition comments using these
newly created characteristics.
Make sure that the PID controller is set to auto mode resp. external setpoint in the step
Auto Mode and that these modes are released again in the step Release modes.
SITRAIN
8.Course ST-PCS7ASEIn the folder R310, delete the SFC chart9R310
- 23 and create a new CFC chart R310. The Siemens AG © 20
chart R310-Gen can be deleted as well.
9. Open the CFC chart R310 and create an instance of the SFC type R3x0, interconnect it
with the control modules and the level and temperature measurements and test your
work in the SFC test mode.
10. Compile and download the AS, compile the OS and check your work in the OS.
Remember to open either V411 or V412 in manual mode in order to drain the reactor.
Goal
Create a second control strategy for cleaning the dose tank and the reactor.
Main steps
4. Define the correct start condition for the sequencers Production and Cleaning.
SITRAIN
Be smart by copying
Course ST-PCS7ASE
steps and transitions from 9the
- 29
production sequencer. Siemens AG © 2012
7. Compile and download the AS, compile the OS and check your work in the OS.
Goal
Hold the SFC type in such a way that the process is held as well.
Main steps
2. Modify the Holding and Resuming sequences as shown in the following picture:
HOLDING RESUMING
3. SITRAIN Compile and download the AS, compile the OS and check your work in the OS.
Course ST-PCS7ASE 9 - 32 Siemens AG © 2012
Goal
Provide additional information in the faceplate for the operator.
Whenever a control strategy starts, a note text must be issued. Moreover, a position text
must be issued as long as the mixer is running.
Main steps
2. Change the "POSINO" and "OPTIPNO" in the corresponding steps to trigger the correct
message.
3. Compile and download the CFC and SFC, compile the OS and test your work.
Goal
Check whether our training project for the Johnsson plant will run on a CPU 414-3IE.
Main steps
4. Apply the values you can find the next table in ProTime. The program should be
executed in OB32 (cycle time = 1s).
number
Open-close valves -> ValveLean 25
Motors -> MotorLean 11
Level measurement -> AnalogMonitoring 13
PID controller -> PIDConrolLean 4
SFC sequencers 4
Total number of sequence steps 84
APL ConPerMon 4
APL Or04 4
5. Evaluate the results regarding cycle time, memory requirements en required PO's for
AS and OS.