Technical data

Setting Up and Editing the Project
6.6 Setting Up a Project
Programming with STEP 7
166 Manual, 05/2010, A5E02789666-01
6.6.3 Inserting an S7/M7 Program
The software for programmable modules is stored in object folders. For SIMATIC S7 modules this
object folder is called "S7 Program," for SIMATIC M7 modules it is called "M7 Program."
The following figure shows an example of an S7 program in a programmable module in a
SIMATIC 300 station.
Existing Components
An S7/M7 program is created automatically for each programmable module as a container for the
software:
The following objects already exist in a newly created S7 program:
Symbol table ("Symbols" object)
"Blocks" folder for containing the first block
"Source Files" folder for source files
The following objects already exist in a newly created M7 program:
Symbol table ("Symbols" object)
"Blocks" folder
Creating S7 Blocks
You want to create Statement List, Ladder Logic, or Function Block Diagram programs. To do this,
select the existing "Blocks" object and then select the menu command Insert > S7 Block. In the
submenu, you can select the type of block you want to create (such as a data block, User-defined
Data Type (UDT), function, function block, organization block, or variable table).
You can now open the (empty) block and start entering the Statement List, Ladder Logic, or
Function Block Diagram program. You will find more information on this in Basic Procedure for
Creating Logic Blocks and in the Statement List, Ladder Logic, and Function Block Diagram
manuals.
Note
The object "System Data" (SDB) which may exist in a user program was created by the system. You
can open it, but you cannot make changes to it for reasons of consistency. It is used to make changes
to the configuration once you have loaded a program and to download the changes to the
programmable controller.