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 289
13.4.2 Format Table of Function Blocks
The following table shows a brief list of the format for function blocks in an STL source file:
Structure Description
"FUNCTION_BLOCK" fb_no or fb_name fb_no is the block number, for example FB6;
fb_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
Variable declaration section Declaration of input, output, and in/out parameters, and
temporary or static variables
The declaration of the parameters may also contain the
declarations of the system attributes for parameters.
"BEGIN" Keyword to separate the variable declaration section from the
list of STL instructions
NETWORK Start of a network
[TITLE= ] Network title (max. 64 characters)
[Network comment] Comments can be entered after "//"
List of STL instructions Block instructions
"END_FUNCTION_BLOCK Keyword to end function block