Sei sulla pagina 1di 19

Contents

Page

From Process to Project


......................................................................................................................
STEP 7 Tools
...............................................................................................................................
Starting the SIMATIC Manager
...........................................................................................................
SIMATIC Manager Menus and Toolbars
.............................................................................................
The Toolbar in the SIMATIC Manager
...............................................................................................
STEP 7 Project Structure
..............................................................................................
Offline/Online View in the SIMATIC Manager
g
.....................................................................................
Storage Location for Projects
..............................................................................................................
Creating a Project
...........................................................................................................................
Inserting an S7 Program
.................................................................................................................
Inserting an S7 Block
...................................................................................................................
STEP 7- Help System
.....................................................................................................................
Context Sensitive Help in STEP 7
........................................................................................................
Standard Libraries
...............................................................................................................................
Exercise: Creating a Project
................................................................................................................
E
Exercise:
i
IInserting
ti an S7 P
Program
......................................................................................................
Exercise: Inserting an S7 Block
...........................................................................................................
Exercise: CPU Memory Reset
.............................................................................................................

Training Center
for Automation and Drives

Page 1

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

ST-7PRO1
The SIMATIC Manager

Process

When you take a closer look at a process you want to automate, you will find that it
i made
is
d up off a multitude
ltit d off smaller
ll sections
ti
and
d sub-processes,
b
which
hi h are allll
interlinked and dependent on one another.
The first task is therefore to break down the automation process as a whole into
separate sub-tasks.

Hardware and
Software

Each sub-task defines certain hardware and software requirements which must
be fulfilled by the automation system:
Hardware:
- Number
N b and
d ttype off iinputs
t and
d outputs
t t
- Number and type of modules
- Number of racks
- Capacity and type of CPU
- HMI systems
- Networking systems
Software:
- Program structure
- Data management
g
for the automation p
process
- Configuration data
- Communication data
- Program and project documentation.

Project

In SIMATIC S7 all the hardware and software requirements of an automation


process are managed within a project.
A project includes the necessary hardware (+ configuration), network
(+ configuration), all the programs and the entire data management for an
automation solution.

Training Center
for Automation and Drives

Page 2

ST-7PRO1
The SIMATIC Manager

SIMATIC Manager

The SIMATIC Manager manages the STEP 7 projects. It is the main program and
also
l appears on th
the WINDOWS 95 desktop.
d kt

Notes

"STEP 7 - Readme" provides detailed information about the version, installation


procedure, etc.

LAD, STL, FBD

Tool for writing STEP 7 user programs in the Ladder Diagram", Statement List" or
"Function Block Diagram programming languages.

Memory
y Card
Parameter
Assignment.

You can save yyour user programs


p g
on EPROM cards by
y either using
g the
programming device or an external prommer.
Different drivers are required, depending on the application.

Configuring
Networks

Network configuration is discussed in the chapter on Communication.

Setting the PG-PC


Interface

This tool is used for setting the local node address, the transmission speed
and the highest node address in the MPI network.

PID Control
Parameter
Assignment

The basic STEP 7 software package also includes blocks for solving PID
(closed-loop) control problems. You choose "PID Control Parameter
Assignment" to start the program for assigning parameters to the closed-loop
control blocks.

Converting S5 Files

STEP5 programs can be converted into the corresponding STEP 7 programs with
the help of the S5/S7 converter.

Configure SIMATIC
Workspace

This option provides facilities for configuring multi-user


multi user systems.

Converting TI Files

SIMATIC TI programs can be converted into the corresponding STEP 7 program


with the help of the TI/S7 converter.

Training Center
for Automation and Drives

Page 3

ST-7PRO1
The SIMATIC Manager

Introduction

The SIMATIC Manager is a graphic user-interface for online/offline editing of S7


objects
bj t ((projects,
j t user program fil
files, bl
blocks,
k h
hardware
d
stations
t ti
and
d ttools).
l )
With the SIMATIC Manager you can:
manage projects and libraries,
activate STEP 7 tools,
access the PLC online,
edit memory cards.

Starting the
SIMATIC Manager

There is an icon "SIMATIC Manager" on the Windows 95 desktop and a


