Technical data
Creating STL Source Files
13.5 Creating STL Source Files
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 293
13.5.3 Setting The Layout of Source Code Text
To improve readability of text in source files, select menu command Options > Settings and the
"Source Code" tab. Specify the font, font style and color for the various elements of the source
code.
For example, you can specify to display line numbers and to display keywords in upper case
letters.
13.5.4 Inserting Block Templates in STL Source Files
Block templates for organization blocks (OB), function blocks (FB), functions (FC), data blocks
(DB), instance data blocks, data blocks with associated user-defined data types, and user-defined
data types (UDT) are available for programming in STL source files. The block templates make it
easier to enter blocks in your source file and to observe syntax and structure guidelines.
To insert a block template, proceed as follows:
1. Activate the window of the source file in which you want to insert a block template.
2. Position the cursor at the point in the file after which you want to insert the block template.
3. Select one of the menu commands Insert > Block Template > OB/FB/FC/DB/Instance DB/DB
Referencing UDT/UDT.
The block template is inserted in the file after the cursor position.
13.5.5 Inserting the Contents of Other STL Source Files
You can insert the contents of other source files into your STL source file.
Proceed as follows:
1. Activate the window of the source file in which you want to insert the contents of another
source file.
2. Position the cursor at the location in the file after which you want to insert the source file.
3. Select the menu command Insert > Object > File.
4. Select the required source file in the dialog box which appears.
The contents of the selected source file are inserted after the cursor position. Line feeds (carriage
returns) are retained.