Technical data

Creating STL Source Files
13.7 Examples of STL Source Files
Programming with STEP 7
308 Manual, 05/2010, A5E02789666-01
Data Block with Associated Function Block:
DATA_BLOCK DB 30
TITLE = DB (FB) Example
FB 30 // Specifies associated FB
BEGIN
start := TRUE; // Assignment of actual values
setp := 10;
END_DATA_BLOCK
Note
The associated function block must come before the data block in the source file.
13.7.6 Example of User-Defined Data Types in STL Source Files
TYPE UDT20
STRUCT
start : BOOL; // Variable of type BOOL
setp. : INT; // Variable of type INT
value : WORD; // Variable of type WORD
END_STRUCT;
END_TYPE