Technical data

Creating STL Source Files
13.5 Creating STL Source Files
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 295
13.5.8 Generating STL Source Files from Blocks
You can generate an STL source file which you can edit with any text editor from existing blocks.
The source file is generated in the source file folder of the S7 program.
To generate a source file from a block, proceed as follows:
1. In the program editor, select the menu command File > Generate Source File.
2. In the dialog box, select the source file folder in which you want to create the new source file.
3. Enter a name for the source file in the text box.
4. In the "Select STEP 7 Blocks" dialog box, select the block(s) which you want to generate as the
given source file. The selected blocks are displayed in the right list box.
5. Confirm with "OK."
One continuous STL source file is created from the selected blocks and is displayed in a window
for editing.
13.5.9 Importing Source Files
To import a source file from any directory into a project:
1. In the SIMATIC Manager, select the source file folder into which you want to import the source
file.
2. Select the menu command Insert > External Source File.
3. In the dialog box displayed, select the destination directory and the source file to be imported.
4. Click the "Open" button.
13.5.10 Exporting Source Files
To export a source file from a project to any destination directory:
1. Select the source file in the source file folder.
2. Select the menu command Edit > Export Source File in the SIMATIC Manager.
3. Enter the destination directory and file name in the dialog box displayed.
4. Click the "Save" button.
Note
If the object name does not have a file extension, a file extension derived from the file type is added to
the file name. For example, the STL source file "prog" is exported to the file "prog.awl."
If the object name already has a valid file extension, this is retained and not changed. For example,
the STL source file "prog.awl" is exported to the file "prog.awl."
If an object name has an invalid file extension (meaning a period is contained in the name), no file
extension is added.
You will find a list of valid file extensions in the "Export Source File" dialog box under "File type."