Technical data
Contents
Programming with STEP 7
22 Manual, 05/2010, A5E02789666-01
27.3.4 Parameter Types ..................................................................................................................609
27.3.4.1 Format of the Parameter Types BLOCK, COUNTER, TIMER .............................................610
27.3.4.2 Format of the Parameter Type POINTER.............................................................................610
27.3.4.3 Using the Parameter Type POINTER...................................................................................611
27.3.4.4 Block for Changing the Pointer .............................................................................................613
27.3.4.5 Format of the Parameter Type ANY .....................................................................................616
27.3.4.6 Using the Parameter Type ANY............................................................................................619
27.3.4.7 Assigning Data Types to Local Data of Logic Blocks ...........................................................622
27.3.4.8 Permitted Data Types when Transferring Parameters .........................................................624
27.3.4.9 Transferring to IN_OUT Parameters of a Function Block.....................................................629
27.4 Working with Older Projects..................................................................................................630
27.4.1 Converting Version 2 Projects ..............................................................................................630
27.4.2 Editing Version 2 Projects and Libraries...............................................................................631
27.4.3 Notes on STEP 7 V.2.1 Projects with GD Communication...................................................631
27.5 Expanding DP Slaves That Were Created with Previous Versions of STEP 7 ....................632
27.5.1 DP-Slaves with Missing or Faulty GSD Files........................................................................633
27.6 Sample Programs .................................................................................................................634
27.6.1 Sample Projects and Sample Programs...............................................................................634
27.6.2 Sample Program for an Industrial Blending Process............................................................636
27.6.2.1 Defining Logic Blocks............................................................................................................639
27.6.2.2 Assigning Symbolic Names ..................................................................................................640
27.6.2.3 Creating the FB for the Motor ...............................................................................................642
27.6.2.4 Creating the FC for the Valves..............................................................................................646
27.6.2.5 Creating OB1 ........................................................................................................................648
27.6.3 Example of Handling Time-of-Day Interrupts........................................................................654
27.6.3.1 Structure of the User Program "Time-of-Day Interrupts" ......................................................654
27.6.3.2 FC12 .....................................................................................................................................656
27.6.3.3 OB10.....................................................................................................................................658
27.6.3.4 OB1 and OB80......................................................................................................................660
27.6.4 Example of Handling Time-Delay Interrupts.........................................................................662
27.6.4.1 Structure of the User Program "Time-Delay Interrupts"........................................................662
27.6.4.2 OB20.....................................................................................................................................664
27.6.4.3 OB1.......................................................................................................................................666
27.6.4.4 Example of Masking and Unmasking Synchronous Errors ..................................................668
27.6.4.5 Example of Disabling and Enabling Interrupts and Asynchronous Errors
(SFC39 and SFC40) .............................................................................................................672
27.6.4.6 Example of the Delayed Processing of Interrupts and Asynchronous Errors
(SFC41 and SFC42) .............................................................................................................673
27.7 Accessing Process and I/O Data Areas................................................................................674
27.7.1 Accessing the Process Data Area ........................................................................................674
27.7.2 Accessing the Peripheral Data Area.....................................................................................676
27.8 Setting the Operating Behavior.............................................................................................678
27.8.1 Changing the Behavior and Properties of Modules ..............................................................679
27.8.2 Updating the Firmware (of the Operating System) in Modules and Submodules Offline.....681
27.8.3 Using the Clock Functions ....................................................................................................682
27.8.4 Using Clock Memory and Timers..........................................................................................683
Index ...................................................................................................................................................................685