Technical data
Startup and Operation
5.4 Objects and Object Hierarchy
Programming with STEP 7
132 Manual, 05/2010, A5E02789666-01
5.4.8 S7/M7 Program without a Station or CPU
You can create programs without having configured a SIMATIC station beforehand. This means
that you can initially work independently of the module and module settings you intend to program.
Creating an S7/M7 Program
1. Open the relevant project using the menu command File > Open or activate the project
window.
2. Select the project in the project window of the offline view.
3. Select one of the following menu commands, depending on which programmable controller the
program is being created for:
Insert > Program > S7 Program, if your program is to run on a SIMATIC S7 device.
Insert > Program > M7 Program, if your program is to run on a SIMATIC M7 device.
The S7/M7 program is added and arranged directly below the project in the project window. It
contains a folder for the blocks and an empty symbol table. You can now create and program
blocks.
Assigning a Program to a Programmable Module
When you insert programs that are not dependent on a particular module, you can easily assign
them to a module later on by copying or moving these programs to the module symbol using the
drag and drop function.
Adding a Program to a Library
If the program is to be used for a SIMATIC S7 programmable controller and you want to use it
many times as a "software pool," you can also insert it in a library. However, when testing, the
programs must lie directly under a project, because this is the only way in which to establish a
connection to the programmable controller.
Accessing a Programmable Controller
Select the online view of the project. You can make the address settings in the dialog box
containing the program properties.
Note
When deleting stations or programmable modules, you will be asked if you also want to delete the program
contained within. If you choose not to delete the program, it will be attached directly below the project as a
program without a station.