Compiling - Siemens SIMATIC S7-GRAPH Manual

For s7-300/400 programming sequential control systems
Table of Contents

Advertisement

Saving and Compiling
8.6

Compiling

Compiling produces a program that can be understood by the CPU. During
compilation, the syntax of the program is checked, the S7-Graph FB is created
and, if required, the instance DB.
Methods for Compiling Sequencers
Requirements
Before an FB can be compiled, all the errors must be eliminated. You can have
S7-Graph check your blocks as follows:
• Either run a consistency check prior to compilation or
• Compile more than once.
Running a Consistency Check
Using a consistency check, you can find syntax errors in your program without
compiling it. You can use the consistency check both with an S7-Graph FB and
with an S7-Graph source file.
Automatic Compilation on Saving an S7-Graph FB
If you program the sequencers in an S7-Graph FB, the FB is compiled when you
save.
Compiling an S7-Graph Source File
If you program your sequencers in an S7-Graph source file, you must start the
compilation explicitly.
Debugging after Compiling or after the Consistency Check
All errors that occur during compilation are shown in the message window following
compilation. Depending on your screen settings, the message window may be in
the foreground or background.
8-10
S7-GRAPH for S7 300/400 Programming Sequential Control Systems
C79000-G7076-C526-01

Advertisement

Table of Contents
loading

Table of Contents