Technical data

Creating Data Blocks
11.4 Editing and Saving Data Blocks
Programming with STEP 7
276 Manual, 05/2010, A5E02789666-01
11.4.7 Saving Data Blocks
To enter newly created blocks or changed data values in data blocks in the programming device
database, you must save the respective block. The data are then written to the hard disk of the
programming device.
To save blocks on the hard disk of the programming device:
1. Activate the working window of the block you want to save.
2. Select one of the following menu commands:
- File > Save saves the block under the same name.
- File > Save As saves the block under a different S7 user program or under a different
name. Enter the new path or new block name in the dialog box which then appears. With
data blocks, you may not use the name DB0 because this number is reserved for the
system.
In both cases the block is saved only if its syntax contains no errors. Syntax errors are identified
immediately when the block is created and are then displayed in red. These errors must be
corrected before the block can be saved.
Note
You can also save blocks or source files beneath other projects or libraries in the SIMATIC Manager (by dragging
& dropping, for example).
You can only save blocks or complete user programs to a memory card in the SIMATIC Manager.
If problems occur when saving or compiling large blocks, you should reorganize the project. Use the menu
command File > Reorganize in the SIMATIC Manager to do this. Then try to save or compile again.