S7-Graph Fb Or S7-Graph Source File; S7-Graph Fb - Siemens SIMATIC S7-GRAPH Manual

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

Advertisement

Creating a Project
Inserting an S7 Project in the Project
In the SIMATIC Manager, you create an S7 program with the menu command
Insert > Program > S7 Program. The system then automatically creates the
folders for source files, blocks and the symbol table. An empty OB1 is created in
the Blocks folder.
5.2

S7-Graph FB or S7-Graph Source File?

Before you start to create sequencers, you must first decide the type of block in
which you want to program. You can create sequencers either in an S7-Graph FB
or in an S7-Graph source file.
Deciding Between an S7-Graph FB and an S7-Graph Source File
When you save an FB, S7-Graph implicitly compiles the block, in other words the
sequencer you have created is checked for syntax errors. Only error-free S7-Graph
FBs can be saved and transferred to the CPU. It is not possible to close an FB that
contains errors.
If you are unable to debug the program immediately, you can also save the
S7-Graph FB as a source file or you can first create an S7-Graph FB source file
instead of an S7-Graph FB. In contrast to the S7-Graph FB, you can save an
S7-Graph source file containing errors at any time.
Note
If you find that you cannot program a sequencer in one session, first save the data
as an S7-Graph source file or create an S7-Graph source file in the first place.
5.3

S7-Graph FB

You can create an S7-Graph FB both in the SIMATIC Manager or directly in
S7-Graph, as follows:
• In S7-Graph, you create a new function block with the File > New menu
command. This is then created in the S7-Graph language.
• In the SIMATIC Manager, you create a new function block with the Insert >
S7 Block > Function Block menu command. In this case set the language to
S7-Graph.
5-2
S7-GRAPH for S7 300/400 Programming Sequential Control Systems
C79000-G7076-C526-01

Advertisement

Table of Contents
loading

Table of Contents