Technical data

Creating STL Source Files
13.4 Syntax and Formats for Blocks in STL Source Files
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 291
13.4.4 Format Table of Data Blocks
The following table shows a brief list of the format for data blocks in an STL source file:
Structure Description
"DATA_BLOCK" db_no or db_name db_no is the block number, for example DB5;
db_name is the symbolic name of the block as defined in the
symbol table
[TITLE= ] Block title (entries longer than 64 characters are cut off)
[Block comment] Comments can be entered after "//"
[System attributes for blocks] System attributes for blocks
[Block properties] Block properties
Declaration section Instance DB: specifies UDT or FB to which the block relates as
block number or name according to the symbol table.
Global DB: specifies the variables with their data type and start
value (optional)
"BEGIN" Keyword to separate the declaration section from the list of
value assignments
[Assignment of current values] Variables can have specific current values assigned. Individual
variables either have constants assigned or a reference is
made to other blocks.
"END_DATA_BLOCK" Keyword to end data block