
Saving and Compiling
S7-GRAPH for S7 300/400 Programming Sequential Control Systems
8-2
C79000-G7076-C526-01
•
Before saving the S7-Graph FB or S7-Graph source file, you can start a
consistency check.
-
Errors and warnings during the compilation of an S7-Graph source file can
but do not need to be corrected.
-
Errors during the compilation of an S7-Graph FB must, however, be
corrected before the FB can be saved.
•
If you want to download several sequencers to the PLC at the same time, it is
often better to include the system functionality in one of the supplied standard
blocks. This reduces the size of every S7-Graph block by approximately
5000 bytes. The extra requirement of the standard block must be added, but
only once. (FC70 7800 bytes, FC71 7400 bytes, FC72 11400 bytes)
8.2
Rules for Saving an S7-Graph FB
•
Only error-free S7-Graph FBs can be saved and transferred to the CPU, in
other words errors must be eliminated before the FB can be saved. Less
significant errors that cause warnings do not need to be eliminated, in other
words it is possible to “Save" or “Save As" FBs with warnings.
•
When you save an FB, S7-Graph implicitly compiles it, in other words the
sequencer you have created is checked for syntax errors. Following this, the
S7-Graph FB does not need to be compiled.
A separate message window displays errors that have occurred (for example
jump destination not defined) and/or warnings (for example action without
content) as compilation messages.
•
A sequencer still containing errors in the S7-Graph FB can also be saved as an
S7-Graph source file with which you can continue to work (menu command File
> Generate Source file). This allows you to eliminate the errors at a later point
in time.
•
The block created after compilation is saved in the Blocks folder of the same
S7 program.
8.3
Rules for Saving an S7-Graph Source File
•
Incomplete and syntactically incorrect sequencers can be saved.
•
Once an error-free sequencer has been programmed in the S7-Graph source
file, it can be converted to an S7-Graph FB using the "Compile" function.
•
Source files are saved in the Source Files folder in the same S7 program.
•
Addresses can be saved in source files either in absolute or symbolic format.