Technical data
Creating STL Source Files
13.6 Saving and Compiling STL Source Files and Executing a Consistency Check
Programming with STEP 7
296 Manual, 05/2010, A5E02789666-01
13.6 Saving and Compiling STL Source Files and Executing a
Consistency Check
13.6.1 Saving STL Source Files
You can save an STL source file at any time in its current state. The program is not compiled and
no syntax check is run, meaning any errors are saved as well.
Syntax errors are detected and reported only when the source file is compiled or following a
consistency check.
To save a source file under the same name:
1. Activate the window for the source file you want to save.
2. Select the menu command File > Save.
To save a source file under a new name/in another project:
1. Activate the window for the source file you want to save.
2. Select the menu command File > Save As.
3. In the dialog box, select the source file folder in which you want to save the source file and
enter its new name.
13.6.2 Checking Consistency in STL Source Files
Using the menu command File > Consistency Check you can display any syntax errors in the
STL source file. In contrast to compiling, no blocks are generated.
When the consistency check is completed, a dialog box is displayed showing you the total number
of errors found.
Any errors that are found are listed individually in the lower part of the window with a line reference.
Correct these errors before compiling the source file so that all the blocks can be created.
13.6.3 Debugging STL Source Files
The active window for source files is split into two. The following errors are listed in the lower half:
• Errors found after compilation was initiated via menu command File > Compile.
• Errors found after a consistency check was initiated via menu command File > Consistency
Check.