"SIMATIC Manager" program item under SIMATIC in the Start menu.
You activate the program just like all other Windows 95 applications by doubledouble
clicking on the icon
or via the Start menu

START -> SIMATIC ->


User-interface

After installation, the main tool is available as an icon on the Windows 95 desktop.
The SIMATIC Manager manages the S7 objects such as projects and user
programs.
programs
By opening an object, the associated tool for editing is started. A double-click on a
program block starts the Program Editor and a block can be edited (object-oriented
start)

Note

You can always obtain online help for the current window by pressing the F1
function key.

Training Center
for Automation and Drives

Page 4

ST-7PRO1
The SIMATIC Manager

Titlebar

The titlebar contains the window title and the buttons for controlling the window.

Menubar

Contains all the menus available for the current window.

Toolbar

Contains the most frequently used tasks as symbols. These symbols are selfexplanatory.

Statusbar

Displays the current status and further information.

T kb
Taskbar

The ttaskbar
Th
kb contains
t i allll open applications
li ti
and
d windows
i d
as b
buttons.
tt
The taskbar can be positioned on either side of the screen by using the right mouse
button.

Training Center
for Automation and Drives

Page 5

ST-7PRO1
The SIMATIC Manager

Training Center
for Automation and Drives

Page 6

ST-7PRO1
The SIMATIC Manager

Project Structure

Data is stored in a project in the form of objects. The objects in a project are
arranged in a tree structure (project hierarchy). The tree structure displayed in the
project window is similar to that in the Windows 95 Explorer. Only the icons for the
objects are different.

Project Hierarchy

1st. Level:

The first level contains the project icon. Each project represents a
database where all the data relevant to the project is stored.

2nd. Level:

Stations (e.g. S7-300 Station) are where information about


g
and p
parameter assignment
g
data
the hardware configuration
of modules is stored.
Stations are the starting point for configuring the hardware.

S7 Program folders are the starting point for writing


programs. All the software for a parameter-assignable
module from the S7 range is stored in an S7 Program
folder. This contains further folders for the blocks and
source files of the program.
Subnets (MPI,Profibus, Industrial Ethernet) are part of an
overall network.
3rd. and subsequent levels: Depends on the object type of the next-higher level.

Training Center
for Automation and Drives

Page 7

ST-7PRO1
The SIMATIC Manager

Offline

The offline view displays the project structure stored on the hard disk of the
programming
i d
device.
i
It di
displays
l
thi
this iin th
the project
j t window
i d
off th
the SIMATIC M
Manager.
The "S7 Program folder contains the objects Source Files" and "Blocks".
The "Blocks" folder contains the system data created with HWConfig and the blocks
created with the LAD/STL/FBD Editor.

Online

The online view displays the project structure stored in the CPU. It displays this in
the project window of the SIMATIC Manager.
The "S7 Program" folder only contains the object "Blocks".
The "Blocks" folder contains:
system data blocks (SDB)
user blocks (OB, FC, FB)
system-own blocks (SFC, SFB).

Switch-over

Switching between offline and online view takes place:


via the menu items View -> Offline or View -> Online or
with
ith th
the corresponding
di symbol
b l iin th
the ttoolbar:
lb
Online
Offline.

Training Center
for Automation and Drives

Page 8

ST-7PRO1
The SIMATIC Manager

Menu Options

SIMATIC Manager -> Options -> Customize

Language" Tab

Language: You can select the language you want to use for the SIMATIC
Manager, menus, dialog boxes, help, etc.
Only the languages that have been installed appear in the list.
Mnemonics: You can select the mnemonics you want to use for
programming the S7 blocks.

"General" Tab

Basic settings for editing projects and libraries:


Storage location for projects is where you specify the directory in which you
want to store your user projects.
Storage location for libraries is where you specifiy the directory in which you
want to store your user libraries.
Further options for inserting objects, opening projects and for window
arrangement will be dealt with later.
Deactivated system messages
By pressing the button Activate you can reactivate all system messages
that were switched-off in a window when the option
p
Always
y display
p y this
message. was chosen.

"View" Tab

This is where you specify what is to appear in the online display.

"Columns" Tab

This is where you specify which columns are to be displayed when the Detail view is
switched-on (see Help).

