Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Foreword, Contents
Basic software
1
CFC
SIMATIC D7-SYS 2
SFC
3
D7-SYS - STEP 7, CFC Index
and SFC configuring
Manual
01/2008
A5E01078201-02
Safety guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to
prevent damage to property. The notices referring to your personal safety are highlighted in the manual
by a safety alert symbol, notices referring to property damage only have no safety alert symbol. The
notices shown below are graded according to the degree of danger.
! Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
! Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
! Caution
with a safety alert symbol indicates that minor personal injury can result if proper precautions are not
taken.
Caution
without a safety alert symbol indicates that property damage can result if proper precautions are not
taken.
Attention
indicates that an unintended result or situation can occur if the corresponding notice is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of
danger will be used. A notice warning of injury to persons with a safety alert symbol may also include
awarning relating to property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning
and operation of a device/system may only be performed by qualified personnel. Within the context of
the safety notices in this documentation qualified persons are defined as persons who are authorized to
commission, ground and label devices, systems and circuits in accordance with established safety
practices and standards.
Prescribed Usage
! Warning
This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Siemens. Correct, reliable operation of the product
requires proper transport, storage, positioning and assembly as well as careful operation and
maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in
this publication may be trademarks whose use by third parties for their own purposes could violate the
rights of the owner.
이 기기는 업무용(A급) 전자파 적합기기로서 판매자 또는 사용자는 이 점을 주의하시기 바라며 가정 외의 지역에서 사용하는 것을 목적으로 합니다.
Siemens AG
Automation and Drives
Geschäftsgebiet Industrial Automation Systems Siemens AG 2008
Postfach 4848, D- 90327 Nürnberg Technical data subject to change.
Information overview
This manual is part of the overall documentation for the technological and drive
control components T400, FM 458, SIMADYN D, SIMATIC TDC and SIMATIC D7-
SYS.
Titel Inhalt
System and The first project in a few steps
communications This Section provides an extremely simple entry into the methodology when
configuring D7-SYS assembling and programming the SIMATIC TDC/SIMADYN D control system. It
is especially conceived for first-time users of a control system.
System software
This Section provides basic know-how about the structure of the operating
system and an application program of a CPU. It should be used to obtain an
overview of the programming methodology, and basis for configuring user
programs.
Communications configuring
This section provides you with basic know-how about the communication
possibilities and how you configure links to the communication partners.
Changeover from STRUC V4.x to D7-SYS
Essential features are included in this section, which have changed over
STRUC V4.x with the introduction of SIMATIC D7-SYS.
D7-SYS - STEP 7, Basis software
CFC and SFC This section explains the essential use and the functions of the STEP 7
configuring automation software. For first users, it provides an overview on configuring,
programming and commissioning a station.
When working with the basis software, you can access the online help which
provides you with support when it comes to detailed questions on using the
software.
CFC
The CFC language (Continuous Function Chart) allows you to graphically
interconnect blocks.
When working with the particular software, you can also use the online help
which can answer detailed questions regarding the use of the editors/compiler.
SFC
Configuring sequence controls using SFC (Sequential Function Chart) of
SIMATIC S7.
In the SFC editor, you generate a sequence chart using graphic resources. The
SFC elements of the chart are then positioned according to specific rules.
Hardware The complete hardware spectrum is described as reference in this Manuals.
Titel Inhalt
Selecting Function The Reference Manual provides you with an overview of all of the function
blocks blocks for the corresponding technology and drive control components -
SIMATIC TDC, FM 458-1 DP, SIMADYN D and T400.
Chapter 1
The function blocks that can be configured in all target systems of SIMATIC
D7-SYS are described in this Chapter.
Chapter 2
The function blocks that can only be configured for SIMATIC TDC are
described in this Chapter.
Chapter 3
The function blocks that can only only be configured for FM 458-1 DP
application module are described in this Chapter.
Chapter 4
The function blocks that can only be configured for SIMADYN D and T400 are
described in this Chapter.
Guide
As first time user, we recommend that this Manual is used as follows:
• Please read the first section on using the software in order to get to know some
of the terminology and basic procedure.
• Then use the particular sections of the Manual if you wish to carry-out certain
processing steps (e.g. loading programs).
If you have already executed a small project, and have gained some experience,
then you can read individual sections of the Manual in order to get up to speed
about a specific subject.
Special Notes
This user part of the Manual does not include any detailed information/instructions
with individual descriptions, but is only intended to provide a basic procedure. More
detailed information on the dialog boxes in the software and how they are handled
is provided in the appropriate online help.
Additional support
If you have questions relating to the use of the products described in the Manual,
which cannot be answered here, then please contact your local Siemens office.
You can also call the Hotline:
Tel.: +49 (180) 5050-222
Fax: +49 (180) 5050-223
E-Mail: adsupport@siemens.com
1
Training Center
Appropriate training courses are available in order to make it easier to get to know
the SIMADYN D automation system. Please contact the central Training Center in
D-Erlangen (I&S IS INA TC):
Tel.: +49 (9131) 7-27689, -27972
Fax: +49 (9131) 7-28172
Internet: www.siemens.de/sitrain
Intranet: http://info-tc.erlm.siemens.de/
World-wide (Nürnberg)
Technical Support
Ortszeit: 0:00 bis 24:00 / 365 Tage
Telefon: +49 (180) 5050-222
Fax: +49 (180) 5050-223
E-Mail: adsupport@siemens.com
GMT: +1:00
Europa / Afrika (Nürnberg) United States (Johnson City) Asien / Australien (Peking)
Authorization Technical Support and Technical Support and
Authorization Authorization
Ortszeit: Mo.-Fr. 8:00 bis 17:00 Ortszeit: Mo.-Fr. 8:00 bis 17:00 Ortszeit: Mo.-Fr. 8:00 bis 17:00
Telefon: +49 (180) 5050-222 Telefon: +1 (423) 262 2522 Telefon: +86 10 64 75 75 75
Fax: 49 (180) 5050-223 Fax: +1 (423) 262 2289 Fax: +86 10 64 74 74 74
E-Mail: adsupport@siemens.com E-Mail: simatic.hotline@sea.siemens.com E-Mail: adsupport.asia@siemens.com
GMT: +1:00 GMT: -5:00 GMT: +8:00
Technical Support and Authorization speak generally German and English.
2 CFC.........................................................................................................................................2-1
2.1 Working with the CFC editor ..................................................................................... 2-2
2.1.1 CFC in the STEP 7 environment............................................................................... 2-2
2.1.1.1 Software requirements.............................................................................................. 2-2
2.1.1.2 Project planning data flow......................................................................................... 2-4
2.1.2 Handling block types................................................................................................. 2-5
2.1.2.1 Importing SIMADYN D block libraries....................................................................... 2-5
2.1.2.2 Inserting block types ................................................................................................. 2-6
2.1.2.3 Deleting block libraries.............................................................................................. 2-6
2.1.2.4 Updating SIMADYN D block libraries ....................................................................... 2-7
2.1.3 Editing block inputs ................................................................................................... 2-8
2.1.3.1 Additional properties of the block I/Os ...................................................................... 2-8
2.1.3.2 Inverting inputs.......................................................................................................... 2-8
2.1.3.3 The GLOBAL data type............................................................................................. 2-9
3 SFC..........................................................................................................................................3-1
3.1 Basics of the SFC ..................................................................................................... 3-3
3.1.1 SFC in the STEP 7 environment [SD]....................................................................... 3-3
3.1.2 SFC and technology hierarchy [SD] ......................................................................... 3-3
3.1.3 Setting-up the project structure [SD]......................................................................... 3-3
3.1.4 SFC-Elements........................................................................................................... 3-3
3.1.4.1 What are chart elements? [SD]................................................................................. 3-3
3.2 Tips & Tricks ............................................................................................................. 3-4
3.2.1 Generate reference data [SD]................................................................................... 3-4
3.2.2 Configuring SFC calls [SD] ....................................................................................... 3-4
3.3 Creating Sequential Control Systems (SFC Editor).................................................. 3-6
3.3.1 Working with Charts.................................................................................................. 3-6
3.3.1.1 Copying charts [SD] .................................................................................................. 3-6
3.3.2 Configuring Sequential Control Systems .................................................................. 3-6
3.3.2.1 Creating a jump [SD]................................................................................................. 3-6
3.3.2.2 Step: Editing addresses [SD] .................................................................................... 3-6
3.3.2.3 Transition: Editing addresses [SD] ........................................................................... 3-8
3.3.3 Shared Adresses and Permitted Data Types ........................................................... 3-9
3.3.3.1 Global addresses (operands) [SD] ........................................................................... 3-9
3.3.3.2 Absolute addressing [SD] ......................................................................................... 3-9
3.3.3.3 Symbolic addressing [SD]......................................................................................... 3-9
3.3.3.4 Permissible data types [SD]...................................................................................... 3-9
3.3.4 The Run-Time Properties........................................................................................ 3-10
3.3.4.1 Overview of the run-time properties [SD]................................................................ 3-10
3.3.4.2 Specifying the run sequence [SD] .......................................................................... 3-10
3.3.4.3 Installing an SFC chart in a task / deleting from a task [SD] .................................. 3-10
3.3.4.4 Run-time attributes for the run-time group and SFC chart [SD] ............................. 3-11
3.3.5 Configuruing Messages .......................................................................................... 3-12
3.3.5.1 How SFC works with messages [SD] ..................................................................... 3-12
3.3.6 Compiling Charts .................................................................................................... 3-12
3.3.6.1 Customizing the compiler [SD]................................................................................ 3-12
3.3.6.2 Compilation procedure [SD].................................................................................... 3-13
3.3.6.3 Consistency check [SD] .......................................................................................... 3-13
3.3.7 Downloading User Programs .................................................................................. 3-14
3.3.7.1 Downloading programs [SD] ................................................................................... 3-14
3.4 Sequential control systems on the PLC.................................................................. 3-16
3.4.1 Overview of sequential control systems on the PLC [SD] ...................................... 3-16
Overview This Section will show you how to install the software of the D7-SYS
option package using a setup program. Installation is menu-prompted.
Call-up the setup program with the standard procedure, generally used
under Windows to install software.
Hardware platform You require as a minimum, the following platform in order to be able to
use this software:
• SIMATIC PG or PC with
• 190 MByte free memory space on the hard disk, on which the STEP 7
basis software was installed (in addition to the memory space
requirement for STEP 7 basis software and CFC).
• Hard disk memory size for the Windows swap file (at least 256 Mbytes
minus the size of your PC´s RAM).
• Free memory space on the hard disk for your project data.
Prerequisites Before installing D7-SYS, ensure that Windows and STEP 7 and CFC are
already installed.
1. Windows
for permissible Windows-version refer to current “readme”-file.
Installing/de- A detailed description for installing and de-installing STEP 7 and CFC is
installing STEP7- provided in the product information which is supplied with the software
and CFC software products.
NOTE It is not possible to install several versions of STEP 7 and its option
packages in parallel.
3. The setup program then prompts you at all of the other steps .
Authorization The D7-SYS option package does not require any additional
authorization.
De-installation If you no longer require the D7-SYS software product, or you wish to
install a new version, then you can de-install it from your PC.
1. To de-install, call-up the application start > settings > Control Panel
> software from the start menu of Windows 95/NT.
1.1.3 Start
Overview After you have installed D7-SYS, you can use the following STEP 7 tools:
• SIMATIC Manager
• HWConfig
• CFC
SIMATIC Manager After Windows has been started, you will see a symbol for the SIMATIC
Manager on the Windows screen, the entry into the STEP 7 software.
User You will find the most important information on the SIMATIC Manager,
documentation HWConfig and CFC in the online help functions of these applications.
The help function is accessible via the Help menu or via the F1 key,
which is then context-sensitive.
When installation has been completed you will find the user
documentation in German and English about the start menu of Windows
(Start > SIMATIC > Documentation).
If you do not have any experience with these types of user interfaces,
then the following Section will provide you with information concerning
the most important control elements and the terminology used.
All users with Windows knowhow should get to know starting STEP 7 in
the "Starting STEP 7 software" Section. You don’t have to read the other
Sections of this chapter.
Starting After starting Windows, you will find an icon for the SIMATIC Manager on
the Windows screen - which is the entry into the STEP 7 software.
Alternatively, you can also start the SIMATIC Manager via the "Start"
button on the task bar in Windows: You will find the entry under
"Simatic").
SIMATIC Manager The SIMATIC Manager is the interface to configure and program with D7-
SYS. With it you can:
• set-up projects
• online help,
Overview The standard components of a window are the title bar and the menu bar
Work area:
Contains information which you
can display or process
Title bar and menu The title bar and menu bar are always located at the top edge of the
bar window. The title bar contains the window title and the symbols for the
window control. The menu bar includes all of the menus, which are
available in the window.
Tool bar The tool bar contains all of the icons which allow you to quickly access, at
the click of the mouse, frequently used and currently available menu
commands. A brief info about the function of a symbol is displayed if you
briefly position the cursor on the icon. An additional explanation is
displayed in the status line.
Status line If no access is possible in the current configuration, then the icons are
grey.
Entries in the You can enter data in the dialog boxes, which is required to execute a
dialog boxes specific task. The most frequently used components of the dialog boxes
are now explained using an example in Fig. 1-2:
List fields / If text fields have an arrow pointing downwards, then additional items can
combination fields be selected for this particular field. Click on the arrow to display a list- or
combination field. If you then click on an entry in the list- or combination
field, it is automatically transferred into the text field.
Register dialogs The contents of some dialog boxes is organized in sections to enhance
the transparency. The names of the individual sections are located at the
upper edge of the dialog box. In order to retrieve a specific section,
simple click on the section name.
Module status
The online help provides information precisely at the location you require
it. You can quickly retrieve specific information without having to search
in Manuals. You find the following in the online help:
Online help • Help subjects: Provides various access to help information displays
• First steps: Combines the first operator interventions which you must
make so that you move forwards quickly.
• Using the Help menu, from any window, you can call-up subjects
which refer to the current dialog situation.
• Click on the "Help" button in a dialog box. You will then receive help
information regarding this dialog box.
• Simultaneously press the toggle key and key F1. The mouse pointer
changes into a ?. Click on the element of the window or dialog box
where you require specific help.
Calling-up short A brief help info is displayed for the buttons in the tool bar if you position
help the cursor at an button and keep it briefly there.
Changing the Using the menu command Options > Format size in the help window,
format size you can change the format size to "small", "normal" or "large".
Overview The STEP 7 applications allow you to save the current window layout and
restoring it at a later time.
What is saved? If you save the window layout, the following information is recorded:
Save window To save the current window layout, select the menu command Window >
layout Save setting.
Restore window In order to restore a saved window layout, select the menu command
layout Window > Restore setting.
Information When restoring a window, only that part of the hierarchy is displayed in
regarding the detail, in which the object lies which was selected when saving the
object hierarchy window layout.
Overview Projects represent all of the data and programs associated with an
automation solution. They are used to save all of the data and programs
associated with the automation solution in an orderly fashion. The data
associated with a project, include
The main tasks when creating a project thus involve preparing this data
and creating the programs.
STEP 7 does not specify a fixed processing sequence. You can start with
any partial task.
Information when The first part of this Chapter describes, use an example, the essential
reading project components.
You can display the properties of most of the objects using the menu
command Edit > Object Properties. This gives you an impression of the
information which is assigned to the object.
Opening the To select and open a project included in the scope of supply, please
project, displaying enter the menu command File > Open > user projects or project
the contents examples.... Then select a project. The project window is then opened.
Project window The project window is sub-divided into two sections. The project structure
is displayed in the lefthand half. The contents of the objects, marked in
the lefthand side are displayed in the righthand side.
To display the complete project structure, click on the box with a plus
symbol in the lefthand section of the window. You will then obtain a
screen similar to the following:
Object_hierarchy Several objects in the real world have specific interrelationships with one
another. These interrelationships from the real world are illustrated when
displaying the components of a project in the project window using a
logical hierarchy.
MPI-network The symbol for the MPI network represents the central communications
bus which fulfills the following functions:
Station The symbol for a station represents the hardware structure of a station. If
you highlight a station in the lefthand section of the project window, you
will see the objects it contains in the righthand section of the project
window:
• Newly inserted stations only contain the "Hardware" object, which you
can use to start the tool to configure the hardware.
Hardware By double clicking on the "Hardware" object in a station, you can start the
tool to configure the hardware. This procedure is described in detail in the
Chapter "Configuring and parameterizing modules".
Programs The programs are containers for the software of a CPU and serve as
starting point when generating software.
Read further ... You were able to get to know the essential objects of a project up to this
section of the Chapter. The next section provides you with information
about some of the basic activities and handling in conjunction with
objects.
Goal: Simple The graphic user interface is intended to make all operator actions self-
handling explanatory. Thus, you will see objects which you know from your daily
work, e. g. stations, modules, programs.
The actions, which you execute when working with STEP 7, include the
generation, selection and manipulation of objects such as these.
Difference to tool- With conventional tool-oriented handling, you first have to consider which
oriented handling tool was required to solve a specific task, and then you had to call-up this
tool.
Read further ... The basic actions when processing objects are now described in the
following. Please get to know these, as they are often used.
• creating an object,
• selecting an object,
Setting-up the save Before first setting-up a new project, you should set the save path for
path for new these objects. To realize this, select the menu command Options >
projects Settings. You can then specify a path name under the tab " General " of
the dialog box which is displayed, under which the newly-generated
projects can be saved. C:\Siemens\STEP7\S7proj. is the default path.
Create objects You can generate new projects using the menu command File > New >
Project. Projects form the top of an object hierarchy tree. All additional
objects of the hierarchy, if they are not automatically set-up, can be
generated via commands in the Insert menu. The modules of a station
are the exception, which are only set-up when configuring the hardware.
Opening objects There are several ways of opening an already generated object:
• select the object and menu command Edit > Open object
After an object has been opened, you can generate or change its
contents. In this case, a differentiation must be made between
If you open an object associated with the latter type, its contents are
displayed in a new window for editing using a suitable software
component.
Create an object After a container has been opened, the objects already contained in the
hierarchy container are displayed on the screen. You can now set-up additional
sub-objects using the Insert menu, for example, other stations in a
project. Only the commands to insert such objects can be called-up in
this menu, which are permissible in the current container.
Object properties are object data, which define the objects behavior. The
Setting object
dialog box to set the object properties is displayed automatically if you
properties
generate an object for the first time, and you must define its properties.
However, the properties can be subsequently changed:
A dialog box is called-up with the menu command Edit > Object
properties, in which the properties of the selected object can be read or
set.
Cutting-out, You can cut-out, copy, insert or delete most of the objects just the same
copying, inserting as under Windows. The associated menu commands are provided in the
Edit menu.
You can also shift or copy objects using drag & drop. The cursor is
displayed as a prohibit symbol if you point to an illegal destination/target.
If you copy an object, the complete hierarchy below it is also copied. This
allows parts of an automation solution to be re-used.
Printing First open the object to display the contents. The print command is
located in the first window menu (e. g. in the "File" menu). The command
displays a dialog box where you can set the printer, printer range and the
number of copies to be printed.
Re-naming objects You can directly edit or change object names which can be changed via
the object properties.
• Direct editing:
If you slowly click twice on the name of a marked object, a box
appears around the text. You can now change the name from your
keyboard.
Calling-up the The dialog box is called-up, for example, in the hardware configuration,
dialog box using the menu commands such as Station > New.../Open... (the
"SIMATIC Manager" entry window is an exception).
Dialog box The following can be selected, illustrated in the "Dialog box to select
structure objects" display:
Open
Entry: View:
Project Components view Online Offline
Name: Project
muster Search...
Object name:
OK Cancel Help
Name: The objects of the type Object type: You can specify a filter
specified under entry is criteria here for the object list.
displayed here in a list box. This allows the number of displayed
You can select a name from objects to be restricted.
the list or enter directly
from the keyboard. Object name: If you select an object,
the object name is entered here.
You can also directly enter the
required name.
Overview This Chapter describes how you create projects and set-up the project
structure step-by-step.
Project example You can simplify creating a new project by adapting the example included
in the scope of supply (project example) to your particular requirements.
Proceed as follows:
New project If the project example is not suitable for you as the starting point, then
you can create a new project in the SIMATIC Manager by entering the
menu command File > New > Project.... Now open the project so that
you can create the project structure (project hierarchy).
Alternative When selecting the processing sequence of a project, you have a high
procedure level of flexibility. After you have created a project, for example you can
• first configure the hardware (stations) and then generate the software
for it (CFC charts), or
Alternative 1: First • you can start to generate the software independently of a configured
configuring the hardware.
hardware
If you first wish to configure the hardware, proceed as described in
Chapter "Creating and handling projects" > "Inserting and configuring
stations". After configuring, the programs and chart containers which are
required to generate the software are already inserted. You can then
generate the software for the programmable modules.
Alternative 2: You can generate the software without first configuring the hardware
First generating the which can then be realized later. The hardware structure of a particular
software station does not have to be defined before entering programs.
Proceed as follows:
NOTE You can call-up a dialog box using the menu command Options >
Settings. Under the "General" tab, you can select, among other things,
that when a project is opened, an archive of this project is generated as
back-up copy. In this case, select the entry "Archiving automatically
when opening project/library" (archiving is described in Chapter
"Archiving user programs").
Overview In a project, the stations represent the hardware structure and the
associated data to configure and parameterize individual modules.
Inserting a station In order to create a new station in a project, open the project so that the
project window is displayed (if this already hasn’t been done).
• SIMATIC H-Station
• SIMATIC PC-Station
• PC/PG
• SIMATIC S5
4. In the project window, click on the "+" in front of the project icon if it is
still not displayed below the station.
Proceed as follows:
Configuring
1. Open the station. It contains the "Hardware" object.
2. Open the "Hardware" object. The "HWConfig" window is displayed. In
this window, you can define the hardware structure, and especially the
slot assignment.
3. Define the station structure in the "HWConfig" window. A module
catalog is available which you can display using the menu command
View > Catalog if it hasn’t already been displayed. First select a rack
from the module catalog. You can then select the modules which you
wish to insert in the rack slots. It is important to note that you must
configure at least one CPU.
Configuring result Further information on configuring is provided in the Chapter "Configuring
and parameterizing the hardware" of this Manual.
If this object is still not visible in the project window, click on the "+" in
front of the station symbol in the project window to display the module,
and in the box in front of the CPU to display the program.
Continue with Now generate the software. The basic procedure is explained in the
software Chapter "Principle procedure when generating software".
generation
If you wish to use software which was generated independently of your
particular configuration, then first read the Chapter " programs with and
without assigned hardware" and "Software generation without configured
hardware".
Overview The " program" object is used as container for the software of
programmable modules from the SIMATIC TDC/SIMADYN D spectrum
and the FM 458-1 DP..
Project
SIMADYN D CPU
D7-SYS pogramm (assigned)
You can use the programs which were automatically created for pre-
Program with
configured (assigned programs). Click on the "+" in front of the CPU icon
assigned hardware
in the project window if this was still not displayed below the program.
Program without You can create programs yourself independently of any special hardware
assigned hardware configuration (non-assigned programs). After the hardware has been
configured, you can, at a later date, assign a CPU.
Inserting the The project must have been created and the project window opened.
program
independently of 1. Select the project symbol in the project window.
the hardware
2. Call-up the menu command
Insert > Program > D7-SYS Program
The program is created below the project, i. e. it is not assigned to any
special hardware.
Assigning a You can now generate software in this container, and assign it to a CPU,
program to a CPU as subsequently described.
Proceed as follows:
1. Highlight the project icon or click on the plus symbol in front of the
project icon so that the assigned program is visible in the project
window if this isn’t already the case.
2. Cut-out the non-assigned program or copy it (menu command Edit >
Cut-out or Edit > Copy).
3. Then highlight the CPU which you wish to assign to the program, and
insert it (menu command Edit > Insert).
If there is already a program located there, then it is overwritten after a
message is acknowledged. Alternatively, you can highlight the non-
assigned program, and transfer it to the programmable module.
Buffering programs If you erase a CPU, but you still wish to keep the associated program in
in the project the project, then before erasing the module, shift it directly under the
project icon. It then remains there in the project without being assigned to
a module. You can assign it as required at a later time.
NOTE Using the menu command Insert > Program > D7-SYS program, you
can create a program directly under the project without having to first
configure the hardware. You can later assign the program to a CPU.
Overview To save a project, you can save a copy of the project under a different
name, or archive the project.
Automatic You can set the system, so that when a project is opened, an archive of
archiving this project is generated as back-up copy. Proceed as follows:
Overview When configuring with STEP 7, you define which modules you will use for
your system, independent of whether they actually exist for your
particular system or not.
You can copy the configuration as often as you like in other STEP 7
projects, and if required modify them. When a station runs-up, the CPUs
compare the reference configuration, generated using STEP 7, with the
actual configuration of the system. If errors or problems are present, they
are immediately identified and signaled.
Introduction The following provides you with an overview how you configure the
structure of a station, and how to parameterize the modules within this
structure.
Main components You have two dialog windows available to configure an automation
of the user system.
interface
• With the station window, in which you locate the rack for the station
configuration.
• With the "Hardware Catalog" window, from which you can select the
necessary hardware components, e. g. racks, modules and sub-
modules.
General handling • If the "Hardware Catalog" window is not displayed, select the menu
command View > Catalog. You can now display or cancel the
Hardware Catalog using this menu command.
1.5.3 Example
Procedure Exactly as you would in your real system, locate the modules in the racks
using STEP 7. The difference: In STEP 7, racks are represented using
"Configuration tables", which have as many lines as the number of
modules which can be inserted in the real racks.
Converting into a An example for converting a real structure into the configuration table is
configuration table shown in an example in the following Fig. 1-11.
Configuration table
(normal view)
SR12.1
1 PM5
1.1 MS5
2 MM3
3 EB11
4 PM6
4.1 MS5
5 IT41
6 CS7
6.1 SS52-MPI
6.2
6.3
Slot 1 2 3 4 5 6
Select and arrange Prerequisite: The station window and "Hardware catalog" window are
racks open. Proceed as follows:
1. Select the right rack for your particular structure from the sub-directory
"racks" in the "Hardware catalog" window.
2. Locate the rack in the station window using drag & drop.
As an alternative to steps 1. and 2., you can also click twice on the rack
in the "Hardware catalog" window.
Parameterizing You can set the characteristics of modules which can be parameterized.
The module type defines which parameters can be set.
Prerequisite Before you parameterize a module, you must first place the module in the
rack.
Parameterizing Double-click on the rack tier with the module, whose parameters you wish
modules to set, or mark the associated module and select the menu command
Edit > Object Properties.
A dialog box is displayed with one or several registers with information
and parameters which can be set for the particular module.
2. Select the menu command Edit > Object Properties and select the
"Addresses" tab in the dialog box "Properties".
3. Enter a name for each module connector in the "Symbol" field and
acknowledge with "OK". You can change the symbols about the
control button To "preset" also with unambiguous names preset.
Prerequisite Prior to this, you must have assigned I/O addresses (hardware
addresses) to the module in HWConfig.
Procedure in CFC Link-in the hardware signals to the user program in the CFC as follows:
2. Select the "AD" input (hardware address) of this block, and select the
menu command Insert > Connect to operand. A dialog box opens to
enter the hardware address.
Introduction In this Section you will get to know how to check and save a generated
configuration for consistency. However a prerequisite is that the station is
parameterized and configured.
Configuration save, To save the configuration use the following menu command
Station > Save or Station > Save and compile.
For Station > Save and compile, the configuration is checked for
consistency, and saved in the current project (as station object).
NOTE CPU charts for this particular station can only be compiled in the CFC,
if the saved hardware configuration has been checked for consistency.
Configuration load In CFC, the hardware configuration is, together with the compiled user
program, automatically loaded in the CPUs of the station.
Consistency check You check the consistency using the menu command Station > Check
consistency.
Introduction We will now provide you with several tips to simplify working with
HWConfig.
Mark several lines If you wish to mark several lines in the configuration table, for example, to
delete several modules or insert several modules of the same type, then
proceed as follows:
− keep the changeover key depressed and click on the last line of
the range to be marked.
Shifting modules − depress the CNTRL key, keep it depressed and then click on all of
the lines which you wish to select
You can shift modules or other components simply per drag & drop to
another legal slot within the station.
Configuring as The PROFIBUS master is configured using the COM PROFIBUS tool of
master the SIMATIC S5 product family.
Further information You will find further information in the Instruction Manual of COM
... PROFIBUS as well as in the Manual "System- and communication
configuring D7-SYS".
Overview There are two ways to implement data transfer between CPUs:
Communications via Properties
$ signals: • are adequate for many
applications
• are simple to configure.
Virtual connections: • for more complex communication
associations between transmitters
and receivers
• takes longer to configure.
NOTE In order to equalize the load levels due to $ signals of the two
backplane busses (for SIMADYN D), you can distribute the $ signals
between the L bus and C bus.
2. In the CFC application window, select the block output, from which the
$ signal is to be taken.
8. In the "Name" field, enter the $ signal, assigned at the block output.
Acknowledge with "OK".
NOTE • You can connect the $ signal with other block inputs. Proceed as
previously described under steps 6, 7 and 8.
• You can obtain additional help info by depressing key F1 with the
"Global operand" dialog box open.
2. In the CFC application window, select the block output from which the
virtual connection is to be taken.
7. Select the menu command Insert > Connection to operand and the
"virtual connection" option.
8. In the "virtual connection name" field, enter the name assigned at the
block output, and in the "sequence number" field, the number
assigned at the block output. Acknowledge with "OK".
9. Configure the required transmit-, receive- and central blocks. You will
find the necessary steps in the Manual "System- and communication
configuring D7-SYS".
NOTE • You can connect the virtual connection with other block inputs.
Proceed as previously described under steps 6, 7 and 8.
• You can obtain additional help info by pressing F1 with the "Global
operand" dialog box open.
Additional information
on virtuell connections refer to the "System- and communication
configuring D7-SYS“.
• SIMATIC-OPs
• WinCC
Additional information
Refer to the "System- and communication configuring D7-SYS ". User
Documentation for communications with display units.
There are two Loading via an online connection The user program is loaded into the
(access to the target system): memory module inserted in a module
possibilities of receptacle of the CPU. The program
loading data into memory is buffered during power
the CPU failures.
Loading the user program into the The user program is loaded into a
memory module offline: memory module in a PCMCIA socket
of the generating system. The
memory module with the loaded user
program is inserted in the module
receptacle of the CPU.
Table 1-6 How the programs can be loaded into the CPU
NOTE In order to activate the user program in the memory module of the CPU
the station with this CPU must be restarted (cold restart).
You can select the online interface via which an online connection is to
be established to the target system.
1. From the Windows task bar, select the menu command Start >
Selecting the
Simatic > Step 7 > Set PG-PC interface.
interface for the
online connection
2. Select the interface used and select the correct parameter.
NOTE • If you depress key F1 with the dialog box open, you can obtain
additional info.
• You have compiled the user program of the CPU in the CFC.
Additional • You have set switch S1/8 on the T400 to the off position.
prerequisites when
loading a T400- • You have established an online connection between the generating
CPU system and the T400 (serial interface X01, terminals 67..68).
Procedure 1. In CFC bring into the foreground the window of any chart from the
CPU to be loaded.
3. From the load versions, select the "online" option, and acknowledge
this with "Load".
5. In the CFC select the menu command PLC > Operating Mode.
1.7.2.1 What you need to know about memory modules and the
programming interface
Released memory PCMCIA/JEIDA modules according to the PC card standard can be used
modules as memory modules for CPUs.
The Micro Memory Cards from the SIMATIC family are used as memory
card for the FM 458-1 DP (refer to Catalog ST DA 2003).
The memory modules released by Siemens are listed together with their
Order Nos. in the HWConfig module catalog under "modules - program
memory".
NOTE If PC-card support is not activated, then follow the instructions in the
online help of Windows under the index entry "PC cards, activating
support of".
1. From the Windows task bar, select the menu command Start >
Selecting the
Simatic > Step 7 > D7-SYS - Select PCMCIA interface.
programming
interface
2. In the "PCMCIA socket" dialog box select the required PCMCIA
socket and confirm with "OK".
NOTE • If your generation system has several PCMCIA sockets, then select
the socket which is to be used for offline loading. Number 1 is
automatically selected for this socket.
• If you press F1 with the "PCMCIA socket" dialog box open, then you
will obtain additional help info.
• You have compiled the user program of the CPU in the CFC.
Procedure 1. In CFC bring into the foreground the window of any chart from the
CPU to be loaded.
4. Under load type select the "offline" option and acknowledge with
"load".
NOTE Please ensure that the memory module is inserted in the associated
CPU.
Overview A program is tested (debugged) using the CFC in the test mode. This
also provides you with the possibility of making changes to the software
online and in many cases eliminates you having to re-load the CPU.
• insert new function blocks (under the assumption that the block type is
already available on the CPU)
• The CPUs to be tested are already loaded with the user program to be
tested.
• The CPUs are in the RUN operating mode or STOP operating mode.
• You have set switch S1/8 of the T400 to the off position.
Additional
prerequisites when
• You have established an online connection between the generating
testing user
system and the T400 (serial interface X01, terminals 67..68).
programs on a
T400-CPU
3. Select the I/O, which you wish to monitor in the target system, by
NOTE The following functions of the create mode of the CFC result in the
appropriate online changes in the test mode:
1.9 Diagnostics
For the diagnostics, evaluate the following information, saved in the CPU:
• Display the type of diagnostics event via the 7-segment display on the
front panel of the particular CPU module
Additional information
SIMADYN D station
CPU
Module Information
Diagnostic events Operating status transitions (e.g. from RUN to STOP) and entries of the
following error classes are displayed as diagnostics events:
NOTE • For diagnostics you must have the Station configuring software
(HWConfig and CFC) on the PC/PG.
The CPU identifies the error, and enters the diagnostic events into the
diagnostics buffer. The PG/PC can read-out these diagnostic messages.
CPU
STEP 7
Diagnostics buffer
Reading-out You can display the diagnostic messages in plain text using the following
diagnostics dialog boxes in the SIMATIC Manager:
information
• Dialog box "Module Information"
1.9.1.2 Steps to call-up the module information from the SIMATIC Manager
Procedure 1. Select a station from the project view (offline) of the SIMATIC
Manager and open this by clicking on it twice.
2. Select the CPU to be diagnosed.
3. Select the PLC > Module Information menu command.
4. The "Module information" dialog box with the tab "General" and
"Diagnostic buffer" of the CPU are displayed.
5. Click on the "Special diagnostics" button, in order to open the dialog
box "Diagnostics" using the "Diagnostic buffer" tab.
NOTE You can obtain additional help by pressing key F1 with the "Module
Information" or "Diagnostics" dialog box open.
Organization of the The contents of the diagnostics buffer are also kept even after the station
diagnostics buffer has been reset.
NOTE The entries in the diagnostics buffer are deleted at power failure or by
powering-down the power supply voltage of the subrack, if there is no
back-up battery or if this battery is displayed.
• Number of the CPU, name of the chart and block name, for which the
diagnostics event occurred, separated by a point.
• The CPUs are in the RUN operating mode or STOP operating mode.
Procedure 1. In the CFC bring into the foreground the window of any chart of the
CPU whose module status you wish to call-up.
NOTE You will obtain additional help info if you depress key F1 with the
"Module Information" dialog box open.
Further information
on the contents of the exception buffer, please contact the Hotline.
• The CPUs are in the RUN operating mode or STOP operating mode.
Procedure 1. In the CFC bring into the foreground the window of any chart of the
CPU whose status you wish to display.
2. Select the menu command PLC > Operating Mode. The actual
operating mode of the CPU is then displayed in the "Operating Mode"
dialog box.
3. If you wish to restart the CPUs of the station, select "Cold restart".
4. If you wish to set the CPUs of the station into the "User stop" mode
then select "Stop".
NOTE You will obtain additional help info if you press F1 with the "Operating
Mode" dialog box open.
Prerequisites You must have installed the archiving program on your system. An
explanation of how you embed it in STEP 7 is given in Chapter "Archiving
projects".
Set the In the properties of the archiving program, select that the DOS window
characteristics of automatically closes after archiving/de-archiving.
the archiving
program Proceed as follows:
1. In Windows Explorer select the archiving program and then the menu
command File > Properties
2. Select the "Program" tab in the dialog box which is then displayed.
Selecting the The standard STEP 7 configuration assumes that the archiving program
search path for the is installed in the DOS search path. If the archiving program is installed
archiving program outside the search path, proceed as follows:
1. Ensure that no windows are open for the project which you wish to
archive.
2. Select the menu command File > Archiving > Project.
3. Depending on your archiving settings (under Options > Settings,
under "Archiving" tab), an additional dialog box is displayed. There,
you can set the target directory for the archive file, the file names and
the file type. Via the file type, STEP 7 identifies the archiving program
to be used (e. g. "zip" for PKZIP).
4. Select the project, which you wish to archive, from the subsequent
dialog box.
5. If required, you can make special archiving settings in an additional
dialog box (e. g. saving over several floppy disks). The dialog box is
only displayed if you activated the options prompt in your archiving
settings, and the archiving program supports options.
A DOS window is opened, in which the archiving runs. The project is
"zipped" and saved in the target directory.
Copying onto You can archive a project as described above and copy the archived file
floppy disk onto a floppy disk. It is also possible to select a floppy disk drive in the
"Archiving" dialog box.
2. In the dialog box which is displayed, select the archive file, which
contains the "zipped" project.
The settings which you made under the "Archiving" tab, which you can
call-up with Options > Settings, determines whether the following
dialog boxes are displayed.
NOTE The directory names, in the path, must not exceed 8 characters
After the dialog box is closed, a DOS window is opened, where you can
see how the file is unzipped.
When unzipping, the project is set-up, and its contents retrieved from the
archive. You can now open the project and process it or copy sections
out of it, and insert them into another project.
1.11 Printing
Overview After you have completed generating the program for your automation
task, you can print out all of the important data using the print function
integrated in STEP 7. This then allows you to generate your own project
documentation.
DOCPRO option To create, process and print standardized circuit manuals, you can use
package the DOCPRO option package. Thus, you have at your fingertips a
plant/system documentation which fulfills the DIN- and ANSI Standards.
Setting-up the Select the menu command File > Print Setup to set-up a printer and
printer define the page orientation (portrait or landscape).
Setting the page Select the menu command File > Page Setup to set the page format for
format printing (e. g. A4, A5, Letter).
Setting headers Change the print form so that it matches the required paper format. If the
and footers form is too wide, the righthand margin is printed-out on a subsequent
sheet.
You can set the headers and footers for your documents to be printed
using the SIMATIC Manager with the menu command File > Headers,
footers.
Print preview You can preview the printout using the menu command File > Preview.
NOTE Several STEP 7 application programs only offer a part of these menu
commands.
Project parts which You can print the following specific components of a project:
you can print
• The configuration table of a station with the layout of the modules and
module parameters
• CFC charts
Depending on the window, the first entry in the menu bar can be other
than "File", e. g. "Station".
3. When required, change the printer settings (e. g. printer, print range,
number of copies) in the dialog box and then close it. You can obtain
more detailed information on printing in the online help.
How CFC is Fig. 2-1 shows how the CFC is embedded in the STEP 7 environment:
embedded
SIMATIC Manager
CFC
STEP 7 components STEP 7
The operating system Windows 95, 98, ME, NT 4.0, 2000 or XP and the
STEP 7 basis software must be installed. For CFC, you require different
software option packages depending on the target system.
Installation for The following diagram shows the inter-dependencies of the CFC
SYMADYN D software:
S7 M7 S IM A T IC T D C /
CFC S IM A D Y N D
B o rla n d C / C ++
SCL M 7-S Y S D 7 -S Y S
STEP7
Fig. 2-2: Inter-dependencies of the CFC software in the STEP7 system environment
data flow The following diagram shows the project planning data flow in
SIMATIC TDC/SIMADYN D and the FM 458-1 DP, starting from importing
block type up to loading the machine code into the target system.
Generate
Type code
C sources
Compile and
link
Compile
Load
SIMATIC TDC / SIMADYN D target system
Machine code
... Sequence
Description of the The data flow for the user program of a SIMATIC TDC/SIMADYN D-
SIMADYN D data CPU or the FM 458-1 DP application module is as follows:
flow
1. The block types of the standard block library "FBSLIB" of SIMADYN D
are already included in a newly created chart container.
When required, the user can import the necessary supplementary
libraries.
2. The CFC Editor is used to create charts by inserting blocks (from the
block libraries), and then parameterizing and inter-connecting them.
3. The CFC charts are compiled; a user program is generated which can
be loaded.
When compiling, the hardware configuration data of the CPU,
configured in HWConfig, are transferred into the user program.
4. The user program (and if necessary, the operating system) is
downloaded into the target system.
2.1.2 Handling block types
In this section, you will see how you import block types and insert them in
the CFC chart.
The function blocks are organized in block libraries. You import and
delete all block types of a library together.
Within a library, blocks are grouped into block families, which include
blocks which have associated or similar functionality.
Standard block The function blocks of the standard function block library "FBSLIB" are
library already imported in a newly created chart container of a D7-SYS
program. When required, additional block libraries can be imported and
are then available in all charts of the chart container.
1. Open a chart of the chart container and select the menu item
Options > Block types.
A dialog box opens with two windows. The block libraries, installed on
your generating system, are listed in the lefthand window "Existing
libraries". The libraries, which have already been imported into this
chart container, are listed in the righthand window "Imported libraries".
2. In the lefthand window, select the library to be imported, and click on
the "Import" button. The selected library is then imported and a dialog
box opens and shows you how the operation is progressing.
Tests The following test is executed when importing a block library:
Error report If an error is identified when a library is being imported, an error report is
displayed with information on the cause of the error. Select an error line
of the report and click on the "Help text" button to obtain further
information regarding the error cause and how it can be resolved.
The chart is open. You will find directories of the block families as well as
the directories "All blocks" (contains all blocks)” and "Other blocks" (for
blocks which are not assigned to a particular family), in the block catalog.
An icon for free text is shown above the directories. Insert the text field
just the same as for a block.
Inserting You can insert the required block from the open directory by dragging it
into the chart.
You can delete block libraries using the function Options > Block types.
This function is used for block types which are no longer required in this
particular chart.
1. First ensure that the library which you intend to delete, no longer has
block types which are required in the charts of the chart container.
2. Open a chart of the associated chart container and select the menu
item Options > Block types.
Error report If an error is identified when deleting a library, an error report is displayed
with information on the cause of the error. Select an error line of the
report and click on the "Help text" button to obtain additional information
on the cause of the error and how it can be resolved. Click on the "Go to"
button to jump to the associated function block.
Checks When updating a block library, the following checks are made:
• It is checked as to whether all of the block types which are used are
still available in the new library version.
Error report If an error is determined when updating the library, then an error report is
displayed with information on the error causes. Select an error line of the
report and click on the "help text" button in order to obtain more
information on the error cause and how it can be resolved.
The Manual "CFC for S7 describes in detail how you edit block inputs, i.e.
change the properties of the inputs
Scaling factor An optional scaling factor can be configured at the I/O of the data type
REAL (R), to normalize analog values (define them as per unit values).
The scaling factor is pre-assigned the value 1.0.
Values at the An initialization value can be specified in the "Value" field of the property
outputs dialog box at the block outputs. This value is available at the output if the
associated block was calculated for the first time in the operating mode
INIT.
Pseudo comments Comments at block I/Os, which start with "@", are pseudo comments and
are taken into account when compiling data for the
SIMATIC TDC/SIMADYN D bzw. FM 458-1 DP target system. Pseudo
comments influence the user program function:
@DATX : The input is connected, bypassing the consistency
mechanisms.
@TP_bnnn: Connection is a parameter (with range ID "H", "L", "c" or
"d" and a three-digit parameter number nnn, e. g.
@TP_H089).
@TC_nnnn: I/O is a technology connector (identified by a four-digit
connector number nnnn,
e.g. @TC_0034
Additional information
on pseudocomments, refer to the SIMADYN D User Documentation:
I/O of the GLOBAL (GV) data type cannot be interconnected. They must
be interconnected with global operands (refer to Section 2.1.4.1).
Interconnectability For SIMATIC TDC/SIMADYN D and FM 458-1 DP, not only can I/O of
of data types identical types be interconnected, but also:
The STRING data I/O of the STRING (S) data type cannot be interconnected, neither to
type each other nor with global operands.
The GLOBAL data I/O of the GLOBAL (GV) data type cannot be interconnected.
type They must be interconnected with global operands (refer to Section
2.1.4.1). GLOBAL I/O which are not connected are flagged as erroneous
during the consistency check or when compiling.
Definition Global operands are connection partners which are located outside the
CFC charts.
Special feature For nested charts all connections to global operands must be routed to
the chart interface. This avoids global operates being defined a multiple
number of times (e.g. $ signals are created a multiple number of times).
• $ signals
• virtual connections
• OP connections
• hardware addresses
• module names
• name references
• process interrupts
Entry dialog boxes Select the block I/O which is to be connected with a global operand and
select the menu command Insert > Connection to operand. Depending
on the block I/O type, CFC opens an appropriate dialog box.
Selection lists in the dialog boxes offer practical entries depending on the
particular context. Further, you can directly enter a name in the dialog
box input field.
You can change the name of a $ signal after you have double-clicked on
the name in the margin.
Entry syntax When entering names, the syntax for the particular global operand type
must be observed (refer to Table 2-6 Name lengths).
Help To obtain information on what you can enter, depress F1 with the entry
dialog box open.
For further information, refer to the help for the function blocks to be
interconnected. To access this help, select the block in the chart and then
depress F1.
2.1.4.1.1 $ signals
Block I/O $ signals can be configured at all inputs and outputs with the exception of
STRING (S) and GLOBAL (GV) data types. They are used to simply
configure interconnections between blocks on different CPUs within a
SIMADYN D station.
Additional information
on configuring $ signals, refer to the Manual "System Software and
Configuring D7-SYS" .
Bus and type If you "create" a $ signal, i. e. you configure it at a block output, you can
define whether the signal is transferred via the L- or C bus of the subrack,
and which type it is (Standard or Fast).
Contents of the The selection list shows you the already configured $ signals configured
selection list at other CPUs of the SIMADYN D station with which the I/O can be
connected:
• At block outputs, these are all data types, which match $ signals
which are used at block inputs of other CPUs, but which still haven’t
been created.
• At block inputs, these are all data types which match $ signals and
which are created at the block outputs of the other CPUs.
Using $ signals, not only can I/O of the same type be connected, but
Interconnectability
also:
of data types
• REAL (R) and SDTIME (TS)
Block I/O Virtual connections can be configured at all I/O with the exception of
those of STRING (S) and GLOBAL (GV) data types. They are used to
configure communication connections via the "Process data" utility.
Additional information
on configuring virtual connections, refer to the Manual "System- and
communication configuring D7-SYS".
Sequence number Using the sequence number, the transmit- and receive blocks arrange the
virtual connections, transferred from them, to the transferred telegram.
Contents of the You are provided with a list of all of the "Virtual connection names" in the
selection list selection list for "Virtual connection name", which were configured at a
transmit/receive block of this particular CPU.
Block I/O Virtual connection names (transmitting and receiving) are configured at
transmit and receive blocks only at data type GLOBAL (GV).
Additional information
on configuring virtual connections, refer to the Manual "System- and
communication configuring D7-SYS".
Contents of the Up until now, you were provided with a list of virtual connection names in
selection list the selection list, which although specified in a virtual connection, have
still not been configured at a transmitter or receiver.
2.1.4.1.4 OP connections
Block I/O OP connections can be configured at all inputs and outputs, with the
exception of data types STRING (S) and GLOBAL (GV). They are used
to simply configure connections to SIMATIC OPs.
Additional information
on configuring OP connections, refer to the “System- and communication
configuring D7-SYS", Section "Communications with SIMATIC Operator
Panels".
OP connection If you generate an OP connection, you must specify a symbol name and
data a flag. For inputs, you can additionally specify an initialization value
(default value).
Block I/O Hardware addresses are configured at input/output blocks. They define
which hardware signal is to be read-in or output from this block.
Block I/O Module names are configured at communication blocks. They define the
coupling via which communications is to be established.
Additional information
on configuring module names, refer to the Manual "System- and
communication configuring D7-SYS"
Contents of the You are provided with a list of all of the coupling modules, which can be
selection list addressed from the current CPU, in the selection list.
Block I/O Name references are configured at block connections GLOBAL (GV) of
the utility of various communication utilities. They connect several blocks
of the associated utility, which fulfill a common task.
Additional information
on configuring name references, refer to the Manual "System- and
communication configuring D7-SYS".
Contents of the All of the name references, which have already been configured in the
selection list current chart container are provided in the selection list.
Block I/O Process interrupts are configured at special blocks block and influence
the handling of process interrupts.
Additional information
on process interrupts, refer to the Manual "System- and communication
configuring D7-SYS".
Contents of the You are provided with a list of SIMATIC TDC/SIMADYN D or FM 458-1
selection list DP process interrupts in the selection list. It is not possible to directly
enter other process interrupts.
A detailed description of the run-time properties and how you can change
these, is provided in the Manual "CFC for S7". You will find some
supplements to the following subjects here:
• Run-time attributes
Task structure The structure of a task with run-time group and blocks is illustrated in the
Fig. Chart reference data: Run sequence (in the Manual, "CFC for S7").
Tasks A task contains blocks and optional run-time groups with blocks. The
tasks are specified for the SIMATIC TDC/SIMADYN D and
FM 458-1 DP target system.
The properties, which define the run properties of a task, are configured
Run-time
in HWConfig The properties are parameterized under the tab "Basic
properties
cycle", "Cyclic task" and "Interrupt task" of the property dialog boxes of
the CPU modules.
Run-time groups Run-time groups are optional. They are used to structure and sub-divide
tasks. The blocks are sequentially inserted in the individual run-time
groups.
Order in which the The following is valid for the tasks: The sequence of groups and blocks
tasks are executed inserted within a task, is the run sequence.
The same is true for groups: The sequence in which the individual blocks
are inserted is the run sequence within the group.
Blocks are not In the SIMATIC TDC/SIMADYN D target system, and for the FM 458-1
inserted a multiple DP, each block must be inserted precisely once. It is not permissible to
number of times insert blocks a multiple number of times in several tasks.
Enable
The group inherits these attributes in all of the blocks which it contains.
The attributes are assigned when creating the run-time group. The
enable attribute can be controlled via an interconnection.
Scan and phase In the SIMATIC TDC/SIMADYN D and for the FM 458-1 DP target system
offset not possible it is not possible to specify different scan rates and phase offset of a run-
time group.
Enable attribute The enable attribute activates or deactivates a group (on=1, off=0). As
long as it is set to 0, the group is not executed, irrespective of all of the
other conditions.
1. Assign the I/O, which you wish to control and monitor, with the
necessary operator control and monitoring attributes, in a dialog box.
These can include limit values, equivalent values and logging
characteristics, etc.
2. Transfer the configured software data, generated with CFC, to your
display unit (WinCC) using the D7-SYS-OS Engineering.
Name syntax In order that the configured data for WinCC can be saved and
transferred, the D7-SYS OS engineering transfer program automatically
allocates unique names. These are then saved in WinCC.
The names may not include any underlines, blanks or special characters
" ‘ ", ".", "%", "-", "/", "*", "+".
NOTE You can obtain additional help by pressing the F1 key with the
"Operator Control and Monitoring" dialog box open.
• In this case, all of the block types used are automatically linked-in.
Thus, for the SIMATIC TDC/SIMADYN D target system and FM 458-1
DP, it is not necessary to separately compile and load.
• The cross-compilers required are invisible to the user and are called-
up by the CFC. The CFC already identifies any configuring errors. You
don’t have to know anything about the cross-compiler.
Prerequisites Before you can compile the charts of a SIMATIC TDC/SIMADYN D-CPU
or a FM 458-1 DP, the hardware configuration of the station, in which the
CPU or FM 458-1 DP is inserted, must be compiled and saved.
Compiling You start chart compilation by entering Chart > Compile > Charts as
program; acknowledge the dialog box using "OK". Compilation is
initiated and a dialog box is opened where you can see how compilation
is progressing.
Compilation scope When compiling, you can select one of two possibilities:
1. When compilation has been completed, you will see a display of the
After compilation
number of errors and warnings which have been identified. You can
open a detailed compilation report using the "Details" button.
2. Select an error line of the report and click on the "Help text" button to
obtain more detailed information about the cause of the error and how
it can be resolved. Click on the "Go to" button to jump to the
associated function block.
3. You can call-up the report at a later time using the menu command
Options > Report; if required you can also print these reports.
Settings for You can make several settings before compiling:
compilation
You can call-up a dialog box using the menu item Options > Settings >
Compilation. This allows you to make the following settings:
• Which function block types are to be inserted online in the test mode
of the CFC:
NOTE Inconsistencies can occur if you make changes to the configured data
within a station, after you have already compiled the individual CPUs.
If you are not certain whether the user program of a CPU must be re-
compiled, then check it using the "Only compile changes" option. If the
user program does not have to be re-compiled, then the CFC will flag this
and will interrupt compilation.
The user program, compiled from the charts of the CPU or FM 458-1 DP,
is loaded into that CPU or FM 458-1 DP which is assigned to the active
chart window. The user program is transferred into the CPU or FM 458-1
DP program memory, but is however still not active.
Offline loading Remove the memory module from the CPU or FM 458-1 DP module,
insert it into the appropriate slot of your PG/PC or external programming
device (OmniDrive or USB-Prommer) and load it offline. This is only
possible for modules, which use a separate memory module (for
example, this cannot be used for the T400 technology module).
Online loading For online loading you connect your PC with an appropriate
communications interface of a SIMATIC TDC/SIMADYN D station
(DUST1 or MPI) or a SIMATIC CPU/SIMATIC CP for a FM 458-1 DP
(refer to Section 2.3.10) and load the user program online.
Booting A special procedure is required for the following cases, when loading
online via the MPI bus interface:
Prerequisites The prerequisites and conditions for loading the user program depend on
the type of loading technique which will be selected.
− With "offline" you must remove the memory module from the CPU
or FM 458-1 DP and insert it in the appropriate PCMCIA socket or
MMC slot of your PC.
NOTE The archived project is deleted when the user program is downloaded
(refer to Section 2.5.1, "Saving a project to be archived on MC"). This
applies both for offline as well as online.
This brief guide is intended for newcomers who have still not had a
chance to get up to speed with the CFC program package. We will show
you a small example where, after starting the SIMATIC Manager, you can
create a project, create a CFC chart, interconnect blocks, compile the
chart and load the software into the target system SIMATIC
TDC/SIMADYN D or FM 458-1 DP and then test it online.
Comment Generally, there are various ways to achieve a goal. However, in this
particular example we only want to show you one, namely the fastest or
best way. Alternative procedures will not be discussed here with just a
few exceptions.
So, you want to create a small application, using the CFC, for the
automation system.
Starting On the Windows screen you will see an icon for the SIMATIC Manager,
the entry into the STEP 7 software.
To start-off with, you will create a project. A project allows you to save the
...the next steps
data and programs, obtained while creating the project, in an orderly
fashion. There is no specified sequence when creating a project, but that
you can see for yourself ....
Set-up a project Firstly, set-up your project structure. Set-up a new project in SIMATIC
structure Manager and open it. You can do this by using the icon in the tool bar:
(new project)
• In the "New" dialog box, select the Path, enter the required Project
name (in this case: "auto_ex") and close the box with "OK".
The project window appears, split into two fields: The project icon with
the project name is shown in the lefthand field and, the contents in the
righthand field, which in this case are: The icon and the name of the
MPI network.
You can now decide whether you first want to set-up the hardware
and then the software or vice versa. If you create the software first,
then after the hardware configuration, you can assign it to a CPU
using drag & drop.
• Place the mouse pointer at the selected station icon and depress the
right mouse key. Click on Open object ... in the menu which is now
displayed.
You will see, that a D7-SYS program has already been assigned to the
CPU. This already contains a chart container "Charts". You will see this
when you open the D7-SYS program.
Inserting the If you open the chart container, you will see that it already has a function
software chart. This is "@SIMD" system chart.
1. Select the chart container and then, using the right mouse key
Insert New Object > CFC
2. Now give the chart a new name. The text field of the CFC name is
already selected and the cursor activated.
3. Edit the new name, in this case: "cfc_reg1".
Fig. 2-4: Inserting the new CFC chart in the chart container
Thus, the project structure has been set-up, and a chart created. Blocks
must now be inserted into this chart and interconnected so that a control
task can be implemented.
Preliminary Before we really get going, we should first briefly discuss what will be
comments configured in this chart.
• 2 integrators (INT)
• 1 subtractor (SUB).
Opening the CFC By double-clicking on the chart icon, you can open the chart and implicitly
chart start the CFC Editor.
The CFC window is opened. The chart window and the block catalog are
located in the CFC window. The block catalog can be switched-in and
switched-out using the following symbol.
(catalog)
You can use the blocks of the standard library "FBSLIB", supplied with
the system, to configure the CFC chart.
Select the INT block and drag it, with the left mouse key depressed, into
the chart. The block outline will be represented as a dotted line. Release
the mouse at a suitable position. The block will be displayed in the chart
with its real size.
Now you should look for the SUB block. Enter the SUB name (in upper
case letters) in the entry field of the block catalog, and click on the
"Binocular" icon (field glasses). The search starts and the SUB block is
quickly found which is included in the "Arith." family.
• Select output "Y" of the righthand INTegrator and then input "X2" of
the SUBtractor.
• Select output "Y" of the SUBtractor and then input "X" of the lefthand
INTegrator.
The autorouter has already drawn the connecting lines from the outputs
to the inputs; the I/O are interconnected.
Changing the run Select the menu item Edit > Run sequence...
sequence
The "Run sequence" dialog box is displayed: You will see the task
structure in the lefthand window; the contents are displayed in the
righthand window. The default location of the block is in the highest
priority cyclic task T1.
We now want to shift the block, just inserted from task T1, into the lower-
priority task T3.
• Close the dialog box with Chart > Close and then proceed to the next
step.
Parameterizing The limit inputs of the integrators must now be supplied with other values.
inputs You can now do this, individually for each input, by double-clicking and
calling-up the dialog box "Properties - I/O" or you can take the easier
route:
The "Block Properties" dialog box opens and then you can select the
"I/O" tab. The parameters in the fields with grey background, cannot
be changed.
Double-click on the right "INT" block and enter the same value as at the
lefthand INT block. Also change the initialization value at the block
output:
Help for the block If you require more detailed information on a block, then select it and
types press F1.
Thus, our small example has now been configured and the chart can be
compiled and loaded.
Compiling The graphically-created chart must now be compiled into the machine
code of the SIMADYN D target system.
(compile)
In the "Scope" field, you can now select whether the complete chart
container ("Compile everything") or only the changed objects ("Only
compile changes") should be re-compiled. In this case, we wish to
"Compile everything".
...after compilation A dialog box with the "Compilation error-free" message is displayed after
compilation.
Compilation has now been completed and the user program, which can
be loaded has been generated. In a next step, you can load the program
into a memory module for the SIMADYN D CPU.
Insert the memory Insert a SIMADYN D memory module into the PCMCIA slot ("socket") No.
module in a PC 1 of your PC or in the OmniDrive (external PC card drive).
(load)
Select "System and user program" loading as scope in the "Load" dialog
box; and, "offline (OmniDrive)" as loading type. Start loading with "Load".
The user program and the operating system of the CPU are loaded into
the memory module.
Starting the CPU Insert the memory module, which was just loaded, into receptacle X01
(module receptacle) of your SIMATIC TDC/SIMADYN D CPU and power-
up the subrack.
The CPU runs-up and after a few seconds, CPU number "1" appears on
the display.
Testing the In the test mode, you can monitor the values of the block connections
program (block I/O) and you can change the values of the block inputs. The
values, registered for test, have a yellow background.
Changing-over into Before you change over into the test mode, select the test mode
the test mode "Laboratory operation" with Test > Laboratory operation. This means
that all of the block connections (I/O), registered "for test" will be
automatically switched-in for "monitoring".
(Testmodus)
• or select Test > Test mode
In the status line, the text in green "Text: RUN (laboratory)" is displayed.
Monitoring You can now see your oscillation circuit working, i. e. how the values of
the connections, selected for the test, change. The values of the I/O have
a yellow background.
Change input value In the test mode you can also change all of the values at the inputs which
have not been interconnected. If you want to see how the characteristics
change when a value is changed, enter "5000ms" as integration time at
the lefthand INT block.
The "Properties - I/O" dialog box opens. Change the value for the
block input and acknowledge the new value with "OK".
In the chart, you can now see how the "Y" output changes significantly
slower as a result of the new input.
• Select input "X2" of the SUB block and remove the interconnection
Deleting
with Edit > Delete.
interconnections
The interconnections between the output of the righthand integrator
and the SUB block is deleted, thus interrupting the oscillation circuit
feedback.
In the chart, you can now see how the input- and output values of the
blocks remain stationary.
Re-establishing • Select output "Y" of the righthand INTegrator, using the lefthand
interconnections mouse key, and then input "X2" of the SUBtractor.
In the chart, you can now see how the values start to change again.
Insert and delete In the CFC test mode, you can insert additional function blocks online in
blocks the chart and interconnect them with already configured blocks (offline).
De-activate test To return to the create mode, deactivate the test mode. Click on
mode
(test mode)
Complete Your example has been successfully configured and debugged (tested).
documentation You can now generate a complete set of documentation for this small
example.
Chart reference The chart reference data in this case are the "Cross references block
data types" and the "Run sequence". On the tool bar click on
(Referenzdaten)
You can now generate and display the appropriate lists, using the icons
in the tool bar in the dialog box "Chart ref: Display chart reference data".
You can then print these lists
(print)
Then close the dialog box with Reference data > Exit.
You also wish to print the chart. Only one page was used on this chart.
Print chart
This is the reason that we recommend the single-sheet print-out. The
chart is still set to "Page view". You can now start printing:
(print)
Close The project has now been completely created; you can now close the
CFC Editor with Chart > Close. The CFC window is closed..
You can close the SIMATIC Manager with File > Close
The window of the SIMATIC Manager is closed and you return to the
Windows screen.
Before you can commission the complete software structure, you must
test its functionality in detail. To support commissioning, functions are
integrated in the CFC Editor to monitor values online and to make
corrections in the loaded software. These functions are described in this
Chapter.
Menus The functions of the CFC Editor for commissioning and test are provided
in the two menus PLC and Test. With the PLC options, you can display
and change the status of the CPU presently being processed. With the
options of the Test (debug) menu, you can directly influence the CPU
program (at the target software).
Function groups The functions for test and commissioning can be sub-divided into the
following main groups:
• Power off
In this mode, the system is not operational (it is powered-down). The
seven-segment display and LEDs are dark; communications with the
CPU or the FM 458-1 DP cannot be established.
• INIT
In this mode, the system initializes itself (runs-up). The seven-
segment displays indicates "0" or the RUN LED flashes;
communications with the CPU or FM 458-1 DP cannot be established.
After this mode, the system goes into the following modes.
• RUN
This is the standard operating mode. The CPU or the FM 458-1 DP
processes the configured user program. The status display shows the
CPU number ("1" ... "8") or an error code "C", "E", "b" or "A". For an
FM 458-1 DP, the RUN-LED is bright or one of the fault LEDs (CF, TF,
MF, UF) is bright. In this mode, the CPU can be accessed online via
the local service interface and the configured service interfaces.
An FM 458-1 DP can be accessed, online via the SIMATIC CPU or an
appropriate SIMATIC CP.
Using the "Cold restart" or "Stop" commands (refer below), it is
possible to go into the INIT mode or user stop mode.
• User stop
The CPU or FM 458-1DP only goes into this mode, if an explicit stop
command is issued (refer below). A seven-segment display indicates
"d" or the STOP LED of the FM 458-1 DP is bright.
This mode is used to quickly load the user program into the CPU.
Fast means that in this mode, cyclic processing (execution) is
stopped, and the complete computational performance of the CPU or
FM 458-1 DP is available for loading (STOP LED flashes for FM 458-1
DP). Loading can be realized via the local service interface or via the
configuring service interfaces for FM 458-1 DP via SIMATIC CPU or
SIMATIC CP.
Using the "Cold restart" command (refer below), it is possible to enter
the INIT state.
If you wish to view the operating mode and change it using CFC, then the
following conditions must be fulfilled:
Procedure If you wish to view and change the operating mode using CFC, then
proceed as follows:
• Select the menu item PLC > Operating Mode ...; the associated
dialog box is displayed.
• Press the "Cold restart" button if you wish to bring the station into the
INIT mode; the "Stop" button, if you wish to change from the RUN into
the user stop mode.
2.3.2 Checking that the configured data and the CPU program match
After loading the configured software the last time, changes could have
been made, either in the CPU or FM 458-1 DP or in the CFC Editor
(offline).
Procedure Select the menu item PLC > Compare .... The "Compare" dialog box
opens. The CPU number, CPU name and the date of the last compilation
are specified and compared with one another. The configured software
and program in the target system are only consistent if the appropriate
parameters are the same. In addition, a check is made as to whether
online changes were made using another start-up tool, bypassing the
CFC, or if offline changes were made, in the configured software.
NOTE If the configured software and program in the target system are
inconsistent, you can only activate a restricted level of test operation,
where it is only possible to view and change parameter values.
The CFC Editor periodically interrogates the SIMADYN D CPU for the
latest I/O value so that the values can be dynamically updated. The user
can set this scan time.
If values are not refreshed within 300 % of this time, for example,
because the data transfer capacity of the communications link is not
sufficient, or the computation performance of your PC is being fully
utilized, then the values which have not been refreshed, are flagged as
being faulted (refer to Section 2.3.6).
In this case, you should either reduce the number of registered values or
increase the refresh period.
If you wish to change the refresh rate for monitored values, then proceed
Procedure
as follows:
• Select the menu item Debug > Test Settings ...; the associated
dialog box is displayed with a field for the refresh period, which can be
edited.
• Press the "OK" button; the refresh period then becomes valid for all
values of the current CPU.
Before you can view (monitor) values in a CPU or FM 458-1 DP, or make
online changes, you must select the CFC test mode. The test functions
can only be activated after first changing into this mode.
In the test mode, only changes can be made in the configured software,
which can be implemented and realized online. This is the only way to
ensure that the assignment of objects in the configured software match
that of the objects of the program in the target system. Further you can
also make changes which only refer to the screen display and do not
influence the program, e. g. shifting blocks. These basic functions can be
activated both in the test- as well as in the create mode.
The test mode refers to the CPU or FM 458-1 DP, which is associated
with the currently active chart. The test mode must be individually
enabled or disabled for every CPU or FM 458-1 DP being processed in
the CFC Editor.
Changing between When changing into the test- or into the create mode, the CFC still views
the test- and the current chart.
setting mode
When changing into the test mode, it is checked as to whether the current
status of the configured software matches the change release of the
program. If this is not the case, for example, because you changed the
configured software in the CFC create mode since the last load of the
program, then the appropriate message is displayed. You can now
activate restricted test operation (debugging) (only "monitoring") where
you can only view and change parameter values.
Changes in the test All of the changes made in the CFC test mode, are immediately and
mode permanently changed in the change memory (presently, EEPROM) of the
SIMATIC TDC/SIMADYN D CPU or the FM 458-1 DP; i. e. when the CPU
or the FM 458-1 DP is reset, these changes are kept. If the CFC system
crashes in the test mode, then in order to achieve a consistent status, the
program must be re-compiled and loaded. The changes which you made
up until the system crashed, still remain effective.
• Laboratory operation
The laboratory mode is selected to be able to efficiently test and
commission the system in a user-friendly fashion. In the laboratory
mode, contrary to the process mode, communications of the online
update for the CFC charts is not limited. When switching-in the test
mode, all of the blocks have the "monitoring on" status.
The test mode can be selected in the create mode using the menu
commands in the "Test" menu. Changeover is not possible in the test
mode.
Activating the test The test mode is activated. A check mark is displayed next to the menu
mode item. Depending on the selected test mode, the text "test: RUN
(laboratory)" or "Test: RUN (process mode)", with green background is
displayed in the status bar. All of the menu functions, which are not
permitted in the test mode, are de-activated (light grey font).
NOTE If you made changes offline, or online using another start-up tool,
bypassing the CFC, the "Different software release" dialog box is
displayed. In spite of the fact that it is a different software release, this
still allows you to changeover into the test mode.
CAUTION If you go into the monitoring mode, in spite of the different software
! releases, CFC can occasionally indicate erroneous situations, as the
displayed parameter values, blocks and interconnections may not
match with those in the target system.
The test mode is de-activated; the check mark next to the menu item and
the text in the status bar disappear.
During operation, and especially during start-up, the CPU or the FM 458-
1 DP can identify an error condition of the configured system, e. g. if the
task cannot be calculated in one sampling time, because higher-priority
tasks fully utilize the available time. These statuses, which are also
generally identified by the appropriate 7-segment display value of the
CPU or using an appropriate LED display for the FM 458-1 DP, can be
analyzed using the "Module status" function.
Further, when the CPU or the FM 458-1 DP goes into the STOP
operating mode due to a system error, it records the cause of the crash
(the "exception") with information about the internal state. This
information is available after restart.
Prerequisites The prerequisites to determine the module state is that you have first
done the following:
You can display the error fields of a CPU or the FM 458-1 DP as follows:
• Select the tab page "Error fields".The tab page "Error fields" is
opened.
The contents of the internal error field of the current CPU or FM 458-1 DP
are displayed as text here on the page under this tab.
• Select the "Exception buffer" tab. The page under the "Exception
buffer" tab opens.
Connections (I/O) which have been registered for test, are supplied, in
the test mode with the actual values from the CPU or FM 458-1 DP if
"monitoring" is enabled for these I/O.
Prerequisites The "Monitor block I/O" function can only be executed under the following
conditions:
Monitoring in the When the test mode is switched-in, for CFC charts in the ”Laboratory
"Laboratory mode"
mode”, the "monitoring on" function is also activated.
This means, that in the test mode, you can display how the values of
those block I/O develop, which were registered for display. This means
that the values are cyclically read-out of the CPU or FM 458-1 DP and
are displayed. You can change the options for this dynamic value display
and the parameters of the I/O in the test mode.
Monitoring in the
"Process mode" In the "Process mode", the "Monitoring off" function is activated. This
means, that to dynamically update, you must first select the blocks (select
them in the chart) which you wish to monitor; then select "monitoring on".
Vice versa, for an overload condition, you can exclude individual blocks
from the monitoring function (select the block and select the menu
command "monitoring off").
Caution:
If monitoring is switched-out and you select a connection and register this
for test via , then monitoring is switched-in for this connection and for
all previously registered connections of this block.
Registering/de- In the create mode or in the test mode (process or laboratory operation),
registering you can register individual block or chart connections for test, by
connections for selecting the connection and selecting the menu command Test >
test
Register connections or you can click on the icon in the function
bar.
NOTE Alternatively: In the create mode, you can register and de-register all
of the block connections for test if you call the "object properties" for a
selected block and in the "connections" tab in the "For test" column, set
or reset the marking of the individual connections.
Connections, You switch-in monitoring (to display the actual value of the connection)
switching- for the block connections, registered for test, as follows:
in/switching-out
monitoring • Automatically when the test mode is switched-in in the laboratory
mode.
• With the menu command Test > Monitor on or using the icon in
the function bar. In the laboratory mode, this function applies for all
blocks; in the process mode, only for the blocks previously selected in
the chart.
• By selecting the menu command Test > Monitoring off or using the
icon, you can disable the monitoring function, i.e. the connection
values are not longer updated.
In the laboratory mode, this applies for all blocks; in the process
mode, only for the blocks selected in the chart.
All of the input and output values, switched-in for monitoring are updated
according to the set monitoring cycle.
The values are output next to the connections corresponding to their data
Representation of
type. They are shown on the screen with colored background (refer to
the dynamic value
Table 2-1).
display
Blue on white Values displayed in the create mode (offline)
Black on yellow, stars Values displayed during the changeover to
dynamic value display
Black on yellow, value Values read-out of the CPU/FM 458-1 DP
displayed in the test mode
#### on a red background Values, requested from the CPU/FM 458-1
DP and which are not available, are
displayed (error condition)
With this function, you can change the values at the inputs of the blocks
during operation and simultaneously monitor the effects in the control
process.
Prerequisites The "Parameterize block I/O" function can be made under the following
conditions:
NOTE The default for the output value cannot be changed online. This is also
true for function blocks which have been newly inserted.
• In the chart, using the left mouse key, mark the output which you wish
to interconnect to the input; the color of this output changes.
• Position the mouse pointer in the chart to the input which up until now
has not been interconnected and which you now wish to connect.
Depress the left mouse key. The interconnection is now displayed as
a line in the chart. At the same time, a data connection is established
between the I/O in the working memory of the CPU/FM 458-1 DP.
• Select the block input in the chart, which you wish to remove and then
delete the interconnection with Edit > Delete.
The connecting line between the connections disappears, and the last
value, which was transferred at the data connection, is displayed as
parameter value at the input.
For SIMATIC TDC/SIMADYN D/FM 458-1 DP, you can make changes to
the control structure during operation; this also involves "Inserting and
deleting blocks".
• In the block catalog, select the required block type, and with the left
mouse key, drag it to the required position at a free location in the
chart.
Note Some block types cannot be inserted online. If these block types are
selected, an error message is output.
• Remove all connections from the outputs of the block to the inputs of
the other blocks. Proceed as described in Section 2.3.8. Connections
to global operands do not have to be deleted.
• Position the mouse pointer in the chart at the block to be deleted and
press the right mouse key. A pop-up menu is displayed.
• In this pop-up menu, select the item "Delete", the block is deleted from
the chart and is no longer processed in the working memory of the
CPU/FM 458-1 DP.
• In this pop-up menu, select No. I/O ...; a dialog box is displayed in
which you can select the required number of block I/O.
For a single-processor system (e. g. T400) this is the only interface for
test and start-up. If this interface is to be used to load and test (debug)
multi-processor systems, then the connecting cable must always be
inserted at the actual CPU.
Even when first commissioning a station, you are not limited to just a
local interface. Communications via the so-called initialization interface
is possible as soon as there is a certain level of harmonization between
the CPUs of a station (this can be identified by a "0" on the CPU display)
(only for SIMADYN D).
For example, the CPU programs for a complete station can be loaded
online via this interface, without having to changeover cables.
Local service When using the local service interface, this must be connected with a free
interface serial interface of the PC (COM1 or COM2).
In this case, the PC checks all of the configured connections one after the
other, until it can establish a communications link to the "Service" utility of
the CPU. The PC can then use this connection for communications.
NOTE In order to access a CPU via the configured service interface, you must
include an appropriate service utility function block in your configured
software.
If you require more information, refer to the Chapter "Service utility" in
the User Documentation "System- and communication configuring D7-
SYS".
Initialization The initialization interface is always the top connection of the CS7
interface module which is inserted at the far left in the subrack. To be used as
initialization interface, either an SS4 module or SS52 module must be
inserted here. This connection can only be used as initialization interface,
as long as the CPUs of the station are in the operating mode "STOP due
to an initialization error".
Creating The connection between the CFC and the "Service" utility of a CPU/FM
connections 458-1 DP is essentially automatically established. You must only insert
the serial connecting cable at the correct SS4 module and at a free serial
interface on the PC (COM1 or COM2) or the MPI bus cable at the
appropriate SS52/ CP50M0 module or the appropriate SIMATIC CPU for
FM 458-1 DP and at the PC MPI port.
Selecting the You tell the CFC which communications interface is to be used. To do
communications this, start the program via the Windows 95/NT task bar Start > Simatic >
interface STEP 7 > Set PG/PC interface and select the right alternative. This
selection is kept even after you power-down your PC.
Setting the MPI You must set the correct operating parameters of the MPI interface at
interface your PC if you wish to establish an online connection via the MPI
interface. Refer to the help info for the dialog box to obtain information as
to how you should proceed.
The baud rate for the MPI interface must coincide with the coupling
partner.
NOTE The maximum baud rate for the particular protocol may not be
exceeded.
Checks when When establishing a connection in the test mode and changing the CPU
establishing a mode, the CFC checks whether it is connected with the correct CPU/FM
connection 458-1 DP; if this is not the case, the connection is canceled and an
appropriate message is output.
When establishing the connection for online loading, the CFC checks
whether it is connected with the correct CPU/FM 458-1 DP; if this is not
the case, you are prompted as to whether you still wish to load.
If you have installed the "D7 SYS" software package, you automatically
have access to the block types in the standard "FBSLIB" block library.
You can use these to configure your system in the CFC. You can import
additional standard block libraries (FBSLDC, FBSLT1, FBSWCC and
FBSLSL). Further, you can create the block types yourself, by creating a
user library from charts.
NOTES • All charts of a chart folder are compiled and combined in a user
library.
• The chart may not include any other charts (chart nesting is not
permissible). Block types, created with CFC are permitted.
• All of the blocks must be located in the same task. In this task, the
blocks of the chart must follow one another directly.
• If the chart includes blocks, which has attributes, then the block type,
created with CFC also takes on these attributes.
Prerequisites Before you create a user library from the chart, you must have completed
the following preparatory steps:
NOTE The "Check the charts as block types" dialog box is displayed. If you
press key F1 with the dialog box opened, you will receive additional
help.
NOTE The "Create a library from charts" dialog box is displayed. If you press
key F1 with the dialog box open, you obtain additional help.
3. Import the created library in order to use the created block types to
configure your system.
NOTE In the following text, the name MC is used for these cards and the
memory of the T400.
Functional scope Projects can be saved online and offline on the MC. This is possible for
projects archived using the SIMATIC Manager (zipped files) as well as
projects that have still not been archived (these are then zipped before
saving).
The project archive is saved in addition to the program that can run on
the MC. The data archived on the MC can be again retrieved at a later
point in time. When retrieving data, the project archive that was last
saved, is retrieved.
• SIMADYN D
• SIMATIC TDC
• T400
Consistency When downloading the user program, existing project archives are
deleted on the MC. This avoids that runable programs and the archive
program are inconsistent with one another.
General When saving a project, a differentiation can be made between two cases:
information
• The project was already archived using the SIMATIC Manager (then it
is already available as a zipped file).
• The project was still not archived. This means that the project must be
zipped before it is saved.
If such a project that has still not been archived, is saved on the MC, then
it may not be opened in any application (SIMATIC Manager, HWConfig,
CFC). Otherwise, data compression would not be possible.
When saving online, the original project (this is only possible for already
zipped archives) or a project where the hardware was re-configured in
HWConfig, must be opened and selected in the CFC so that a
communications link can be established to the appropriate CPU.
When saving offline, any project can be opened with the appropriate
target system.
NOTE If there is no runable program on an MC, then the project can also be
saved on it. However, this is then only possible offline.
− For Online, the memory card must be inserted in the CPU slot
(exception: T400).
If neither offline nor online is possible because, for example, there is
no prommer, then both of the option fields and the "Save" button are
de-activated (grayed-out).
By selecting a file and pressing the "Open" button, the dialog box
is closed and the selected file is accepted. The path is entered into
the higher-level dialog box. Alternatively, the file can be selected
by double clicking on it. In this case the dialog box is automatically
closed.
The dialog box is closed by pressing the "Cancel" button. The
higher-level dialog box remains open and no changes are made.
The contents of the already archived project are not checked.
− If your project has still not been archived, remove the checkmark in
the control box.
Press the Projects button. A dialog box is opened in which you
can select the required project directory.
By pressing the "OK" button, the dialog box is closed, the selected
directory is accepted and the path checked. If it involves a project
directory that was generating using the SIMATIC Manager, the
path is entered in a higher-level dialog box under Project data. A
check is not made as to whether the correct target system is
involved as far as the project is concerned. If the selected directory
is not a project directory in the sense of the SIMATIC Manager,
then the user is flagged. The "Select project directory" dialog box is
re-opened after closing the fault message.
The dialog box is exited by pressing the "Cancel" button. The
higher-level dialog box remains open.
The path of the selected project is entered into the field to the right next
to the button.
6. Select Other files:
In addition to the archived project, "Other files" can still be archived
in the MC. This functionality is optional.
Other files are only transferred if the project was not transferred. If the
memory is not large enough for the project, then Other files are also
not transferred.
− You can select an individual file using the "Add file" button. The
paths are entered into the list on the righthand side.
− Individual files can be again removed from the list using the
"Remove file" button.
• During data transfer, a file is listed in the list with "Other files", that
contains file management information (drive and absolute paths) for
the individual files.
• If additional load objects (e.g. load objects with tables, that were
generated with the Additional Component Builder) are assigned
to the project, then it should be noted that these are not in the
project directory. These files should then also be included with
"Other files" in the project archiving.
• The system files are only saved (archived) if they are in the project
directory. If the user would like such a archive, then he must call the
dialog box "Options for compiling" in the CFC using the menu
Options | Settings | Compile/load ... and select the "System data
from archive" option. This means that system data is saved in the
project directory and is also archived.
− For Online, the memory card must be inserted in the CPU slot
(exception: T400).
If neither offline nor online is possible because, for example, there is
no prommer, then both of the option fields and the "Save" button are
de-activated (grayed-out).
The dialog box "Retrieve" can be exited by pressing the "Cancel"
button.
The CFC responds by displaying the progress bar for retrieve. This
provides information about the current status of the data transfer.
6. The dialog box to select directories is displayed after the data has
been transferred. You can now select the target directory for the
project and acknowledge using OK.
Note: If you only wish to retrieve "Other files", then by pressing the
"Cancel" button, you can go directly to Other files in the directory
selection dialog box.
10. If Other files were archived in the MC, then the dialog box is
displayed with "Other files".
If you press the "No" button, a dialog box is displayed and the
particular file can be saved under another name or in another
directory.
If you press the "Cancel" button, the dialog box is closed and the files
are rejected. They can be retrieved from the MC at a later time.
This Chapter describes how you can create the chart reference data for
comprehensive documentation of your CFC configuring structure.
In addition to graphic CFC displays, you can display and print the
following information in list form using the "Chart reference data" function:
• Cross references
Listing the accesses to different objects.
• Run sequence
The complete run sequence of a CPU.
You can check the structure of your configured software in this fashion.
Cross-reference You can display and print the following chart reference data lists:
lists
• Cross references, operands
The list shows all of the global operands, used in the project together
with the elements which they access.
List structure This is a list of the global operands, used on the CPU/FM 458-1 DP with
the block connections which are used to connect them.
The list contains, for all run-time groups of the active CPU/FM 458-1 DP,
the access operations to the enable of the task group from any CFC
charts (block I/O).
The list of block types indicates where these are used. This can be useful
when administering the blocks, for example, before deleting a block type
which you think is not used, you can use the cross-reference list to
indicate whether this particular block type is used or not.
2.7.3 Abbreviations
AG Automation units
AP User program
CFC Continuous Function Chart
CPU Central Processing Unit
FB Function block
IBS Start-up
IEC International Electrical Commission
MPI Multi Point Interface
MS Microsoft
OS Operator Station
PC Personal Computer
PG Programmer
PLC Programmable logic controller
SFC Sequential Function Chart
SINEC Siemens Network Architecture
STEP 7 Software development environment for SIMATIC S7/M7 and SIMATIC
TDC/SIMADYN D/FM 458-1 DP
A detailed description is provided in the online help for the SFC for the
target system S7 and
Start > Simatic > Dokumentation > Englisch > SFC Manual for S7.
Messages
Run properties
The following diagram shows how the CFC and SFC are embedded in
the STEP 7 environment:
SIMATIC Manager
STEP 7
STEP 7 components
CFC SFC
3.1.4 SFC-Elements
SFCs.Slave1.QRU = 0
SFCs.Slave1.QRU = 0
The above representation is only valid, if the slaves are running in the
automatic mode. In the manual mode, additional statuses can be
accepted, which can then also be processed.
• A block input of a block which has not been linked into a CFC chart
Syntax: <chart name>.<block name>.<I/O name>
• A constant
Syntax: Depending on the data type
For data types, BOOL, BYTE, INT, DINT, WORD, DWORD, instead of
the absolute numerical values, their symbolic value designations can also
be specified.
Selecting Using an additional dialog box, you can edit or select addresses for the
addresses statements. The dialog box is opened using the “Browse...” button. The
third possibility is to drag the block I/O from the CFC charts and directly
drop them in the box for the address (drag&drop).
The "Browse" dialog box contains two different tab sheets: "CFC Charts"
and "Run-Time Groups". When you browse (e.g. CFC Charts), all of the
available objects of the chart folder are found and displayed.
Using the "Filter" button, you can limit the list of I/Os; in other words, only
display those currently relevant at the present stage of the configuration.
You can then select the required chart and then the block and I/O. Click
the "Apply" button to enter your selection in the active address box (or
drag and drop with the mouse). The dialog box remains open until you
close it explicitly with the "Close" button or you close the "Object
Properties" dialog box.
Note Accesses to CFC blocks can also be modified in the associated CFC
chart. However, this modification is restricted to "Re-connecting" SFC
accesses, i.e. moving the access to another block I/O (with ALT +
drag&drop).
Value identifiers To allow the value identifiers to be displayed in the SFC, the option
"Parameter: Value identifier" must be selected in
Options > Customize > Layout....
If you insert a block I/O with a value identifier in the address field, the
value identifier is also entered in the right (empty) address field. If there is
more than one value identifiers for this I/O, you can open the combobox
with the value identifiers in the right address field by pressing the key
combination ALT + DOWN. In the drop-down list box, you can select the
required value identifier for this address.
Editing addresses When making textual entries, make sure that the names are consistent. A
symbol that does not exist in the symbol list (or a referenced symbol that
is subsequently re-named) cannot be checked in the editor and is
assumed to be correct. Such inconsistencies show up when you compile
or run the consistency check.
Notes • In the addresses, you can reference CFC block I/Os whose block
does not yet really exist in the CFC chart providing that it does exist
as block type in the block folder of the S7 program. These statements
are displayed in the statement line on a yellow background and the
"virtual" block is listed in the CFC catalog of "Unplaced blocks".
• When you enter a virtual reference, you can specify a block name in
the statement, that is not yet known in the CFC chart. The specified
block I/O must, however, actually exist in a block type contained in the
block folder. A list of the block types that have this I/O is displayed in
the "Select Address Type" dialog box. After you select the required
block type, CFC creates a block instance and stores it in the CFC
catalog of "Unplaced blocks". This can be identified in the catalog by
the index “R" (R = reference). The same appearance and marking is
also used if a previously real reference becomes a virtual reference
when the reference block is deleted.
Notes • When you enter statements, they are checked for consistency so that
the correct syntax and semantic formulation is guaranteed. The
program, for example, also checks whether the data types of the
logically combined addresses are compatible.
Go to point of use If you want to see where an operand is used, select the address (or place
the cursor in the field associated with the address), and click on the “Go
to” button to jump to the relevant chart (or double-click on the address). If
the address is an input or output of a block in the CFC chart, the relevant
block is selected.
As when selecting addresses for the steps, you can also enter the value
identifiers of the I/Os for the transitions (refer there).
Note Access to CFC blocks can also be modified in the relevant CFC chart.
This modification is, however, restricted to "Re-connecting" SFC
accesses; in other words, moving the access to another block I/O (with
ALT + drag&drop).
• <run-time group>.EN = ON
When you enter conditions, they are checked for consistency so that
Note
correct syntax and semantic formulation of the conditions is guaranteed.
The program also checks whether the data types of the logically
combined address are compatible.
Go to point of use If you want to see where an address is used, select the address (or
locate the cursor in the field associated with the address), and click on
the “Go To” button to jump to the relevant chart. If the address is an input
or output of a block in the CFC chart, the relevant block is selected.
The following data types when formulating actions and conditions in the
SFC are permissible for SIMATIC TDC/SIMADYN D:
Data type Permissible Permissible in
in the step the transition
BOOL, BO Yes Yes
BYTE, BY Yes Yes
DINT, DI Yes Yes
DWORD, DW Yes Yes
INT, I Yes Yes
REAL, R Yes Yes
SDTIME, TS Yes Yes
WORD, W Yes Yes
The run-time properties of the SFC block determine how the SFC chart is
included in the processing of the entire structure on the target system.
These properties are decisive for the response of the PLC (target system)
in terms of response times, deadtimes or the stability of time-dependent
structures, for example, control loops.
The run-time properties are defined using the “Run-time property dialog
box”.
Note For SIMATIC TDC/SIMADYN D, only the following constant values are
permissible:
• Scan rate = 1
• Phase shift = 0
There are various ways of editing the run sequence of SFC charts. The
run sequence involves the positions of the associated SFC blocks in the
tasks and run-time groups.
This block carries the SFC functionality. Using the name configured at the
SFC input, it searches the associated SFC chart and interprets this as
program. This is the reason that only the position of the block within the
task is decisive for the run position of the SFC chart.
However, we recommend that the SFC chart is directly located in front of
the associated block, so that there is no confusion regarding where the
SFC chart is processed.
In order to avoid confusion regarding the run-time properties of the SFC
chart, you should
• and when deleting, remove the SFC chart as well as the associated
SFC block.
Note If you configure an SFC block in an interrupt task, please observe, that
each time that the task is activated, the SFC block is only run once.
3.3.4.4 Run-time attributes for the run-time group and SFC chart [SD]
Enable attributes of For SIMATIC TDC/SIMADYN D, there is no enable attribute for an SFC
the SFC chart chart. Instead, you can use input EN of the associated SFC function
block (on=1, off=0).
Run-time attributes For SIMATIC TDC/SIMADYN D, the location of the chart is irrelevant for
for the run-time its processing; the run-time properties of the chart are determined by the
group location of the assigned function block (type: SFC), which must be
configured for every SFC. This block can be incorporated in a run-time
group.
You can enable and disable a run-time group using the enable attribute.
The attributes
• Scan rate
• Phase
If SFC blocks of a CPU are to run with different run-time attributes, then
these SFC charts must be incorporated in different run-time groups.
The SFC chart has no run-time properties of its own (which it can
change). This is the reason that the object properties cannot be opened
in the run sequence for the selected SFC chart.
You can generate a run-time group in the window of the run sequence
(call using or Edit > Run sequence... ) using the menu command
Insert run-time group... .
Enter the name, if required a comment and the run attribute for scan rate
and phase shift in the dialog box.
Incorporate the SFC block into the run-time group as usual (this is done
just like incorporating a task).
Note You can run SFC blocks in various cyclic tasks by incorporating them in
run-time groups. (This allows the project to be better structured from a
technological perspective).
You can call-up a dialog box using the menu item Options > Customize
> Compilation. This allows you to make the following settings:
Default hardware Here, you can define for which hardware, block libraries are to be
imported into a chart folder without hardware assignment via HWConfig:
Note For chart folders with hardware assignment, the block libraries, which
automatically match the hardware, are imported.
Generate file for all Select the control box “All I/O”, if you wish to generate a file with all I/O.
I/O
Generate file for Select the control box “String I/O”, if you wish to generate the file, which
string I/O only contains the string I/O.
Note The procedure for “Customize the compiler [SD]” is identical with that of
the CFC.
This is how you • Select the menu command Chart > Compile as Program... or click
compile your
configured charts: on .
A dialog box opens, where you can either select compile "Entire
program" (all of the charts are compiled), or compile "Changes only"
(only those objects which were changed since the last compilation,
are compiled) and the compilation of an individual SFC. The selection
is made using the option switches.
A dialog box with a progress bar is displayed while compiling. You can
stop compilation at any time by pressing the “Cancel” button.
Logs The result of the consistency check and all of the messages which were
output when compiling, can be read and printed in the dialog box "Logs”
(menu command Options > Logs...).
Note You can also run a consistency check without compilation. To do this,
select the menu command Chart > Consistency check....
• Checks, whether the jump target names, specified for jumps, are used
in the same SFC as step names.
Proceed as follows:
• After the check has been completed, the result is displayed in the
"Logs" dialog box. The log can be read or printed-out at a later time, if
you select, in the SFC, the menu command Options > Logs... (or in
SIMATIC Manager Options > Charts > Logs...).
Note The procedure for the “Consistency check [SD]” is identical with that for
the CFC.
The user program, compiled from the CPU charts, is downloaded into the
particular CPU, which is assigned the active chart window. The user
program is transferred into the CPU program memory. However, it is still
not active.
The new CPU program only becomes active if the CPU is restarted (refer
to View and change operating statuses).
• If only an individual SFC was revised and compiled, then you can
download this online. In this case, select the “online” and “only
individual SFC” options. In the activated selection box, you can select
the SFC which still have to be downloaded.
• For "offline", you must remove the memory card from the CPU, and
insert it in the appropriate PCMCIA-slot of your PC.
• Not a control block in the S7 sense, but instead an SFC function block
(block type: SFC), which must be configured for each SFC chart.
Basically no phase shift and no scan rate for run-time groups, because
only the following constant values are permissible:
• Scan rate = 1
• Phase shift = 0
The operating system evaluates specific events, and executes the SFC
chart according to these events. Such events are, e.g.:
• Warm restart
The SFC chart is automatically called for initialization.
• Interrupt tasks
The SFC chart is executed in the interrupt task, in which it was
configured using the run-sequence editor.
The following operating modes, can be selected using the SFC block:
• Manual, and
• Automatic
Using the chart execution options, you can define how the chart behaves.
What are chart
The individual execution options can be combined with one another. The
execution options?
following chart execution options are available and can be changed in the
"Chart > Properties: Operating Parameters PLC" dialog box:
Command output • For "Command output: On”, the actions of the active steps are
processed.
• For "Command output: Off”, the actions of the active steps are not
processed.
Cyclic operation • With "Cyclic operation: On”, the initial step of the SFC chart is
activated again after the final step is de-activated.
• With "Cyclic operation: Off”, the sequential control system is set to the
"IDLE" state after the final step has been de-activated; i.e. no steps
are active and more actions and no more transitions are executed.
Time monitoring • For "Time monitoring: On”, after activating a step, the active time of
the step is compared with the monitoring time (object properties of the
step, tab sheet "General", option "Maximum run time") and a step
error is signaled if this time is exceeded.
• For "Time monitoring: Off", the active time and monitoring time are not
compared.
Autostart An SFC chart with the “Autostart: On” property starts immediately after a
CPU warm restart without any further operator input. After downloading
changes (the CPU does not go into the STOP condition), there is no
automatic start and the SFC chart must be started again by the operator
or using the control block.
The setting for "Autostart" can only be changed in the dialog box Chart >
Properties > Tab: Operating Parameters.
Use default With the chart execution option "Use default operating parameters when
operating SFC starts: On", all of the default settings / options, set in the run-time
parameters when properties become effective again when the SFC chart is started. For
the SFC starts example, the options which were changed in the test mode.
You can set the operating parameters when testing and commissioning
(with the exception of “Auto start”); this parameter can only be set in the
Chart properties dialog box under the "Operating Parameters PLC" tab).
− command output On
• Further options
Behavior when When starting the SFC chart, the behavior depends on the chart
starting [SD] properties.
Auto operation
When the chart starts, the SFC block parameters are used.
Manual operation
When the chart starts, the defaults of the SFC block or the actual SFC-
chart parameters are used.
What do the In the test mode, you can set or modify the operating states using the
commands do? following commands:
This command changes the sequential control system from the “IDLE”,
Start / Resume "ABORTED" or "TERM" into the “RUN” state. This means that the chart
is immediately processed. The initial step automatically becomes active,
Meaning of "Start" if its are executed and the results of the successor transitions of the initial
step are evaluated.
Exception: If, in the test mode, a step was selected as target step, then
when starting, the initial step isn’t activated, but instead, the target step.
Meaning of This command changes the sequential control system from the “HOLD”
"Resume" state to the ”RUN” state. This means that the SFC chart is continued,
transition results are evaluated, the actions are executed and the chart
progresses according to the selected step control mode.
Exception: If a step was selected as the target step in the test mode, the
held SFC chart resumes the target step after correct processing of the
interrupted steps when the "Resume" command is set. This means that
the cyclic processing of these steps is executed a maximum of once
more and the termination overlaps the initialization of the target step in
the same cycle.
This command changes the sequential control system from the “HOLD”
Abort state to the “ABORTED” state. The active steps are processed
completely and then the final step. Existing target step selections are
ignored and deleted.
This allows the sequential control system to be brought into a defined
state.
This command changes the sequential control system from the “RUN”
Hold state to the ”HOLD” state. This means that the SFC chart is stopped, the
transition results are not evaluated, the actions are not executed, and a
command must be issued before the chart can continue.
This command changes the sequential control system from the “HOLD”
Restart state to the ”RUN” state. The active steps are de-activated, the initial step
is activated and its actions executed.
The logs are not part of the complete documentation of the configuration
structure, but can however supply important information during
configuring (engineering) and commissioning, if, for example, errors have
occurred.
The tab sheets described here are also relevant for the SFC.
Generating logs Using the Options > Generating logs... menu command, you can open
a dialog with several tab sheets. The tab sheets are only available, if the
appropriate functions were actually executed.
You can print-out the messages by pressing the “Print” button. You can
select the layout using the “Page set-up” button.
Tab sheet: Compile This lists the messages which were output when compiling or when
making a consistency check (including the compiler messages); e.g. if a
jump to target was not available: "Error in transition ‘3’: The specified
jump target is not available in the SFC."
$
$ signals .............................................................................................................................1-31, 2-10
Block I/O................................................................................................................................... 2-10
Bus ........................................................................................................................................... 2-10
Interconnectability .................................................................................................................... 2-11
Type ......................................................................................................................................... 2-10
A
Activate
Test mode ................................................................................................................................ 2-31
Activating
Test mode ................................................................................................................................ 2-39
Allocating I/O addresses ............................................................................................................. 1-28
Archive file ................................................................................................................................... 1-47
Archiving program
Properties ................................................................................................................................. 1-47
Archiving programs ..................................................................................................................... 1-47
Archiving projects ........................................................................................................................ 1-48
B
Block catalog
Open......................................................................................................................................... 2-27
Block connections
Configuring operator control and monitoring attributes............................................................ 2-16
Monitor ..................................................................................................................................... 2-41
Block I/O
$ signals ................................................................................................................................... 2-10
Hardware addresses ................................................................................................................ 2-12
Module names.......................................................................................................................... 2-12
Monitoring................................................................................................................................. 2-34
Name references...................................................................................................................... 2-13
OP connection.......................................................................................................................... 2-12
Parameterizing ................................................................................................................2-34, 2-43
Process interrupts .................................................................................................................... 2-13
Virtual connection names......................................................................................................... 2-11
Virtual connections ................................................................................................................... 2-11
Block I/Os
Properties ................................................................................................................................... 2-8
Block inputs
Inverting...................................................................................................................................... 2-8
Block interconnections .................................................................................................................. 2-9
Block library
Check ......................................................................................................................................... 2-5
Checks ....................................................................................................................................... 2-6
C
CFC
Embedded .................................................................................................................................. 2-2
Start .......................................................................................................................................... 2-26
CFC chart
Open......................................................................................................................................... 2-26
Change
Input value ................................................................................................................................ 2-31
Run sequence .......................................................................................................................... 2-28
Test mode................................................................................................................................. 2-31
Change object properties ............................................................................................................ 1-16
Changes
in the test mode ........................................................................................................................ 2-38
Changing
between the test- and setting mode ......................................................................................... 2-38
Refresh rate.............................................................................................................................. 2-37
Chart
Print .......................................................................................................................................... 2-33
Check
Block library ................................................................................................................................ 2-5
Establishing a connection......................................................................................................... 2-48
Check consistency....................................................................................................................... 1-29
Checks
Block library ................................................................................................................................ 2-6
Communication connections ....................................................................................................... 1-31
Communication interfaces ........................................................................................................... 2-46
Communications bus ................................................................................................................... 1-13
Communications interface
Selecting................................................................................................................................... 2-47
Compilation
Muli-processing ........................................................................................................................ 2-19
Settings..................................................................................................................................... 2-18
Compiling..................................................................................................................................... 2-30
D
Data flow
Description ................................................................................................................................. 2-4
Project planning data.................................................................................................................. 2-4
Data type ..................................................................................................................................... 2-65
GLOBAL ..................................................................................................................................... 2-9
STRING...................................................................................................................................... 2-9
De-activating
Test mode ................................................................................................................................ 2-39
De-archiving projects................................................................................................................... 1-49
Delete
Blocks....................................................................................................................................... 2-32
Deleting
Block library................................................................................................................................ 2-6
E
Edit
Blocks ....................................................................................................................................... 2-28
Editing
Block inputs ................................................................................................................................ 2-8
Editing block inputs........................................................................................................................ 2-8
Editing modes.............................................................................................................................. 2-34
Enable attribute ........................................................................................................................... 2-14
Entry dialog boxes
Global operands ....................................................................................................................... 2-10
Error classes................................................................................................................................ 1-42
Error report
Block library .........................................................................................................................2-5, 2-6
Establishing a connection
Check ....................................................................................................................................... 2-48
F
Field
Length....................................................................................................................................... 2-64
Function groups........................................................................................................................... 2-34
Functions when preparing for testing .......................................................................................... 2-34
G
Generate software ....................................................................................................................... 1-21
Generating software
Procedure ................................................................................................................................. 1-22
Global operand ............................................................................................................................ 1-34
Interconnection ........................................................................................................................... 2-9
Types.......................................................................................................................................... 2-9
H
Hardware
Inserting.................................................................................................................................... 2-24
I
Initialization interface................................................................................................................... 2-46
Input value
Change..................................................................................................................................... 2-31
Inputs
Parameterizing ......................................................................................................................... 2-28
Insert
Blocks..............................................................................................................................2-26, 2-32
Inserting
Block library................................................................................................................................ 2-6
Blocks....................................................................................................................................... 2-45
Hardware.................................................................................................................................. 2-24
Software ................................................................................................................................... 2-25
Installing from a CD-ROM ............................................................................................................. 1-3
Interconnect
Blocks....................................................................................................................................... 2-28
Interconnectability
$ signals ................................................................................................................................... 2-11
of data types............................................................................................................................... 2-9
Interconnection
Deleting .................................................................................................................................... 2-32
Re-establishing......................................................................................................................... 2-32
Interconnections .......................................................................................................................... 2-44
Inverting
Block inputs ................................................................................................................................ 2-8
L
Length
Field.......................................................................................................................................... 2-64
Name........................................................................................................................................ 2-64
Link-in hardware signals in the CFC ........................................................................................... 1-29
Loading
Offline ....................................................................................................................................... 2-20
Online ....................................................................................................................................... 2-20
Prerequisites ............................................................................................................................ 2-20
User program ..................................................................................................................2-19, 2-30
Local service interface................................................................................................................. 2-46
M
Map listing ................................................................................................................................... 2-18
Module information in the CFC ................................................................................................... 1-45
Module information in the SIMATIC Manager ............................................................................. 1-44
Module names............................................................................................................................. 2-12
Block I/O................................................................................................................................... 2-12
Module status .............................................................................................................................. 2-40
Determine prerequisites ........................................................................................................... 2-40
Monitor
N
Name
Length....................................................................................................................................... 2-64
Name references ......................................................................................................................... 2-13
Block I/O ................................................................................................................................... 2-13
O
Object hierarchy .......................................................................................................................... 1-12
Offline loading.....................................................................................................................1-37, 2-20
Loading interface...................................................................................................................... 1-37
Offline-Laden ............................................................................................................................... 1-37
Online help .................................................................................................................................... 1-9
Online loading.....................................................................................................................1-35, 2-20
Interfaces.................................................................................................................................. 1-35
OP connection ............................................................................................................................. 2-12
Block I/O ................................................................................................................................... 2-12
OP connection data.................................................................................................................. 2-12
Opening objects........................................................................................................................... 1-15
Operating modes ......................................................................................................................... 2-35
INIT........................................................................................................................................... 2-35
Power off .................................................................................................................................. 2-35
Prerequisites............................................................................................................................. 2-36
RUN.......................................................................................................................................... 2-35
STOP due to initialization error ................................................................................................ 2-35
STOP due to system errors......................................................................................................2-36
User stop .................................................................................................................................. 2-35
Operating status .......................................................................................................................... 1-46
Operator control and monitoring.................................................................................................. 2-15
P
Parameterizing ............................................................................................................................ 1-24
Block I/O ..........................................................................................................................2-34, 2-43
Inputs........................................................................................................................................ 2-28
Parameterizing modules.............................................................................................................. 1-28
1-5
Prerequisites
Loading..................................................................................................................................... 2-20
Operating modes...................................................................................................................... 2-36
Print
Chart......................................................................................................................................... 2-33
Print preview................................................................................................................................ 1-50
Printing ........................................................................................................................................ 1-50
Process interrupts........................................................................................................................ 2-13
Block I/O ................................................................................................................................... 2-13
PROFIBUS master ...................................................................................................................... 1-30
Programs
assigned ................................................................................................................................... 1-21
non-assigned............................................................................................................................ 1-21
Project
Set-up....................................................................................................................................... 2-24
Project planning data
Data flow .................................................................................................................................... 2-4
Project structure
Set-up....................................................................................................................................... 2-24
Projects........................................................................................................................................ 1-11
R
Re-establishing
Interconnection......................................................................................................................... 2-32
Reference data...................................................................................................................2-32, 2-61
Refresh rate
Changing .................................................................................................................................. 2-37
Requirements
Software ..................................................................................................................................... 2-2
Run sequence ............................................................................................................................. 2-14
Change..................................................................................................................................... 2-28
Run-time attributes ...................................................................................................................... 2-14
Run-time groups.......................................................................................................................... 2-13
Run-time properties..................................................................................................................... 2-13
S
Save project................................................................................................................................. 1-22
Select modules............................................................................................................................ 1-28
Select racks ................................................................................................................................. 1-27
Selecting
Communications interface........................................................................................................ 2-47
Service interface
Configured................................................................................................................................ 2-47
Local ......................................................................................................................................... 2-46
Setting object properties.............................................................................................................. 1-16
Setting-up the printer................................................................................................................... 1-50
Set-up
Project ...................................................................................................................................... 2-24
Project structure ....................................................................................................................... 2-24
SFC
Absolute addressing................................................................................................................... 3-9
Compilation procedure ............................................................................................................. 3-13
Configuring SFC calls................................................................................................................. 3-4
Consistency check ................................................................................................................... 3-13
Copying charts ........................................................................................................................... 3-6
Creating a jump .......................................................................................................................... 3-6
Customizing the compiler......................................................................................................... 3-12
Downloading programs ............................................................................................................ 3-14
Element of chart ......................................................................................................................... 3-3
Generate reference data ............................................................................................................ 3-4
Global addresses (operands)..................................................................................................... 3-9
How SFC works with messages............................................................................................... 3-12
Installing an SFC chart in a task / deleting from a task............................................................ 3-10
Introduction................................................................................................................................. 3-2
Overview of sequential control systems on the PLC................................................................ 3-16
Overview of the run-time properties ......................................................................................... 3-10
Permissible data types ............................................................................................................... 3-9
Restrictions and expansions ...................................................................................................... 3-2
Run-time attributes for the run-time group and SFC chart....................................................... 3-11
Setting-up the project structure .................................................................................................. 3-3
Specifying the run sequence ....................................................................................................3-10
STEP 7 environment .................................................................................................................. 3-3
Step, Editing addresses ............................................................................................................. 3-6
Symbolic addressing .................................................................................................................. 3-9
Transition, Editing addresses ..................................................................................................... 3-8
SFC:................................................................................................................. 3-16, 3-17, 3-18, 3-20
SIMATIC Manager......................................................................................................................... 1-4
Software
Inserting.................................................................................................................................... 2-25
Requirements ............................................................................................................................. 2-2
SS52 configuration as slave........................................................................................................ 1-30
Start
CFC .......................................................................................................................................... 2-26
Dynamic value display.............................................................................................................. 2-43
Starting
CPU .......................................................................................................................................... 2-30
SIMATIC Manager.................................................................................................................... 2-23
Starting to print ............................................................................................................................ 1-50
Station ......................................................................................................................................... 1-13
STEP 7
Components ............................................................................................................................... 2-2
T
Task ............................................................................................................................................. 2-13
Test mode.................................................................................................................................... 2-38
Activate..................................................................................................................................... 2-31
Activating .................................................................................................................................. 2-39
Change ..................................................................................................................................... 2-31
De-activating............................................................................................................................. 2-39
Monitor...................................................................................................................................... 2-31
Testing programs......................................................................................................................... 1-39
Top chart ..................................................................................................................................... 2-50
Type
$ signals ................................................................................................................................... 2-10
U
User library .................................................................................................................................. 2-49
User program
Compiling.................................................................................................................................. 2-17
Loading............................................................................................................................2-19, 2-30
V
Virtual connection names ............................................................................................................ 2-11
Block I/O ................................................................................................................................... 2-11
Virtual connections .............................................................................................................1-33, 2-11
W
WinCC ......................................................................................................................................... 2-15