SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-3
Note that if the Output Flag is set prior to
entering the loop in the above example, 10
values will be output. The first will be the
average of all the readings in locations 1-10
since the previous output. Because the
Intermediate locations are zeroed each time an
output occurs, the next nine values will be the
current values (samples at the time of output) of
locations 2-10.
Loops can be nested. Indexed locations within
nested loops are indexed to the inner most loop
that they are within. The maximum nesting
level in the CR10 is 9 deep. This applies to If
Then/Else comparisons and Loops or any
combination thereof. An If Then/Else
comparison which uses the Else Instruction
(94) counts as being nested 2 deep.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Delay
02:
4
Iteration count
The following example involves the use of the
Loop Instruction, without a delay, to perform a
block data transformation.
The user wants 1 hour averages of the vapor
pressure calculated from the wet- and dry-bulb
temperatures of 5 psychrometers. One
pressure transducer measurement is also
available for use in the vapor pressure
calculation.
1.
The input locations are assigned as follows:
a) pressure
Location 10
b) dry-bulb temperatures
Location 11-15
c)
wet-bulb temperatures
Location 16-20
d) calculated vapor pressure
Location 21-25
(Vapor pressure is written over the
wet-bulb temperatures.)
2.
The program flow is as follows:
a) Enter the Loop Instruction (#87) with
Delay=0 and iteration count=5.
b) Calculate the vapor pressure with
Instruction 57 using a normal location
entry of 10 for atmospheric pressure
and Indexed locations of 11, 16 and 16
for the dry-bulb, wet-bulb, and
calculated vapor pressure, respectively.
Summary of Contents for CR10 PROM
Page 2: ...This is a blank page ...
Page 4: ...This is a blank page ...
Page 9: ...CR10 TABLE OF CONTENTS v LIST OF TABLES LT 1 LIST OF FIGURES LF 1 INDEX I 1 ...
Page 10: ...CR10 TABLE OF CONTENTS vi This is a blank page ...
Page 14: ...CR10 OVERVIEW OV 2 ...
Page 15: ...CR10 OVERVIEW OV 3 FIGURE OV1 1 1 CR10 and Wiring Panel ...
Page 16: ...CR10 OVERVIEW OV 4 FIGURE OV1 1 2 CR10 Wiring Panel Instruction Access ...
Page 17: ...CR10 OVERVIEW OV 5 ...
Page 34: ...CR10 OVERVIEW OV 22 ...
Page 35: ...CR10 OVERVIEW OV 23 FIGURE OV6 1 1 Data Retrieval Hardware Options ...
Page 36: ...CR10 OVERVIEW OV 24 OV7 SPECIFICATIONS ...
Page 37: ...CR10 OVERVIEW OV 25 ...
Page 38: ...CR10 OVERVIEW OV 26 ...
Page 51: ...SECTION 1 FUNCTIONAL MODES 1 13 This is a blank page ...
Page 53: ...2 2 ...
Page 62: ...SECTION 3 INSTRUCTION SET BASICS 3 6 ...
Page 63: ...SECTION 3 INSTRUCTION SET BASICS 3 7 ...
Page 68: ...SECTION 3 INSTRUCTION SET BASICS 3 12 This is a blank page ...
Page 74: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 6 ...
Page 88: ...6 5 FIGURE 6 6 1 Addressing Sequence for the RF Modem ...
Page 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 17 FIGURE 7 16 2 Well Monitoring Example ...
Page 132: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 13 This is a blank page ...
Page 197: ...SECTION 13 CR10 MEASUREMENTS 13 18 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Page 203: ...SECTION 13 CR10 MEASUREMENTS 13 24 This is a blank page ...
Page 215: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 12 This is a blank page ...
Page 218: ...APPENDIX A GLOSSARY A 3 and computers in a terminal mode fall in this category ...
Page 220: ...APPENDIX A GLOSSARY A 5 This is a blank page ...
Page 228: ...APPENDIX C BINARY TELECOMMUNICATIONS C 6 This is a blank page ...
Page 230: ...This is a blank page ...
Page 232: ...This is a blank page ...
Page 234: ...APPENDIX G CHANGING RAM OR PROM CHIPS G 2 FIGURE G 1 Disassembling CR10 ...
Page 236: ...APPENDIX G CHANGING RAM OR PROM CHIPS G 4 FIGURE G 3 Jumper Settings and Locations ...
Page 237: ...APPENDIX G CHANGING RAM OR PROM CHIPS G 5 This is a blank page ...