
Contents
S7-GRAPH forS7300/400 ProgrammingSequential Control Systems
viii C79000-G7076-C526-01
5Creating aProject.................................................................................................5-1
5.1Creating the Project in the SIMATICManager.........................................................5-1
5.2S7-Graph FB or S7-Graph SourceFile?..................................................................5-2
5.3S7-Graph FB..........................................................................................................5-2
5.4S7-Graph Source File.............................................................................................5-3
5.5Opening an S7-Graph FB or anS7-Graph Source File............................................5-4
6Programming theStructure ofthe Sequencer.....................................................6-1
6.1Sequencer - Principle..............................................................................................6-2
6.2Structuresof aSequencer.......................................................................................6-3
6.3Rules for the Structureof aSequencer....................................................................6-4
6.4Elements of aSequencer........................................................................................6-4
6.5Step-Transition Pair and Initial Step........................................................................6-5
6.6 Jump......................................................................................................................6-6
6.7 AlternativeBranch..................................................................................................6-7
6.8Simultaneous Branch..............................................................................................6-8
6.9 BranchStop............................................................................................................6-9
6.10 New Sequencer......................................................................................................6-9
6.11 Permanent Instructions.........................................................................................6-10
6.12Block Comment....................................................................................................6-11
7Programming Actions and Conditions................................................................7-1
7.1Actions...................................................................................................................7-2
7.2Standard Actions....................................................................................................7-3
7.3Event-Dependent Actions.......................................................................................7-4
7.4Counters, Timers and Arithmetic in Actions.............................................................7-7
7.5Conditions.............................................................................................................7-14
7.6Ladder Logic Elements for Programming Conditions.............................................7-17
7.7Logic Operations with Ladder Logic Elements.......................................................7-20
7.8FBD ElementsforProgramming Conditions..........................................................7-21
7.9S7-Graph Addresses in Conditions.......................................................................7-24
7.10 Supervision Errors and Acknowledgment..............................................................7-25
7.11 Comment,Extended Name, Number, Name.........................................................7-27
7.12 Programming with Symbolic Addresses................................................................7-28
7.13 Editing Variables...................................................................................................7-29
8Savingand Compiling..........................................................................................8-1
8.1Saving and Compiling.............................................................................................8-1
8.2Rules for Saving an S7-Graph FB...........................................................................8-2
8.3Rules for Saving an S7-Graph Source File..............................................................8-2
8.4Settings forSaving and Compiling...........................................................................8-3
8.4.1Settings in the “General" Tab Page.........................................................................8-3
8.4.2Settings in the "Compile/Save" Tab Page................................................................8-5
8.4.3Settings in the "Messages" Tab Page......................................................................8-7
8.5 Saving....................................................................................................................8-9
8.6Compiling..............................................................................................................8-10