SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-5
TABLE 12-4. Example: Loop with Delay
*
1
Table 1 Programs
01:
10
Sec. Execution Interval
01:
P87
Beginning of Loop
01:
6
Delay
02:
0
Loop Count
11:
P86
Do
01:
1
Call Subroutine 1
12:
P89
If X<=>F
01:
25
X Loc DAY
02:
3
>=
03:
6
F
04:
31
Exit Loop if true
13:
P95
End
14:
P87
Beginning of Loop
01:
1
Delay
02:
0
Loop Count
27:
P86
Do
01:
1
Call Subroutine 1
28:
P89
If X<=>F
01:
25
X Loc DAY
02:
3
>=
03:
16
F
04:
31
Exit Loop if true
29:
P95
End
30:
P87
Beginning of Loop
01:
6
Delay
02:
0
Loop Count
36:
P86
Do
01:
1
Call Subroutine 1
37:
P89
If X<=>F
01:
25
X Loc DAY
02:
3
>=
03:
5
F
04:
32
Exit Loop if false
38:
P95
End
39:
P
End Table 1
*
3
Table 3 Subroutines
01:
P85
Beginning of Subroutine
01:
1
Subroutine Number
02:
P18
Time
01:
2
Hours into current year
(maximum 8784)
02:
24
Mod/by
03:
25
Loc [:DAY ]
03:
P95
End
*** 88 IF X COMPARED TO Y ***
FUNCTION
This Instruction compares two input locations
and, if the result is true, executes the specified
Command. The comparison codes are given in
Table 12-5.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Input location for X
02:
2
Comparison code
(Table 12-5)
03:
4
Input location for Y
04:
2
Command (Table 3.8-1)
TABLE 12-5. Comparison Codes
Parameter 1
Function
1
IF X = Y
2
IF X
≠
Y
3
IF X
≥
Y
4
IF X < Y
*** 89 IF X COMPARED TO F ***
FUNCTION
This Instruction compares an input location to a
fixed value and, if the result is true, performs
the specified Command. The comparison codes
are given in Table 12-5.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
4
Input location for X
02:
2
Comparison code
(Table 12-5)
03:
FP
Fixed value
04:
2
Command (Table 3.8-1)
*** 90 STEP LOOP INDEX ***
FUNCTION
When used within a Loop (Instruction 87),
Instruction 90 will increment the index counter
by a specified amount after the first time
through the loop, thus affecting all indexed
input location parameters in subsequent
instructions. For example, if 4 is specified, the
index counter will count up by 4 (0,4,8,12,...)
inside the loop. Instruction 90 does not affect
the loop counter which still counts by 1.
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 ...