"Archive" Tab

The archiving of projects will be discussed in the Chapter Documenting, Saving,


Archiving.
g

Training Center
for Automation and Drives

Page 9

ST-7PRO1
The SIMATIC Manager

Creating a Project

Select the menu options File -> New or the symbol


in the toolbar to open the
"New" dialog box for creating a new project or a new library.
Enter the project name in the "Name" box and confirm by clicking the "OK button.

Notes

1. The Storage location (path) displays the path that was preset in the
SIMATIC Manager under Options -> Customize.
2. As of STEP 7 V3.2, there is the 'New Project Wizard to help you create a
p j
new project.

Training Center
for Automation and Drives

Page 10

ST-7PRO1
The SIMATIC Manager

Inserting a Program

Select the menu options Insert -> Program -> S7 Program to insert a new program
i t the
into
th currentt project.
j t
When you insert an object, the system automatically gives it a relevant name, e.g.
"S7 Program(1)".
You can then change this name if you like.

Note

You use the method described above to create a hardware-independent program.


Programs assigned to particular hardware are dealt with in the Chapter "Hardware
Configuration".

Training Center
for Automation and Drives

Page 11

ST-7PRO1
The SIMATIC Manager

Inserting a Block

Select the menu options Insert -> S7 Block to display a list of block types:
Organization blocks (OB) are called by the operating system.
They form the interface between operating system and user program.

Functions (FC) and function blocks (FB) contain the actual user program.
They enable a complex program to be divided into small, easy-to-follow
units.

Data blocks contain user data.

After you have chosen the type of block you want, the "Properties" dialog box opens
so that you can enter the block number and the programming language you want to
use (LAD, STL or FBD).
There are other settings you can make, depending on the type of block, but these
will be discussed later.
When you have made your settings and confirmed them by clicking the "OK" button,
the new block is inserted in the current program.

Training Center
for Automation and Drives

Page 12

ST-7PRO1
The SIMATIC Manager

Obtaining Help

There are various ways of obtaining help:


1. The general help is activated via the menu options Help - > Contents.
2. The context-sensitive help can be started with the F1 function key or via the
symbol in the toolbar.

Tabs

Hot words

Training Center
for Automation and Drives

Contents"
"Index"

Find"

- Displays a list of help topics under general headings.


- Allows you to access the help information by displaying a list
of terms available in alphabetical
p
order.
- Enables you to look for certain words or expressions in the
help topics.

Certain words are hi-lighted in green and are underlined with a broken line in the
help texts (so-called "Hot words"). A mouse click on these "Hot words" leads to a
further help text with detailed information.

Page 13

ST-7PRO1
The SIMATIC Manager

Context-Sensitive

The context-sensitive help gives application-specific information about hi-lighted


objects,
bj t bl
blocks,
k menu commands,
d di
dialogs
l
etc.
t
You can jump from the context-sensitive help to the general help via the button
"Help on STEP 7".

Note

Training Center
for Automation and Drives

You can find additional information on STEP 7 in the electronic manuals. These can
be opened when you choose the menu options Start -> Simatic -> S7 Manuals .

Page 14

ST-7PRO1
The SIMATIC Manager

Introduction

Standard
Library
Communication
Blocks

Libraries are used to store blocks without project assignment. These blocks can be
created
t d iin th
the lib
library, can b
be copied
i d iinto
t and
d outt off itit, b
butt cannott b
be ttested.
t d Th
The
library structure is set up as hierarchical just as the project structure.
STEP 7 contains a Standard Library, that was stored in the STEP 7 Software
folder e.g. C:\Siemens\Step7\S7libs\stlib30 after STEP 7 was installed. You can
access these standard blocks from the SIMATIC-Manager with Open->Libraries".
FCs for communication between the CPU and the distributed I/O via
communication processors with S7-300.

Organization Blocks Organization blocks (OBs).


S5-S7 Converting
Blocks

Blocks for converting STEP 5 programs.

TI-S7 Converting
Blocks

Generally usable standard functions such as analog value scaling

IEC Function
F
ti
Blocks

Bl k for
Blocks
f IEC functions
f
ti
(IEC:
(IEC IInternational
t
ti
l El
Electrotechnical
t t h i lC
Commission),
i i )
such as for processing time and date, for comparison operations, for string
processing and for selecting maximum and minimum.

