3-1
SECTION 3. INSTRUCTION SET BASICS
The instructions used to program the CR23X are divided into four types: Input/Output (I/O), Processing,
Output Processing, and Program Control. I/O Instructions are used to make measurements and store
the readings in input locations or to initiate analog or digital port output. Processing Instructions perform
mathematical operations using data from Input Storage locations and place the results back into
specified Input Storage locations. Output Processing Instructions provide a method for generating time
or event dependent data summaries from processed sensor readings residing in specified Input Storage
locations. Program Control Instructions are used to direct program execution based on time and or
conditional tests on input data and to direct output to external devices.
Instructions are identified by a number. There are a fixed number of parameters associated with each
instruction to give the CR23X the information required to execute the instruction. The set of instructions
available in the CR23X is determined by the CR23X Operating System.
3.1 PARAMETER DATA TYPES
There are 3 different data types used for
Instruction parameters: Floating Point (FP), 4
digit integers (4), and 2 digit integers (2). The
parameter data type is identified in the listings
of the instruction parameters in Sections 9-12.
Different data types are used to allow the
CR23X to make the most efficient use of its
memory.
Floating Point parameters are used to enter
numeric constants for calibrations or
mathematical operations. While it is only
possible to enter 5 digits (mag.00001 to
+99999.), the internal format has a much
greater range (1x10
-19
to 9x10
18
, Section
2.2.1). Instruction 30 can be used to enter a
number in scientific notation into an input
location.
3.2 REPETITIONS (Reps)
The repetitions parameter on many of the I/O,
Processing, and Output Processing Instructions
is used to repeat the instruction on a number of
sequential Input Channels or Input Storage
locations. For example, if you are making 4
differential voltage measurements on the same
voltage range, wire the inputs to sequential
channels and enter the Differential Voltage
Measurement Instruction once with 4 repetitions,
rather than entering 4 separate measurement
instructions. The instruction will make 4
measurements starting on the specified channel
number and continuing through the 3 succeeding
differential channels. The results will be stored
in the specified input location and the 3
succeeding input locations. Averages for all 4
measurements can be calculated by entering the
Average Instruction with 4 repetitions.
When several of the same type of
measurements will be made, but the
calibrations of the sensors are different, it
requires less time to make the measurements
using one measurement with repetitions and
then apply the calibrations with a scaling array
(Inst. 53) than it does to enter the instruction
several times in order to use a different
multiplier and offset. This is due to set up and
calibration time for each measurement
instruction. However, if time is not a constraint,
separate instructions may make the program
easier to follow.
3.3 ENTERING NEGATIVE NUMBERS
Before or after keying in a number, press
C
or
"-" to change the number's sign. On floating
point numbers a minus sign (-) will appear to
the left of the number. Excitation voltages in
millivolts for I/O Instructions are 4 digit integers;
when
C
is keyed 2 minus signs (--) will
appear to the right of the number indicating a
negative excitation. Even though this display is
the same as that indicating an indexed input
location, (Section 3.4) there is no indexing effect
on excitation voltage.
3.4 INDEXING INPUT LOCATIONS AND
CONTROL PORTS
When used within a loop, the parameters for
input locations and the commands to set,
toggle, or pulse a port can be Indexed to the
loop counter. The loop counter is added to the
indexed value to determine the actual Input
Location or Port the instruction acts on.
Normally the loop counter is incremented by 1
after each pass through the loop. Instruction
90, Step Loop Index, allows the increment step
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 ...