STEP 7 V5.2 Getting Started
STEP 7 V5.2 Getting Started
STEP 7 V5.2 Getting Started
Contents
SIMATIC
Introduction to STEP 7
Programming a Function
Programming a
Shared Data Block
Getting Started
10
11
Appendix
Appendix A
Index
This manual is part of the documentation
package with the order number:
6ES7810-4CA06-8BA0
Edition 12/2002
A5E00171228-01
Safety Guidelines
This manual contains notices intended to ensure personal safety, as well as to protect the products and
connected equipment against damage. These notices are highlighted by the symbols shown below and
graded according to severity by the following texts:
Danger
Warning
Caution
indicates that death, severe personal injury or substantial property damage will result if proper
precautions are not taken.
indicates that death, severe personal injury or substantial property damage can result if proper
precautions are not taken.
indicates that minor personal injury can result if proper precautions are not taken.
Caution
indicates that property damage can result if proper precautions are not taken.
Notice
draws your attention to particularly important information on the product, handling the product, or to a
particular part of the documentation.
Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are
defined as persons who are authorized to commission, to ground and to tag circuits, equipment, and
systems in accordance with established safety practices and standards.
Correct Usage
Note the following:
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.
This product can only function correctly and safely if it is transported, stored, set up, and installed
correctly, and operated and maintained as recommended.
Trademarks
SIMATIC, SIMATIC HMI and SIMATIC NET are registered trademarks of SIEMENS AG.
Third parties using for their own purposes any other names in this document which refer to trademarks might
infringe upon the rights of the trademark owners.
Copyright Siemens AG 2002 All rights reserved
Disclaimer of Liability
Siemens AG
Bereich Automation and Drives
Geschaeftsgebiet Industrial Automation Systems
Postfach 4848, D- 90327 Nuernberg
Siemens AG 2002
Technical data subject to change.
Siemens Aktiengesellschaft
A5E00171228-01
After you have installed STEP 7, you will find the electronic manuals in the Start
menu under Simatic > Documentation or alternatively, you can order them from
any Siemens sales center. All of the information in the manuals can be called up
in STEP 7 from the online help.
iii
iv
Contents
1
Introduction to STEP 7
1.1
1-1
1.2
1-3
1.3
1-4
1.4
Installing STEP 7
1-5
2.1
2-1
2.2
2-4
3.1
Absolute Addresses
3-1
3.2
Symbolic Programming
3-2
4.1
4-1
4.2
4-4
4.3
4-8
4.4
4-11
5.1
5-1
5.2
5-3
5.3
5-7
5.4
5-10
5.5
5-14
5.6
5-16
5.7
5-19
5.8
5-21
Contents
6.1
Configuring Hardware
7.1
7-1
7.2
7-3
7.3
7-6
7.4
7-8
7.5
7-12
6-1
Programming a Function
8.1
8-1
8.2
Programming Functions
8-3
8.3
8-6
9.1
10
9-1
10-1
10-3
10-7
10-9
11
11-1
Appendix A
A-1
Index
vi
Index-1
Introduction to STEP 7
1.1
The first binary logic operation, which you will program later on, is the AND
function. The AND function can be best illustrated in a circuit diagram using two
keys.
Key 1
Key 2
The second binary logic operation is the OR function. The OR function can also be
represented in a circuit diagram.
Key 3
Key 4
1-1
Introduction to STEP 7
The third binary logic operation is the memory element. The SR function reacts
within a circuit diagram to certain voltage states and passes these on accordingly.
Memory Element
Key S
R
Key R
1-2
Introduction to STEP 7
1.2
Programming
device cable
Programming device
Transferring a program
STEP 7 software
Machine to be
controlled
CPU
Power supply module
Output module
Input module
1-3
Introduction to STEP 7
1.3
Option 1
Option 2
Creating a program
(Chapters 3 to 5)
Creating a program
(Chapters 3 to 5)
If you are creating comprehensive programs with many inputs and outputs, we
recommend you configure the hardware first. The advantage of this is that STEP 7
displays the possible addresses in the Hardware Configuration Editor.
If you choose the second option, you have to determine each address yourself, depending
on your selected components and you cannot call these addresses via STEP 7.
In the hardware configuration, not only can you define addresses, but you can also change
the parameters and properties of modules. If you want to operate several CPUs, for
example, you have to match up the MPI addresses of the CPUs.
Since we are only using a small number of inputs and
outputs in the Getting Started manual, we will skip the
hardware configuration for now and start with the
programming.
1-4
Introduction to STEP 7
1.4
Installing STEP 7
Regardless of whether you want to start with programming or configuring
hardware, you first have to install STEP 7. If you are using a SIMATIC
programming device, STEP 7 is already installed.
When installing the STEP 7 software
on a programming device or PC
without a previously installed version of
STEP 7, note the software and
hardware requirements. You can find
these in the Readme.wri on the
STEP 7 CD under
<Drive>:\STEP 7 \Disk1.
If the installation does not start automatically, you can also find the
installation program on the CD-ROM
under
<Drive>:\STEP 7 \Disk1\setup.exe.
If you double-click the "SIMATIC Manager" icon following installation, the STEP 7 Wizard
will be started automatically.
You can find additional notes on installation in the
Readme.wri file on the STEP 7 CD under
<Drive>:\STEP 7 \Disk1\Readme.wri.
1-5
Introduction to STEP 7
1-6
2.1
2-1
2-2
When you click the Make button, the SIMATIC Manager will open with the window for the
"Getting Started" project you have created. On the following pages, we will show you what
the created files and folders are for and how you can work effectively with them.
The STEP 7 Wizard is activated each time the program is started. You can deactivate this
default setting in the first dialog box for the Wizard. However, if you create projects without
the STEP 7 Wizard, you must create each directory within the project yourself.
2-3
2.2
2-4
F1
Option 1:
Place the cursor on any menu
command and press the F1 key. The
context-sensitive help for the selected
menu command will appear.
Option 2:
Use the menu to open the STEP 7
online help.
The contents page with various help
topics appears in the left-hand pane
and the selected topic is displayed in
the right-hand pane.
Navigate to the topic you want by
clicking the + sign in the Contents list.
At the same time, the contents of the
selected topic are displayed in the
right-hand pane.
Using Index and Find, you can enter
search strings and look for the specific
topics you require.
Option 3:
Click on the "Start page" icon in the
STEP 7 Online Help to open the
information portal. This portal provides
compact access to major topics of the
Online Help, e.g.:
Getting Started with STEP 7
Configuring & Programming
Testing & Debugging
SIMATIC on the Internet
Option 4:
Click on the question mark button in
the toolbar to turn your mouse into a
help cursor. The next time you click on
a specific object, the online help is
activated.
2-5
2-6
3.1
Absolute Addresses
Every input and output has an absolute address predefined by the hardware
configuration. This address is specified directly; that is, absolutely.
The absolute address can be replaced by any symbolic name you choose.
Digital input
module
Byte 0
Bits 0 to 7
DC 5V
FRCE
RUN
STOP
L+
RUN P
RUN
ON
STOP
M RES
OFF
L+
N
L+
M
L+
M
Digital input
module
Byte 1
Bits 0 to 7
M
Absolute address:
Input
Digital output
module
Byte 4
Bits 0 to 7
BATF
SF
Byte 1
0
1
2
3
4
5
Digital output
module
Byte 5
Bits 0 to 7
1
2
3
4
5
6
7
1.5
Bit 5
3-1
3.2
Symbolic Programming
In the symbol table, you assign a symbolic name and the data type to all the
absolute addresses which you will address later on in your program; for example,
for input I 0.1 the symbolic name Key 1. These names apply to all parts of the
program and are known as global variables.
Using symbolic programming, you can considerably improve the legibility of the
S7 program you have created.
3-2
The data type which was previously added automatically to the symbol table determines the
type of the signal to be processed for the CPU. STEP 7 uses, among others, the following
data types:
BOOL
BYTE
WORD
DWORD
CHAR
INT
DINT
REAL
S5TIME
TIME
DATE
TIME_OF_DAY
Data of this type are bit combinations. 1 bit (type BOOL) to 32 bits (DWORD).
Data of this type occupy exactly one character of the ASCII character set.
They are available for the processing of numerical values (for example, to calculate
arithmetic expressions).
Data of this type represent the different time and date values within STEP 7 (for
example, to set the date or to enter the time value for a timer).
3-3
3-4
4.1
The block OB1 will now be opened according to the language you chose
when you created it in the project Wizard. However, you can change the
default programming language again at any time.
4-1
ZEn01_05_STEP7__LAD_1-9
ZEn01_01_STEP7__STL_1-9
or
ZEn01_03_STEP7__FDB_1-9
Here you can see all three sample
projects displayed.
Navigate in the "ZEn01_XXX until you
reach the Symbols component and
copy this by dragging and dropping it
to the S7 Program folder in your
project window "Getting Started."
Then close the window "ZEn01_XXX.
Drag and drop means that you click any object
with the mouse and move it whilst keeping the
mouse button depressed. When you release the
mouse button, the object is pasted at the selected
position.
In STEP 7, OB1 is processed cyclically by the CPU. The CPU reads line by line and
executes the program commands. When the CPU returns to the first program line, it has
completed exactly one cycle. The time required for this is known as the scan cycle time.
Depending on which programming language you have selected, continue reading in either
Section 4.2 for programming in Ladder Logic, Section 4.3 for Statement List, or Section 4.4
for Function Block Diagram.
You can find more information under Help > Contents
in the topics Programming Blocks and "Creating
Blocks and Libraries.
4-2
Inserting a new
network
Toggling "Program elements" and "Call
structure" on and off
Program
elements
(here for
Ladder Logic)
and call
structure
4-3
4.2
4-4
Symbols are indicated in red if, for example, they do not exist in the symbol table, or if
there is a syntax error.
4-5
4-6
If you want to see the difference between absolute and symbolic addressing, deactivate the
menu command View > Display > Symbolic Representation.
Example:
Symbolic addressing in LAD
Example:
Absolute addressing in LAD
You can change the line break for symbolic addressing in the LAD/STL/FBD program
window by using the menu command Options > Customize and then selecting "Width of
address field" in the "LAD/FBD" tab. Here you can set the line break between 10 and 24
characters.
You can find more information under Help >
Contents in the topics "Programming Blocks,"
"Creating Logic Blocks," and "Editing Ladder
Instructions."
4-7
4.3
4-8
4-9
If you want to see the difference between absolute and symbolic addressing, deactivate the
menu command View > Display > Symbolic Representation.
Example:
Symbolic addressing in STL
Example:
Absolute addressing in STL
4-10
4.4
4-11
4-12
4-13
"Automatic Mode"
"Automatic on"
"Manual on"
If you want to see the difference between absolute and symbolic addressing, deactivate the
menu command View > Display > Symbolic Representation.
"Green_Light"
"Key_1"
Example:
Symbolic addressing in FBD
"Key_2"
Example:
Absolute addressing in FBD
You can change the line break for symbolic addressing in the LAD/STL/FBD program
window by using the menu command Options > Customize and then selecting "Address
Field Width" in the "LAD/FBD" tab. Here you can set the line break between 10 and 24
characters.
You can find more information under Help >
Contents in the topics "Programming Blocks,"
"Creating Logic Blocks," and "Editing FBD
Statements."
4-14
5.1
5-1
Depending on which programming language you have selected, continue reading in either
Section 5.2 for Ladder Logic, Section 5.3 for Statement List, or Section 5.4 for Function
Block Diagram.
5-2
5.2
The variable declaration area consists of a variable overview (left pane) and of the
variable detail view (right pane).
In the variable overview, select the declaration types "IN", "OUT" and "STAT" one
after the other and enter the following declarations into the corresponding variable
details.
In the variable overview, click the corresponding cells and apply the entries from
the subsequent figures. You can select the data type from the pull-down list
displayed.
5-3
5-4
Select the question marks and enter the corresponding names from the variable
declaration table (the # sign is assigned automatically).
Enter the symbolic name "Automatic_Mode" for the normally closed contact in the
series circuit.
Then save your program.
Local block variables are indicated with a # sign and are only valid in the
block.
Global variables appear in quotation marks. These are defined in the
symbol table and are valid for the entire program.
The signal state "Automatic_Mode" is defined in OB1 (Network 3; see page
4-7) by another SR element and now queried in FB1.
5-5
5-6
5.3
The variable declaration area consists of a variable overview (left pane) and of the
variable detail view (right pane).
In the variable overview, select the declaration types "IN", "OUT" and "STAT" one
after the other and enter the subsequent declarations into the corresponding
variable details.
In the variable overview, click the corresponding cells and apply the entries from
the subsequent figures. You can select the data type from the pull-down list
displayed.
5-7
5-8
5-9
5.4
The variable declaration area consists of a variable overview (left pane) and the
variable detail view (right pane).
In the variable overview, select the declaration types "IN", "OUT" and "STAT" one
after the other and enter the subsequent declarations into the corresponding
variable details.
In the variable overview, click the corresponding cells and apply the entries from
the subsequent figures. You can select the data type from the pull-down list
displayed.
5-10
5-11
Click the ??.? sign and enter the corresponding names from the declaration table
(the # sign is assigned automatically).
Make sure that one input of the AND function is addressed with the symbolic
name "Automatic_Mode."
Negate the inputs "Automatic_Mode" and #Fault with the corresponding button
from the toolbar.
Then save your program.
Local block variables are indicated with a # sign and are only
valid in the block.
Global variables appear in quotation marks. These are
defined in the symbol table and are valid for the entire
program.
The signal state "Automatic_Mode" is defined in OB1
(Network 3; see page 4-14) by another SR element and now
queried in FB1.
5-12
5-13
5.5
5-14
5-15
5.6
FB1
"Engine"
OB1
DB1
Petrol Engine
Data
Call
DB2
Diesel Engine
Data
5-16
Click the question marks and after entering a quotation mark address all the other
parameters of the function block using the corresponding symbolic names in the
pull-down list.
5-17
Program the call for the function block "Engine" (FB1) with the data block "Diesel"
(DB2) in a new network and use the corresponding addresses from the pull-down
list.
A signal "DE_xxx" is
assigned to each of the
variables for the diesel
engine.
5-18
5.7
FB1
"Engine"
OB1
DB1
Petrol Engine
Data
Call
DB2
Diesel Engine
Data
5-19
When you create program structures with organization blocks, function blocks, and data
blocks, you must program the call for subordinate blocks (such as FB1) in the block above
them in the hierarchy (for example, OB1). The procedure is always the same.
You can also give the various blocks symbolic names in the symbol table (for example, FB1
has the name "Engine" and DB1 the name "Petrol").
You can archive or print out the programmed blocks at any time. The corresponding
functions can be found in the SIMATIC Manager under the menu commands File >
Archive or File > Print.
You can find more information under Help > Contents
in the topics "Calling Reference Helps" under
"Language Description: STL," and "Program Control
Instructions."
5-20
5.8
FB1
"Engine"
OB1
DB1
Petrol Engine
Data
Call
DB2
Diesel Engine
Data
5-21
Address all the other parameters of the function block using the corresponding
symbolic names in the pull-down list.
5-22
Program the call for the function block "Engine" (FB1) with the data block "Diesel"
(DB2) in a new network and use the corresponding addresses from the pull-down
list.
A signal "DE_xxx" is assigned to
each of the variables for the
diesel engine.
When you create program structures with organization blocks, function blocks, and data
blocks, you must program the call for subordinate blocks (such as FB1) in the block above
them in the hierarchy (for example, OB1). The procedure is always the same.
You can also give the various blocks symbolic names in the symbol table (for example, FB1
has the name "Engine" and DB1 the name "Petrol").
You can archive or print out the programmed blocks at any time. The corresponding
functions can be found in the SIMATIC Manager under the menu commands File > Archive
or File > Print.
You can find more information under Help > Contents
in the topics "Calling Reference Helps" under
"Language Description: FBD," and "Program Control
Instructions."
5-23
5-24
6.1
Configuring Hardware
You can configure the hardware once you have created a project with a SIMATIC
station. The project structure which was created with the STEP 7 Wizard in
Section 2.1 meets all the requirements for this.
The hardware is configured with STEP 7. These configuration data are transferred
to the programmable controller later on "downloading" (see Chapter 7).
Hardware
Catalog
6-1
You can also check your configuration for errors using the menu command Station >
Consistency Check. STEP 7 will provide you with possible solutions to any errors which
may have occurred.
You can find more information under Help > Contents in
the topics "Configuring theHardware" and "Configuring
Central Racks."
6-2
7.1
Configured the hardware for the "Getting Started" project (see Chapter 6)
Operating mode
keyswitch
Rack
Programming
device with
STEP 7
software
XX
XX
Q 4.0
I 0.1
I 0.2
XX
XX
XX
Programming device
cable
Connection bridge
7-1
Insert the key in the CPU once you have finished assembling all the modules.
You can still carry out the test even if you are using different hardware to that shown in the
diagram. You simply have to keep to the addressing of the inputs and outputs.
STEP 7 offers you various ways of debugging your program; for example, using the
program status or by means of the variable table.
7-2
7.2
Applying Voltage
Switch on the power supply using the
ON/OFF switch. The diode "DC 5V"
will light up on the CPU.
7-3
7-4
7-5
7.3
7-6
I 0.1
I 0.2
We recommend you do not completely download extensive programs onto the CPU to run
them, because diagnosing errors is more difficult due to the number of possible sources of
an error. Instead, you should download blocks individually and then test them in order to
obtain a better overview.
7-7
7.4
7-8
At first, the variable table is empty. Enter the symbolic names or the addresses for
the "Getting Started" example according to the illustration below. The remaining
details will be added when you complete your entry with Enter.
Change the status format of all the speed values to DEC (decimal) format. To do
this, click the corresponding cell and select DEC format using the right mouse
button.
7-9
Monitoring Variables
Click the Monitor Variables button in
the toolbar. The operating mode of the
CPU is displayed in the status bar.
Press Key 1 and Key 2 in your test
configuration and monitor the result in
the variable table.
The status values in the variable table
will change from false to true.
Modifying Variables
Enter the value "1500" for the address MW2 in the Modify Value column and
"1300" for the address MW4.
7-10
Following transfer, these values will be processed in your CPU. The result of the
comparison becomes visible.
Stop monitoring the variables (click the button in the toolbar again) and close the
window. Acknowledge any queries with Yes or OK.
Very large variable tables often cannot be displayed fully due to the limited screen space.
If you have large variable tables, we recommend you create several tables for one
S7 program using STEP 7. You can adapt the variable tables to precisely match your own
test requirements.
You can assign individual names to variable tables in the same way as for blocks (for
example, the name OB1_Network1 instead of VAT1). Use the symbol table to assign new
names.
You can find more information under Help > Contents
in the topics "Debugging" under "Testing with the
Variable Table."
7-11
7.5
7-12
The "Module Information" window provides you with information on the properties
and parameters of your CPU. Now select the "Diagnostic Buffer" tab to determine
the cause of the STOP state.
The latest event (number 1) is at the top of the list. The cause of the STOP state is
displayed. Close all windows except for the SIMATIC Manager.
If a programming error caused the CPU to go into STOP mode, select the event and click
the "Open Block" button.
The block is then opened in the familiar LAD/STL/FBD program window and the faulty
network is highlighted.
With this chapter you have successfully completed the "Getting Started" sample project,
from creating a project through to debugging the finished program. In the next chapters,
you can extend your knowledge further by working through selected exercises.
You can find more information under Help > Contents
under "Diagnostics" in the topic "Calling the Module
Information."
7-13
7-14
Programming a Function
8.1
8-1
Programming a Function
In contrast to the function block, no static data can be defined in the variable declaration
table for a function.
The static data defined in a function block are retained when the block is closed. Static data
can be, for example, the memory bits used for the "Speed" limit values (see Chapter 5).
To program the function, you can use the symbolic names from the symbol table.
You can find more information under Help > Contents in the
topics "Working Out the Automation Concept," "Basics of
Designing a Program Structure," and "Blocks in the User
Program".
8-2
Programming a Function
8.2
Programming Functions
In this section, you will program a timer function in our example. The timer function
enables a fan to switch on as soon as an engine is switched on (see Chapter 5),
and the fan then continues running for four seconds after the engine is switched
off (off-delay).
As mentioned earlier, you must specify the input and output parameters of the
function ("in" and "out" declaration) in the variable detail view.
The LAD/STL/FBD program window is open. You work with this variable detail
view in the same way as with the detail view for the function block (see Chapter
5).
Enter the following declarations:
8-3
Programming a Function
Select the question marks, enter "#" and select the corresponding names.
Set the delay time at input TV of S_OFFDT. Here, S5T#4s means that a constant
has been defined with the data type S5Time#(S5T#), lasting four seconds (4s).
Then save the function and close the window.
8-4
Programming a Function
In order for the timer function to be processed, you need to call the function in a block
which is higher up in the block hierarchy (in our example, in OB1).
You can find more information under Help >
Contents in the topics "Calling Reference Helps,"
"The STL, FBD, or LAD Language Description,"
and "Timer Instructions."
8-5
Programming a Function
8.3
Click the question marks for the FC1 call and insert the symbolic names.
8-6
Programming a Function
Program the call for the function FC1 in Network 7 using the addresses for the
diesel engine. You can do this in the same way as for the previous network (you
have already added the addresses for the diesel engine to the symbol table).
8-7
Programming a Function
The call for the functions was programmed as an unconditional call in our example; that is,
the function will always be processed.
Depending on the requirements of your automation task, you can make the call for a
function or function block dependent on certain conditions; for example, an input or a
preceding logic operation. The EN input and the ENO output are provided in the box for
programming conditions.
You can find more information under Help >
Contents and then under "Calling Reference
Helps," in the topics "The LAD, FBD, or STL
Language Description".
8-8
9.1
9-1
9-2
Assigning Symbols
You can also assign symbolic names
to data blocks.
Open the Symbol Table and enter the
symbolic name "S_Data" for the data
block DB3.
If you copied the symbol table from a sample
project (zEn01_02_STEP7__STL_1-10,
zEn01_06_STEP7__LAD_1-10 or
zEn01_04_STEP7__FBD_1-10) to your
"Getting Started" project in Chapter 4, you do
not need to add any symbols now.
9-3
9-4
OB1
CALL FB10, DB10
FB10
CALL FB1 (for petrol engine)
CALL FB1 (for diesel engine)
...
FB1
"Engine"
DB10
"Petrol engine" data
"Diesel engine" data
FB1
"Engine"
You should already be familiar with programming in Ladder Logic, Function Block
Diagram, or Statement List (see Chapters 4 and 5) and also symbolic
programming (see Chapter 3).
10-1
You can create multiple instances for any function block, even for valve control programs,
for example. If you want to work with multiple instances, note that both the calling and the
called function blocks must have multiple instance capability.
You can find more information under Help > Contents in the topics
"Programming Blocks" and "Creating Blocks and Libraries."
10-2
10-3
Then insert the required normally open contacts and complete the call with the
symbolic names.
Insert a new network and program the call for the diesel engine. Proceed in the
same way as for Network 1.
10-4
Insert a new network and program a series circuit with the corresponding
addresses. Then save your program and close the block.
Use the respective temporary
variables. You will recognize the
temporary variables in the pull-down
menu by the symbols displayed on the
left.
Then save your program and close the
block.
10-5
To edit both calls for FB1 in FB10, FB10 must be called itself.
Multiple instances can only be programmed for function blocks. Creating multiple instances
for functions (FCs) is not possible.
You can find more information under Help > Contents in the
topics "Programming Blocks," "Creating Logic Blocks," and
"Multiple Instances in the Variable Declaration."
10-6
10-7
Change the actual value of the diesel engine to "1300," save the block, and then
close it.
All the variables are now contained in the variable declaration table of DB10. In the first half,
you can see the variables for calling the function block "Petrol_Engine" and in the second
half the variables for calling the function block "Diesel_Engine" (see Section 5.5).
The "internal" variables of FB1 retain their symbolic names; for example, "Switch_On." The
name of the local instance is now placed in front of these names; for example,
"Petrol_Engine.Switch_On."
You can find more information under Help > Contents in the
topics "Programming Blocks" and "Creating Data Blocks."
10-8
10-9
10-10
If you require additional engine control programs for your automation task; for example, for
gas engines, hydrogen engines, etc., you can program these as multiple instances in the
same way and call them from FB10.
To do this, declare the additional engines as shown in the variable declaration table of FB10
("Engines") and program the call for FB1 in FB10 (multiple instance in the Program
Elements catalog). You can then define the new symbolic names; for example, for the
switch-on and switch-off procedures in the symbol table.
You can find more information under Help > Contents and
then under "Calling References Helps" in the topics "The STL,
FBD, or LAD Language Description".
10-11
10-12
Modular slaves:
for example, ET 200 M-IM153
PROFIBUS-DP network
between master and
slaves
11-1
11-2
11-3
11-4
11-5
11-6
Using the menu commands Station > Consistency Check ("Configuring Hardware"
window) and Network > Consistency Check ("Configuring Networks" window), you can
check the configuration for errors before saving. Any errors are displayed and STEP 7 will
suggest possible solutions.
You can find more information under Help > Contents in the topics
"Configuring the Hardware" and "Configuring the Distributed I/O."
11-7
Congratulations! You have worked through the Getting Started manual and learned the most
important terms, procedures, and functions of STEP 7. Now you can get started on your first
project.
If, while working on future projects, you are looking for specific functions or have forgotten any
of the operating instructions in STEP 7, you can use our comprehensive Help on STEP 7.
If you want to extend your knowledge of STEP 7, there are a number of specialized training
courses available. Your local Siemens representative will be happy to help you.
We wish you lots of success with your projects!
Siemens AG
11-8
Appendix A
ZEn01_02_STEP7__STL_1-10:
The programmed Chapters 1 to 10 including the symbol table in the STL
programming language.
ZEn01_01_STEP7__STL_1-9:
The programmed Chapters 1 to 9 including the symbol table in the STL
programming language.
ZEn01_06_STEP7__LAD_1-10:
The programmed Chapters 1 to 10 including the symbol table in the LAD
programming language.
ZEn01_05_STEP7__LAD_1-9:
The programmed Chapters 1 to 9 including the symbol table in the LAD
programming language.
ZEn01_04_STEP7__FBD_1-10:
The programmed Chapters 1 to 10 including the symbol table in the FBD
programming language.
ZEn01_03_STEP7__FBD_1-9:
The programmed Chapters 1 to 9 including the symbol table in the FBD
programming language.
ZEn01_07_STEP7__Dist_IO:
The programmed Chapter 11 with the distributed I/O.
A-1
Appendix A
A-2
Index
A
Absolute address ...........................................3-1
Actual values
changing...................................................5-14
AND function ..................................................1-1
Applying voltage .............................................7-3
B
Block call in function block diagram..............5-21
Block call in ladder logic ...............................5-16
Block call in statement list ............................5-19
C
Calling the function.........................................8-6
Calling the Help..............................................2-5
Changing the node address .........................11-6
Configuring hardware .....................................6-1
Configuring networks....................................11-7
Configuring the central rack ...........................6-1
Configuring the Distributed I/O .....................11-1
Configuring the Distributed I/O
with PROFIBUS DP..................................11-1
Configuring the DP-Master System ..............11-4
Configuring the hardware ...............................7-1
CPU, switching on ..........................................7-5
Creating a program with function blocks
and data blocks ..........................................5-1
Creating a Project...........................................2-1
Creating function blocks .................................5-1
Creating functions ..........................................8-1
Creating Shared data blocks ..........................9-1
Creating the variable table .............................7-8
D
Data blocks
generating instance data blocks ...............5-14
Data type........................................................3-3
Debugging with function block diagram..........7-6
Debugging with ladder logic ...........................7-6
Debugging with statement list ........................7-6
Declaring variables
FBD ..........................................................5-10
LAD ............................................................5-3
STL.............................................................5-7
STEP 7 Getting Started
A5E00171228-01
E
Establishing an online connection.................. 7-1
Evaluating the Diagnostic Buffer.................. 7-12
F
Function block diagram
block call .................................................. 5-21
debugging .................................................. 7-6
programming the timer function ................. 8-5
Function block, programming
in function block diagram ......................... 5-10
Function block, programming in ladder logic . 5-3
Function block, programming
in statement list.......................................... 5-7
Function blocks, creating ............................... 5-1
Function blocks, opening ............................... 5-1
Function, calling............................................. 8-6
Functions, creating ........................................ 8-1
Functions, opening ........................................ 8-1
H
Hardware, configuring.................................... 6-1
Help, calling ................................................... 2-5
I
Installation ..................................................... 1-5
Instance data blocks
generating................................................ 5-14
Introduction to STEP 7................................... 1-1
L
Ladder logic
block call .................................................. 5-16
debugging .................................................. 7-6
programming the timer function ................. 8-3
Index-1
Index
M
Modifying variables ...................................... 7-10
Module information, query ........................... 7-12
Monitoring variables..................................... 7-10
Multiple instance, programming ................... 10-1
N
Node addresses, changing .......................... 11-6
O
Online connection, establishing ..................... 7-1
Opening function blocks................................. 5-1
Opening functions .......................................... 8-1
Opening shared data blocks .......................... 9-1
Operating Mode, checking ............................. 7-5
OR function.................................................... 1-1
P
Procedure using STEP 7 ............................... 1-4
Program, downloading to the
programmable controller ............................ 7-3
Programming a function (FC)......................... 8-1
Programming a multiple instance................. 10-1
Programming a shared data block ................. 9-1
Programming FB1 in
function block diagram ............................. 5-10
Programming FB1 in ladder logic................... 5-3
Programming FB1 in statement list ................ 5-7
Programming the timer function in
function block diagram ............................... 8-5
Programming the timer function
in ladder logic............................................. 8-3
Programming the timer function
in statement list .......................................... 8-4
Index-2
R
Resetting the CPU and switching it to RUN....7-3
S
Shared data block, programming ...................9-1
Shared data blocks in the symbol table ..........9-3
Shared data blocks
in the variable declaration table..................9-3
Shared data blocks, creating ..........................9-1
Shared data blocks, opening ..........................9-1
SIMATIC Manager
project structure..........................................2-4
SIMATIC Manager, starting ............................2-1
SIMATIC, further software ..............................2-6
SR function.....................................................1-2
Starting the SIMATIC Manager ......................2-1
Statement list
block call...................................................5-19
debugging...................................................7-6
programming the timer function..................8-4
Switching the variable table online .................7-9
Symbol editor .................................................3-2
Symbol table...................................................3-2
Symbolic programming...................................3-2
V
Variable table, creating...................................7-8
Variable Table, switching online .....................7-9
Variable, modifying.......................................7-10
Variables, monitoring....................................7-10