PID Control Blocks

Function blocks (FBs) for PID closed-loop controls.

System Function
Blocks

System functions (SFCs) and System function blocks (SFBs).

Note

Additional libraries are added when option software are installed.

Training Center
for Automation and Drives

Page 15

ST-7PRO1
The SIMATIC Manager

Remember!

A project contains all the programs and data for the entire automation task. It can
contain
t i one or more programs which
hi h can b
be used
d iin one or more CPU
CPUs.

Goal

To delete an existing project and create a new one.

What to Do

1.
2.
3.
4.

Training Center
for Automation and Drives

Open the SIMATIC-Manager.


Select the menu options File -> Delete -> Projects.
Select My Project from the list of projects and confirm with OK.
After the p
project
j
has been deleted, select the menu options
p
File -> New -> New Project.
5. In the box provided enter the project name "My Project".

Page 16

ST-7PRO1
The SIMATIC Manager

Remember!

An S7 program is a combination of program blocks, data blocks, comments and


symbols
b l which
hi h are allll connected
t d with
ith an application.
li ti
When
Wh you create
t a program
you create a structure that includes all these program sections.

What to Do

1. In the project "My Project, select the menu options Insert -> Program -> S7
Program.
or (instead of point 1.):
1a. Click the right mouse button. In the menu that appears, select the options
Insert New Object -> S7 Program to insert a new program.
2 A new S7 program with the name "S7
2.
S7 Program 1
1 is created.
created
3. Change the name of the program to My Program.
4. In the My Program folder you will find the S7 program itself with the objects:
Blocks (user program), Source Files (source programs) and Symbols
(symbol table).

Results

A new S7 program is created within the project "My Project.


In the SIMATIC Manager you can see the subdirectory My Program in the
directoryy "My
y Project".
j
An empty OB1 block is automatically created in the user program:

Training Center
for Automation and Drives

Page 17

ST-7PRO1
The SIMATIC Manager

Remember!

In simple terms, a block in a CPU is a program section that has a particular function
and
d a particular
ti l structure.
t t
Block OB1 is called cyclically by the operating system and provides access to the
S7 program. It can contain both program statements and calls to other blocks.

Goal

Inserting an empty block (FC1).

What to Do

1. Select the user program (Blocks) in which you want to create the new block.
2. Select the menu options Insert -> S7 Block ->Function.
or (instead of point 2.)
2)
2a. Click the right mouse button. In the menu that appears, select the options
Insert New Object -> Function to insert a new function.
3. Enter the block number in the Name" box (in this case: FC1), and enter
the programming language you want to use (LAD/STL/FBD) in the
Language box.
4. Enter any additional information, such as Author etc., if required.
5. Check all entries and confirm with OK.

Result

You have created a new, empty block called FC1.

Training Center
for Automation and Drives

Page 18

ST-7PRO1
The SIMATIC Manager

General

Before you download the user program to the S7 PLC, you should reset the CPU
memory to
t make
k sure there
th
are no old
ld bl
blocks
k lleft
ft iin th
the CPU
CPU.
The following takes place during a memory reset:
All user data are erased
(with the exception of the MPI parameter assignment).
Hardware test and initialization
If an EPROM memory card is inserted, the CPU copies the contents of the
EPROM back into the internal RAM after memory reset.
If no memoryy card is inserted, the set MPI address is retained. If, however, a
memory card is inserted, the MPI address entered on the card is loaded.
The contents of the diagnostic buffer (can be viewed on the PG) are
retained.

Note

The CPU must be in the STOP mode for a memory reset:


Mode selector in STOP or
Mode selector in RUN-P and mode changed to STOP by selecting the
menu options
p
PLC -> Operating
p
g Mode -> Stop.
p

Exercise

Perform a memory reset of the CPU (with the keyswitch or from the PG).
You can check if the memory reset was performed successfully by checking the
contents of the block folder in the Online view. Only system blocks (SDB, SFC and
SFB) should now exist.

Training Center
for Automation and Drives

Page 19

ST-7PRO1
The SIMATIC Manager

Potrebbero piacerti anche