
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-4
seconds; the rest of the time one minute
between samples is sufficient. The execution
interval is set to 10 seconds; when a one minute
sample rate is desired, a delay of 6 (6 x 10s =
60s) is used in the loop.
TABLE 12-4. Example: Loop with Delay
1: Beginning of Loop (P87)
1:
6
Delay
2:
0
Loop Count
2: Do (P86)
1:
1
Call Subroutine 1
3: If (X<=>F) (P89)
1:
25
X Loc [ Day ]
2:
3
>=
3:
6
F
4:
31
Exit Loop if True
4: End (P95)
5: Beginning of Loop (P87)
1:
1
Delay
2:
0
Loop Count
6: Do (P86)
1:
1
Call Subroutine 1
7: If (X<=>F) (P89)
1:
25
X Loc [ Day ]
2:
3
>=
3:
16
F
4:
31
Exit Loop if True
8: End (P95)
9: Beginning of Loop (P87)
1:
6
Delay
2:
0
Loop Count
10: Do (P86)
1:
1
Call Subroutine 1
11: If (X<=>F) (P89)
1:
25
X Loc [ Day ]
2:
3
>=
3:
5
F
4:
32
Exit Loop if False
12: End (P95)
*Table 3 Subroutines
1: Beginning of Subroutine (P85)
1:
1
Subroutine 1
2: Time (P18)
1:
2
Hours into current year
{maximum 8784)
2:
24
Mod/By
3:
25
Loc [ Day ]
3: End (P95)
*** 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 12-2)
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 12-2)
*** 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
Summary of Contents for CR23X
Page 8: ...CR23X TABLE OF CONTENTS vi This is a blank page ...
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 ...
Page 34: ...CR23X MICROLOGGER OVERVIEW OV 24 This is a blank page ...
Page 50: ...SECTION 1 FUNCTIONAL MODES 1 16 This is a blank page ...
Page 72: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 8 This is a blank page ...
Page 88: ...SECTION 6 9 PIN SERIAL INPUT OUTPUT 6 10 This is a blank page ...
Page 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 22 This is a blank page ...
Page 134: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 24 This is a blank page ...
Page 164: ...SECTION 9 INPUT OUTPUT INSTRUCTIONS 9 30 This is a blankpage ...
Page 188: ...SECTION 11 OUTPUT PROCESSING INSTRUCTIONS 11 8 This is a blankp age ...
Page 221: ...SECTION 13 CR23X MEASUREMENTS 13 21 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Page 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 ...
Page 240: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 14 This is a blank page ...
Page 244: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Page 268: ...APPENDIX B CONTROL PORT SERIAL I O INSTRUCTION 15 B 24 This is a blank page ...
Page 276: ...APPENDIX C BINARY TELECOMMUNICATIONS C 8 This is a blank page ...
Page 278: ...This is a blank page ...
Page 282: ...APPENDIX F DYNAGAGE SAP FLOW P67 F 4 This is a blank page ...
Page 299: ...APPENDIX I TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Page 300: ...This is a blank page ...
Page 302: ...This is a blank page ...
Page 308: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Page 324: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Page 340: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Page 342: ...This is a blank page ...
Page 373: ...This is a blank page ...