Technical data

Contents
Programming with STEP 7
14 Manual, 05/2010, A5E02789666-01
9.4 Working with Libraries...........................................................................................................235
9.4.1 Hierarchical Structure of Libraries.........................................................................................237
9.4.2 Overview of the Standard Libraries.......................................................................................237
10 Basics of Creating Logic Blocks ...........................................................................................................239
10.1.1 Structure of the Program Editor Window ..............................................................................239
10.1.2 Basic Procedure for Creating Logic Blocks ..........................................................................241
10.1.3 Default Settings for the LAD/STL/FBD Program Editor........................................................242
10.1.4 Access Rights to Blocks and Source Files ...........................................................................242
10.1.5 Instructions from the Program Elements Table ....................................................................243
10.2 Editing the Variable Declaration............................................................................................244
10.2.1 Using the Variable Declaration in Logic Blocks....................................................................244
10.2.2 Interaction Between The Variable Detail View And The Instruction List ..............................245
10.2.3 Structure of the Variable Declaration Window......................................................................246
10.3 Multiple Instances in the Variable Declaration......................................................................247
10.3.1 Using Multiple Instances.......................................................................................................247
10.3.2 Rules for Declaring Multiple Instances .................................................................................248
10.3.3 Entering a Multiple Instance in the Variable Declaration Window ........................................248
10.4 General Notes on Entering Statements and Comments ......................................................249
10.4.1 Structure of the Code Section...............................................................................................249
10.4.2 Procedure for Entering Statements ......................................................................................250
10.4.3 Entering Shared Symbols in a Program ...............................................................................251
10.4.4 Title and Comments for Blocks and Networks......................................................................251
10.4.5 Entering Block Comments and Network Comments.............................................................253
10.4.6 Working with Network Templates .........................................................................................253
10.4.7 Search Function for Errors in the Code Section ...................................................................254
10.5 Editing LAD Elements in the Code Section ..........................................................................255
10.5.1 Settings for Ladder Logic Programming ...............................................................................255
10.5.2 Rules for Entering Ladder Logic Elements ...........................................................................256
10.5.3 Illegal Logic Operations in Ladder ........................................................................................258
10.6 Editing FBD Elements in the Code Section ..........................................................................259
10.6.1 Settings for Function Block Diagram Programming..............................................................259
10.6.2 Rules for Entering FBD Elements.........................................................................................260
10.7 Editing STL Statements in the Code Section........................................................................262
10.7.1 Settings for Statement List Programming.............................................................................262
10.7.2 Rules for Entering STL Statements ......................................................................................262
10.8 Updating Block Calls.............................................................................................................263
10.8.1 Changing Interfaces..............................................................................................................264
10.9 Saving Logic Blocks..............................................................................................................265