12-1
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
TABLE 12-1. Flag Description
Flag 0
Output Flag
Flag 1 to 8
User Flags
Flag 11 to 18
User Flags
Flag 9
Intermediate Processing
Disable Flag
TABLE 12-2. Command Codes
0
Go to end of program table
3
1-9, 79-99
Call Subroutine 1-9, 79-99
1
10-19
Set Flag 0-9 high
111-118
Set Flag 11 to 18 high
20-29
Set Flag 0-9 low
211-218
Set Flag 11 to 18 low
30
Then Do
31
Exit loop if true
32
Exit loop if false
40
RS232 Port On
41-48
Set Port 1-8 high
2
49
Set Switched 12 V high
50
RS232 Port Off
51-58
Set Port 1-8 low
2
59
Set Switched 12 V low
61-68
Toggle Port 1-8
2
71-78
Pulse Port 1-8
2
1
95, 96, 97, and 98 are special subroutines
which can be called by Control ports 5, 6, 7,
and 8 going high; see Instruction 85 for
details.
2
The ports can be indexed to the loop
counter.
3
If this command is executed while in a
subroutine, execution jumps directly to the
end of the table that called the subroutine.
*** 83 IF CASE X < F ***
FUNCTION
If the value in the location specified in the Begin
Case Instruction 93 is less than the fixed value
entered as parameter 1 then execute the
command in parameter 2 then go to the end of
the case statement when the next Instruction 83
occurs. Else, continue to next instruction. See
Instruction 93 for an example.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
FP
Fixed value
02:
2
Command
*** 85 LABEL SUBROUTINE ***
FUNCTION
This instruction marks the start of a subroutine.
Subroutines are a series of instructions
beginning with Instruction 85 and terminated
with Instruction 95, END. All subroutines must
be placed in Table 3 (Subroutine Table). When
a subroutine is called by a command in a
Program Control Instruction, the subroutine is
executed, then program flow continues with the
instruction following that which called the
subroutine.
Subroutines may be called from within other
subroutines (nested). The maximum nesting
level for subroutines is 7 deep. Attempts to
nest more than 7 deep will not be detected at
compilation, but will result in a run time error.
When the sixth subroutine attempts to call the
seventh, error 31 will be displayed. Execution
will not branch to the seventh subroutine; it will
continue with the Instruction following that
calling the subroutine.
98, 97, 96, 95 PORT INTERRUPT
SUBROUTINES. If subroutine 98 (97, 96, 95)
is included in Table 3 then Port 8 (7, 6, 5) will
cause an interrupt on the rising edge and the
subroutine will be executed. These subroutines
can also be called from any table.
These subroutines can interrupt Table 1 or 2 or
can occur when neither Table is being
executed. When the port activating 95, 96, 97,
or 98 goes high during the execution of a table,
the instruction being executed is completed
before the subroutine is run (i.e., it is as if the
subroutine was called by the next instruction).
The priority is 98, 97, 96, 95, Table 1, Table 2.
If all four interrupt subroutines are pending
(ports go high at the same time or go high
during the execution of the same instruction in
one of the tables), 98 will be executed first, then
97, then 96, and finally 95.
While 95, 96, 97, or 98 is being executed as a
result of the respective port going high, that port
interrupt is disabled (i.e., the subroutine must be
completed before the port going high will have
any effect).
Содержание CR23X
Страница 8: ...CR23X TABLE OF CONTENTS vi This is a blank page ...
Страница 12: ...CR23X MICROLOGGER OVERVIEW OV 2 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE OV1 1 CR23X Micrologger ...
Страница 34: ...CR23X MICROLOGGER OVERVIEW OV 24 This is a blank page ...
Страница 50: ...SECTION 1 FUNCTIONAL MODES 1 16 This is a blank page ...
Страница 72: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 8 This is a blank page ...
Страница 88: ...SECTION 6 9 PIN SERIAL INPUT OUTPUT 6 10 This is a blank page ...
Страница 103: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 15 CR23X AVW1 FIGURE 7 15 2 Well Monitoring Example ...
Страница 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 22 This is a blank page ...
Страница 134: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 24 This is a blank page ...
Страница 164: ...SECTION 9 INPUT OUTPUT INSTRUCTIONS 9 30 This is a blankpage ...
Страница 188: ...SECTION 11 OUTPUT PROCESSING INSTRUCTIONS 11 8 This is a blankp age ...
Страница 221: ...SECTION 13 CR23X MEASUREMENTS 13 21 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Страница 229: ...14 3 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE 14 3 1 CR23X Battery Pack and Panel ...
Страница 239: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 13 S A N Y O FIGURE 14 11 6 Removal of band clamp and battery ...
Страница 240: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 14 This is a blank page ...
Страница 244: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Страница 268: ...APPENDIX B CONTROL PORT SERIAL I O INSTRUCTION 15 B 24 This is a blank page ...
Страница 276: ...APPENDIX C BINARY TELECOMMUNICATIONS C 8 This is a blank page ...
Страница 278: ...This is a blank page ...
Страница 282: ...APPENDIX F DYNAGAGE SAP FLOW P67 F 4 This is a blank page ...
Страница 299: ...APPENDIX I TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Страница 300: ...This is a blank page ...
Страница 302: ...This is a blank page ...
Страница 308: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Страница 324: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Страница 340: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Страница 342: ...This is a blank page ...
Страница 373: ...This is a blank page ...