Technical data
Appendix
27.6 Sample Programs
Programming with STEP 7
634 Manual, 05/2010, A5E02789666-01
27.6 Sample Programs
27.6.1 Sample Projects and Sample Programs
The STEP 7 installation medium contains a number of useful sample projects that are listed
below. You will find the sample projects in the "open" dialog of the SIMATIC Manager ("Sample
Projects" tab). Other sample projects may also be added when optional packages are installed. For
information on these sample projects, refer to the documentation for the optional packages.
Examples and Sample Projects Included on
CD
Described in this
Documentation
Description in
OB1
"ZEn01_01_STEP7_*" to "ZEn01_06_STEP7_*"
projects (getting started and exercises)
•
Separate
Manual
•
"ZEn01_11_STEP7_DezP" project (sample
PROFIBUS DP configuration)
•
-
-
"ZEn01_08_STEP7_Blending" project (industrial
blending process)
• •
-
"ZEn01_09_STEP7_Zebra" project (traffic signal
control at a zebra crossing/crosswalk)
• •
"Zen01_10_STEP7_COM_SFB" project (data
exchange between two S7-400 CPUs)
• •
"ZXX01_14_HSystem_S7400H project (starting
project for fault-tolerant systems)
"ZXX01_15_HSystem_RED_IO project (starting
project for fault-tolerant systems with redundant I/O
devices)
•
•
Separate manual
Separate manual
•
•
"Zen01_11_STEP7_COM_SFC1" and
"Zen01_12_STEP7_COM_SFC2" project (data
exchange using communication SFCs for
non-configured connections)
• •
Project "ZEn01_13_STEP7_PID-Temp" (Example
for temperature controllers FB 58 and FB 59)
•
•
Example of handling time-of-day interrupts •
Example of handling time-delay interrupts •
Example of masking and unmasking synchronous
errors
•
Example of disabling and enabling interrupts and
asynchronous errors
•
Example of the delayed processing of interrupts and
asynchronous errors
•
The emphasis of the examples is not on teaching a particular programming style or the specialist
knowledge needed to control a particular process. The examples are simply intended to illustrate
the steps that must be followed to design a program.