CR10 MeasurementAndControlModuleOperator'sManual
CR10 MeasurementAndControlModuleOperator'sManual
OPERATOR'S MANUAL
REVISION: 3/96
PROGRAMMING
1. FUNCTIONAL MODES
1.1 Program Tables - *1, *2, and *3 Modes ................................................................................. 1-1
1.2 Setting and Displaying the Clock - *5 Mode .......................................................................... 1-2
1.3 Displaying/Altering Input Memory, Flags, and Ports - *6 Mode ............................................. 1-3
1.4 Compiling and Logging Data - *0 Mode................................................................................. 1-4
1.5 Memory Allocation - *A .......................................................................................................... 1-4
1.6 Memory Testing and System Status - *B............................................................................... 1-6
1.7 *C Mode -- Security................................................................................................................ 1-7
1.8 *D Mode -- Save or Load Program ........................................................................................ 1-7
CR10 TABLE OF CONTENTS
DATA RETRIEVAL/COMMUNICATION
4. EXTERNAL STORAGE PERIPHERALS
4.1 On-Line Data Transfer - Instruction 96 .................................................................................. 4-1
4.2 Manually Initiated Data Output - *8 Mode.............................................................................. 4-3
4.3 Cassette Tape Option ............................................................................................................ 4-3
4.4 Printer Output Formats .......................................................................................................... 4-5
4.5 Storage Module (SM192/716)................................................................................................ 4-6
4.6 *9 Mode -- Storage Module Commands ................................................................................ 4-7
5. TELECOMMUNICATIONS
5.1 Telecommunications Commands .......................................................................................... 5-1
5.2 Remote Programming of the CR10 ....................................................................................... 5-4
ii
CR10 TABLE OF CONTENTS
PROGRAM EXAMPLES
7. MEASUREMENT PROGRAMMING EXAMPLES
7.1 Single-Ended Voltage - LI200S Silicon Pyranometer ............................................................ 7-1
7.2 Differential Voltage Measurement ......................................................................................... 7-2
7.3 Thermocouple Temperatures Using the Optional CR10TCR to Measure
the Reference Temperature................................................................................................... 7-3
7.4 Thermocouple Temperatures Using an External Reference Junction .................................. 7-3
7.5 107 Temperature Probe......................................................................................................... 7-4
7.6 207 Temperature and RH Probe ........................................................................................... 7-4
7.7 Anemometer with Photochopper Output................................................................................ 7-5
7.8 Tipping Bucket Rain Gage with Long Leads ......................................................................... 7-6
7.9 100 ohm PRT in 4 Wire Half Bridge....................................................................................... 7-6
7.10 100 ohm PRT in 3 Wire Half Bridge....................................................................................... 7-8
7.11 100 ohm PRT in 4 Wire Full Bridge ....................................................................................... 7-9
7.12 Pressure Transducer - 4 Wire Full Bridge ........................................................................... 7-10
7.13 Lysimeter - 6 Wire Full Bridge ............................................................................................. 7-11
7.14 227 Gypsum Soil Moisture Block......................................................................................... 7-13
7.15 Nonlinear Thermistor in Half Bridge (Model 101 Probe) ..................................................... 7-14
7.16 Water Level - Geokon's Vibrating Wire Pressure Sensor.................................................... 7-15
7.17 Paroscientific "T" Series Pressure Transducer.................................................................... 7-19
7.18 SDM Peripherals.................................................................................................................. 7-24
7.19 Paroscientific Pressure Transducer Processing.................................................................. 7-24
INSTRUCTIONS
9. INPUT/OUTPUT INSTRUCTIONS........................................................................................ 9-1
10. PROCESSING INSTRUCTIONS ...................................................................................... 10-1
11. OUTPUT PROCESSING INSTRUCTIONS ................................................................... 11-1
12. PROGRAM CONTROL INSTRUCTIONS ...................................................................... 12-1
iii
CR10 TABLE OF CONTENTS
MEASUREMENTS
13. CR10 MEASUREMENTS
13.1 Fast and Slow Measurement Sequence.............................................................................. 13-1
13.2 Single-Ended and Differential Voltage Measurements........................................................ 13-2
13.3 The Effect of Sensor Lead Length on the Signal Settling Time........................................... 13-3
13.4 Thermocouple Measurements ........................................................................................... 13-12
13.5 Bridge Resistance Measurements..................................................................................... 13-17
13.6 Resistance Measurements Requiring AC Excitation ......................................................... 13-21
13.7 Calibration Process............................................................................................................ 13-22
INSTALLATION
14. INSTALLATION AND MAINTENANCE
14.1 Protection from the Environment ......................................................................................... 14-1
14.2 Power Requirements ........................................................................................................... 14-1
14.3 Campbell Scientific Power Supplies .................................................................................... 14-2
14.4 Solar Panels......................................................................................................................... 14-5
14.5 Direct Battery Connection to the CR10WP Wiring Panel .................................................... 14-5
14.6 Vehicle Power Supply Connections..................................................................................... 14-5
14.7 Grounding ............................................................................................................................ 14-6
14.8 Wiring Panel......................................................................................................................... 14-7
14.9 Switched 12 Volt .................................................................................................................. 14-7
14.10 Use of Digital I/O Ports for Switching Relays....................................................................... 14-7
14.11 Maintenance......................................................................................................................... 14-9
APPENDICES
A. GLOSSARY ................................................................................................................................ A-1
B. CR10 PROM SIGNATURE AND OPTIONAL SOFTWARE
B.1 PROM Signature and Version................................................................................................ B-1
B.2 Available PROMs/Library Options ......................................................................................... B-1
B.3 Description of Library Options Not in Standard Manual ........................................................ B-2
C. BINARY TELECOMMUNICATIONS
C.1 Telecommunications Command with Binary Responses ......................................................C-1
C.2 Final Storage Format .............................................................................................................C-2
C.3 Generation of Signature.........................................................................................................C-4
iv
CR10 TABLE OF CONTENTS
v
CR10 TABLE OF CONTENTS
vi
SELECTED OPERATING DETAILS
1. Storing Data - Data are stored in Final 7. ALL memory can be erased and the
Storage only by Output Processing CR10 completely reset by entering 1986 for
Instructions and only when the Output Flag the number of bytes left in Program
is set. (Sections OV4.1.1 and OV4.2.1) Memory. (Section 1.5.2)
2. Storing Date and Time - Date and time 8. The set of instructions available in the
are stored with the data in Final Storage CR10 is determined by the PROM
ONLY if the Real Time Instruction 77 is (Programmable Read Only Memory) that it
used. (Section 11) is equipped with. Standard and optional
software are identified in Appendix B. If
3. Data Transfer - On-line data transfer from you have ordered optional software that is
Final Storage to peripherals (printer, not covered in the standard manual, the
Storage Module, etc.) occurs only if documentation is in Appendix H.
enabled with Instruction 96 in the
datalogger program. (Sections 4 and 12) 9. Radiotelemetry Users - As of February,
1990, CR10 PROMs no longer contain
4. Final Storage Resolution - All Input radio frequency interface software. That
Storage values are displayed (*6 mode) as function is now contained in the RF95
high resolution with a maximum value of Modem. To make measurements at a
99999. However, the default resolution for phone-to-RF base station using the
data stored in Final Storage is low RF100/RF200 Radio and RF95 Modem,
resolution, maximum value of 6999. current CR10 software is required. A CR10
Results exceeding 6999 are stored as 6999 with old software can be used with the new
unless Instruction 78 is used to store the RF95 in the "RF95-ME" state, but the
values in Final Storage as high resolution datalogger loses the "callback" capability as
values. (Sections 2.2.1 and 11) well as the SDC function.
5. Floating Point Format - The computations 10. Changes with the release of OS10-0.1:
performed in the CR10 use floating point
arithmetic. CSI's 4 byte floating point Wind Vector Instruction 69 has replaced
numbers contain a 23 bit binary mantissa Instruction 76. The options to do sub-
and a 6 bit binary exponent. The largest interval averaging of the standard deviation
and smallest numbers that can be stored of wind direction, σ(θ), and to calculate σ(θ)
and processed are 9 x 1018 and 1 x 10-19, using the Yamartino algorithm have been
respectively. (Section 2.2.2) added to the previous options (Section 9).
vi
CAUTIONARY NOTES
1. Damage will occur to the analog input 5. Voltages in excess of 5.5 volts applied to a
circuitry if voltages in excess of ±16 V are control port can cause the CR10 to
applied for a sustained period. Voltages in malfunction.
excess of ±5V will cause errors and
possible overranging on other analog input 6. Voltage pulses can be counted by CR10
channels. Pulse Counters configured for High
Frequency Pulses. However, when the
2. When using the CR10 with the PS12LA, pulse is actually a low frequency signal
remember that the sealed lead acid (below about 10 Hz) AND the positive
batteries are permanently damaged if voltage excursion exceeds 5.6 VDC, the 5
discharged below 10.5 V. The cells are VDC supply will start to rise, upsetting all
rated at a 7 Ahr capacity but experience a analog measurements.
slow discharge even in storage. It is
advisable to maintain a continuous charge Pulses whose positive voltage portion
on the PS12LA battery pack, whether in exceed 5.6 VDC with a duration longer than
operation or storage (Section 14). 100 milliseconds need external
conditioning. See the description of the
3. When connecting power to the CR10, first Pulse count instruction in Section 9 for
connect the positive lead from the power details on the external conditioning.
source to the 12 V terminal. Then connect
the negative lead to G. Connecting these 7. The CR10 module is sealed and contains
leads in the reverse order creates the desiccant to protect against excess
possibility of a short (Section 14). humidity. The Wiring Panel and the
connections between the Wiring Panel and
4. There are frequent references in this the CR10 are still susceptible to humidity.
manual to Storage Modules. The Storage To prevent corrosion at these points,
Modules referred to are the SM192 and additional desiccant must be placed inside
SM716. The old SM16 and SM64 Storage the enclosure. To reduce vapor transfer
Modules will NOT work with the CR10 into the enclosure, plug the cable entry
without a specially modified cable. In conduit with Duct Seal, a putty-type sealant
addition, the SM16 and SM64 cannot available at most electrical supply houses.
perform many of the functions that the DO NOT totally seal enclosures equipped
SM192 and SM716 are capable of with lead acid batteries. Hydrogen
performing. concentration may build up to explosive
levels.
vii
CR10 MEASUREMENT AND CONTROL MODULE OVERVIEW
Campbell Scientific Inc. provides four aids to understanding and operating the CR10:
1. PCTOUR
2. This Overview
3. The CR10 Operator's Manual
4. The CR10 Prompt Sheet
PCTOUR is a computer-guided tour of CR10 operation and the use of the PC208 Datalogger Support
Software. Much of the material in this Overview is covered in PCTOUR. A copy of PCTOUR is
included with every datalogger or PC208 order.
This Overview introduces the concepts required to take advantage of the CR10's capabilities. Hands-
on programming examples start in Section OV5. Working with a CR10 will help the learning process, so
don't just read the examples, do them. If you want to start this minute, go ahead and try the examples,
then come back and read the rest of the Overview.
The sections of the Operator's Manual which should be read to complete a basic understanding of the
CR10 operation are the Programming Sections 1-3, the portions of the data retrieval Sections 4 and 5
appropriate to the method(s) you are using (see OV6), and Section 14 which covers installation and
maintenance.
Section 6 covers details of serial communications. Sections 7 and 8 contain programming examples.
Sections 9-12 have detailed descriptions of each programming instruction, and Section 13 goes into
detail on the CR10 measurement procedures.
The Prompt Sheet is an abbreviated description of the programming instructions. Once familiar with the
CR10, it is possible to program it using only the Prompt Sheet as a reference, consulting the manual if
further detail is needed.
Read the Selected Operating Details and Cautionary Notes at the front of the Manual before using the
CR10.
OV-1
CR10 OVERVIEW
OV-2
CR10 OVERVIEW
OV-3
CR10 OVERVIEW
OV-4
CR10 OVERVIEW
OV-5
CR10 OVERVIEW
OV-6
CR10 OVERVIEW
OV-7
CR10 OVERVIEW
INPUT/OUTPUT
INSTRUCTIONS
FINAL STORAGE
OV-8
CR10 OVERVIEW
OV2.2 CR10 INSTRUCTION TYPES Final processing occurs only when the
Output Flag is high. The Output
Figure OV2.1-1 illustrates the use of three
Processing Instructions check the Output
different instruction types which act on data.
Flag. If the flag is high, final values are
The fourth type, Program Control, is used to
calculated and output. With the Average,
control output times and vary program
the totals are divided by the number of
execution. Instructions are identified by
samples and the resulting averages sent to
numbers.
Final Storage. Intermediate locations are
zeroed and the process starts over. The
1. INPUT/OUTPUT INSTRUCTIONS (1-28, Output Flag, Flag 0, is set high by a
101-104, Section 9) control the terminal Program Control Instruction which must
strip inputs and outputs (the sensor is the precede the Output Processing Instructions
source, Figure OV1.1-2), storing the results in the user entered program.
in Input Storage (destination). Multiplier
and offset parameters allow conversion of
4. PROGRAM CONTROL INSTRUCTIONS
linear signals into engineering units. The
(83-98, Section 12) are used for logic
Digital I/O Ports are also addressed with
decisions and conditional statements. They
I/O Instructions.
can set flags, compare values or times,
execute loops, call subroutines, conditionally
2. PROCESSING INSTRUCTIONS (30-66, execute portions of the program, etc.
Section 10) perform numerical operations
on values located in Input Storage (source)
OV2.3 PROGRAM TABLES, EXECUTION
and store the results back in Input Storage
INTERVAL AND OUTPUT INTERVALS
(destination). These instructions can be
used to develop high level algorithms to Programs are entered in Tables 1 and 2.
process measurements prior to Output Subroutines, called from Tables 1 and 2, are
Processing. entered in Subroutine Table 3. The size of
each table is flexible, limited only by the total
3. OUTPUT PROCESSING INSTRUCTIONS amount of program memory. If Table 1 is the
(69-82, Section 11) are the only only table programmed, the entire program
instructions which store data in Final memory is available for Table 1.
Storage (destination). Input Storage
(source) values are processed over time to Table 1 and Table 2 have independent
obtain averages, maxima, minima, etc. execution intervals, entered in units of seconds
There are two types of processing done by with an allowable range of 1/64 to 8191
Output Instructions: Intermediate and seconds. Subroutine Table 3 has no execution
Final. interval; subroutines are only executed when
called from Table 1 or 2.
Intermediate processing normally takes
place each time the instruction is executed. OV2.3.1 THE EXECUTION INTERVAL
For example, when the Average Instruction
The execution interval specifies how often the
is executed, it adds the values from the
program in the table is executed, which is
input locations being averaged to running
usually determined by how often the sensors
totals in Intermediate Storage. It also keeps
are to be measured. Unless two different
track of the number of samples.
measurement rates are needed, use only one
table. A program table is executed sequentially
starting with the first instruction in the table and
proceeding to the end of the table.
OV-9
CR10 OVERVIEW
Each instruction in the table requires a finite OV3. COMMUNICATING WITH CR10
time to execute. If the execution interval is less
than the time required to process the table, an An external device must be connected to the
execution interval overrun occurs; the CR10 CR10's Serial I/O port to communicate with the
finishes processing the table and waits for the CR10. This may be either Campbell Scientific's
next execution interval before initiating the portable CR10KD Keyboard Display or a
table. When an overrun occurs, decimal points computer/terminal.
are shown on either side of the G on the display
in the LOG mode (*0). Overruns and table The CR10KD is powered by the CR10 and
priority are discussed in Section 1.1. connects directly to the serial port via the SC12
cable (supplied with the CR10KD). No
OV2.3.2. THE OUTPUT INTERVAL interfacing software is required.
The interval at which output occurs is To communicate with any device other than the
independent from the execution interval, other CR10KD, the CR10 enters its Telecom-
than the fact that it must occur when the table is munications Mode and responds only to valid
executed (e.g., a table cannot have a 10 minute telecommunications commands. Within the
execution interval and output every 15 Telecommunications Mode, there are 2 "states";
minutes). the Telecommunications Command state and the
Remote Keyboard state. Communication is
A single program table can have many different established in the Telecommunications command
output intervals and conditions, each with a state. One of the commands is to enter the
unique data set (Output Array). Program Remote Keyboard state.
Control Instructions are used to set the Output
Flag. The Output Processing Instructions The Remote Keyboard state allows the
which follow the instruction setting the Output keyboard of the computer/terminal to act like
Flag determine the data output and its the CR10KD keyboard. Various datalogger
sequence. Each additional Output Array is modes may be entered, including the mode in
created by another Program Control Instruction which programs may be keyed in to the CR10
checking a output condition, followed by Output from the computer/terminal.
Processing Instructions defining the data set to
output. Campbell Scientific's PC208 Datalogger
Support Software facilitates the use of IBM
PC/XT/AT/PS-2's and compatibles for
communicating with the CR10. This package
OV-10
CR10 OVERVIEW
contains a program editor (EDLOG), a terminal To establish the communication link between
emulator (GraphTerm), telecommunications the computer and the CR10, the user may
(TELCOM), a data reduction program (SPLIT), either select the T option and send carriage
and programs to retrieve data from both returns as described above or select the "C"
generations of Campbell Scientific's Storage option to "Call" the station (see PC208
Modules (SMREAD and SMCOM). Operator's Manual). Once the link is active,
issue the "7H" command to enter the Remote
To participate in the programming examples Keyboard State.
(Section OV5) you must communicate with the
CR10. Read Section OV3.1 if the CR10KD is OV3.3 ASCII TERMINAL OR COMPUTER WITH
being used, Section OV3.2 if the PC208 TERMINAL EMULATOR
software is being used, or Section 3.3 and
Devices which can be used to communicate
Section 5 if some other computer or terminal is
with the CR10 include standard ASCII terminals
being used.
and computers programmed to function as a
terminal emulator.
OV3.1 CR10 KEYBOARD/DISPLAY
The SC12 cable (supplied with the CR10KD) is OV3.3.1 COMPUTER/TERMINAL
used to connect the Keyboard/Display to the 9 REQUIREMENTS
pin Serial I/O port on the CR10.
The basic requirements are:
If the Keyboard/Display is connected to the 1. There must be an asynchronous serial port
CR10 prior to being powered up, the "HELLO" to transmit and receive characters.
message is displayed while the CR10 checks 2. Communication protocol must be matched
memory. The size of the usable system for the two devices.
memory is then displayed (96 for 96K bytes of 3. The proper cable/interface must be used
memory). When the CR10KD is plugged in between the serial ports.
after the CR10 has powered up, the display is 4. A computer must be programmed to
meaningless until "*" is pressed to enter a function as a terminal.
mode.
While the connection between the
computer/terminal and the CR10 may be via
OV3.2 USING THE PC208 TERMINAL
modem (phone, RF, or short haul), the most
EMULATOR (GRAPHTERM)
frequently used device for a short connection is
For IBM compatible computers, the PC208 the SC32A Optically Isolated RS232 Interface.
software contains a terminal emulator program
called GraphTerm. When using GraphTerm, Most computer/terminal devices require RS232
the baud rate, port, and modem types are input logic levels of -5V for logic low and +5V
specified and stored in a file for future use. for logic high. Logic levels from the CR10's
serial I/O port are 0V for logic low and +5V for
The simplest and most common interface is the logic high.
SC32A Optically Isolated RS232 Interface. The
SC32A converts and optically isolates the The SC32A converts and optically isolates the
voltages passing between the CR10 and the voltages passing between the CR10 and the
external terminal device. external terminal device. The SC32A is
configured as Data Communications Equipment
The SC12 Two Peripheral cable which comes (DCE) for direct connection to Data Terminal
with the SC32A is used to connect the serial I/O Equipment (DTE) which includes most
port of the CR10 to the 9 pin port of the SC32A computers and terminals.
labeled "Datalogger". Connect the
"Terminal/Printer" port of the SC32A to the The SC12 Two Peripheral cable which comes
serial port of the computer with a straight 25 pin with the SC32A is used to connect the serial I/O
cable or, if the computer has a 9 pin serial port, port of the CR10 to the 9 pin port of the SC32A
a standard 9 to 25 pin adapter cable. labeled "Datalogger". Connect the
"Terminal/Printer" port of the SC32A to the
serial port of the terminal with a user supplied
OV-11
CR10 OVERVIEW
straight cable with the proper connectors by first keying *, then the mode number or
(Campbell Scientific SC25PS or equivalent for letter. Table OV4.1-1 lists the CR10 Modes.
a 25 pin serial port configured DTE).
OV-12
CR10 OVERVIEW
TABLE OV4.1-1. * Mode Summary some keys available in addition to those found on
the CR10KD. Table OV4.2-2 lists these keys.
Key Mode
*0 LOG data and indicate active Tables TABLE OV4.2-2. Additional Keys Allowed in
*1 Program Table 1 Telecommunications
*2 Program Table 2
*3 Program Table 3, subroutines only Key Action
*5 Display/set real time clock
*6 Display/alter Input Storage data, - Change Sign, Index (same as C)
toggle flags or control ports. CR Enter/advance (same as A)
*7 Display Final Storage data : Colon (used in setting time)
*8 Final Storage data transfer to peripheral S or ^S Stops transmission of data (10
*9 Storage Module commands second time-out; any character
*A Memory allocation/reset restarts)
*B Signature/status C or ^C Aborts transmission of Data
*C Security
*D Save/load Program OV4.3 PROGRAMMING SEQUENCE
In routine applications, the CR10 measures
OV4.2 KEY DEFINITION sensor output signals, processes the
Keys and key sequences have specific measurements over some time interval and
functions when using the CR10KD keyboard or stores the processed results. A generalized
a computer/terminal in the remote keyboard programming sequence is:
state (Section 5). Table OV4-2 lists these
functions. In some cases, the exact action of a 1. Enter the execution interval. In most cases,
key depends on the mode the CR10 is in and is the execution interval is determined by the
described with the mode in the manual. desired sensor scan rate.
OV-13
CR10 OVERVIEW
determined by the order of the Output channels). Parameter 4 specifies the Input
Processing Instructions in the table. Storage location in which to store
measurements from the first thermistor. If
6. Repeat steps 4 through 6 for additional location 5 were used and the first probe was on
outputs on different intervals or conditions. channel 1, the temperature of the thermistor on
channel 1 would be stored in input location 5,
NOTE: The program must be executed for the temperature from channel 2 in input location
output to occur. Therefore, the interval at 6, etc.
which the Output Flag is set must be evenly
divisible by the execution interval. For Detailed descriptions of the instructions are
example, with a 2 minute execution interval given in Sections 9-12. Entering an instruction
and a 5 minute output interval, the program into a program table is described in OV5.
will only be executed on the even multiples
of the 5 minute intervals, not on the odd. OV4.5 ENTERING A PROGRAM
Data will be output every 10 minutes Programs are entered into the CR10 in one of
instead of every 5 minutes. three ways:
Execution intervals and output intervals set with 1. Keyed in using the CR10 keyboard.
Instruction 92 are synchronized with real time 2. Loaded from a pre-recorded listing using
starting at midnight. the *D Mode. There are 3 types of
storage/input:
OV4.4 INSTRUCTION FORMAT a. Stored on disk/sent from computer
(PC208 software GraphTerm and
Instructions are identified by an instruction EDLOG).
number. Each instruction has a number of b. Stored/loaded from SM192/716
parameters that give the CR10 the information Storage Module.
it needs to execute the instruction. 3. Loaded from internal PROM (special soft-
ware) or Storage Module upon power-up.
The CR10 Prompt Sheet has the instruction
numbers in red, with the parameters briefly A program is created by keying it directly into
listed in columns following the description. the datalogger as described in Section OV5, or
Some parameters are footnoted with further on a PC using the PC208 Datalogger Support
description under the "Instruction Option Software.
Codes" heading.
EDLOG and GraphTerm are PC208 Software
For example, Instruction 73 stores the programs used to develop and send programs to
maximum value that occurred in an Input Campbell Scientific dataloggers. EDLOG is an
Storage location over the output interval. The editor for writing and documenting programs for
instruction has three parameters (1) Campbell Scientific dataloggers. Program files
REPetitionS, the number of sequential Input developed with EDLOG can be downloaded directly
Storage locations on which to find maxima, (2) to the CR10 using GraphTerm. GraphTerm
TIME, an option of storing the time of supports communication via direct wire, telephone,
occurrence with the maximum value, and (3) or Radio Frequency (RF).
LOC the first Input Storage location operated
on by the Maximum Instruction. The codes for Programs on disk can be copied to a Storage
the TIME parameter are listed in the "Instruction Module with SMCOM. Using the *D Mode to
Option Codes". save or load a program from a Storage Module
is described in Section 1.8.
The repetitions parameter specifies how many
times an instruction's function is to be repeated. It is possible (with special software) to create a
For example, four 107 thermistor probes may be PROM (Programmable Read Only Memory)
measured with a single Instruction 11, Temp- that contains a datalogger program. With this
107, with four repetitions. Parameter 2 specifies PROM installed in the datalogger, the program
the input channel of the first thermistor (the will automatically be loaded and run when the
probes must be connected to sequential
OV-14
CR10 OVERVIEW
Display Explanation
HELLO On power-up, the CR10
displays "HELLO" while it
checks the memory (this
display occurs only with the
CR10KD).
OV-15
CR10 OVERVIEW
OV-16
CR10 OVERVIEW
OV-17
CR10 OVERVIEW
Parameter 2 is the voltage range to use when It's a good idea to have both the manual and
making the measurement. The output of a type the Prompt Sheet handy when going through
T thermocouple is approximately 40 microvolts this example. You can find the program
per degree C difference in temperature instructions and parameters on the Prompt
between the two junctions. The ±2.5 mV scale Sheet and can read their complete definitions in
will provide a range of +2500/40 = +62.5 oC the manual.
(i.e., this scale will not overrange as long as the
measuring junction is within 62.5 oC of the To obtain daily output, the If Time instruction is
panel temperature). The resolution of the ±2.5 again used to set the Output Flag and is
mV range is 0.33 µV or 0.008 oC. followed by the Output Instructions to store time
and the daily maximum and minimum
Parameter 3 is the analog input channel on temperatures and the time each occurs.
which to make the first, and in this case only,
measurement. Any Program Control Instruction which is used
to set the Output Flag high will set it low if the
Parameter 4 is the code for the type of conditions are not met for setting it high.
thermocouple used. This information is located Instruction 92 above sets the Output Flag high
on the Prompt Sheet or in the description of every hour. The Output Instructions which
Instruction 14 in Section 9. The code for a type follow do not output every hour because they
T (copper-constantan) thermocouple is 1. are preceded by another Instruction 92 which
sets the Output Flag high at midnight (and sets
Parameter 5 is the Input Storage location in it low at any other time). This is a unique
which the reference temperature is stored. feature of Flag 0. The Output Flag is set low at
Parameter 6 is the Input Storage location in the start of each table (Section 3.7).
which to store the measurement (or the first
measurement; e.g., if there are 5 repetitions OV5.3 EDITING AN EXISTING PROGRAM
and the first measurement is stored in location
When editing an existing program in the CR10,
3, the final measurement will be stored in
entering a new instruction inserts the
location 7). Parameters 7 and 8 are the
instruction; entering a new parameter replaces
multiplier and offset. A multiplier of 1 and an
the previous value.
offset of 0 outputs the reading in degrees C. A
multiplier of 1.8 and an offset of 32 converts the To insert an instruction, enter the program table
reading to degrees F. and advance to the position where the
instruction is to be inserted (i.e., P in the data
In this example, the sensor is measured once a portion of the display) key in the instruction
minute, and the day, time, and average number, and then key A. The new instruction
temperature are output every hour. Once a day will be inserted at that point in the table,
the day, time, maximum and minimum advance through and enter the parameters.
temperatures and the times they occur will be The instruction that was at that point and all
output. instructions following it will be pushed down to
follow the inserted instruction.
Final Storage data will be sent to Storage
An instruction is deleted by advancing to the
Module. Remember, all on-line data output to a
instruction number (P in display) and keying #D
peripheral device is accomplished with
(Table 4.2-1).
Instruction 96 (Sections 4.1 and 12).
To change the value entered for a parameter,
The first example described program entry one advance to the parameter and key in the
keystroke at a time. This example does not correct value then press A. Note that the new
show the "A" key. Remember, "A" is used to value is not entered until A is keyed.
enter and/or advance (i.e., between each line in
the example below). This format is similar to
the format used in EDLOG.
OV-18
CR10 OVERVIEW
SAMPLE PROGRAM 2
Instruction # Parameter
(Loc:Entry) (Par#:Entry) Description
*1 Enter Program Table 1
01:60 60 second (1 minute) execution interval
Key "#D" until 01:P00 Erase previous Program before
is displayed continuing.
01:P17 Measure internal temperature
01:1 Store temp in Location 1
02:P14 Measure thermocouple temperature
(differential)
01:1 1 repetition
02:1 Range code (2.5 mV, slow)
03:5 Input channel of TC
04:1 TC type: copper-constantan
05:1 Reference temp is stored in Location 1
06:2 Store TC temp in Location 2
07:1 Multiplier of 1
08:0 No offset
Instruction # Parameter
(Loc.:Entry) Par.#:Entry) Description
03:P92 If Time instruction
01:0 0 minutes into the interval
02:60 60 minute interval
03:10 Set Output Flag 0
The CR10 is programmed to measure the thermocouple temperature every sixty seconds. The
If Time instruction sets the Output Flag at the beginning of every hour. Next, the Output
Instructions for time and average are added.
04:P77 Output Time instruction
01:110 Store Julian day, hour, and minute
Instruction # Parameter
(Loc.:Entry) (Par.#:Entry) Description
06:P92 If Time instruction
01:0 0 minutes into the interval
02:1440 1440 minute interval (24 hrs.)
03:10 Set Output Flag 0
OV-19
CR10 OVERVIEW
Instruction # Parameter
(Loc.:Entry) (Par.#:Entry) Description
09: P74 Minimize instruction
01:1 One repetition
02:10 Output the time of the daily minimum in hours
and minutes
03:2 Data source is Input Storage Location 2.
The program to make the measurements and to send the desired data to Final Storage has
been entered. At this point, Instruction 96 is entered to enable data transfer from Final Storage
to Storage Module.
10:P96 Activate Serial Data Output.
1:71 Output Final Storage data to Storage Module.
The program is complete. The clock must now be set so that the date and time tags are
correct. (Here the example reverts back to the key by key format.)
Key Display Explanation
*5 00:21:32 Enter *5 Mode. Clock running but not set correctly.
A 05:00 Advance to location for year.
86 05:86 Key in year (1986).
A 05:0000 Enter and advance to location for Julian day.
197 05:197 Key in Julian day.
A 05:0021 Enter and advance to location for hours and minutes (24 hr. time).
1324 05:1324 Key in hrs.:min. (1:24 PM in this example).
A :13:24:01 Clock set and running.
*0 LOG 1 Exit *5, compile Table 1, commence logging data.
OV6. DATA RETRIEVAL OPTIONS 3) Retrieve the data over some form of
telecommunications link, whether it be RF,
There are several options for data storage and telephone, short haul modem, or satellite.
retrieval. These options are covered in detail in This can be performed under program
Sections 2, 4, and 5. Figure OV6.1-1 control or by regularly scheduled polling of
summarizes the various possible methods. the dataloggers. Campbell Scientific's
Regardless of the method used, there are three TELCOM program automates this process
general approaches to retrieving data from a for IBM PC/XT/AT/PS-2's and compatibles.
datalogger. Regardless of which method is used, the
1) On-line output of Final Storage data to a retrieval of data from the datalogger does NOT
peripheral storage device. On a regular erase those data from Final Storage. The data
schedule, that storage device is either remain in the ring memory until:
"milked" of its data or is brought back to the They are written over by new data (Section 2.1)
office/lab where the data is transferred to
the computer. In the latter case, a "fresh" Memory is reallocated (Section 1.5)
storage device is usually left in the field The power to the datalogger is turned off.
when the full one is taken so that data
collection can continue uninterrupted. Table OV6.1-1 lists the instructions used with
the various methods of data retrieval.
2) Bring a storage device to the datalogger
and milk all the data that has accumulated
in Final Storage since the last visit.
OV-20
CR10 OVERVIEW
OV-21
CR10 OVERVIEW
OV-22
CR10 OVERVIEW
OV-23
CR10 OVERVIEW
OV7. SPECIFICATIONS
OV-24
CR10 OVERVIEW
OV-25
CR10 OVERVIEW
OV-26
SECTION 1. FUNCTIONAL MODES
1.1 PROGRAM TABLES - *1, *2, AND *3 If the specified execution interval for a table is
MODES less than the time required to process that
table, the CR10 finishes processing the table
Data acquisition and processing functions are and waits for the next occurrence of the
controlled by user-entered instructions execution interval before again initiating the
contained in program tables. Programming can table (i.e., when the execution interval has
be separated into 2 tables, each having its own elapsed and the table is still executing, that
user-entered execution interval. A third table is execution is skipped). Since no advantage is
available for programming subroutines which gained in the rate of execution with this
may be called by instructions in Tables 1 or 2 or situation, it should be avoided by specifying an
by a special interrupt. The *1 and *2 Modes are execution interval adequate for the table
used to access Tables 1 and 2. The *3 Mode is processing time.
used to access Subroutine Table 3.
When a program table is first entered, the NOTE: Whenever the processing time of
display shows the table number in the ID field the user's program exceeds a table's
and 00 in the data field. Keying an "A" will execution interval, an error is logged in
advance the editor to the execution interval. If memory. The number of overrun errors
there is an existing program in the table, keying can be displayed and reset in the *B mode
an instruction location number prior to "A" will (Section 1.6) or using the Telecommunica-
advance directly to the instruction (e.g., 5 will tions A command (Section 5.1). An
advance to the fifth instruction in the table). overrun will also cause decimal points to
appear on both sides of the sixth digit of
1.1.1 EXECUTION INTERVAL the CR10KD. The decimal points will not
appear around the G in LOG if the *0 Mode
The execution interval is entered in units of is entered before the overrun occurs.
seconds as follows:
1/64 ...1 seconds, in multiples of 1/64 (0.015625) In some cases, the processing time may exceed
the execution interval only when the Output Flag
1 ......31.875 seconds, in multiples of 1/8 (0.125) is set and extra time is consumed by final Output
32 .....8191 seconds, in multiples of 1 second Processing. This may be acceptable. For
example, suppose it is desired to sample some
phenomena every 0.125 seconds and output
Execution of the table is repeated at the rate
processed data every 10 minutes. The
determined by this entry. The table will not be
processing time of the table which does this is
executed if 0 is entered. Entries less than 32
less than 0.125 seconds except when output
seconds will be rounded to a valid interval if
occurs (every 10 minutes). With final output the
they are within 1/512 (0.00195) second of a
processing time is 1 second. With the execution
valid interval, otherwise error E41 will be
interval set at 0.125 seconds, and a one second
displayed. Entries greater than 32 seconds are
lag between samples once every 10 minutes, 8
rounded to the nearest second.
measurements out of 4800 (.17%) are missed:
The sample rate for a CR10 measurement is the an acceptable statistical error for most
rate at which the measurement instruction can be populations.
executed (i.e., the measurement made, scaled
with the instruction's multiplier and offset, and the 1.1.2 SUBROUTINES
result placed in Input Storage). Additional
processing requires extra time. The throughput Table 3 is used to enter subroutines which may
rate is the rate at which a measurement can be be called with Program Control Instructions in
made and the resulting value stored in Final Tables 1 and 2 or other subroutines. The group
Storage. The maximum throughput rate for fast of instructions which form a subroutine starts
single-ended measurements with standard with Instruction 85, Label Subroutine, and ends
software is 192 measurements per second (12 with Instruction 95, End (Section 12).
measurements repeated 16 times per second).
1-1
SECTION 1. FUNCTIONAL MODES
1-2
SECTION 1. FUNCTIONAL MODES
second or less remain constant while time is # Display current location and allow a
reset. Averaged values will still be accurate, location number to be keyed in,
though the interval may have a different followed by "A" to jump to that
number of samples than normal. Totalized location
values will reflect the different number of
samples. The pulse count instruction will use 1.3.1 DISPLAYING AND ALTERING INPUT
the previous interval's value if an option has STORAGE
been selected to discard odd intervals, When "*6" is entered, the keyboard/display will
otherwise it will use the count accumulated in read "06:0000". One can advance to view the
the interval. value stored in input location 1 by keying "A". To
go directly to a specific location, key in the location
TABLE 1.2-1. Sequence of Time number before keying "A". For example, to view
Parameters in *5 Mode the value contained in Input Storage location 20,
key in "*6 20 A". The ID portion of the display
Display shows the last 2 digits of the location number. If
Key ID:DATA Description the value stored in the location being monitored is
*5 :HH:MM:SS Display current time the result of a program instruction, the value on
A 05:XX Display/enter year the keyboard/display will be the result of the most
A 05:XXXX Display/enter day of year recent scan and will be updated each time the
1-365(366) instruction is executed. When using the *6 Mode
A 05:HH:MM: Display/enter from a remote terminal, a number (any number)
hours:minutes must be sent before the value shown will be
updated.
1.3 DISPLAYING/ALTERING INPUT
Input locations can be used to store parameters
MEMORY, FLAGS, AND PORTS - *6 for use in computations. A value may be stored
MODE in a location, or the current value changed by
The *6 Mode is used to display and/or change keying "C" while monitoring the location,
Input Storage values and to toggle and display followed by the desired number and "A".
user flags and ports. If the *6 Mode is entered
immediately following any new entries or If an algorithm requires parameters to be manually
changes in program tables, the compile function modified during execution of the Program without
will be executed and program execution will interruption of the Table execution process, the *6
begin. Mode can be used to change parameters stored in
input locations. (If parameters will not need
modification, it is better to load them from the
NOTE: Data values contained in Input program using Instruction 30.) If initial parameter
Storage and the state of flags, control ports, values are required to be in place before program
and the timer (Instruction 26) are execution commences, use Instruction 91 at the
UNALTERED whenever program tables are beginning of the program table to prevent the
altered and recompiled with the *6 Mode. execution until a flag is set (see the next section).
Compiling always zeros Intermediate Initial parameter values can be entered into input
Storage. locations using the *6 Mode C command. The flag
can then be set to enable the table(s).
TABLE 1.3-1. *6 Mode Commands
If any program tables (*1, *2, *3) are altered
Key Action and compiled in the *0 Mode after values have
A Advance to next input location or been entered into input locations through the
enter new value *6C function, all values entered via the *6C will
B Back-up to previous location be set to zero. To preserve *6C entered
C Change value in input location values, always compile in the *6 Mode after
(followed by keyed in value, then "A") altering the programming tables.
D Display/alter user flags
O Display/alter ports
1-3
SECTION 1. FUNCTIONAL MODES
1.3.2 DISPLAYING AND TOGGLING USER FLAGS and the Program is recompiled with the *0
Mode. The same is true when the
If D is keyed while the CR10 is displaying a
programs are compiled with *B or *D.
location value, the current status of the user flags
will be displayed in the following format:
"00:010010". The characters represent the flags, To minimize current drain, the CR10 should be
the left-most digit is Flag 1 and right most is Flag left in the *0 Mode when logging data.
8. A "0" indicates the flag is clear and a "1"
indicates the flag is set. In the above example, 1.5 MEMORY ALLOCATION - *A
Flags 4 and 7 are set. To toggle a flag, simply
press the corresponding number. To return to 1.5.1 INTERNAL MEMORY
displaying the input location, press "A". There are 2 sockets for Random Access Memory
(RAM) and 1 socket which is used for
Entering appropriate flag tests into the program (Programmable) Read Only Memory (PROM).
allows manual control of program execution. The standard CR10 has 64K of RAM: a 32K RAM
For example, to manually start the execution of chip in each socket. Earlier versions had an 8K
Table 2: enter Instruction 91 as the first RAM chip in each socket. Appendix G describes
instruction in Table 2. The first parameter is 25 how to change RAM and PROM chips.
(do if Flag 5 is low), the second parameter is 0,
go to end of program table. If Flag 5 is low, all When powered up with the keyboard display
subsequent instructions in Table 2 will be attached, the CR10KD displays HELLO while
skipped. Flag 5 can be toggled from the *6 performing a self check. The total system
Mode, effectively starting and stopping the (RAM and ROM) memory is then displayed in K
execution of Table 2. bytes. The size of RAM can be displayed in the
*A mode.
1.3.3 DISPLAYING AND TOGGLING PORTS
The current status of the user's ports can be There are 1986 bytes allotted to Program
displayed by hitting "0" while looking at an input memory. This memory may be used for 1 table
location (e.g., *6A0). Ports are displayed left to or shared among all tables. Tables 3.9-1 to
right as C8, C7, ... , C1 (exactly opposite to the 3.9-4 list the amount of memory used by
flags). A port configured as output can be program instructions.
toggled by hitting its number while in the port
display mode. There is no effect on ports Input Storage is used to store the results of
configured as inputs. Input/Output and Processing Instructions. The
values stored in input locations may be
On power up all ports are configured as inputs. displayed using the *6 Mode (Section 1.3).
Instruction 20 is used to configure a port as an
output. Ports are also configured as outputs by The results of Output Instructions (data used for
any program control commands which uses the a permanent record) are stored in Final Storage
port as an output (pulse, set high, set low, when the Output Flag is set (Section 3.7). The
toggle). data in Final Storage can be monitored using
the *7 Mode (Section 2.3).
1.4 COMPILING AND LOGGING DATA -
*0 MODE Intermediate Storage is a scratch pad for
Output Processing Instructions. It is used to
When the *0 Mode is entered after store the results of intermediate calculations
programming the CR10, a program compile necessary for averages, standard deviations,
function is executed and the display shows histograms, etc. Intermediate Storage is not
"LOG" followed by the program table numbers accessible by the user.
that were enabled at compilation time. The
display is not updated after entering *0. Each Input or Intermediate Storage location
requires 4 bytes of memory. Each Final
NOTE: All output ports are set low, the Storage location requires 2 bytes of memory.
timer is reset, and data values in Input and Low resolution data points require 1 Final
Intermediate Storage are RESET TO ZERO Storage location and high resolution data points
whenever the program tables are altered
1-4
SECTION 1. FUNCTIONAL MODES
require 2. Section 2 describes Final Storage Table 1.5-1 lists the basic memory functions
and data retrieval in detail. and the amount of memory allotted to them.
1-5
SECTION 1. FUNCTIONAL MODES
1-6
SECTION 1. FUNCTIONAL MODES
1-7
SECTION 1. FUNCTIONAL MODES
The maximum size of Input and Intermediate The number of bytes remaining in program
Storage and the minimum size of Final Storage memory is displayed in the fifth window.
are determined by the size of RAM chips ENTERING 1986 (the total bytes available)
installed (Table 1.5-1). Input and Intermediate COMPLETELY RESETS THE CR10. All
Storage are confined to the same RAM chip as memory is erased and the power-up memory
system and program memory, they cannot be check and initialization is repeated as if the
expanded onto the second chip which is always power were switched off and on again.
entirely dedicated to Final Storage. A minimum
28 Input and 768 Final Storage Area 1 locations 1.6 MEMORY TESTING AND SYSTEM
will ALWAYS be retained. The size of
STATUS - *B
Intermediate Storage may be reduced to 0.
The *B Mode is used to 1) read the signature of
Intermediate Storage and Final Storage Area 1 the program memory and the software PROM, 2)
are erased when memory is repartitioned. This display the size of RAM+PROM, 3) display the
feature may be used to clear memory without number of E08 occurrences (Section 3.10), 4)
altering programming. The number of locations display the number of overrun occurrences
does not actually need to be changed; the (Section 1.1.1), 5) display PROM version
same value can be keyed in and entered. number. Table 1.6-1 describes what the values
Storage Area 2 is protected when Input and/or seen in the *B Mode represent. The correct
Intermediate Storage is reallocated, but cleared signature of the CR10 PROM is listed in
if Storage Area 2 is reallocated. Appendix B.
A signature is a number which is a function of
After repartitioning memory, the program must
the data and the sequence of data in memory.
be recompiled. Compiling erases Intermediate
It is derived using an algorithm which assures a
Storage. Compiling with *0 erases Input
99.998% probability that if either the data or its
Storage; compiling with *6 leaves Input Storage
sequence changes, the signature changes.
unaltered.
The signature of the program memory is used
to determine if the program tables have been
If Intermediate Storage size is too small to altered. During the self check on power-up, the
accommodate the programs or instructions signature computed for a PROM is compared
entered, the "E:04" ERROR CODE will be with a signature stored in the PROM to
displayed in the *0, *6, and *B Modes. The user determine if a failure has occurred. The
may remove this error code by either altering the algorithm used to calculate the signature is
programs or by entering a larger value for described in Appendix C.
Intermediate Storage size. Final Storage size can
be maximized by limiting Intermediate Storage to
The contents of windows 6 and 7, PROM version
the minimum number of locations necessary to
and version revision, are helpful in determining what
accommodate the programs entered. The size of
PROM is in the datalogger. Over the years, several
Final Storage and the rate at which data are
different PROM versions have been released, each
stored determines how long it will take for Final
with operational differences. When calling Campbell
Storage to fill, at which point new data will write
Scientific for datalogger assistance, please have
over old.
these two numbers available.
1-8
SECTION 1. FUNCTIONAL MODES
Security may be temporarily disabled by When "*D" is keyed in, the CR10 will display
entering a password in the *C Mode or using "13:00". A command (Table 1.8-1) is entered by
the telecommunications L command (Section keying the command number and "A".
5.1). The password entered determines what
operations are unlocked (e.g., entering TABLE 1.8-1. *D Mode Commands
password 2 unlocks the functions secured by
passwords 2 and 3). Password 1 (everything Command Description
1-9
SECTION 1. FUNCTIONAL MODES
1-10
SECTION 1. FUNCTIONAL MODES
Commands 1 and 2 (when entered from the 1.8.1 PROGRAM TRANSFER WITH
Keyboard/Display) and 7 have an additional 2 COMPUTER/PRINTER
digit option parameters (7 is entered with the
This section describes commands 1 and 2.
Storage Module address, e.g., 71). The CR10
will display the command number and prompt for
the option. If the keyboard display is not being SENDING ASCII PROGRAM INFORMATION
used, the CR10 will have already set the baud Program listings are sent in ASCII. At the end
rate to that of the device it is communicating with of the listing, the CR10 sends control E (5 hex
and will be ready to send or receive the file as or decimal) twice.
soon as command 1 or 2 is entered.
Table 1.8-4 is an example of the program listing
TABLE 1.8-2. ASCII and Storage Module sent in response to command 1 (the actual
Command Options listing is in one column but is printed in two
columns to save space). Note that the listing
Command Option Code Description uses numbers for each mode: The numbers for
1&2 1x Synchronously addressed *A, *B, and *C modes are 10, 11, and 12,
4x Hardware enabled respectively.
x = Baud Rate Codes
0 - 300 TABLE 1.8-4. Example Program Listing
1 - 1200 From *D Command 1
2 - 9600 MODE 1
3 - 76,800 SCAN RATE 5
7N:00 (N is Storage Module address) 1:P17
1x Save Program x to Storage 1:1
Module (x = 1-8) 2:P86
2x Load Program x from Storage 1:10
Module (x = 1-8)
3x Erase Program x in Storage 3:P70
Module (x = 1-8) 1:1
2:1
After the option code is keyed in, key "A" to 4:P0
execute the command. Command 2 will be
MODE 2
aborted if no data is received within 40
SCAN RATE 0
seconds.
MODE 3
WHEN COMMAND 2 IS EXECUTED ALL 1:P0
DATA IN INPUT AND INTERMEDIATE
MODE 10
STORAGE ARE ERASED.
1:28
If the CR10 program has not been compiled 2:64
when the command to save a program (1, 3 or 7) 3:0
is entered, it will be compiled before the program 4:5332
is saved. After a command is executed, 5:1971
"13:0000" is displayed; *D must be entered again
MODE 12
before another command can be given.
1:0
2:0
TABLE 1.8-3. Program Load Error Codes
MODE 11
E 96 Storage Module not connected or 1:6597
wrong address 2:30351
E 97 Data not encountered within 30 sec. 3:48
E 98 Uncorrectable errors detected 4:0
E 99 Wrong type of file, or Editor Error 5:0
(Section 3.10) ^E ^E
1-11
SECTION 1. FUNCTIONAL MODES
LOAD PROGRAM FROM ASCII FILE sent and verified, send ^E ^E to compile the
program and exit the load command.
Command 2 sets up the CR10 to load a program
which is input as serial ASCII data in the same
1.8.2 PROGRAM TRANSFER WITH STORAGE
form as sent in response to command 1.
MODULE
A download file need not follow exactly the
The Storage Module and Keyboard/Display or
same format that is used when listing a
Modem/Terminal must both be connected to
program (i.e., some of the characters sent in
the CR10. After keying *D, the command 7N, is
the listing are not really used when a program
entered (N is the Storage Module address 1-8,
is loaded). Some rules which must be followed
Section 3.3). Address 1 will work with any
are:
Storage Module address. The CR10 will
search for the lowest address Storage Module
1. "M" must be the first character other than a
that is connected. The command to save, load,
carriage return, line feed, semicolon, or 7D
or clear a program and the program number
Hex. The "M" serves the same function as
(Table 1.8-2) is entered. After the operation is
"*" does from the keyboard. The order in
finished "13:0000" is displayed. Error 96
which the Modes are sent in does not
indicates that the Storage Module is not
matter (i.e., the information for Mode 3
connected or the wrong address was given.
could be sent before that for Mode 1).
2. "S" is necessary prior to the Scan Rate The datalogger can be programmed on power-
(execution interval). up using a Storage Module. Storage Modules
can store up to eight separate programs. If a
3. The colons (:) are used to mark the start of program is stored as program number 8, and if
actual data. the Storage Module is connected to the
4. A semicolon (;) tells the CR10 to ignore the datalogger I/O at power-up, program number 8
rest of the line and can be used after an is down loaded to the datalogger.
entry so that a comment can be added.
There are 4 two-character control codes which
may be used to verify that the CR10 receives a
file correctly:
^B ^B (2hex, 2hex)--Discard current buffer
and reset signature
^C ^C (3hex, 3hex)--Send signature for
current buffer
^D ^D (4hex, 4hex)--Load current buffer and
reset signature
^E ^E (5hex, 5hex)--Load current buffer, Exit
and compile program
As a download file is received, the CR10
buffers the data in memory; the data is not
loaded into the editor or compiled until the
CR10 receives a command to do so. The
maximum size of the buffer is 1.5K. The
minimum file that could be sent is the program
listing, then ^E ^E. ^C ^C tells the CR10 to
send the signature (Appendix C.3) for the
current buffer of data. If this signature does not
match that calculated by the sending device,
^B ^B can be sent to discard the current buffer
and reset the signature. If the signature is
correct, ^D ^D can be sent to tell the CR10 to
load the buffer into the editor and reset the
signature. Once the complete file has been
1-12
SECTION 1. FUNCTIONAL MODES
1-13
SECTION 2. INTERNAL DATA STORAGE
2.1 FINAL STORAGE AREAS, OUTPUT Final Storage Area 1 is the default storage area
ARRAYS, AND MEMORY POINTERS and the only one used if the operator does not
specifically allocate memory to Area 2. A
Final Storage is that portion of memory where minimum of 768 memory locations will
final processed data are stored. It is from Final ALWAYS be retained in Final Storage Area 1.
Storage that data is transferred to your
Two Final Storage Areas may be used to:
computer or external storage peripheral.
1. Output different data to different devices.
The size of Final Storage is expressed in terms of
2. Separate archive data from real time display
memory locations or bytes. A low resolution data
data. In other words, you can record a short
point (4 decimal characters) occupies one
time history of real time data and separately
memory location (2 bytes), whereas a high
record long term, archive data.
resolution data point (5 decimal characters)
requires two memory locations (4 bytes). Table 3. Record both high speed data (fast
1.5-1 shows the default allocation of memory recording interval) and slow data without
locations to Input, Intermediate, and the two Final having the high speed data write over the
Storage areas. The *A Mode is used to slow data.
reallocate memory or erase Final Storage
(Section 1.5). Each Final Storage Area can be represented as
ring memory (Figure 2.1-1) on which the
The default size of Final Storage is 64K bytes newest data are written over the oldest data.
or 29908 low resolution memory locations. One
RAM chip is dedicated to Final Storage. This The Data Storage Pointer (DSP) is used to
chip has 32K bytes. A minimum of 32K bytes determine where to store each new data point
(16K memory locations) is ALWAYS retained in in the Final Storage area. The DSP advances
Final Storage. to the next available memory location after
each new data point is stored.
Final Storage can be divided into two parts:
Final Storage Area 1 and Final Storage Area 2.
2-1
2-2
SECTION 2. INTERNAL DATA STORAGE
Output Processing Instructions store data into Data are stored in Final Storage before being
Final Storage only when the Output Flag is set. transmitted to an external device. There are 5
The string of data stored each time the Output pointers for each Final Storage Area which are
Flag is set is called an OUTPUT ARRAY. The used to keep track of data transmission. These
first data point in the output array is a 3 digit pointers are:
OUTPUT ARRAY ID. This ID number is set in
1. Display Pointer (DPTR)
one of two ways:
2. Tape Pointer (TPTR)
3. Printer Pointer (PPTR)
1. In the default condition, the ID consists of
4. Telecommunications (Modem) Pointer
the program table number and the
(MPTR)
Instruction Location Number of the
5. Storage Module Pointer (SPTR)
instruction which set the Output Flag for
that particular array of data. For example,
the ID of 118 in Figure 2.1-2 indicates that The DPTR is used to recall data to the keyboard/
the 18th instruction in Table 1 set the display. The positioning of this pointer and data
Output Flag. recall are controlled from the keyboard (*7 Mode).
2. The output array ID can be set by the user The TPTR is used to control data transmission
with the second parameter of Instruction 80 to a cassette tape recorder. When on-line tape
(Section 11). The ID can be set to any transfer is activated (Instruction 96, option 00),
positive integer up to 511. This option data is transmitted to tape whenever the DSP is
allows the user to make the output array ID a minimum of 512 memory locations ahead of
independent of the programming. The the TPTR. The TPTR may also be positioned
program can be changed (instructions via the keyboard for manually initiated data
added or deleted) without changing the transfer to tape (*8 Mode).
output array ID. This avoids confusion The PPTR is used to control data transmission
during data reduction, especially on long to a printer or other serial device. Whenever
term projects where program changes or on-line printer transfer is activated (Instruction
updates are likely. 96), data between the PPTR and DSP are
transmitted. The PPTR may also be positioned
via the keyboard for manually initiated data
transmission (*8 Mode).
The MPTR is used in transmitting data over a
telecommunications interface. When
telecommunications is first entered, the MPTR is
set to the same location as the DSP. Positioning
of the MPTR is then controlled by commands from
the external calling device (Section 5.1).
FIGURE 2.1-2. Output Array ID The SPTR is used to control data transmission to a
Storage Module. When on-line transfer is activated
by Instruction 96, data is transmitted each time an
NOTE: If Instruction 80 is used to output array is stored in Final Storage IF THE
designate the active Final Storage Area STORAGE MODULE IS CONNECTED TO THE
and parameter 2 is 0, the output array ID is CR10. If the Storage Module is not connected, the
determined by the position of Instruction 80 CR10 does not transmit the data nor does it
or by the position of the instruction setting advance the SPTR to the new DSP location. It
the Output Flag, whichever occurs last. saves the data until the Storage Module is
connected. Then, during the next execution of
A start-of-array marker ($ in Figure 2.1-1) is Instruction 96, the CR10 outputs all of the data
written into Final Storage with the Output Array between the SPTR and the DSP and updates the
ID. This marker is used as a reference point SPTR to the DSP location (Section 4.1)
from which to number the data points of the
output array. The start of array marker occupies The SPTR may also be positioned via the
the same Final Storage location as the Array ID keyboard for manually initiated data transfer to
and is transparent for all user operations. the Storage Module (*8 Mode, Section 3.2.3).
2-3
SECTION 2. INTERNAL DATA STORAGE
NOTE: All memory pointers are set to the output in high resolution or could be offset by 20 ft.
DSP location when the datalogger (transforming the range to 30 to 50 ft.).
compiles a program. For this reason,
ALWAYS RETRIEVE UNCOLLECTED 2.2.2 INPUT AND INTERMEDIATE
DATA BEFORE MAKING PROGRAM STORAGE DATA FORMAT
CHANGES. For example, assume the While output data have the limits described
TPTR lags the DSP by less than 512 data above, the computations performed in the
points when the datalogger program is CR10 are done in floating point arithmetic. In
altered. On compiling, the TPTR is Input and Intermediate Storage, the numbers
positioned with the DSP, losing reference are stored and processed in a binary format
to the data that was intended to be with a 23 bit binary mantissa and a 6 bit binary
transferred to tape. The data is not exponent. The largest and smallest numbers
automatically transferred and appears as a that can be stored and processed are 9 x 1018
discontinuity in the data file. Until the ring and 1 x 10-19, respectively. The size of the
memory wraps around and data overwrite number determines the resolution of the
occurs, the data may be recovered using arithmetic. A rough approximation of the
the *8 Mode. This scenario is also true for resolution is that it is better than 1 in the
the SPTR and data intended for a Storage seventh digit. For example, the resolution of
Module. 97,386,924 is better than 10. The resolution of
0.0086731924 is better than 0.000000001.
2.2 DATA OUTPUT FORMAT AND
A precise calculation of the resolution of a
RANGE LIMITS number may be determined by representing the
Data is stored internally in Campbell Scientific's number as a mantissa between .5 and 1
Binary Final Storage Format (Appendix C.2). multiplied by 2 raised to some integer power.
Data may be sent to Final Storage in either LOW The resolution is the product of that power of 2
RESOLUTION or HIGH RESOLUTION format. and 2-24. For example, representing 478 as
.9336 * 29, the resolution is 29 * 2-24 = 2-15 =
2.2.1 RESOLUTION AND RANGE LIMITS 0.0000305. A description of Campbell Scientific's
floating point format may be found in the
Low resolution data is a 2 byte format with 4 description of the J and K Telecommunications
significant digits and a maximum magnitude of Commands in Appendix C.
+6999. High resolution data is a 4 byte format
with 5 significant digits and a maximum
possible output value of +99999 (see Table 2.2- 2.3 DISPLAYING STORED DATA ON
1 below). KEYBOARD/DISPLAY - *7 MODE
(Computer/terminal users refer to Section 5 for
TABLE 2.2-1. Resolution Range Limits of instructions on entering the Remote Keyboard
CR10 Data State.)
Minimum Maximum
Resolution Zero Magnitude Magnitude Final Storage may be displayed by using the *7
Mode. Key *7.
Low 0.000 +0.001 +6999.
High 0.0000 + .00001 +99999. If you have allocated memory to Final Storage
Area 2, the display will show:
The resolution of the low resolution format is
reduced to 3 significant digits when the first (left 07:00
most) digit is 7 or greater. Thus, it may be
necessary to use high resolution output or an offset Select which Storage Area you wish to view:
to maintain the desired resolution of a measurement.
For example, if water level is to be measured and 00 or 01 = Final Storage Area 1
output to the nearest 0.01 ft., the level must be less 02 = Final Storage Area 2
than 70 ft. for low resolution output to display the
0.01 ft. increment. If the water level was expected
to range from 50 to 80 feet the data could either be
2-4
SECTION 2. INTERNAL DATA STORAGE
If no memory has been allocated to Final TABLE 2.3-1. *7 Mode Command Summary
Storage Area 2, this first window will be
skipped. Key Action
The next window displays the current DSP A Advance to next data point
location. Pressing A advances you to the B Back-up to previous data point
Output array ID of the oldest Array in the # Display location number of currently
Storage Area. To locate a specific Output displayed data point value
Array, enter a location number that positions C Display value of current location
the Display Pointer (DPTR) behind the desired #A Advance to same element in next
data and press the "A" key. If the location Output Array with same ID
number entered is in the middle of an Output #B Back-up to same element in previous
Array, the DPTR is automatically advanced to Output Array with same ID
the first data point of the next Output Array. #0A Back-up to the start of the current Final
Repeated use of the "A" key advances through Data Storage Array
the Output Array, while use of the "B" key * Exit *7 Mode
backs the DPTR through memory.
2-5
SECTION 3. INSTRUCTION SET BASICS
The instructions used to program the CR10 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 CR10 the information required to execute the instruction. The set of instructions
available in the CR10 is determined by the PROM (Programmable Read Only Memory) inside the
CR10. Appendix B lists the PROM options available.
3-1
SECTION 3. INSTRUCTION SET BASICS
Location or Port the instruction acts on. An input voltage greater than +5 volts on one of
Normally the loop counter is incremented by 1 the analog inputs will result in errors and
after each pass through the loop. Instruction possible overranging on the other analog
90, Step Loop Index, allows the increment step inputs. Voltages greater than 16 volts may
to be changed. See Instructions 87 and 90, permanently damage the CR10.
Section 12, for more details.
NOTE: Voltages in excess of 5.5 volts
To index an input location (4 digit integer) or set applied to a control port can cause the
port command (2 digit integer) parameter, C or CR10 to malfunction.
"-" is pressed after keying the value but before
entering the parameter. Two minus signs (-)
will be displayed to the right of the parameter. 3.6 OUTPUT PROCESSING
Most Output Processing Instructions require
3.5 VOLTAGE RANGE AND both an Intermediate Data Processing
OVERRANGE DETECTION operation and a Final Data Processing
operation. For example, when the Average
The voltage RANGE code parameter on
Instruction, 71, is initiated, the intermediate
Input/Output Instructions is used to specify the
processing operation increments a sample
full scale range of the measurement and the
count and adds each new Input Storage value
integration period for the measurement (Table
to a cumulative total residing in Intermediate
3.5-1).
Storage. When the Output Flag is set, the final
The full scale range selected should be the processing operation divides the cumulative
smallest that will accommodate the full scale total by the number of samples to find the
output of the sensor being measured. Using average. The average is then stored in final
the smallest possible range will result in the storage and the cumulative total and number of
best resolution for the measurement. samples are set to zero in Intermediate
Storage.
Four different integration sequences are
possible. The relative immunity of the Final Storage Area 1 (Sections 1.5, 2.1) is the
integration sequences to random noise is: 60 default destination of data output by Output
Hz rej. = 50 Hz rej. > 2.72ms integ. > 272 µs Processing Instructions. Instruction 80 may be
integ. The 60 Hz rejection integration rejects used to direct output to either Final Storage
noise from 60 Hz AC line power. The 50 Hz Area 2 or to Input Storage.
rejection is for countries whose electric utilities Output Processing Instructions requiring
operate at 50 Hz (Section 13.1). intermediate processing sample the specified
input location(s) each time the Output
When a voltage input exceeds the range Instruction is executed, NOT each time the
programmed, the value which is stored is set to location value is updated by an I/O Instruction.
the maximum negative number and displayed For example: Suppose a temperature
as -99999 in high resolution or -6999 in low measurement is initiated by Table 1 which has
resolution. an execution interval of 1 second.
3-2
SECTION 3. INSTRUCTION SET BASICS
3-3
SECTION 3. INSTRUCTION SET BASICS
3-4
SECTION 3. INSTRUCTION SET BASICS
3.8.2 NESTING
A branching or loop instruction which occurs
before a previous branch or loop has been
closed is nested. The maximum nesting level is
9 deep. Loop Instruction 87 and Begin Case
Instruction 93 both count as 1 level.
Instructions 83, 86, 88, 89, 91, and 92 each
count as one level when used with the
FIGURE 3.8-2. Logical AND Construction Command "30" which is the "Then Do"
command. Use of Else, Instruction 94, also
If Then/Else comparisons may be nested to counts as one nesting level each time it is used.
form logical AND or OR branching. Figure 3.8- For example, the AND construction above is
2 illustrates an AND construction. If conditions nested 2 deep while the OR construction is
A and B are true, the instructions included nested 3 deep.
between IF B and the first End Instruction will
be executed. Subroutine calls do not count as nesting with
the above instructions, though they have their
If either of the conditions is false, execution will own nesting limit (7, see Instruction 85).
jump to the corresponding End Instruction, Branching and loop nesting start at zero in each
skipping the instructions between. subroutine.
A logical OR construction is also possible. Any number of groups of nested instructions
Figure 3.8-3 illustrates the instruction sequence may be used in any of the three Programming
that will result in subroutine X being executed if Tables. The number of groups is only restricted
either A or B is true. by the program memory available.
3-5
SECTION 3. INSTRUCTION SET BASICS
3-6
SECTION 3. INSTRUCTION SET BASICS
3-7
SECTION 3. INSTRUCTION SET BASICS
TABLE 3.9-2. Processing Instruction Memory and Execution Times R = No. of Reps.
INPUT MEMORY PROG.
INSTRUCTION LOC. INTER. LOC. BYTES EXECUTION TIME (ms)
30 Z=F 1 0 9 0.2 + 0.6 * exponent
31 Z=X 1 0 6 0.5
32 Z=Z+1 1 0 4 0.6
33 Z=X+Y 1 0 8 1.1
34 Z=X+F 1 0 10 0.9
35 Z=X-Y 1 0 8 1.1
36 Z=X*Y 1 0 8 1.2
37 Z=X*F 1 0 10 0.9
38 Z=X/Y 1 0 8 2.7
39 Z=SQRT(X) 1 0 6 12.0
40 Z=LN(X) 1 0 6 7.4
41 Z=EXP(X) 1 0 6 5.9
42 Z=1/X 1 0 6 2.6
43 Z=ABS(X) 1 0 6 0.7
44 Z=FRAC(X) 1 0 6 0.3
45 Z=INT(X) 1 0 6 1.0
46 Z=X MOD F 1 0 10 3.2
47 Z=XY 1 0 8 13.3
48 Z=SIN(X) 1 0 6 6.5
49 SPA. MAX 1 or 2 0 8 1.5 + 0.9 (swath-1)
50 SPA. MIN 1 or 2 0 8 1.7 + 0.9 (swath-1)
51 SPA. AVG 1 0 8 3.3 + 0.6 (swath-1)
53 A*X+B 4 0 36 4.1
54 BLOCK MOVE R 0 10 0.2 + 0.2R
55 POLYNOMIAL R 0 31 1.2 + (2.0 + 0.4 * order)R
56 SAT. VP 1 0 6 4.2
57 WDT-VP 1 0 10 8.1
58 LP FILTER R R 13 0.5 + 2.2R
59 X/(1-X) 1 0 9 0.4 + 3.0R
61 INDIR. MOVE 1 0 6 0.4 neither indexed,
0.5 1 location indexed,
0.7 both locations indexed
63 PARA.EXTN. 0 0 10 0.1
66 ARC TAN 1 0 8 6.7
TABLE 3.9-3. Output Instruction Memory and Execution Times R = No. of Reps.
INTER. MEM. FINAL PROG. EXECUTION TIME (ms)
INSTRUCTION LOC. VALUES1 BYTES FLAG 0 LOW FLAG 0 HIGH
69 WIND VECTOR 2+9R (2, 3, or 4)R 12
Options 00, 10, 20 3.5 + 17.5R 3.5 + 75R
Options 01, 11, 21 3.5 + 16R 3.5 + 30R
70 SAMPLE 0 R 6 0.1 0.4+ 0.6R
71 AVERAGE 1+R R 7 0.9+ 0.5R 2.1+ 3.0R
72 TOTALIZE R R 7 0.6+ 0.5R 1.1+ 1.0R
73 MAXIMIZE (1 or 2)R (1,2, or 3)R 8 0.9+ 1.7R 1.3+ 2.8R
74 MINIMIZE (1 or 2)R (1,2, or 3)R 6 0.9+ 1.7R 1.3+ 2.8R
75 HISTOGRAM 1+bins*R bins*R 24 0.4+ 3.1R 0.9+ (3.3+2.8*bins)R
77 REAL TIME 0 1 to 4 4 0.1 1.0
78 RESOLUTION 0 0 3 0.4 0.4
79 SMPL ON MM R R 7 0.3 1.1
80 STORE AREA1 0 0 7 0.2 0.2
82 STD. DEV. 1+3R R 7 1.0+ 1.4R 1.8+ 2.2R
3-8
SECTION 3. INSTRUCTION SET BASICS
1Output values may be sent to either Final Storage area or Input Storage with Instruction 80.
3-9
SECTION 3. INSTRUCTION SET BASICS
3.10 ERROR CODES If there is a run time error in a table with a fast
execution interval, the error may be written to
There are four types of errors flagged by the the display so frequently that it seems the
CR10: Compile, Run Time, Editor, and *D CR10 is not responding to the keyboard. Once
Mode. Compile errors are errors in the program is stopped, normal function will
programming which are detected once the return. To stop the program some entry must
program is entered and compiled for the first be changed which requires recompiling
time (*0, *6, or *B Mode entered). If a (Section 1.1.4). For example, enter 0 for the
programming error is detected during execution interval of Table 1 (i.e., enter *1A0A
compilation, an E is displayed with the 2 digit as fast as possible).
error code. The Instruction Location Number of
the Instruction which caused the error is Error 8 is the result of a hardware and software
displayed to the right of the error code (e.g., "watchdog" that checks the processor state,
105 indicates that the fifth instruction in Table 1 software timers, and program related counters.
caused the error). Error 22, missing END, will The watchdog will attempt to reset the
indicate the location of the instruction which the processor and program execution if it finds that
compiler cannot match with the END the processor has bombed or is neglecting
instruction. standard system updates, or if the counters are
out of allowable limits. Error code 08 is flagged
Run time errors are detected while the program when the watchdog performs this reset. E08 is
is running. The number of the instruction being occasionally caused by voltage surges or
executed at the time the error is detected is transients. Frequent repetitions of E08 are
displayed to the right of the error code (e.g., indicative of a hardware problem or a software
E09 06 indicates that an Instruction 6 in the bug and should be reported to Campbell
program is attempting to store data in input Scientific. The CR10 keeps track of the
locations beyond those allocated). Run time number of times (up to 99) that E08 has
errors 9 and 31 are the result of programming occurred. The number can be displayed and
errors. While error 8 will display the number of reset in the *B Mode (Section 1.6) or with the
the instruction that was being executed when Telecommunications A command (Section 5.1).
the error occurred, it is unlikely that the
instruction has anything to do with the error. Editor errors are detected as soon as an
incorrect value is entered and are displayed
immediately. Only the error code is displayed.
3-10
SECTION 3. INSTRUCTION SET BASICS
3-11
SECTION 3. INSTRUCTION SET BASICS
3-12
SECTION 4. EXTERNAL STORAGE PERIPHERALS
External data storage devices are used to provide a data transfer medium that the user can
carry from the test site to the lab and to supplement the internal storage capacity of the CR10,
allowing longer periods between visits to the site. The standard data storage peripheral for the
CR10 is the Storage Module (Section 4.5). Output to a printer or related device is also possible
(Section 4.4).
Data output to a peripheral device can take place ON-LINE (automatically, as part of the
CR10's routine operation) or it can be MANUALLY INITIATED. On-line data transfer is
accomplished with Instruction 96 (Section 4.1). Manual initiation is done in the *8 Mode
(Section 4.2).
The CR10 can output data to multiple peripherals. The CR10 activates the peripheral it sends
data to in one of two ways (Section 6.2):
1. A specific pin in the 9-pin connector is dedicated to that peripheral; when that pin goes
high, the peripheral is enabled. This is referred to as "PIN-ENABLED" or simply
"ENABLED".
Cassette tape and modems are pin-enabled. Only one cassette recorder and only one
modem/terminal device may be connected to the CR10 at any one time.
The SM192 and SM716 Storage Modules are addressed. The CR10 can tell when the
addressed device is present. The CR10 will not send data meant for the Storage module if the
Storage Module is not present (Section 4.5.2).
The *9 Mode (Section 4.6) allows the user to communicate directly with the Storage Module and
to perform several functions, including review of data, battery test, review of Storage Module
status, etc.
4-1
SECTION 4. EXTERNAL STORAGE PERIPHERALS
Instruction 96 has a single parameter which unique entry) are the device, baud rate (if
specifies the peripheral to send output to. applicable), and the Final Storage Area.
Table 4.1-1 lists the output device codes.
When an entry reaches the top of the queue,
TABLE 4.1-1. Output Device Codes for the CR10 sends all data accumulated since the
Instruction 96 and *8 Mode last transfer to the device up to the location of
the DSP at the time the device became active.
Code Device
00 Tape. Data transferred in blocks of The most efficient use of cassette tape and
512 Final Storage locations power is made with the CASSETTE TAPE
09 Tape. All data since last output. option to transfer data in blocks of 512 Final
[Inst. 96 only] Storage locations. (Data is always written in
the equivalent of 512 locations. If code 09 was
ADDRESSED PRINTER used, and there are only 10 new values,
1x Printable ASCII sending this data would include 502 null
2x Comma delineated ASCII characters.)
3x Binary
Option 09, transfer any new data, is used if it is
PIN ENABLED PRINTER desired to run the tape only at particular times
4x Printable ASCII or under certain conditions (the program is
5x Comma delineated ASCII written so that 96 only gets executed when
6x Binary these conditions are met). When 96 finally
does get executed, all data between the TPTR
x = BAUD RATE CODES and DSP, including a final block less than 512
0 300 locations, are written to tape.
1 1200
2 9600 Section 4.3 contains specifics on the cassette
3 76,800 recorder. Note that tape operation is for above
freezing temperatures only.
7N Storage Module N (N=address, 1...8)
7N-- Output File Mark to Storage Module N Printer output can be either pin-enabled or
80 To the other Final Storage Area addressed. However, there is not a pin
[Inst. 96 only], new data since last specifically dedicated to print enable. When a
output pin-enabled print output is specified, the SDE
81 To the other Final Storage Area line, which is normally used in the addressing
[Inst. 96 only], entire active Final sequence, is used as a print enable. This
Storage Area allows some compatibility with the CR21, 21X,
and CR7 dataloggers which have a Print
The source of data for Instruction 96 is the Enable line. The pin-enabled print option will
currently active Final Storage Area as set by result in garbage being sent to the print
Instruction 80 (the default is Final Storage Area peripheral if an addressed device is also
1 at the beginning of each program table connected to the CR10 (i.e., CR10KD, SM192
execution). or SM716 etc.). The SDC99 Synchronous
Device Interface can convert a print device to
If the CR10 is using the 9 pin connector for an Addressed peripheral (Section 6.2).
other I/O tasks when Instruction 96 is executed,
the output request is put in a queue and The STORAGE MODULE address is important
program execution continues. As the 9-pin only when using more than one Storage
connector becomes available, each device in Module, 1 is a universal address which will find
the queue gets its turn. the Storage Module with lowest number
address that is connected. If a Storage Module
An output request is not put in the queue if the is not connected, the CR10 will not advance the
same device is already in the queue. The data SPTR (Section 2.1) and the Storage Module
contained in the queue (and which determine a drops out of the queue until the next time
Instruction 96 is executed. Section 4.5 contains
specifics on the SM192 and SM716.
4-2
SECTION 4. EXTERNAL STORAGE PERIPHERALS
4.2 MANUALLY INITIATED DATA locations per day ((20 x 24) + 11). 29900 divided
OUTPUT - *8 MODE by 491 = 60.90 days. Therefore, the CR10 would
have to be visited every 60 days to retrieve data,
Data transfer to a peripheral device can be because write-over would begin on the 61st day.
manually initiated in the *8 Mode. This process Most likely the user would want to retrieve data
requires that the user have access to the CR10 more often than this to perform a general
through a terminal or the Campbell Scientific checkout of the station.
Keyboard/Display. The *8 Mode allows the
user to retrieve a specific block of data, on The output device codes used with the *8 Mode
demand, regardless of whether or not the CR10 are the same as those used with Instruction 96
is programmed for on-line data output. (Table 4.1-1), with the exception of "all data to
tape" (09, with *8 all data between the start and
If external storage peripherals (cassette, stop locations is always written) and the options
Storage Module, etc.) are not left on-line, the to transfer data from one Final Storage area to
maximum time between site visitations and the other (80, 81). Table 4.2-1 lists the
data retrieval must be calculated to ensure that keystrokes required to initiate a *8 data dump.
data placed in Final Storage are not lost due to
write-over. In order to make this calculation, 4.3 CASSETTE TAPE OPTION
users must determine: (1) how large their Final
Storage is, (2) how many Output Arrays are The Model RC35 Cassette Tape Recorder or
being generated, (3) how many low and/or high equivalent can be left attached to the CR10 for
resolution data points are included per Output continuous on-line data recording or it can be
Array, and (4) the rate at which Output Arrays periodically taken to the CR10 site for the
are placed into Final Storage. When manually initiated retrieval of the data
calculating the number of data points per accumulated in Final Storage. The *8 Mode is
Output Array, remember to add 1 overhead used to manually initiate tape transfer.
data point (2 bytes) per array for the Output
Array ID. 4.3.1 CASSETTE RECORDER
The RC35 Cassette Recorder offered by
For example, assume that 29900 locations are Campbell Scientific is an inexpensive recorder
assigned to Final Storage (*A Mode), and that 1 for use with the CR10 (also compatible with the
Output Array, containing the Array ID (1 memory 21X and CR7 dataloggers). The
location), 9 low resolution data points (9 memory record/playback function of each RC35 is
locations) and 5 high resolution data points (10 tested along with a head alignment procedure
memory locations), is stored each hour. In prior to shipment. CR10/RC35 connections are
addition, an Output Array with the Array ID and 5 made with the SC92A Cassette Write Only
high resolution data points (11 memory locations) Interface or the SC93A Cassette Read/Write
is stored daily. This is a total of 491 memory Interface. The CR10 controls the on/off state of
4-3
SECTION 4. EXTERNAL STORAGE PERIPHERALS
the RC35 by switching power through the DC Normal bias, high quality cassette tapes are
power line of the SC92A/SC93A. recommended for use with the recorder. The
more expensive high bias chromium oxide
TABLE 4.3-1 Cassette Recorder tapes will NOT perform satisfactorily. Although
Specifications the use of C-90 tapes is generally successful,
Campbell Scientific recommends the use of C-
Power 6 VDC (provided by 60 (30 minutes per side) cassettes. TDK,
CR10 through SC92A or Maxell, and equivalent quality cassette tapes
SC93A); 4 AA size perform well and are readily available. Bargain-
batteries; 120 VAC/6 priced tapes have often performed poorly and
VDC adapter are not recommended.
Current Drain 200 mA typ./5 sec., New tapes are often tightly wound, creating
while Recording 300 max. enough drag or pressure to cause the tape
recorder to "pop" out of the record mode. This
Tape Length C-60 recommended potential loss of data may be overcome by fast-
forward/rewinding the entire tape before placing
Tape Quality Normal bias, high quality it in service.
(e.g., TDK, Maxell)
4.3.2 CASSETTE CONNECTOR INTERFACE
External Inputs Mic., DC In, Monitor, and CABLES
Remote
A cassette interface cable is required to
Operating 0° to +40°C connect the cassette recorder to the CR10.
Temperature Two models are available. The SC92A is a
WRITE ONLY interface. The SC93A is a
READ/WRITE interface that allows the CR10 to
POWER SUPPLY
load datalogger programs from tape in addition
The CR10's internal power supply will power to writing data and programs. The SC93A is
the recorder during periods of data transfer, but required only if special software exists in the
will NOT be available to play, advance, or back- datalogger PROM for transferring programs via
up tapes. In order to perform these functions tape (refer to Appendix B)
during setup and check-out operations, the
recorder requires 4 alkaline AA batteries or the The SC92A and SC93A have a combination
120 VAC adapter. backshell circuit card and subminiature 9-pin D-
type connector which attaches to the socket
OPERATING TEMPERATURE LIMITATIONS connector on the wiring panel. The other end
of the SC92A has two plugs which are plugged
The cassette recorder is recommended for use
into the POWER and MIC jacks on the
in an environmental operating temperature
recorder. The SC93A has three plugs which
range of 0° to +40°C. Temperatures below 0°C are plugged into the POWER, MIC and EAR (or
may cause tape speed variation in excess of MONITOR) jacks on the recorder. Both cables
that which can be tolerated during playback. If transform 12 V from the CR10 to 6 V for
the RC35 is outside the 0°C to 40°C range, powering the recorder during periods of data
data transferred may be unreadable. transfer. Additional circuitry shapes the data
signal waveform.
VOLUME CONTROL
When recording data, the RC35's volume WARNING: The SC92/SC93 interfaces
setting does not matter. The recorder is previously supplied with the 21X and CR7
equipped with an automatic gain control which dataloggers are not compatible with the
controls the recorded signal level. For CR10. The SC235 CR21 Cassette
playback, a mid- range volume setting is Connector Interface supplied with the CR21
normally required. datalogger is not compatible with the CR10.
If the SC92, SC93, or SC235 interfaces are
CASSETTE TAPES used with the CR10, the data on tape
CANNOT be recovered!
4-4
SECTION 4. EXTERNAL STORAGE PERIPHERALS
4.3.3 TAPE FORMAT If you are leaving the recorder with the CR10 (on-
line output to tape enabled with Instruction 96) it is
Data is transferred to cassette tape in the high
a good idea to write a dummy block of data to tape
speed/high density Format 2. Data tapes
(5 above) to ensure that the recorder is correctly
generated by the CR10 are read by the PC201
connected. Leave the CR10 in the *0 Mode.
tape read card for the IBM PC or by the C20
Cassette Interface. The C20 decodes the tape
When on-line, the CR10 dumps data to tape in 512
and transmits the data in ASCII to any external
location blocks (unless the option to dump any new
device equipped with a standard RS232
data is selected in Instruction 96). When picking up
interface.
a data tape from a field site, dump the residual data
(data which has accumulated since the last full
TABLE 4.3-2. Format 2 Specifications block) before removing the tape. Dump the
Data Binary residual data by entering the *8 Mode, advancing
Low Resolution 2 bytes/data point through windows 2 and 3 and initiating a dump.
High Resolution 4 bytes/data point (The start and stop locations should be less than
C-60 Capacity 180,000 data points 512 locations apart.) After removing the old tape,
(Lo Res.) (1 side only) insert a new tape and go through the set up steps
Data Transfer 100 data points/sec. above.
Rate (Lo Res.)
Block Size 512 Final Storage 4.4 PRINTER OUTPUT FORMATS
locations
Printer output can be sent in Final Storage Format
(Appendix C.2), Printable ASCII, or Comma
4.3.4 CONNECTING TAPE TO CR10
Delineated ASCII. These ASCII formats may also
The procedure for setting up the CR10 and be used when data from the Storage Modules or
cassette recorder for transfer to tape is as Telecommunications are stored on disk with
follows: Campbell Scientific's PC208 software.
4-5
SECTION 4. EXTERNAL STORAGE PERIPHERALS
4-6
SECTION 4. EXTERNAL STORAGE PERIPHERALS
4.4.2 COMMA DELINEATED ASCII The SM192 has 192K bytes of RAM storage; the
SM716 has 716K bytes. Both can be configured
Comma Delineated ASCII strips all IDs, leading
as either ring or fill and stop memory.
zeros, unnecessary decimal points and trailing
zeros, and plus signs. Data points are separated
4.5.1 STORAGE MODULE ADDRESSING
by commas. Arrays are separated by Carriage
Return Line Feed. Comma Delineated ASCII The capability of assigning different addresses to
requires approximately 6 bytes per data point. Storage Modules allows 1) multiple (up to 8) Storage
Example: Modules to be connected to the CR10 during on-line
output (Instruction 96), 2) different data to be output
1,234,1145,23.65,-12.26,625.9
to different Modules, and 3) transfer of data from a
1,234,1200,24.1,-10.98,650.3
Module that is left with the CR10 to a Module that is
hand carried to the site for data transfer (*9 Mode).
4.5 STORAGE MODULE (SM192/716)
Storage Modules are assigned addresses (1-8) either
The Storage Module stores data in battery through the *9 Mode or through Telecommunications
backed RAM. Backup is provided by an (SM192/SM716 Manual). 1 is the default address
internal lithium battery. Operating power is when the Storage Module is reset, and unless you are
supplied by the CR10 over pin 1 of the 9-pin using one of the features which require different
connector. When power is applied to the addresses you need not assign any other address.
Storage Module, a File Mark is placed in the
data (if a File Mark is not the last data point Address 1 is also a universal address when
already in storage). sending data or commands to a storage module
The File Mark separates data. For example, if with Instruction 96, *8, or *9. When address 1
you retrieve data from one CR10, disconnect is entered in the *9 Mode (default) or in the
the Storage Module and connect it to a second device code (71, Table 4.2-1) for Instruction 96
CR10, a File Mark is automatically placed in the or the *8 Mode, The CR10 searches for the
data. This mark follows the data from the first Storage Module with the lowest address that is
CR10 but precedes the data from the second. not full (fill and stop configuration only) and
addresses it. In other words, if a single Storage
4-7
SECTION 4. EXTERNAL STORAGE PERIPHERALS
Module is connected, and it is not full, address • Use the SC90 9-Pin Serial Line Monitor. The
1 will address that Storage Module regardless SC90 contains an LED which lights up during
of the address that is assigned to the Module. data transmission. The user connects the SM
to the CR10 with the SC90 on the line and
Address 1 would be used with Instruction 96 if
waits for the LED to light. When the light goes
several Storage Modules with different
off, data transfer is complete and the SM can
addresses were connected to the CR10 and
be disconnected from the CR10.
were to be filled sequentially. The Storage
modules would be configured as fill and stop.
When the lowest addressed Module was full 4.5.3 *8 DUMP TO STORAGE MODULE
data would be written to the next lowest In addition to the on-line data output
addressed Module, etc. procedures described above, output from CR10
Final Storage to the SM192 and SM716 can be
4.5.2 STORAGE MODULE USE WITH manually initiated in the *8 Mode. The
INSTRUCTION 96 procedure for setting up and transferring data is
as follows:
When output to the Storage Module is enabled
with Instruction 96, the Storage Module(s) (see 1. Connect the CR10KD Keyboard/Display (or
4.5.1 for addressing on multiple modules) may terminal) and the Storage Module in parallel
be either left with the CR10 for on-line data to the CR10 using the SC12 cable. For
transfer and periodically exchanged, or brought terminals, an SC32A will be needed. See
to the site for data transfer. Section 5 for interfacing details.
2. Key in the appropriate commands as listed
USE OF STORAGE MODULE TO PICK UP DATA
in Table 4.2-1.
The CR10 is capable of recognizing whether or
not the Storage Module is connected. Each 4.6 *9 MODE -- STORAGE MODULE
time Instruction 96 is executed and there is
COMMANDS
data to output, the CR10 checks for the
presence of the Storage Modules. If one is not The *9 Mode is used to issue commands to the
present, the CR10 does not attempt to output Storage Module (from the CR10) using the
data to it. Instead, the CR10 saves the data CR10KD or a terminal/computer. These
and continues its other operations without "commands" are like * Modes for the Storage
advancing the Storage Module Pointer (SPTR, Module and in some cases are directly analogous
Section 2.1). to the CR10 * Modes. Command 7 enters a mode
used to review stored data, and 8 is used to
When the user finally does connect the Storage
transfer data between two Storage Modules
Module to the CR10, two things happen:
connected to the CR10. The operations with the
1. Immediately upon connection, a File Mark is Storage Module are not directly analogous as may
placed in the Storage Module Memory be seen in Table 4.6-1 which lists the commands
following the last data stored (if a File Mark (e.g., when reviewing data, #A advances to the
wasn't the last data point already in storage). start of the next Output Array rather than to the
same element in the next array with the same ID).
2. During the next execution of Instruction 96,
the CR10 recognizes that the Storage When *9 is keyed, the CR10 responds: 09:01
Module (SM) is present and outputs all data
1 is the default address for the Storage Module
between the SPTR and the DSP location.
(Section 4.4.1). If you have more than 1
Storage Module connected, enter the address
The File Mark allows the operator to distinguish
of the desired Storage Module. Address 1 will
blocks of data from different dataloggers or
always work if only one Module is connected.
from different visits to the field.
Key A and the CR10 responds: 9N:00
To be certain that the SM has been connected
Where N is the address which was entered.
to the CR10 during an execution of P96, the
You may now enter any of the commands in
user can:
Table 4.6-1 (key in the command number and
• Leave the SM connected for a time period enter with A). Most commands have at least
longer than an execution interval OR
4-8
SECTION 4. EXTERNAL STORAGE PERIPHERALS
one response, advance through these and return to the *9 command state by keying A.
4-9
SECTION 4. EXTERNAL STORAGE PERIPHERALS
4-10
SECTION 4. EXTERNAL STORAGE PERIPHERALS
4-11
SECTION 5. TELECOMMUNICATIONS
Telecommunications is used to retrieve data from Final Storage directly to a computer/terminal and to
program the CR10. Any user communication with the CR10 that makes use of a computer or terminal
instead of the CR10KD is through Telecommunications.
Telecommunications can take place over a variety of links including:
• Telephone
• Cellular phone
• Radio frequency
• Short haul modem and twisted pair wire
• SC32A and ribbon cable
• Multi-drop interface and coax cable
This section does not cover the technical interface details for any of these links. Those details are
covered in Section 6 and in the individual manuals for the devices.
Data retrieval can take place in either ASCII or BINARY. The BINARY format is 5 times more compact
than ASCII. The shorter transmission times for binary result in lower long distance costs if the link is
telephone and lower power consumption with an RF link. On "noisy" links shorter blocks of data are
more likely to get through without interruption.
For more efficient data transfer, binary data retrieval makes use of a signature for error detection. The
signature algorithm assures a 99.998% probability that if either the data or its sequence changes, the
signature changes.
Campbell Scientific has developed a software package which automates data retrieval and facilitates
the programming of Campbell Scientific dataloggers and the handling of data files. This package
(PC208) has been designed to meet the most common needs in datalogger support and
telecommunications. Therefore, this section does not furnish sufficient detail to write
telecommunications software. Appendix C contains some details of binary data transfer and Campbell
Scientific's binary data format.
The emphasis of this section is on the commands that a person would use when manually (i.e., keyed in
by hand) interrogating or programming the CR10 via a computer/terminal. These commands and the
responses to them are sent in the American Standard Code for Information Interchange (ASCII).
The telecommunications commands allow the user to perform several operations including:
• monitor data in Input Storage- review data in Final Storage
• retrieve Final Storage data in either ASCII or BINARY
• open communications with the Storage Module
• remote keyboard programming
The Remote Keyboard State (Section 5.2) allows the user with a computer/terminal to use the same
commands as the CR10KD.
When a modem/terminal rings the CR10, the 1. * from datalogger means "ready for
CR10 should answer almost immediately. command".
Several carriage returns (CR) must be sent to 2. All commands are of the form: [no.]letter,
the CR10 to allow it to set its baud rate to that where the number may or may not be
of the modem/terminal (300, 1200, 9600, or optional.
76,800). Once the baud rate is set, the CR10
will send back the prompt, "*", signaling that it is
ready to receive a command.
5-1
SECTION 5. TELECOMMUNICATIONS
3. Valid characters are the numbers 0-9, the The CR10 sends ASCII data with 8 bits, no
capital letters A-M, the colon (:), and the parity, one start bit, and one stop bit.
carriage return (CR).
After the CR10 answers a ring, or completes a
4. An illegal character increments a counter
command, it waits about 40 seconds (127
and zeros the command buffer, returning a
seconds in the Remote Keyboard State) for a
*.
valid character to arrive. It "hangs up" if it does
5. CR to datalogger means "execute". not receive a valid character in this time
interval. Some modems are quite noisy when
6. CRLF from datalogger means "executing not on line; it is possible for valid characters to
command". appear in the noise pattern. To insure that this
7. ANY character besides a CR sent to the situation does not keep the CR10 in
datalogger with a legal command in its telecommunications, the CR10 counts all the
buffer causes the datalogger to abort the invalid characters it receives from the time it
command sequence with CRLF* and to zero answers a ring, and terminates communication
the command buffer. after receiving 150 invalid characters.
8. All commands return a response code, The CR10 continues to execute its
usually at least a checksum. measurement and processing tasks while
9. The checksum includes all characters sent by servicing the telecommunication requests. If
the datalogger since the last *, including the the processing overhead is large (short
echoed command sequence, excluding only Execution Interval), the processing tasks will
the checksum itself. The checksum is slow the telecommunication functions. In a
formed by summing the ASCII values, without worst case situation, the CR10 interrupts the
parity, of the transmitted characters. The processing tasks to transmit a data point every
largest possible checksum value is 8191. 0.125 second.
Each time 8191 is exceeded, the CR10 starts
the count over; e.g., if the sum of the ASCII The best way to become familiar with the
values is 8192, the checksum is 0. Telecommunication Commands is to try them
from a terminal connected to the CR10 via the
10. Commands that return Campbell Scientific SC32A (Section 6.7.1) or other interface.
binary format data (i.e., F and K Commands used to interrogate the CR10 in the
commands) return a signature (see Telecommunications Mode are described in the
Appendix C.3). following Table.
5-2
SECTION 5. TELECOMMUNICATIONS
Command Description
[no. of arrays]B BACK-UP - MPTR is backed-up the specified number of Output Arrays
(no number defaults to 1) and advanced to the nearest start of array.
CR10 sends the Area, MPTR Location, and Checksum: Ax L+xxxxx
Cxxxx
[no. of arrays]D ASCII DUMP - If necessary, the MPTR is advanced to start of scan.
CR10 sends the number of arrays specified (no number defaults to 1)
or the number of arrays between MPTR and Reference, whichever is
smaller, CRLF, Location, Checksum.
[F.S. loc. no.]G MOVE MPTR - MPTR is moved to specified Final Storage location.
The location number must be entered. CR10 sends Area, Location,
and Checksum: Ax L+xxxxx Cxxxx
7H or 2718H REMOTE KEYBOARD - CR10 sends the prompt ">" and is ready to
execute standard keyboard commands (Section OV3).
[loc. no.]I Display/change value at Input Storage location. CR10 sends the value
stored at the location. A new value and CR may then be sent. CR10
sends checksum. If no new value is sent (CR only) the location value
will remain the same.
5-3
SECTION 5. TELECOMMUNICATIONS
[Password]L Unlocks security (if enabled) to the level determined by the password
entered (See *C Mode, Section 1.7). CR10 sends security level (0-3)
and checksum: Sxx Cxxxx
[X]M Connect to Storage Module with address 'X' and enter the Storage
Module's Telecommunications Mode (see Storage Module manual).
The Storage Module can also be accessed through the *9 Commands
while in the Remote Keyboard (Section 4.6 and the Storage Module
manual).
5.2 REMOTE PROGRAMMING OF THE Remember that entering *0 will compile and run
CR10 the CR10 program if program changes have
been made. If the CR10KD is connected it will
Remote programming of the CR10 can be just display "LOG" when *0 is executed via
accomplished with the PC208 software or telecommunications. It will not indicate active
directly through the Remote Keyboard State. tables (keying "*0" on the Keyboard/Display will
show the tables).
The PC208 Datalogger Support Software was
developed by Campbell Scientific for use with The 7H Command is generally used with a
IBM or compatible PC's. Datalogger programs terminal for direct entry since H makes use of a
are developed on the computer using the destructive backspace and does not send
program editor (EDLOG) and downloaded to control Q between each entry. The 2718H
the datalogger with the terminal emulator Command functions the same as it does for
program (GraphTerm). other Campbell Scientific dataloggers (deleting
an entry causes the entire entry to be sent,
The CR10 is placed in the Remote Keyboard "control Q" is sent after each user entry) and its
State by sending either "7H" or "2718H" and a use will be familiar to those already working
carriage return (CR). The CR10 responds by with a 21X or CR7X.
sending a CR, line feed (LF), and the prompt
'>'. The CR10 is then ready to receive the It is important to remember that the Remote
standard keyboard commands; it recognizes all Keyboard State is still within
the standard CR10 keyboard characters plus Telecommunications. Entering *0 exits the
several additional characters, such as the Remote Keyboard and returns the datalogger to
decimal point and the minus sign (Section the Telecommunications Command State,
OV3.2). ENTERING *0 RETURNS THE CR10 awaiting another command. So, the user can
TO THE TELECOMMUNICATIONS step back and forth between the
COMMAND STATE. Telecommunications Command State and the
Remote Keyboard Mode.
7H (or 2718H)
Telecommunications Remote
Command *0 Keyboard
State State
5-4
SECTION 6. 9-PIN SERIAL INPUT/OUTPUT
ABR = Abbreviation for the function name. PIN ABR I/O Description
PIN = Pin number.
6 SDE O Synchronous Device
O = Signal Out of the CR10 to a peripheral.
Enable: Used to
I = Signal Into the CR10 from a peripheral.
address Synchronous
Devices (SDs), and can
PIN ABR I/O Description
be used as an enable
1 5V O 5V: Sources 5 VDC, used line for printers.
to power peripherals.
7 CLK/HS I/O Clock/Handshake: Used
2 SG Signal Ground: with the SDE and TXD
Provides a power return lines to address and
for pin 1 (5V), and is transfer data to SDs.
used as a reference for When not used as a
voltage levels. clock, pin 7 can be used
as a handshake line
3 RING I Ring: Raised by a
(during printer output,
peripheral to put the
high enables, low
CR10 in the
disables).
telecommunications
mode. 8 TE O Tape Enable: Powers
the cassette recorder
4 RXD I Receive Data: Serial
during tape transfer.
data transmitted by a
peripheral are received 9 TXD O Transmit Data: Serial
on pin 4. data are transmitted
from the CR10 to
5 ME O Modem Enable: Raised
peripherals on pin 9;
when the CR10
logic low marking (0V)
determines that a
logic high spacing (5V)
modem raised the ring
standard asynchronous
line.
ASCII, 8 data bits, no
parity, 1 start bit, 1 stop
bit, 300, 1200, 9600,
76,800 baud (user
selectable).
6-1
SECTION 6. 9-PIN SERIAL INPUT/OUTPUT
6.2 ENABLING AND ADDRESSING The CR10 interprets a ring interrupt (Section
PERIPHERALS 6.3) to come from a modem if the device raises
the CR10's Ring line, and holds it high until the
While several peripherals may be connected in CR10 raises the ME line. Only one modem/
parallel to the 9-pin port, the CR10 has only terminal may be connected to the CR10.
one transmit line (pin 9) and one receive line
Print Peripherals are defined as peripherals
(pin 4, Table 6.1-1). The CR10 selects a
which have an asynchronous serial
peripheral in one of two ways: 1) A specific pin
communications port used to RECEIVE data
is dedicated to that peripheral and the
transferred by the CR10. In most cases the
peripheral is enabled when the pin goes high;
print peripheral is a printer, but could also be an
we will call this pin-enabled or simply enabled.
on-line computer or other device.
2) The peripheral is addressed; the address is
sent on pin 9, each bit being synchronously Synchronous Device Enable (SDE), pin 6, may be
clocked using pin 7. Pin 6 is set high while used to enable a print peripheral only when no
addressing. other addressable peripherals are connected to
the 9-pin connector. Use of the SDE line as an
6.2.1 PIN-ENABLED PERIPHERALS enable line maintains CR10 compatibility with
printer-type peripherals which require a line to be
Two pins are dedicated to specific devices,
held high (Data Terminal Ready) in order to
Tape Enable (pin 8) and Modem Enable (pin 5).
receive data.
Pin 6 (Synchronous Device Enable) can either
be used as a Print Enable OR it can be used to If output to both a print peripheral and an
address Synchronous Devices (Section 6.6). addressable peripheral is necessary the
SDC99 Synchronous Device Interface is
Tape Enable (TE), pin 8, is raised to enable
required. With the SDC99 the print peripheral
data transfer to tape. The SC92A Cassette
functions as an addressable peripheral. If the
Interface regulates 12 volts from the CR10 to
SDC99 is not used, the print peripheral
6V DC to power the RC35 recorder and also
receives the address and data sent to the
provides signal conditioning. ONLY ONE TAPE
addressed peripheral. Synchronous
INTERFACE AND RECORDER MAY BE
addressing appears as garbage characters on
CONNECTED TO THE CR10.
a print peripheral.
Modem Enable (ME), pin 5, is raised to enable
a modem that has raised the ring line. 6.2.2 ADDRESSED PERIPHERALS
Modem/terminal peripherals include Campbell
The CR10 distinguishes itself from other
Scientific phone modems and computers or
Campbell Scientific dataloggers by the ability to
terminals using the SC32A RS232 interface.
address Synchronous Devices (SDs). SDs differ
6-2
SECTION 6. 9-PIN SERIAL INPUT/OUTPUT
from enabled peripherals in that they are not from interrupting data transfer to a pin-enabled
enabled solely by a hardware line (Section 6.2.1); print device.
an SD is enabled by an address synchronously
clocked from the CR10 (Section 6.6).
After the CR10 has determined which Instruction 96 is aborted if a modem raises the Ring
peripheral raised the Ring line, the hierarchy is line. Data transfer to an addressed peripheral is
as follows: aborted if the ring line is raised by a CR10KD or RF
Modem configured as a synchronous device.
A modem which raises the Ring line will interrupt Transfer of data is not resumed until the next time
and gain control of the CR10. The one exception Instruction 96 is executed and the datalogger has
is that a modem cannot interrupt an active RF- exited telecommunications.
SDC. A ring from a modem aborts data transfer to
pin-enabled and addressed peripherals. The *8 Mode is used to manually initiate data
transfer from Final Storage to a peripheral. An
The CR10KD raises the ring line whenever a key abort flag is set if any key on the CR10KD or
is pressed. The CR10KD will not be serviced terminal is pressed during the transfer. Data
when the modem or RF-SDC is being serviced. transfer is stopped and the memory location
displayed when the flag is set. During *8 data
The ring from the CR10KD and RF-SDC is transfer the abort flag is checked as follows:
blocked when the SDE line is high, preventing it
6-3
SECTION 6. 9-PIN SERIAL INPUT/OUTPUT
1. Comma delineated ASCII - after every 32 Synchronous Devices (SDs). SDs differ from
characters. enabled peripherals (Section 6.2.1) in that they
2. Printable ASCII - after every line. are not enabled solely by a hardware line. An
3. Binary - after every 256 Final Storage locations. SD is enabled by an address synchronously
4. Tape - after every block (512 Final Storage clocked from the CR10. Up to 16 SDs may be
locations). addressed by the CR10, requiring only three
pins of the 9-pin connector.
6.5 MODEM/TERMINAL PERIPHERALS
Synchronous Device Communication (SDC)
The CR10 considers any device with an discussed here is for those peripherals which
asynchronous serial communications port connect to the 9-pin serial port. This should not
which raises the Ring line (and holds it high be confused with Synchronous Device for
until the ME line is raised) to be a modem Measurement (SDM) peripherals connected to
peripheral. Modem/terminals include Campbell control ports 1, 2, and 3. (Although the
Scientific phone modems, and most computers, communication protocol for SDMs is very
terminals, and modems using the SC32A similar, their addressing is independent of SDC
Optically Isolated RS232 Interface. addresses and they do not have a ring line.)
6-4
FIGURE 6.6-1. Addressing Sequence for the RF Modem
6-5
SECTION 6. 9-PIN SERIAL INPUT/OUTPUT
State 2 requires all SDs to drop the Ring line CLK/HS or RXD lines. Inactive SDs may raise
and prepare for addressing. The CR10 then the Ring line to request service.
synchronously clocks 8 bits onto TXD using
CLK/HS as a clock. The least significant bit is STATE 5
transmitted first and is always logic high. Each
bit transmitted is stable on the rising edge of State 5 is a branch from State 1 when the SDE
CLK/HS. The SDs shift in bits from TXD on the line is high and the CLK/HS line is low. The
rising edge of CLK/HS provided by the CR10. SDs must drop the Ring line in this state. This
The CR10 can only address one device per state is not used by SDs. The CR10 must force
State 2 cycle. More than one SD may respond the SDs back to the reset state from State 5
to the address, however. State 2 ends when before addressing SDs.
the 8th bit is received by the SD.
STATE 6
SDs implemented with shift registers decode State 6 is a branch from State 1, like State 5,
the 4 most significant bits (bits 4, 5, 6, and 7) except the SDE line is low and the CLK/HS line
for an address. Bit 0 is always logic high. Bits is high. The SDs must drop the Ring line in this
1, 2, and 3 are optional function selectors or state.
commands. Addresses established to date are
shown in Table 6.6-1 and are decoded with 6.7 MODEM/TERMINAL AND
respect to the TXD line.
COMPUTER REQUIREMENTS
TABLE 6.6-1. SD Addresses 6.7.1 SC32A INTERFACE
B7 B6 B5 B4 B3 B2 B1 B0 The CR10 considers any device with an
asynchronous serial communications port
SDC99 Printer 0 0 0 0 X X X 1 which raises the Ring line (and holds it high
Storage Module 0 0 0 1 X X X 1 until the ME line is raised) to be a modem
peripheral. Modems include Campbell
CR10 Keyboard 0 0 1 0 0 X X 1 Scientific phone modems, and most computers,
CR10 Display 0 0 1 0 1 X X 1 terminals, and modems using the SC32A
Optically Isolated RS232 Interface.
Cr10 RF Modem 0 0 1 1 X X X 1
EPROM Storage 0 1 0 0 X X X 1 Most modem and print peripherals require the
Module SC32A Optically Isolated RS232 Interface. The
SC32A raises the CR10's ring line when it
STATE 3, the SD Active State receives characters from a modem, and
converts the CR10's logic levels (0 V logic low,
The SD addressed by State 2, enters State 3. 5V logic high) to RS232 logic levels.
All other SDs enter State 4. An active SD
returns to State 1 by resetting itself, or by the The SC32A 25-pin port is configured as Data
CR10 forcing it to reset. Communications Equipment (DCE) (see Table
Active SDs have different acknowledgment and 6.7-1) for direct connection to Data Terminal
communication protocols. Once addressed, the Equipment (DTE), which includes most PCs
SD is free to use the CLK/HS, TXD, and RXD and printers. For connection to DCE devices
lines according to its protocol with the CR10. such as modems and some computers, a null
The CR10 may also pulse the SDE line after modem cable is required.
addressing, as long as the CLK/HS and SDE
are not low at the same time. When the SC32A receives a character from the
terminal/computer (pin 2), 5 V is applied to the
STATE 4, the SD Inactive State datalogger Ring line (pin 3) for one second or
until the Modem Enable line (ME) goes high.
The SDs not addressed by State 2 enter State The CR10 waits approximately 40 seconds to
4, if not able to reset themselves (e.g., SM192 receive carriage returns, which it uses to
Storage Module). Inactive SDs ignore data on establish baud rate. After the baud rate has
the TXD line and are not allowed to use the been set the CR10 transmits a carriage return,
line feed, "*", and enters the Telecommunica
6-6
SECTION 6. 9-PIN SERIAL INPUT/OUTPUT
tions Command State (Section 5). If the Set Ready (DSR) pin 6, and Received Line
carriage returns are not received within the 40 Signal Detect (RLSD) pin 8 are held high by the
seconds, the CR10 "hangs up". SC32A (when the RS232 section is powered)
which should satisfy hardware handshake
TABLE 6.7-1. SC32A Pin Description requirements of the computer/terminal.
ABR = Abbreviation for the function name Table 6.7-2 lists the most common RS232
PIN = Pin number configuration for Data Terminal Equipment.
O = Signal Out of the SC32A to a
peripheral
TABLE 6.7-2. DTE Pin Configuration
I = Signal Into the SC32A from peripheral
PIN = 25-pin connector number
25-PIN FEMALE PORT:
ABR = Abbreviation for the function name
PIN # I/O ABBREVIATION O = Signal Out of terminal to another device
1 GROUND I = Signal Into terminal from another device
2 I TX
3 O RX PIN ABR I/O FUNCTION
4 I RTS (POWER)
2 TD O Transmitted Data: Data
5 O CTS
is transmitted from the
6 O DSR
terminal on this line.
7 GROUND
8 O DCD 3 RD I Received Data: Data is
20 I DTR (POWER) received by the terminal
on this line.
9-PIN MALE PORT:
4 RTS O Request to Send: The
PIN # ABBREVIATION terminal raises this line
1 +5V INPUT to ask a receiving device
2 GROUND if the terminal can
3 RING transmit data.
4 RX
5 CTS I Clear to Send: The
5 ME
receiving device raises
6 SDE
this line to let the
9 TX
terminal know that the
receiving device is ready
NOTE: The SC32A has a jumper, which to accept data.
when used, passes data only when the ME
line is high and the SDE line is low. The 20 DTR O Data Terminal Ready:
function of the jumper is to block data sent The terminal raises this
to SDs from being received by a line to tell the modem to
computer/terminal used to initiate data connect itself to the
transfer. Synchronous data will appear as telephone line.
garbage characters on a 6 DSR I Data Set Ready: The
computer/terminal. modem raises this line to
tell the terminal that the
6.7.2 COMPUTER/TERMINAL REQUIREMENTS modem is connected to
the phone line.
Computer/terminal peripherals are usually
configured as Data Terminal Equipment (DTE). 8 DCD I Data Carrier Detect:
Pins 4 and 20 are used as handshake lines, The modem raises this
which are set high when the serial port is line to tell the terminal
enabled. Power for the SC32A RS232 section that the modem is
is taken from these pins. For equipment receiving a valid carrier
configured as DTE (see Table 6.7-2) a direct signal from the phone
ribbon cable connects the computer/terminal to line.
the SC32A. Clear to Send (CTS) pin 5, Data
6-7
SECTION 6. 9-PIN SERIAL INPUT/OUTPUT
6-8
SECTION 6. 9-PIN SERIAL INPUT/OUTPUT
If the computer/terminal is configured as DCE the 8th bit. The start bit is always a space, and
equipment (pin 2 is an input for RD), a null the stop bit is always a mark. Between
modem cable is required. See the SC32A characters the signal is in the marking
manual for details. condition.
6.7.3 COMMUNICATION PROTOCOL/TROUBLE Figure 6.7-1 shows how the ASCII character "1"
SHOOTING is transmitted. When transmitted by the CR10
using the SC32A RS232 interface spacing and
The ASCII standard defines an alphabet
marking voltages are positive and negative, as
consisting of 128 different characters where
shown. Signal voltages at the CR10 I/O port
each character corresponds to a number, letter,
are 5V in the spacing condition, and 0V in the
symbol, or control code.
marking condition.
An ASCII character is a binary digital code
composed of a combination of seven "bits", each BAUD RATE
bit having a binary state of 1 (one) or 0 (zero).
BAUD RATE is the number of bits transmitted
For example, the binary equivalent for the ASCII
per second. The CR10 can communicate at
character "1" is 0110001 (decimal 49).
300, 1200, 9600, and 76,800 baud. In the
ASCII characters are transmitted one bit at a Telecommunications State, the CR10 will set its
time, starting with the 1st (least significant) bit. baud rate to match the baud rate of the
During data transmission the marking condition computer/terminal.
is used to denote the binary state 1, and the
spacing condition for the binary state 0. The Typically the baud rate of the modem/computer/
signal is considered marking when the voltage terminal is set either with dip switches, or
is more negative than minus three volts with programmed from the keyboard. The instrument's
respect to ground, and spacing when the instruction manual should explain how to set it.
voltage is more positive than plus three volts.
DUPLEX
Most computers use 8-bits (1 byte) for data
communications. The 8th bit is sometimes Full duplex means that two devices can
used for a type of error checking called parity- communicate in both directions simultaneously.
checking. Even parity binary characters have Half duplex means that the two devices must send
an even number of 1's, odd-parity characters and receive alternately. Full duplex should always
have an odd number of 1's. When parity be specified when communicating with Campbell
checking is used, the 8th bit is set to either a 1 Scientific peripherals and modems. However,
or a 0 to make the parity of the character communication between some Campbell Scientific
correct. The CR10 ignores the 8th bit of a modems (such as the RF95 RF modem) is carried
character that is receives, and transmits the 8th out in a half duplex fashion. This can affect the
bit as a binary 0. This method is generally way commands should be sent to and received
described as "no parity". from such a modem, especially when implemented
by computer software.
To separate ASCII characters a Start bit is sent
before the 1st bit, and a Stop bit is sent after
6-9
SECTION 6. 9-PIN SERIAL INPUT/OUTPUT
To overcome the limitations of half duplex, If you are using a computer to communicate
some communications links expect a terminal with the datalogger, communication software
sending data to also write the data to the must be used to enable the serial port and to
screen. This saves the remote device having to make the computer function as a terminal.
echo that data back. If, when communicating Campbell Scientific's TERM program (part of
with a Campbell Scientific device, characters the PC208 Datalogger Support Software)
are displayed twice (in pairs), it is likely that the provides this function for IBM PC/XT/AT/PS-2's
terminal is set to half duplex rather than the and compatibles. The port should be enabled
correct setting of full duplex. for 300, 1200, or 9600 baud, 8 data bits, 1 stop
bit, and no parity.
IF NOTHING HAPPENS
If you are not sure that your computer/terminal
If the CR10 is connected to the SC32A RS232
is sending or receiving characters, there is a
interface and a modem/terminal, and an "*" is
simple way to verify it. Make sure that the
not received after sending carriage returns:
duplex is set to full. Next, take a paper clip and
connect one end to pin 2, and the other end to
1. Verify that the CR10 has power AT THE
pin 3 of the serial port. Each character typed
12V AND GROUND INPUTS, and that the
on the keyboard will be displayed only if
cables connecting the devices are securely
transmitted from the terminal on pin 2, and
connected.
received on pin 3 (if duplex is set to half, the
character will be displayed once if it is not
2. Verify that the port of the modem/terminal is transmitted, or twice if it is transmitted).
an asynchronous serial communications
port configured as DTE (see Table 6.7-2).
IF GARBAGE APPEARS
The most common problems occur when
the user tries to use a parallel port, or If garbage characters appear on the display,
doesn't know the port assignments, i.e. check that the baud rate is supported by the
COM1 or COM2. IBM, and most CR10. If the baud rate is correct, verify that the
compatibles come with a Diagnostic disk computer/terminal is set for 8 data bits, and no
which can be used to identify ports, and parity. Garbage will appear if 7 data bits and
their assignments. If the serial port is no parity are used. If the computer/terminal is
standard equipment, then the operators set to 8 data bits and even or odd parity,
manual should give you this information. communication cannot be established.
6-10
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
This section gives some examples of Input Programming for common sensors used with the CR10.
These examples detail only the connections, Input, Program Control, and Processing Instructions
necessary to perform measurements and store the data in engineering units in Input Storage. Output
Processing Instructions are omitted (see Section 8 for some processing and program control examples).
It is left to the user to program the necessary instructions to obtain the final data in the form desired. No
output to final storage will take place without additional programming.
The examples given in this section would likely be only fragments of larger programs. In general, the
examples are written with the measurements made by the lowest numbered channels, the instructions
at the beginning of the program table, and low number Input Storage Locations used to store the data.
It is unlikely that an application and CR10 configuration exactly duplicates that assumed in an example.
These examples are not meant to be used verbatim; sensor calibration, input channels, and input
locations must be adjusted for the actual circumstances. Unless otherwise noted, all excitation
channels are switched analog output.
7.1 SINGLE-ENDED VOLTAGE - LI200S at the surface of the earth will be less than this.
SILICON PYRANOMETER Thus, the 25mV scale provides an adequate
range (9.0mV/kW/m2 x 1.36 kW/m2 < 25mV).
The silicon pyranometer outputs a current
which is dependent upon the solar radiation CONNECTIONS
incident upon the sensor. The current is
measured as the voltage drop across a fixed The pyranometer output can be measured with
resistor. The Campbell Scientific LI200S uses a single-ended voltage measurement on
a 100 ohm resistor. The calibration supplied by channel 5. There are twice as many single-
LI-COR, the manufacturers of the pyranometer, ended channels as differential channels and
is given in µA/kW/m2. To convert calibration they are numbered accordingly: Single-ended
values to volts multiply the µA calibration by the channel 5 is the high side of differential channel
resistance of the fixed resistor. 3 (3H); the low side (3L) is single-ended channel
6.
The calibration of the pyranometer used in this
example is 76.9 µA/kW/m2, which when PROGRAM
multiplied by 100 ohms equals 7.69mV/kW/m2.
The multiplier used to convert the voltage 01: P1 Volt (SE)
reading to kW/m2 is 1/7.69mV/kW/m2 = 01: 1 Rep
0.13004 kW/m2/mV. 02: 23 25 mV 60 Hz rejection
Range
Most LI-COR calibrations run between 60 and 90 03: 5 IN Chan
µA/kW/m2, which correspond to calibrations of 04: 1 Loc [:RAD kW/m2]
6.0 to 9.0mV/kW/m2. Above the earth's 05: .13004 Mult
atmosphere, the flux density through a surface 06: 0 Offset
normal to the solar beam is 1.36kW/m2; radiation
7-1
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
FIGURE 7.2-1. Typical Connection for Active Sensor with External Battery
7-2
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-3
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-4
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
temperatures of the three probes which are excessive intervals", and "outputs the reading
stored in Input Locations 1-3; the RH values are as a frequency" (Hz = pulses per second). The
stored in Input Locations 4-6. The temperature frequency output is the only output option that
measurements are made on single-ended input is independent of the scan rate.
channels 1-3, just as in example 7.5. The
The anemometer used in this example is the R. M.
program listed below is a continuation of the
Young Model 12102D Cup Anemometer, with a 10
program given in example 7.5.
window chopper wheel. The photochopper
circuitry is powered from the CR10 12 V supply;
CONNECTIONS
AC power or back-up batteries should be used to
The black leads from the probes are connected compensate for the increased current drain.
to excitation channel 1, the purple leads are
Wind speed is desired in meters per second
connected to analog ground (AG), and the clear
(m/s). There is a pulse each time a window in
leads are connected to Ground (G). The red
the chopper wheel, which revolves with the
leads are from the thermistor circuit and are
cups, allows light to pass from the source to the
connected to single-ended channels 1-3 (1H,
photoreceptor. Because there are 10 windows
1L, 2H). The white leads are from the RH
in the chopper wheel, there are 10 pulses per
circuit and are connected to single-ended
revolution. Thus, 1 revolution per minute (rpm)
channels 4-6 (2L, 3H, and 3L). The correct
is equal to 10 pulses per 60 seconds (1 minute)
order must be maintained when connecting the
or 6 rpm = 1 pulse per second (Hz). The
red and white leads; i.e., the red lead from the
manufacturer's calibration for relating wind
first probe is connected to single-ended
speed to rpm is:
channel 1H and the white lead from that probe
is connected to single-ended channel 2L, etc. Wind(m/s) =
(0.01632 m/s)/rpm x Xrpm + 0.2 m/s
PROGRAM (continuation of previous example)
The result of the Pulse Count Instruction
02: P12 RH 207 Probe
(Configuration Code = 20) is X pulses per sec.
01: 3 Reps
(Hz). The multiplier and offset to convert XHz to
02: 4 IN Chan
meters per second are: Wind (m/s) = (0.01632
03: 1 Excite all reps w/EXchan 1
m/s)/rpm x (6 rpm/Hz) x XHz + 0.2 m/s
04: 1 Temperature Loc 107 T #1
05: 4 Loc [:RH #1 ] Wind (m/s) =
06: 1 Mult (0.09792 m/s)/Hz x XHz + 0.2 m/s
07: 0 Offset
PROGRAM
7.7 ANEMOMETER WITH 01: P3 Pulse
PHOTOCHOPPER OUTPUT 01: 1 Rep
02: 1 Pulse Input Chan
An anemometer with a photochopper 03: 20 High frequency; Output Hz.
transducer produces a pulse output which is
measured by the CR10's Pulse Count 04: 10 Loc [:WS MPH ]
Instruction. The Pulse Count Instruction with a 05: .09792 Mult
Configuration Code of 20, measures "high 06: 0.2 Offset
frequency pulses", "discards data from
7-5
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
FIGURE 7.8-1. Wiring Diagram for Rain Gage with Long Leads
7.8 TIPPING BUCKET RAIN GAGE WITH resistance. In this example, it is desired to
LONG LEADS measure a temperature in the range of -10 to
40°C. The length of the cable from the CR10 to
A tipping bucket rain gage is measured with the the PRT is 500 feet.
Pulse Count Instruction configured for Switch
Closure. Counts from long intervals will be Figure 7.9-1 shows the circuit used to measure
used, as the final output desired is total rainfall the PRT. The 10 kohm resistor allows the use
(obtained with Instruction 72, Totalize). If of a high excitation voltage and low voltage
counts from long intervals were discarded, less ranges on the measurements. This insures that
rainfall would be recorded than was actually noise in the excitation does not have an effect
measured by the gage (assuming there were on signal noise. Because the fixed resistor (Rf)
counts in the long intervals). Output is desired and the PRT (Rs) have approximately the same
in millimeters of precipitation. The gage is resistance, the differential measurement of the
calibrated for a 0.01 inch tip, therefore, a voltage drop across the PRT can be made on
multiplier of 0.254 is used. the same range as the differential
measurement of the voltage drop across Rf.
In a long cable there is appreciable capacitance
between the lines. The capacitance is If the voltage drop across the PRT (V2) is kept
discharged across the switch when it closes. In under 50mV, self heating of the PRT should be
addition to shortening switch life, a transient less than 0.001°C in still air. The best
may be induced in other wires packaged with resolution is obtained when the excitation
the rain gage leads each time the switch voltage is large enough to cause the signal
closes. The 100 ohm resistor protects the voltage to fill the measurement voltage range.
switch from arcing and the associated transient The resolution of this measurement on the
from occurring, and should be included any 25mV range is +0.04°C. The voltage drop
time leads longer than 100 feet are used with a across the PRT is equal to Vx multiplied by the
switch closure. ratio of Rs to the total resistance, and is
greatest when Rs is greatest (Rs=115.54 ohms
PROGRAM at 40°C). To find the maximum excitation
01: P3 Pulse voltage that can be used, we assume V2 equal
01: 1 Rep to 25 mV and use Ohm's Law to solve for the
02: 1 Pulse Input Chan resulting current, I.
03: 2 Switch closure I = 25mV/Rs = 25mV/115.54 ohms = 0.216 mA
04: 11 Loc [:RAIN mm ]
05: 0.254 Mult Next solve for Vx:
06: 0 Offset Vx = I(R1+Rs+Rf) = 2.21V
7.9 100 OHM PRT IN 4 WIRE HALF If the actual resistances were the nominal
values, the CR10 would not over range with Vx
BRIDGE = 2.2 V. To allow for the tolerances in the
Instruction 9 is the best choice for accuracy actual resistances, it is decided to set Vx equal
where the Platinum Resistance Thermometer to 2.1 volts (e.g., if the 10 kohms resistor is 5%
(PRT) is separated from other bridge low, then Rs/(R1+Rs+Rf)=115.54/9715.54, and
completion resistors by a lead length having Vx must be 2.102V to keep Vs less than 25mV).
more than a few thousandths of an ohm
7-6
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
The result of Instruction 9 when the first The 10 ppm/°C temperature coefficient of the
differential measurement (V1) is not made on fixed resistor will limit the error due to its
the 2.5 V range is equivalent to Rs/Rf. change in resistance with temperature to less
Instruction 16 computes the temperature (°C) than 0.15°C over the specified temperature
for a DIN 43760 standard PRT from the ratio of range. Because the measurement is
the PRT resistance at the temperature being ratiometric (Rs/Rf), the properties of the 10
measured to its resistance at 0°C (Rs/R0). kohm resistor do not affect the result.
Thus, a multiplier of Rf/R0 is used in Instruction
9 to obtain the desired intermediate, Rs/R0 PROGRAM
(=Rs/Rf x Rf/Ro). If Rs and R0 were each
exactly 100 ohms, the multiplier would be 1. 01: P9 Full BR w/Compensation
However, neither resistance is likely to be 01: 1 Rep
exact. The correct multiplier is found by 02: 23 25 mV 60 Hz rejection EX
connecting the PRT to the CR10 and entering Range
Instruction 9 with a multiplier of 1. The PRT is 03: 23 25 mV 60 Hz rejection BR
Range
then placed in an ice bath (@ 0°C; Rs=R0), and
04: 1 IN Chan
the result of the bridge measurement is read
05: 1 Excite all reps w/EXchan 1
using the *6 Mode. The reading is Rs/Rf, which
06: 2100 mV Excitation
is equal to Ro/Rf since Rs=Ro. The correct
07: 1 Loc [:Rs/Ro ]
value of the multiplier, Rf/R0, is the reciprocal of
08: 1.0111 Mult (Rf/Ro)
this reading. The initial reading assumed for
09: 0 Offset
this example was 0.9890. The correct multiplier
is: Rf/R0 = 1/0.9890 = 1.0111.
02: P16 Temperature RTD
01: 1 Rep
The fixed 100 ohm resistor must be thermally
02: 1 R/Ro Loc Rs/Ro
stable. Its precision is not important because
03: 2 Loc [:TEMP C ]
the exact resistance is incorporated, along with
04: 1 Mult
that of the PRT, into the calibrated multiplier.
05: 0 Offset
7-7
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
FIGURE 7.10-1. 3 Wire Half Bridge Used to Measure 100 ohm PRT
7.10 100 OHM PRT IN 3 WIRE HALF ohms per 1000 feet, which would give each 500
BRIDGE foot lead wire a nominal resistance of 8.3 ohms.
Two percent of 8.3 ohms is 0.17 ohms.
The temperature measurement requirements in Assuming that the greater resistance is in wire
this example are the same as in Section 7.9. In B, the resistance measured for the PRT (R0 =
this case, a three wire half bridge, Instruction 7, 100 ohms) in the ice bath would be 100.17
is used to measure the resistance of the PRT. ohms, and the resistance at 40°C would be
The diagram of the PRT circuit is shown in Fig. 115.71. The measured ratio Rs/R0 is 1.1551;
7.10-1. the actual ratio is 115.54/100 = 1.1554. The
temperature computed by Instruction 16 from
As in the example in Section 7.9, the excitation the measured ratio would be about 0.1°C lower
voltage is calculated to be the maximum than the actual temperature of the PRT. This
possible, yet allow the +25 mV measurement source of error does not exist in the example in
range. The 10 kohm resistor has a tolerance of Section 7.9, where a 4 wire half bridge is used
±1%; thus, the lowest resistance to expect from to measure PRT resistance.
it is 9.9 kohms. We calculate the maximum
excitation voltage (Vx) to keep the voltage drop The advantages of the 3 wire half bridge are
across the PRT less than 25 mV: that it only requires 3 lead wires going to the
sensor and takes 2 single-ended input
channels, whereas the 4 wire half bridge
0.025V > Vx 115.54/(9900+115.54);
requires 4 wires and 2 differential channels.
Vx < 2.17 V
PROGRAM
The excitation voltage used is 2.1 V.
01: P7 3 Wire Half Bridge
01: 1 Rep
The multiplier used in Instruction 7 is
02: 23 25 mV 60 Hz rejection Range
determined in the same manner as in Section
03: 1 IN Chan
7.9. In this example, the multiplier (Rf/R0) is
04: 1 Excite all reps w/EXchan 1
assumed to be 100.93.
05: 2100 mV Excitation
06: 1 Loc [:Rs/Ro ]
The 3 wire half bridge compensates for lead
07: 100.93 Mult
wire resistance by assuming that the resistance
08: 0 Offset
of wire A is the same as the resistance of wire
B. The maximum difference expected in wire
02: P16 Temperature RTD
resistance is 2%, but is more likely to be on the
01: 1 Rep
order of 1%. The resistance of Rs calculated
02: 1 R/Ro Loc Rs/Ro
with Instruction 7, is actually Rs plus the
03: 2 Loc [:TEMP C ]
difference in resistance of wires A and B. The
04: 1 Mult
average resistance of 22 AWG wire is 16.5
05: 0 Offset
7-8
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7.11 100 OHM PRT IN 4 WIRE FULL is obtained when the temperature range results
BRIDGE in an output voltage (Vs) range which fills the
measurement range selected in Instruction 6.
This example describes obtaining the The full bridge configuration allows the bridge
temperature from a 100 ohm PRT in a 4 wire to be balanced (Vs = 0V) at or near the control
full bridge (Instruction 6). The temperature temperature. Thus, the output voltage can go
being measured is in a constant temperature both positive and negative as the bath
bath and is to be used as the input for a control temperature changes, allowing the full use of
algorithm. The PRT in this case does not the measurement range.
adhere to the DIN standard (alpha = 0.00385)
used in the temperature calculating Instruction The resistance of the PRT is approximately
16. Alpha is defined as ((R100/R0)-1)/100, 119.7 ohms at 50°C. The 120 ohm fixed
where R100 and R0 are the resistances of the resistor balances the bridge at approximately
PRT at 100°C and 0°C, respectively. In this 51°C. The output voltage is:
PRT alpha is equal to 0.00392.
Vs = Vx [Rs/(Rs+R1) - R3/(R2+R3)]
The result given by Instruction 6 (X) is 1000
Vs/Vx (where Vs is the measured bridge output = Vx [Rs/(Rs+5000) - 0.023438]
voltage, and Vx is the excitation voltage) which The temperature range to be covered is ±50
is: ±10°C. At 40°C Rs is approximately 115.8
X = 1000 (Rs/(Rs+R1)-R3/(R2+R3)) ohms, or:
The resistance of the PRT (Rs) is calculated Vs = -802.24x10-6 Vx
with the Bridge Transform Instruction 59: Even with an excitation voltage (Vx) equal to 2500
Rs = R1 X'/(1-X') mV, Vs can be measured on the +2.5 mV scale
(40°C = 115.8 ohms = -2.006 mV, 60°C = 123.6
Where ohms = 1.714 mV). There is a change of
X' = X/1000 + R3/(R2+R3) approximately 2 mV from the output at 40°C to the
output at 51°C, or 181 µV/°C. With a resolution of
Thus, to obtain the value Rs/R0, (R0 = Rs @
0.33 µV on the 2.5 mV range, this means that the
0°C) for the temperature calculating Instruction
temperature resolution is 0.0018°C.
16, the multiplier and offset used in Instruction
6 are 0.001 and R3/(R2+R3), respectively. The The 5 ppm per °C temperature coefficient of the
multiplier used in Instruction 59 to obtain Rs/R0 fixed resistors was chosen so that their 0.01%
is R1/R0 (5000/100 = 50). accuracy tolerance would hold over the desired
temperature range.
It is desired to control the temperature bath at
The relationship between temperature and PRT
50°C with as little variation as possible. High
resistance is slightly nonlinear one. Instruction
resolution is needed so that the control
16 computes this relationship for a DIN
algorithm will be able to respond to minute
standard PRT where the nominal temperature
changes in temperature. The highest resolution
7-9
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-10
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7.13 LYSIMETER - 6 WIRE FULL BRIDGE water) in the lysimeter before the counterbalance
would have to be readjusted.
When a long cable is required between a load cell
and the CR10, the resistance of the wire can There is 1000 feet of 22 AWG cable between the
create a substantial error in the measurement if CR10 and the load cell. The output of the load cell
the 4 wire full bridge (Instruction 6) is used to is directly proportional to the excitation voltage.
excite and measure the load cell. This error arises When Instruction 6 (4 wire half bridge) is used, the
because the excitation voltage is lower at the load assumption is that the voltage drop in the
cell than at the CR10 due to voltage drop in the connecting cable is negligible. The average
cable. The 6 wire full bridge (Instruction 9) avoids resistance of 22 AWG wire is 16.5 ohms per 1000
this problem by measuring the excitation voltage feet. Thus, the resistance in the excitation lead
at the load cell. This example shows the errors going out to the load cell added to that in the lead
one would encounter if the actual excitation coming back to ground is 33 ohms. The resistance
voltage was not measured and shows the use of a of the bridge in the load cell is 350 ohms. The
6 wire full bridge to measure a load cell on a voltage drop across the load cell is equal to the
weighing lysimeter (a container buried in the voltage at the CR10 multiplied by the ratio of the
ground, filled with plants and soil, used for load cell resistance, Rs, to the total resistance, RT,
measuring evapotranspiration). of the circuit. If Instruction 6 were used to measure
the load cell, the excitation voltage actually applied
The lysimeter is 2 meters in diameter and 1.5 to the load cell, V1, would be:
meters deep. The total weight of the lysimeter
with its container is approximately 8000 kg. The V1 = Vx Rs/RT = Vx 350/(350+33) = 0.91 Vx
lysimeter has a mechanically adjustable counter-
balance, and changes in weight are measured Where Vx is the excitation voltage. This means
with a 250 pound (113.6 kg) capacity Sensotec that the voltage output by the load cell would only
Model 41 tension/compression load cell. The
be 91% of that expected. If recording of the
load cell has a 4:1 mechanical advantage on the
lysimeter data was initiated with the load cell
lysimeter (i.e., a change of 4 kg in the mass of
output at 0 volts, and 100 mm of evapotranspira-
the lysimeter will change the force on the load
cell by 1 kg-force or 980 N). tion had occurred, calculation of the change with
Instruction 6 would indicate that only 91 mm of
The surface area of the lysimeter is 3.1416 m2 or water had been lost. Because the error is a fixed
31,416 cm2, so 1 cm of rainfall or evaporation percentage of the output, the actual magnitude of
results in a 31.416 kg change in mass. The load the error increases with the force applied to the
cell can measure ±113.6 kg, a 227 kg range. This load cell. If the resistance of the wire was
represents a maximum change of 909 kg (28 cm of constant, one could correct for the voltage drop
with a fixed multiplier. However, the resistance of
7-11
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
copper changes 0.4% per degree C change in Instruction 9 is the ratio of the output voltage to
temperature. Assume that the cable between the the actual excitation voltage multiplied by 1000,
load cell and the CR10 lays on the soil surface which is mV/V1):
and undergoes a 25°C diurnal temperature
1/0.02147 mV/V1/mm = 46.583 mm/mV/V1
fluctuation. If the resistance is 33 ohms at the
maximum temperature, then at the minimum
The output from the load cell is connected so
temperature, the resistance is:
that the voltage increases as the mass of the
(1-25x0.004)33 ohms = 29.7 ohms lysimeter increases. (If the actual mechanical
linkage was as shown in Figure 7.13-1, the
The actual excitation voltage at the load cell is:
output voltage would be positive when the load
V1 = 350/(350+29.7) Vx = .92 Vx cell was under tension.)
The excitation voltage has increased by 1%, When the experiment is started, the water content
relative to the voltage applied at the CR10. In the of the soil in the lysimeter is approximately 25% on
case where we were recording a 91 mm change a volume basis. It is decided to use this as the
in water content, there would be a 1 mm diurnal reference (i.e., 0.25 x 1500 mm = 375 mm). The
change in the recorded water content that would experiment is started at the beginning of what is
actually be due to the change in temperature. expected to be a period during which
Instruction 9 solves this problem by actually evapotranspiration exceeds precipitation.
measuring the voltage drop across the load cell Instruction 9 is programmed with the correct
bridge. The drawbacks to using Instruction 9 are multiplier and no offset. After hooking everything
that it requires an extra differential channel and up, the counterbalance is adjusted so that the load
the added expense of a 6 wire cable. In this cell is near the top of its range; this will allow a
case, the benefits are worth the expense. longer period before readjustment is necessary.
The result of Instruction 9 (monitored with the *6
The load cell has a nominal full scale output of 3 Mode) is 109. The offset needed to give the
millivolts per volt excitation. If the excitation is 2.5 desired initial value of 375 mm is 266. However, it
volts, the full scale output is 7.5 millivolts; thus, the is decided to add this offset in a separate
±7.5 millivolt range is selected. The calibrated instruction so the result of Instruction 9 can be
output of the load cell is 3.106 mV/V1 at a load of used as a ready reminder of the strain on the load
250 pounds. Output is desired in millimeters of cell (range = ±140 mm). When the strain on the
water with respect to a fixed point. The "4" found load cell nears its rated limits, the counterbalance
in equation 7.13-1 is due to the mechanical is readjusted and the offset recalculated to provide
advantage. The calibration in mV/V1/mm is: a continuous record of the water budget.
3.106 mV/V1/250 lb x 2.2 lb/kg x The program table has an execution interval of 10
3.1416 kg/mm/4 = 0.02147 mV/V1/mm seconds. The average value in millimeters is output
The reciprocal of this gives the multiplier to to Final Storage (not shown in Table) every hour.
convert mV/V1 into millimeters. (The result of
7-12
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
The average is used, instead of a sample, in order to The Campbell Scientific 227 Soil Moisture Block
cancel out effects of wind loading on the lysimeter. uses a Delmhorst gypsum block with a 1 kohm
bridge completion resistor. Using data supplied by
PROGRAM
Delmhorst, Campbell Scientific has computed
01: P9 Full BR w/Compensation coefficients for a 5th order polynomial to convert
01: 1 Rep block resistance to water potential in bars. There
02: 25 2500 mV 60 Hz rejection are two polynomials: one to optimize the range from
EX Range -0.1 to -2 bars, and one to cover the range from -0.1
03: 22 7.5 mV 60 Hz rejection BR to -10 bars (the minus sign is omitted in the output).
Range The -0.1 to -2 bar polynomial requires a multiplier of
04: 1 IN Chan 1 in the Bridge Transform Instruction (result in
05: 1 Excite all reps w/EXchan 1 kohms) and the -0.1 to -10 bar polynomial requires a
06: 2500 mV Excitation multiplier of 0.1 (result in 10,000s of ohms). The
07: 1 Loc [:RAW mm ] multiplier is a scaling factor to maintain the
08: 46.583 Mult maximum number of significant digits in the
09: 0 Offset polynomial coefficients.
02: P34 Z=X+F In this example, we wish to make measurements
01: 1 X Loc RAW mm on six gypsum blocks and output the final data in
02: 266 F bars. The soil where the moisture measurements
03: 2 Z Loc [:mm H20 ] are to be made is quite wet at the time the data
logging is initiated, but is expected to dry beyond
7.14 227 GYPSUM SOIL MOISTURE BLOCK the -2 bar limit of the wet range polynomial. The
dry range polynomial is used, so a multiplier of 0.1
Soil moisture is measured with a gypsum block is entered in the bridge transform instruction.
by relating the change in moisture to the change
in resistance of the block. An AC Half Bridge When the water potential is computed, it is
(Instruction 5) is used to determine the resistance written over the resistance value. The
of the gypsum block. Rapid reversal of the potentials are stored in Input Locations 1-6
excitation voltage inhibits polarization of the where they may be accessed for output to Final
sensor. Polarization creates an error in the Storage. If it was desired to retain the
output so the fast integration option is used. The resistance values, the potential measurements
output of Instruction 5 is the ratio of the output could be stored in Locations 7-12 by changing
voltage to the excitation voltage; this output is the value in Parameter 3 to 7 in Instruction 55.
converted to gypsum block resistance with Section 8.3 gives an example using the AM416
Instruction 59, Bridge Transform. Multiplexer to measure 16 Soil Moisture Blocks.
7-13
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-14
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-15
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
To calculate the multiplier, convert Geokon's After the probe reaches thermal equilibrium, the
gage factor, G, to the desired units (i.e., feet of initial temperature, t0, is measured to be 24°C.
water per digit) and multiply by -1000.
The water column above the sensor is referred
TEMPERATURE CORRECTION to as the "Reading". The Reading decreases
with increasing "Distance" from lip of well to
The temperature correction is applied as water surface so the Distance is computed by
follows. subtracting the Reading from the Offset as
shown in Figure 7.16-2.
PT = P + C * (t1 - t0), where
The "Initial Distance" to the water surface is
PT = Pressure corrected for temperature, °C measured with a chalked line to be 47.23 feet
C = Temperature coefficient, PSI/°C (from below the lip. The first time the program is
Geokon calibration sheet) executed, the program calculates the offset
t0 & t1 = Initial and current temperatures, °C. (Offset = Distance + Reading) required to
obtain a reading of 47.23 feet. The offset is
The temperature coefficient, C, must be
stored in Location 4 and applied to subsequent
converted to units compatible with the gage
measurements.
factor, G.
7-16
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-17
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-18
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-19
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
Time out calculations using a recommended TABLE 7.17-3 Coefficient Entry Format for
9000 and 5000 cycles for temperature and Paroscientific "T" Series Pressure
pressure at the maximum frequency are shown Transducer Instruction 30
below.
Time out for temperature: 6, Coeff. Value Param. 1 Param.
5.22 = (5.8*10-6)(9000/0.01) 2
U0 5.860253 5.8603 0.0
Time out for pressure: 16, Y1 -3970.348 -3970.3 0.0
15.5 = (3.1*10-5)(5000/0.01) Y2 -7114.265 -7114.3 0.0
If the time out expires before the requested Y3 102779.1 102.78 3.0*
number of cycles are read, -99999 is stored in C1 70.29398 70.294 0.0
the input location (Parameter 6). After reading C2 6.610141 6.6101 0.0
the correct number of cycles, program C3 -119.2867 -119.29 0.0
execution advances to the next instruction; the D1 0.0308837 30.884 -3.0*
time out may be over estimated without losing D2 0.0 0.0 0.0
execution speed. T1 26.33703 26.337 0.0
T2 0.8516985 0.85170 0.0
CONVERTING MICROSECONDS TO °C AND T3 21.80118 21.801 0.0
PSI T4 0.0 0.0 0.0
T5 0.0 0.0 0.0
The temperature and pressure in microseconds
are converted to °C and psi according to the *Y3 and D1 are the only coefficients with a non-
following relationships provided by zero exponent.
Paroscientific.
Only the first 5 digits of each 7 digit coefficient
Pressure (psi) =
are entered in the datalogger. The maximum
C * (1 T02/Tau2) * (1 (D * (1 - T02/Tau2)))
error that occurs due to using five digit
Temperature (°C) = Y1U + Y2U2 + Y3U3 coefficients is 0.001 psi throughout a 15 psi
range at any temperature between -30 and
where, C = C1 + C2U + C3U2 (psi),
+60°C. The maximum error in temperature
T0 = T1 + T2U + T3U2 + T4U3 + T5U4 calculations is 0.2°C over the same
(microsecond), temperature range.
D = D1 + D2U (microsecond),
CONNECTIONS
U = U(t) U0 (microsecond),
Figure 7.17-1 details the components required
Tau = measured pressure (microsecond), for connecting the transducer to the CR10. The
user supplied components are commonly
U(t) = measured temperature (microsecond).
available at commercial electronic stores.
Values for the calibration coefficients (U0, Y1,
PROGRAM EXAMPLE
Y2, Y3, C1, C2, C3, D1, D2, T1, T2, T3, T4, T5)
are provided by Paroscientific. The program may be divided into the following
7 steps.
ENTERING THE COEFFICIENTS
1. Load the coefficients into input locations
Coefficients are entered using CR10 Instruction (Subroutine 1).
30 or 64. A calibration sheet from 2. Measure the temperature and pressure.
Paroscientific which accompanies the 3. Compute U.
transducer lists the 14 coefficients. Table 7.17- 4. Compute temperature, °C.
3 shows the correct format for entering the 5. Compute T0, T02, Tau2, and 1-T02/Tau2.
coefficients. The coefficients shown are for 6. Compute D.
transducer Serial Number 30135. Your 7. Compute C.
coefficients will be different. 8. Compute pressure (psi.)
7-20
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-21
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-22
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-23
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-24
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-25
SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES
7-26
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
The following examples are intended to illustrate the use of Processing and Program Control
Instructions, flags, dual Final Storage, and the capability to direct the results of Output Processing
Instructions to Input Storage.
The specific examples may not be as important as some of the techniques employed, for example:
Directing Output Processing to Input Storage is used in the Running Average and Rainfall Intensity
examples (8.1 and 8.2).
Flag tests are used in the Running Average, Interrupt Subroutine, Converting Wind Direction, and
Saving Data Prior to Event examples (8.1, 8.5, 8.7 and 8.8).
Control ports and the Loop are illustrated in the AM32 example (8.3).
An algorithm for a down counter is used in the Saving Data Prior to Event example (8.8).
As in Section 7 these examples are not complete programs to be taken verbatim. They need to be
altered to fit specific needs.
8-1
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-2
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
07: P77 Real Time The input location in which the temperature and
01: 110 Day,Hour-Minute soil moisture measurements are stored is
indexed to the loop counter (Instruction 87,
08: P70 Sample Section 12). An indexed location is
01: 1 Reps incremented by one with each pass through the
02: 2 Loc 15min tot loop. For example, on the first pass
temperature is stored in Location 2, and soil
09: P95 End moisture in Location 18. On the second pass
temperature is stored in Location 3, and soil
10: P End Table 1 moisture in Location 19. After 16 loop passes,
temperature and soil moisture measurements
occupy Locations 2 through 17 and 18 through
33, respectively.
8-3
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
FIGURE 8.3-1. AM416 Wiring Diagram For Thermocouple and Soil Moisture Block Measurements
8-4
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-5
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
08: P86 Do
01: 20 Set low Flag 0 (output)
8-6
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-7
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-8
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-9
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-10
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-11
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
15: P86 Do
01: 1 Call Subroutine 1
18: P86 Do
01: 1 Call Subroutine 1
* 3 Table 3 Subroutines
03: 1 IN Chan
04: 1 Excite all reps w/EXchan 1
05: 1500 mV Excitation
06: 1 Loc [:LEVEL FT.]
07: .46199 Mult
08: 102 Offset
03: P86 Do
01: 10 Set high Flag 0 (output)
8-12
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8-13
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
NOTE: When a voltage input exceeds the range programmed, the value which is stored is set to
the maximum negative number and displayed as -99999 in high resolution or -6999 in low
resolution.
*** 1 SINGLE-ENDED VOLTS *** keep them in Common Mode Range. Output is
in millivolts.
FUNCTION
This Instruction is used to measure voltage at a PARAM. DATA
single-ended input with respect to ground. NUMBER TYPE DESCRIPTION
Output is in millivolts.
01: 2 Repetitions
02: 2 Range code (Table 9-1)
PARAM. DATA
NUMBER TYPE DESCRIPTION
03: 2 Differential channel
01: 2 Repetitions number for first
02: 2 Range code (Table 9-1) measurement
03: 2 Single-ended channel 04: 4 Input location for first
number for first measurement
measurement 05: FP Multiplier
04: 4 input location for first 06: FP Offset
measurement
Input locations altered: 1 per measurement
05: FP Multiplier
06: FP Offset
*** 3 PULSE COUNT ***
Input locations altered: 1 per measurement
There are three pulse input types which may be
*** 2 DIFFERENTIAL VOLTS *** measured with the Pulse Count Instruction.
9-1
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
maximum input voltage is +20 volts. A Hz) and the positive voltage excursion exceeds
problem, however, arises when the pulse is 5.6 VDC.
actually a low frequency signal (below about 10
When this happens, the excess voltage is counters on one input channel. When this
shunted to the CR10 5 VDC supply, with the option is selected, channel 1 is used for the
current limited by an internal 10 Kohm resistor. pulse input. Channel 2 is not used.
When this extra current source exceeds the
Every 0.125 seconds, the CR10 processor
quiescent current needs of the CR10 (about 0.6
transfers the values from the 8 bit pulse
mA), the 5 VDC supply will start to rise,
counters into 16 bit accumulators (max count is
upsetting all analog measurements.
65,535) and the 8 bit counters are hardware
Thus, pulses whose positive voltage portion reset to zero. The pulses accumulate in these
exceeds 5.6 VDC with a duration longer than 100 16 bit accumulators until the program table
milliseconds need external conditioning. One containing the Pulse Count Instruction is
method would be to use a 4 to 5.6 V zener diode executed. At the beginning of the execution of
from the signal to ground. The simplest method, the Table containing the Pulse Count
however, is to add an external 20 Kohm resistor in Instruction, the total in the 16 bit accumulator is
series with the signal (Figure 9-1). This will limit transferred to a temporary RAM buffer. The 16
the current for pulses to 20 VDC to the point that it bit accumulator is then zeroed. When the table
will not upset the CR10 5 VDC supply. execution reaches the Pulse Count Instruction,
the value in the RAM buffer is multiplied by the
LOW LEVEL AC multiplier and added to the offset and placed
into the designated input location.
This configuration is used to count the
frequency of AC signals from magnetic pulse
flow transducers or other low voltage, sine CAUTION: The RAM buffer does NOT
wave inputs. The minimum input voltage is 6 accumulate counts; it is zeroed each time
millivolts RMS. Input hysteresis is 11 millivolts. the table is executed regardless of whether
The maximum AC input voltage is 20 volts or not the pulse instruction is executed. If
RMS. The maximum input frequency ranges all counts are necessary, it is imperative
from 100 Hz at 20 mV RMS to 1000 Hz at 150 that the Pulse Count Instruction be
mV or greater. Consult the factory if higher executed (not branched around) every time
frequencies are desired. the table is executed.
9-2
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
is dependent upon the sampling interval (e.g., *** 4 EXCITE, DELAY, AND MEASURE ***
speed, RPM), the value from the excessive
interval should be discarded. If the value is FUNCTION
discarded the value in the RAM buffer from the This instruction is used to apply an excitation
previous measurement will be used. voltage, delay a specified time, and then make
a single-ended voltage measurement. A 1
There is also an option to output the count as a before the excitation channel number (1X)
frequency (i.e., counts/execution interval in causes the channel to be incremented with
seconds = Hz) as well as discard the result each repetition.
from an excessive interval. This allows the use
of a conversion factor that is independent of the PARAM. DATA
execution interval. NUMBER TYPE DESCRIPTION
01: 2 Repetitions
The options of discarding counts from long
02: 2 Range code (Table 9-1)
intervals, pulse input type, and using a 16 bit
counter are selected by the code entered for
03: 2 Single-ended channel
the 4th parameter (Table 9-2).
number for first
measurement
NOTE: All pulse count instructions must be 04: 2 Excitation channel
kept in the same table. If the Pulse Count number
Instruction is contained within a subroutine, 05: 4 Delay in hundredths of
that subroutine must be called from Table 2. a second
06: 4 Excitation voltage
TABLE 9-2. Pulse Count Configuration (millivolts)
Codes 07: 4 Input location number
for first measurement
Code Configuration 08: FP Multiplier
0 High frequency pulse 09: FP Offset
1 Low level AC
2 Switch closure Input locations altered: 1 per measurement
3 High frequency pulse, sixteen
bit counter *** 5 AC HALF BRIDGE ***
4 Low level AC, sixteen bit
counter FUNCTION
1X Long interval data discarded This instruction is used to apply an excitation
2X Long interval data discarded, voltage to a half bridge (Figure 13.5-1), make a
frequency (Hz) output single-ended voltage measurement of the
bridge output, reverse the excitation voltage,
PARAM. DATA then repeat the measurement. The difference
NUMBER TYPE DESCRIPTION between the two measurements is used to
calculate the resulting value which is the ratio of
01: 2 Repetitions the measurement to the excitation voltage. A 1
02: 2 Pulse channel number before the excitation channel number (1X)
for first measurement causes the channel to be incremented with
03: 2 Configuration code each repetition.
(from above table)
04: 4 Input location for first The excitation "on time" for each polarity is
measurement exactly the same to insure that ionic sensors do
05: FP Multiplier not polarize with repetitive measurements. The
06: FP Offset range should be selected to be a fast
Input locations altered: 1 per measurement measurement (range 11-15), limiting the
excitation on time to less than 800
Intermediate storage locations altered: 1 for microseconds at each polarity. A slow
each repetition integration time should not be used with ionic
sensors because of polarization error.
9-3
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-4
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
is specified, the inputs for the differential 2.5 V range, the output is usually 1000 V2/V1 or
measurement are not switched for a second millivolts output per volt excitation.
integration as is normally the case. With the 0
delay, Instruction 8 does not have as good When used to measure a 4 wire half bridge, the
resolution or common mode rejection as other connections are made so that V1 is the voltage
differential measurements. It does provide a drop across the fixed resistor (Rf), and V2 is the
very rapid means of making bridge drop across the sensor (Rs). As long as V1 is
measurements. This instruction does not not measured on the 2.5V range, the result is
reverse excitation. A 1 before the excitation V2/V1 which equals Rs/Rf.
channel number (1X) causes the channel to be
incremented with each repetition. PARAM. DATA
NUMBER TYPE DESCRIPTION
PARAM. DATA
NUMBER TYPE DESCRIPTION 01: 2 Repetitions
02: 2 Range code for V1
01: 2 Repetitions
(Table 9-1)
02: 2 Range code (Table 9-1)
03: 2 Range code for V2
04: 2 Differential channel
03: 2 Differential channel
number for first
number for first
measurement
measurement
05: 2 Excitation channel
04: 2 Excitation channel
number
number
06: 4 Excitation voltage
05: 4 Delay (0.01s)
(millivolts)
06: 4 Excitation voltage
07: 4 Input location number
(millivolts)
for first measurement
07: 4 Input location number
08: FP Multiplier
for first measurement
09: FP Offset
08: FP Multiplier
09: FP Offset
Input locations altered: 1 per measurement
Input locations altered: 1 per measurement
*** 10 BATTERY VOLTAGE ***
*** 9 FULL BRIDGE WITH EXCITATION ***
COMPENSATION FUNCTION
This instruction reads the battery voltage and
writes it to an input location. The units for
FUNCTION
battery voltage are volts. When the batteries
This instruction is used to apply an excitation
are around 8 V, false battery readings of 9 to 10
voltage and make two differential voltage
V will result, and the quiescent current drain
measurements. The measurements are made
increases from 0.7 mA to 7 mA. At 9.2 to 9.3 V,
with both positive and negative excitation
false analog measurements are possible
voltage. The measurements are made on
(Example: 2000 mV input is measured as 2010
sequential channels. The result is the voltage
to 2050 mV).
measured on the second channel (V2) divided
by the voltage measured on the first (V1). If V1
is measured on the 2.5 V range (code 5,15, 25 PARAM. DATA
or 35 in Parameter 2), then the result is 1000 NUMBER TYPE DESCRIPTION
times V2/V1. A 1 before the excitation channel 01: 4 Input location
number (1X) causes the channel to be
incremented with each repetition. Input locations altered: 1
When used as a 6 wire full bridge (Figure 13.5-
1), the connections are made so that V1 is the *** 11 107 THERMISTOR PROBE ***
measurement of the voltage drop across the full
bridge, and V2 is the measurement of the FUNCTION
bridge output. Because the excitation voltage This Instruction applies a 2 VAC excitation
for a full bridge measurement is usually in the voltage to Campbell Scientific's Model 107
9-5
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
Thermistor Probe, makes a fast, single-ended The RH results are placed sequentially into the
voltage measurement across a resistor in input locations beginning with the first RH
series with the thermistor, and calculates the value.
temperature in °C with a polynomial. A 1
before the excitation channel number (1X) In the 207 probe, the RH and temperature
causes the channel to be incremented with elements use a common excitation line.
each repetition. The maximum polynomial error
from -40°C to +56°C is given here: CAUTION: Never excite the 207 probe
with DC excitation because the RH chip will
Curve Fit Error -- be damaged.
Range (°C) Error (°C)
-40 to +56 +1.0 A 1 before the excitation channel number (1X)
-24 to +48 +0.1 causes the channel to be incremented with
each repetition.
PARAM. DATA
NUMBER TYPE DESCRIPTION The maximum RH polynomial error is given
here:
01: 2 Repetitions Curve Fit Error --
02: 2 Single-ended channel
number of first Range (%RH) Error (%RH)
measurement 10 - 100 +4
03: 2 Excitation channel 15 - 94 +1
number
04: 4 Input location for first PARAM. DATA
measurement NUMBER TYPE DESCRIPTION
05: FP Multiplier 01: 2 Repetitions
06: FP Offset 02: 2 First single-ended
channel for RH
Input locations altered: 1 for each thermistor measurement
channel 03: 2 Excitation channel
number
*** 12 207 RELATIVE HUMIDITY PROBE *** 04: 4 Input location for first
compensating
FUNCTION temperature
This instruction applies a 1.5 VAC excitation measurement (°C)
across Campbell Scientific's Model 207 05: 4 Input location for first
Temperature and RH Probe, makes a fast R.H. measurement
single-ended measurement across a series 06: FP Multiplier
resistor, calculates the result with a 5th order 07: FP Offset
polynomial, and performs the required
temperature compensation before outputting Input locations altered: 1 for each RH
the result in % RH. measurement
When measuring several probes, all the RH
elements should be connected sequentially. *** 13 THERMOCOUPLE TEMPERATURE,
The temperature values used to correct the RH ***
measurements should also be stored SINGLE-ENDED
sequentially to make use of the REP feature in
Instruction 11. FUNCTION
This instruction uses the selected thermocouple
calibration to calculate the thermocouple output
NOTE: The temperature value used in voltage at the reference temperature, then it
compensating the RH value (Parameter 5) makes a SINGLE-ENDED VOLTAGE
must be obtained (see Instruction 11) prior MEASUREMENT (Section 13.2) on the
to executing Instruction 12 and must be in thermocouple and adds the measured voltage
Celsius.
9-6
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
to the calculated reference voltage, then converts the voltage to temperature in °C.
9-7
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
Voltage
Range Type T Type E Type K Type J
±2.5 mV -46 to 50 -21 to 60 -44 to 80 -29 to 67
±7.5 mV -270 to 181 -124 to 134 -270 to 620 -149 to 159
±25 mV -270 to 400 -270 to 365 -270 to 620 -210 to 476
±250 mV −−− -270 to 1000 -270 to 1372 -210 to 760
9-8
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-9
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-10
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-11
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
general purpose data reduction program also less than 5.332 ms is entered), an error code, E
contained in PC208. 61, will be displayed when the program is
compiled. When sending data to the serial port,
If SPLIT is not available for converting the raw the rate at which the data can be transferred
A/D, the following A/D format information is may limit the scan interval (e.g., at 9600 baud
provided for decoding purposes. At the start of the minimum time per measurement is 2.2 ms).
the series of measurements, the CR10 makes a
self-calibration measurement. The calibration Burst/Telecommunications Considerations
data is sent at the start of the measurement
If a Burst measurement sequence is in
data. The serial data is sent as a series of
progress, raising the datalogger's ring line will
signed 2 byte integers (most significant byte
abort the Burst sequence. Peripherals which
sent first; i.e., Integer = 256 * byte 1 + byte 2):
raise the ring line are modems (i.e., RF,
I1...In. The first integer, I1 is a start of output
Telephone, Short Haul, MD9, SC32A) or the
identifier, FCxx (hex), where the first byte is
CR10KD.
always FC (never seen in the data), and the
second byte is a number less than 100
(decimal, 64 hex), which is the Instruction If the Burst Measurement Instruction is
Location Number of Instruction 23 in the encountered while telecommunications is in
program table. I2 divided by I3 is the multiplier progress, the destination of the data determines
and I4 the offset (to the raw data) determined whether or not the instruction is executed:
by the first calibration. I2 is a fixed value
determined by the input range selected. I5 Burst data sent to input locations
through In are the raw measurement data. If a CR10 already in Telecommunications mode
Thus, the value of the first measurement sent executes a Burst instruction specifying that
(M1) in millivolts is: Burst data be sent to input locations, all
telecommunication activity will be suspended.
M1 = I2/I3 (I5 - I4) After the Burst trigger condition is met and all
Burst measurements made,
The measurement data are sent in the order telecommunications activity can resume.
that the measurements are made (i.e., the first
measurement for each channel, then the Burst data sent to Serial I/O Port
second measurement for each channel, etc.).
If the Burst instruction specifies that Burst data
be sent to the serial port (i.e., Storage Module),
NOTE: When the raw serial data option is CR10 program execution will pause until the
selected, the calibration values are for Telecommunication mode is exited. During this
conversion to millivolts only. Parameters pause telecommunications (i.e., view input
11 and 12 are ignored. locations, Monitor Mode with Term, etc.) can
continue. No Burst measurements are made
SCAN INTERVAL while in telecommunications and no Burst data
Instruction 23 has its own scan interval is sent to the serial port. After
independent of the execution interval of the telecommunications has ended, datalogger
program table in which it resides. The program execution will resume as if the Burst
resolution of the clock timing the execution instruction were just executed.
interval is 813 nanoseconds. This scan
interval, entered in Parameter 5 (in NOTE: Instruction 23 can be aborted by
milliseconds), is the time between each scan of pressing any key on the CR10KD Keyboard
the specified channels (i.e., if 4 channels are Display.
specified in Parameter 1, and the scan interval
is 5 ms, then the 4 measurements will be
repeated every 5 ms). The minimum time that PARAM. DATA
is allowed per measurement is 1.333 ms. The NUMBER TYPE DESCRIPTION
maximum time that is allowed per 01: 2 Repetitions (no. of
measurement is 50 ms. If the scan interval channels)
entered does not allow this much time per 02: 2 Range code (13-15)
measurement (e.g., if with 4 reps, an interval
9-12
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-13
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-14
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-15
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-16
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-17
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
9-18
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
altered. Sequential locations will contain values A SDI-12 recorder addresses the SDI-12
from previous measurements. sensor CR10 by sending a Break and the
sensor's address. The sensor CR10 will call
TRANSPARENT MODE subroutine 98 whenever it detects activity on
the SDI-12 data line attached to Port 8, but if
The SDI-12 transparent mode is used to
the Break and the specified address are not
communicate directly with a SDI-12 sensor. A
received by Instruction 106, the remainder of
common application of the transparent mode is
the subroutine is not executed.
to verify proper SDI-12 sensor operation.
A computer or terminal is required to use the Two programming techniques exist for
transparent mode; the CR10KD (keyboard obtaining measurement values to be
display) cannot be used. Transparent mode is transferred by the sensor Instruction 106. The
entered while the computer is in first technique makes the requested
telecommunications with the SDI-12 recorder measurements "on demand" in response to the
CR10 (at the asterisk '*' prompt). Enter 'pX' at recorders request. The measurement
the asterisk prompt, where 'p' is the Control instructions are located in Subroutine 98 and
Port number (1-8) attached to the SDI-12 data are executed only when the SDI-12 recorder
line. The CR10 responds with a '<' prompt. requests measurements. This technique is
Any SDI-12 command preceded with the preferred when measurements are to be made
sensor address and followed with an at the recorder's command.
exclamation point '!' may then be entered. For
example, entering '0I!' at the '<' prompt would The second technique transfers measurement
request identification from a SDI-12 sensor values previously obtained by instructions in
addressed at 0. Table 1 or Table 2. Subroutine 98 contains
only Instructions 106 (SDI-12 sensor) and 95
The '<' prompt will not appear until the recorder (End). When the recorder requests
CR10 finishes executing all program tables. measurements, values already in the specified
While in transparent mode, scheduled tables in input locations are used. The advantage of this
the recorder CR10 will not execute. technique is that the sensor CR10 can be
Transparent mode ends when a response is making and storing measurements independent
received and displayed, if no response is of the SDI-12 recorder. The data is also
received from the SDI-12 sensor within the returned slightly faster since the sensor CR10
time-out period following a valid command does not make measurements when the
(approximately 1/3 second), or if the user does recorder requests data, but rather uses
not enter a command before the mode times measurements made at the last regular table
out (approximately 35 seconds). Security must execution.
be unlocked to level 2 before the Transparent
mode is used. These two techniques can be combined allowing
the sensor CR10 to function as a SDI-12 sensor
*** 106 SDI-12 SENSOR *** and to make independent measurements. While
Subroutine 98 is being executed, normal Table 1
Instruction 106 allows a CR10 to be used as a or 2 execution scheduling may be altered or
SDI-12 sensor. The CR10 can make missed since Subroutine 98 is not interrupted.
measurements and transfer data using SDI-12 This is likely to occur if Subroutine 98 execution
commands in response to another SDI-12 takes longer than the scan interval programmed
recorder. Instruction 106 is only in standard for Table 1 or 2. It is also possible for
PROM OSI0-1.1. instructions in Table 1 or 2 to prevent
Subroutine 98 from being called in time for
Instruction 106 supports the standard SDI-12 Instruction 106 to receive the address
commands as listed in the Parameter 2 information from the recorder. This is likely to
description for Instruction 105. occur only if Table 1 or 2 is executed often and
has instructions that take longer than 1/3 second
to execute. For example, Instruction 4 (Excite-
The SDI-12 data line is attached to Control Port
Delay-SE) with a 1/2 second delay could cause
8 and Instruction 106 must be the first
Subroutine 98 to miss the SDI-12 address
instruction in Subroutine 98 located in Table 3.
information if it were executing when the SDI-12
9-19
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
data line became active. If this occurs the See Parameter 3 LOCATION description for
sensor CR10 will not respond to the SDI-12 information on transferring more than 9
recorder. Most instructions execute fast enough locations.
that when Instruction 106 misses the initial SDI-
12 address, a subsequent retry by the recorder
will work.
PARAM. DATA
NUMBER TYPE DESCRIPTION
01: 4 ADDRESS (0-9)
02: 4 TIME/VALUES
tttn:
ttt=time(sec)
n=no. values
03: 4 LOCATION starting
loc. for n values
Input locations altered: 0
PARAMETER 1. ADDRESS
Enter the address for the CR10 acting as a
SDI-12 sensor (0-9). Each SDI-12 sensor must
have a unique address. Non standard
addresses may be used by entering the
appropriate ASCII code.
PARAMETER 2. TIME/VALUES
Enter the time required for the sensor CR10 to
complete subroutine 98 followed by the number
of input locations to be returned to the SDI-12
recorder. The format of the entry must be 'tttn'
where ttt specifies the time and n is the number
of input locations values.
9-20
SECTION 9. INPUT/OUTPUT INSTRUCTIONS
PARAMETER 3. LOCATION
This parameter determines the starting input
location for the 'n' values to be returned to the
recorder. The 'M' or 'M1-M9' command issued
by the SDI-12 recorder determines if the
starting location is actually that specified in
Parameter 3 or a multiple of 'n' past Parameter
3.
9-21
SECTION 10. PROCESSING INSTRUCTIONS
To facilitate cross referencing, parameter PARAM. DATA
descriptions are keyed [ ] to the values given on NUMBER TYPE DESCRIPTION
the PROMPT SHEET. These values are
01: 4 Destination input
defined as follows:
location [Z]
[Z] = Destination input location for result Input locations altered: 1
[X] = Input location of X
[Y] = Input location of Y *** 33 X + Y ***
[F] = Fixed Data (user specified floating
point number) FUNCTION
Add X to Y and place result in a third input location.
*** 30 LOAD FIXED DATA ***
PARAM. DATA
FUNCTION NUMBER TYPE DESCRIPTION
Store a fixed value into an input location. The
01: 4 Input location of X [X]
value is entered in scientific notation; the
absolute value of the number may range from 1 02: 4 Input location of Y [Y]
x 10-19 to 9 x 1018. A value smaller than the
minimum is set to 0, while a larger value is set 03: 4 Dest. input location of
to the maximum. X+Y [Z]
Input locations altered: 1
PARAM. DATA
NUMBER TYPE DESCRIPTION *** 34 X + F ***
01: FP Mantissa [F]
02: 2 Exponent of 10 (Hit C FUNCTION
to change sign) Add F to X (where F is a fixed floating point
03: 4 Destination for input number) and place the result in an input location.
location [Z]
PARAM. DATA
Input locations altered: 1 NUMBER TYPE DESCRIPTION
10-1
SECTION 10. PROCESSING INSTRUCTIONS
10-2
SECTION 10. PROCESSING INSTRUCTIONS
10-3
SECTION 10. PROCESSING INSTRUCTIONS
10-4
SECTION 10. PROCESSING INSTRUCTIONS
*** 55 5TH ORDER POLYNOMIAL *** Saturation vapor pressure over ice (SVPI) in
kilopascals for a 0°C to -50°C range can be
FUNCTION obtained using Instruction 55 and the
Evaluate a 5th order polynomial of the form relationship
where C0 through C5 are the coefficients for where X is the SVPW derived by Instruction 56.
the argument X raised to the zero through fifth This relationship was derived by Campbell
power, respectively. The magnitude of the user Scientific from the equations for the SVPW and
entered coefficient is limited to a range of the SVPI given in Lowe's paper.
±.00001 to ±99999. Polynomials with
coefficients outside this range can be modified PARAM. DATA
by pre-scaling the X value by an appropriate NUMBER TYPE DESCRIPTION
factor to place the coefficients within the entry
range. Pre-scaling can also be used to modify 01: 4 Input location of air
coefficients which are very close to 0 to temperature °C
increase the number of significant digits. [TEMP.]
02: 4 Destination input
PARAM. DATA location for saturated
NUMBER TYPE DESCRIPTION vapor pressure
01: 2 Repetitions [REPS] [VP or Z]
10-5
SECTION 10. PROCESSING INSTRUCTIONS
10-6
SECTION 10. PROCESSING INSTRUCTIONS
10-7
SECTION 10. PROCESSING INSTRUCTIONS
FUNCTION
Instruction 65 inputs given values in up to eight
Input Storage locations. Instruction 65 is only
in standard PROM OS10-1.1.
The Bulk Load instruction has 9 parameters.
The first eight are the values to be entered in
input storage locations. The ninth is the input
location for the first data value; subsequent
data values are placed in sequential input
locations.
PARAM. DATA
NUMBER TYPE DESCRIPTION
01: FP Param. to be entered
02: FP "
03: FP "
04: FP "
10-8
SECTION 11. OUTPUT PROCESSING INSTRUCTIONS
*** 69 WIND VECTOR *** wind conditions, and it provides more complete
information for periods of transition1.
FUNCTION
Instruction 69 processes the primary variables Standard deviation of horizontal wind
of wind speed and direction from either polar fluctuations from sub-intervals is calculated as
(wind speed and direction) or orthogonal (fixed follows:
East and North propellers) sensors. It uses the
raw data to generate the mean wind speed, the σ(Θ)=[((σΘ1)2+(σΘ2)2 ...+( σΘM)2)/M]1/2
mean wind vector magnitude, and the mean
wind vector direction over an output interval. where σ(Θ) is the standard deviation over the
Two different calculations of wind vector output interval, and σΘ1 ... σΘM are sub-interval
direction (and standard deviation of wind vector standard deviations.
direction) are available, one of which is
weighted for wind speed. PARAM. DATA
NUMBER TYPE DESCRIPTION
When used with polar sensors, the instruction
does a modulo divide by 360 on wind direction, 01: 2 Repetitions
which allows the wind direction (in degrees) to 02: 4 Samples per sub-
be 0 to 360, 0 to 540, less than 0, or greater interval (number of
than 540. The ability to handle a negative scans, enter 0 for no
reading is useful in an example where a difficult sub-interval)
to reach wind vane is improperly oriented and
outputs 0 degrees at a true reading of 340 03: 2 Sensor/Output 2 digits:
degrees. The simplest solution is to enter an AB
offset of -20 in the instruction measuring the A Sensor type:
wind vane, which results in 0 to 360 degrees 0 = Speed and
following the modulo divide. Direction
1 = East and North
When a wind speed sample is 0, the instruction
uses 0 to process scalar or resultant vector B Output option:
wind speed and standard deviation, but the 0 S, Θ1, σ(Θ1)
sample is not used in the computation of wind 1 S, Θ1
direction. The user may not want a sample less 2 S, U, Θu, σ(Θu)
than the sensor threshold used in the standard 04: 4 First wind speed input
deviation. If this is the case instruction 89 can location no. (East wind
be used to check wind speed, and if less than speed)
the threshold, Instruction 30 can set the input 05: 4 First wind direction
location equal to 0. input location no.
(North wind speed)
Standard deviation can be processed one of
Outputs Generated: 2-4 (depending on output
two ways: 1) using every sample taken during
option) for each repetition
the output period (enter 0 for parameter 2), or,
2) by averaging standard deviations processed
A sub-interval is specified as a number of
from shorter sub-intervals of the output period.
scans. The number of scans for a sub-interval
Averaging sub-interval standard deviations
is given by:
minimizes the effects of meander under light
Desired sub-interval (secs) / scan rate (secs)
1
EPA On-site Meteorological Program
Guidance for Regulatory Modeling Applications.
11-1
SECTION 11. OUTPUT PROCESSING INSTRUCTIONS
In an example where the scan rate is 1 second Scalar mean horizontal wind speed, S:
and the Output Flag is set every 60 minutes,
the standard deviation is calculated from all S=(ΣSi)/N
3600 scans when the sub-interval is 0. With a where in the case of orthogonal sensors:
sub-interval of 900 scans (15 minutes) the
standard deviation is the average of the four Si=(Uei2+Uni2)1/2
sub-interval standard deviations. The last sub- Unit vector mean wind direction, Θ1:
interval is weighted if it does not contain the
specified number of scans. Θ1=Arctan (Ux/Uy)
Option 1:
Mean horizontal wind speed, S.
Unit vector mean wind direction, Θ1.
Option 2:
Calculations:
11-2
SECTION 11. OUTPUT PROCESSING INSTRUCTIONS
where
Ux=(Σsin Θi)/N
Uy=(Σcos Θi)/N
or, in the case of orthogonal sensors
Ux=(Σ(Uei/Ui))/N
Uy=(Σ(Uni/Ui))/N
where Ui=(Uei2+Uni2)1/2
Standard deviation of wind direction, σ(Θ1),
using Yamartino algorithm:
σ(Θ1)=arc sin(ε)[1+0.1547 ε3]
where,
ε=[1-((Ux)2+(Uy)2)]1/2
and Ux and Uy are as defined above.
Resultant mean horizontal wind speed, U:
U=(Ue2+Un2)1/2
where for polar sensors:
Ue=(ΣSi Sin Θi)/N
Un=(ΣSi Cos Θi)/N
or, in the case of orthogonal sensors:
Ue=(ΣUei)/N
Un=(ΣUni)/N
Resultant mean wind direction, Θu:
Θu=Arctan (Ue/Un)
Standard deviation of wind direction, σ(Θu),
using Campbell Scientific algorithm:
σ(Θu)=81(1-U/S)1/2
FUNCTION
This instruction stores the value from each
specified input location. The value(s) stored
are those in the input location(s) when
Instruction 70 is executed with the Output Flag
set high.
PARAM. DATA
NUMBER TYPE DESCRIPTION
01: 4 Repetitions
02: 4 Starting input location no.
Outputs Generated: 1 for each sample
11-3
SECTION 11. OUTPUT PROCESSING INSTRUCTIONS
11-4
SECTION 11. OUTPUT PROCESSING INSTRUCTIONS
values are the contributions of the sub-ranges accumulated into corresponding direction
to the overall weighted value. To obtain the sectors (bin select input).
average of the weighted values that occurred
while the bin select value was within a
particular sub-range, the value output to Final
Storage must be divided by the fraction of time
that the bin select value was within that
particular sub-range (i.e., a standard histogram
of the bin select value must also be output).
11-5
SECTION 11. OUTPUT PROCESSING INSTRUCTIONS
PARAM. DATA
NUMBER TYPE DESCRIPTION
01: 2 Repetitions
02: 4 Number of bins
03: 2 Form code (0=open form,
1=closed form)
04: 4 Bin select value input
location no.
05: 4 Weighted value input
location no. (0 =
frequency distribution
option)
06: FP Lower limit of range
07: FP Upper limit of range
Outputs Generated: Number of Bins * Repetitions
FUNCTION
This Instruction stores the current time in Final
Storage. At midnight the clock rolls over from
23:59 to 00:00. The day also changes.
PARAM. DATA
NUMBER TYPE DESCRIPTION
01: 4 Enter appropriate TIME
option code
Outputs Generated: 1 for each time
parameter selected
11-6
SECTION 11. OUTPUT PROCESSING INSTRUCTIONS
11-7
SECTION 11. OUTPUT PROCESSING INSTRUCTIONS
01: 2 Repetitions
02: 4 Starting input location
no.
Outputs Generated: 1 for each repetition
11-8
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-1
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
PARAM. DATA the fifth pass through the loop, there is the fifth
NUMBER TYPE DESCRIPTION delay, after which execution passes to the
instruction following the END instruction which
01: 2 Subroutine number
goes with the loop.
(1-9, 79-99)
While in a loop with delay, the table will not be
*** 86 DO ***
initiated at each execution interval. (However,
the overrun decimals will not be displayed.)
FUNCTION Some consequences of this are: The Output
This Instruction unconditionally executes the Flag will not be automatically cleared between
specified command. passes through the loop. Because Table 2
cannot interrupt Table 1, Table 2 will not be
PARAM. DATA executed while Table 1 is in a loop with delay.
NUMBER TYPE DESCRIPTION Table 1 will not interrupt Table 2 in the middle
01: 2 Command (Table 12-2) of an output array. Thus, if the Output Flag is
set in Table 2 prior to entering the loop or within
*** 87 LOOP *** the loop, the flag must be specifically cleared
before the end of the pass if Table 1 is to be
FUNCTION executed.
Instructions included between the Loop
Instruction and the End Instruction (95) are Input locations for Processing Instructions
repeated the number of times specified by the within a loop can be entered as Indexed
iteration count (Parameter 2), or until an Exit locations. An Indexed location causes the input
Loop command (31,32) is executed by a location to be incremented by 1 with each pass
Program Control Instruction within the Loop. If through the loop. (The Index counter is added
0 is entered for the count, the loop is repeated to the location number in the program table.)
until an Exit Loop command is executed. Input locations which are not indexed will
remain constant.
The first parameter, delay, controls how
frequently passes through the loop are made. To specify an Indexed location, depress the C
Its units are multiples of the table execution key at some point while keying in the digits for
interval. A delay of 0 means that there is no the input location and before entering the
delay between passes through the loop. Each location with the A key. Two dashes, --, appear
time the table is executed all iterations of the in the two right most characters of the display,
loop will be completed and execution will pass indicating the entry is Indexed.
on to the following instructions. If the delay is
5, every fifth time that the execution interval When the same output processing is required
comes up, one pass through the loop is made; on values in sequential input locations, it must
only those instructions in the loop will be be accomplished by using the repetitions
executed and other portions of the table are not parameter of the Output Instruction, not by
executed in the interim. When a loop with indexing the input location within a loop.
delay is executed, the next execution starts at
the loop, skipping over any previous and An Output Instruction within a loop is allotted
following instructions in the table. the same number of Intermediate Storage
locations as it would receive if it were not in the
When a fixed number of iterations are loop. For example, the average instruction with
executed, the time spent in the loop is equal to a single repetition is allotted only two
the product of the execution interval, delay, and Intermediate locations: one for the number of
the number of iterations. For example, a loop samples and one for the running total. Each
with a delay of 1 and a count of 5 will take 5 time through the loop the sample counter is
seconds if the execution interval is 1 second. incremented and the value in the referenced
When the loop is first entered, one pass input location is added to the total. If the input
through the loop is made, then the CR10 delays location is indexed, the values from all input
until the next execution interval and makes the locations are added to the same total.
second pass through the loop. After making
12-2
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
Note that if the Output Flag is set prior to for the dry-bulb, wet-bulb, and
entering the loop in the above example, 10 calculated vapor pressure, respectively.
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.
PARAM. DATA
NUMBER TYPE DESCRIPTION
01: 4 Delay
02: 4 Iteration count
12-3
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-4
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-5
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-6
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-7
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-8
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-9
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-10
SECTION 13. CR10 MEASUREMENTS
13.1 FAST AND SLOW MEASUREMENT One of the most common sources of noise is 60
SEQUENCE Hz from AC power lines. Where 60 Hz noise is
a problem, range codes 21 - 25 should be
The CR10 makes voltage measurements by used. Two integrations are made spaced 1/2
integrating the input signal for a fixed time and cycle apart (Figure 13.2-2), which results in the
then holding the integrated value for the analog AC noise integrating to 0. Integration time for
to digital (A/D) conversion. The A/D conversion the 2500 mV range is 1/10 the integration time
is made with a 13 bit successive approximation for the other gain ranges (2.72 ms). For
technique which resolves the signal voltage to countries with 50 Hz power Range codes 31 -
approximately one part in 7500 of the full scale 35 are used for 50 Hz rejection.
range on a differential measurement (e.g.,
1/7500 x 2.5 V = 333 uV). The resolution of a There are several situations where the fast
single-ended measurement is one part in 3750. integration time is preferred. The fast
integration time minimizes time skew between
Integrating the signal removes noise that could
measurements and increases the throughput
create an error if the signal were instantaneously
rate. The current drain on the CR10 batteries is
sampled and held for the A/D conversion. There
lower when the fast integration time is used.
are two integration times which can be specified
The fast integration time should always be used
for voltage measurement instructions, the slow
with the AC half bridge (Instruction 5) when
integration (2.72 ms), or the fast integration (250
measuring AC resistance or the output of an
us). The slow integration time provides a more
LVDT. An AC resistive sensor will polarize if a
noise-free reading than the fast integration time.
DC voltage is applied, causing erroneous
Integration time is specified in the Range Code
readings and sensor decay. The induced
of the measurement instruction. Instructions 1 -
voltage in an LVDT decays with time as current
14 RANGE codes:
in the primary coil shifts from the inductor to the
Slow (2.72 ms Integration time) series resistance; a long integration time would
Fast (250 us Integration time) result in most of the integration taking place
60 Hz rejection after the signal had disappeared.
50 Hz rejection
Full Scale range
1 11 21 31± 2.5 mV
2 12 22 32± 7.5 mV
3 13 23 33± 25 mV
4 14 24 34± 250 mV
5 15 25 35± 2500 mV
13-1
SECTION 13. CR10 MEASUREMENTS
13-2
SECTION 13. CR10 MEASUREMENTS
If a differential measurement is used on a sensor 1. The signal must rise to its correct value.
that is not referenced to CR10 ground through a 2. A small transient (~5 mV) caused by
separate connection (e.g., a net radiometer), a switching the analog input into the
jumper wire should be connected between the measurement circuitry must settle.
low side of the differential input and analog
ground to hold the sensor in common mode 3. A larger transient, usually about 40 mV/V,
range. caused by the switched, precision
excitation voltage used in resistive bridge
A differential measurement has better noise measurements must settle.
rejection than a single-ended measurement.
Integrating the signal in both directions also The purpose of this section is to bring attention
reduces input offset voltage due to thermal to potential measurement errors caused when
effects in the amplifier section of the CR10. the input settling time constant gets too large
Input offset voltage on a single-ended and to discuss procedures whereby the effects
measurement is less than 5 microvolts; the of lead length on the measurement can be
input offset voltage on a differential estimated. In addition, physical values are
measurement is less than 1 microvolt. given for three types of wire used in CSI
sensors, and error estimates for given lead
lengths are provided. Finally, techniques are
13-3
SECTION 13. CR10 MEASUREMENTS
discussed for minimizing input settling error when long leads are mandatory.
13.3.1 THE INPUT SETTLING TIME CONSTANT the decaying transient, Vs = Vso+Ve.
Substituting these relationships for Vs in
The rate at which an input voltage rises to its
Equations 13.3-1 and 13.3-2, respectively,
full value or that a transient decays to the
yields expressions in Ve, the input settling error:
correct input level are both determined by the
input settling time constant. In both cases the
Ve = Vso e-t/RoCT, rise [13.3-6]
waveform is an exponential. Figure 13.3-1
shows both a rising and decaying waveform
Ve = Ve'o e-t/RoCT, decay [13.3-7]
settling to the signal level, Vso. The rising input
voltage is described by Equation 13.3-1 and the
decaying input voltage by Equation 13.3-2. Where Ve'o = Veo-Vso, the difference between
the peak transient voltage and the true signal
voltage.
Vs = Vso (1-e-t/RoCT), rise [13.3-1]
Vs = Vso + (Veo-Vso) e-t/RoCT, decay [13.3-2] NOTE: Since the peak transient, Veo,
causes significant error only if it is several
where Vs is the input voltage, Vso the true times larger than the signal, Vso, error
signal voltage, Veo the peak transient voltage, t calculations made in this section
is time in seconds, Ro the source resistance in approximate Ve'o by Veo; i.e., Veo = Veo-
ohms, and CT is the total capacitance between Vso.
the signal lead and ground (or some other fixed
reference value) in farads. If the input settling time constant, τ , is known, a
quick estimation of the settling error as a
The settling time constant, τ in seconds, and percentage of the maximum error (Vso for
the capacitance relationships are given in rising, Ve'o for decaying) is obtained by knowing
Equations 13.3-3 through 13.3-5, how many time constants (t/τ) are contained in
the 450 µs CR10 input settling interval (t). The
τ = R oC T [13.3-3] familiar exponential decay relationship is given
in Table 13.3-1 for reference.
CT = Cf + CwL [13.3-4]
TABLE 13.3-1. Exponential Decay, Percent
Cf = 3.3 nfd [13.3-5] of Maximum Error vs. Time in Units of τ
13-4
SECTION 13. CR10 MEASUREMENTS
Before proceeding with examples of the effect discussion on obtaining the source resistance,
of long lead lengths on the measurement, a Ro, and lead capacitance, CwL, is necessary.
FIGURE 13.3-3. Source Resistance Model for Half Bridge Connected to the CR10
13-5
SECTION 13. CR10 MEASUREMENTS
TABLE 13.3-2. Properties of Three Belden Lead Wires Used by Campbell Scientific
Belden Rl Cw
Wire # Conductors Insulation AWG (ohms/1000ft.) (pfd/ft.)
8641 1 shld. pair polyethylene 24 23 42
8771 1 shld. 3 cond. polyethylene 22 15 41
8723 2 shld. pair polypropylene 22 15 62
13-6
SECTION 13. CR10 MEASUREMENTS
13-7
SECTION 13. CR10 MEASUREMENTS
TABLE 13.3-4. Measured Peak Excitation Transients for 1000 Foot Lengths of Three Belden
Lead Wires Used by Campbell Scientific
-----------------------Veo(mV) -----------------------
Vx(mV) Rf=1 kohm Rf=10 kohm
# # # # # #
8641 8771 8723 8641 8771 8723
2000 50 100 60 100 140 80
1000 25 65 40 60 90 40
NOTE: Excitation transients are eliminated 1) Veo ~ 50 mV, peak transient at 2 V excitation
if excitation leads are contained in a shield
independent from the signal leads. 2) Ve ~ 2.5 µV, allowable measurement error
where Ve is the measurement error limit. 13.3.4 SUMMARY OF SETTLING ERRORS FOR
CAMPBELL SCIENTIFIC RESISTIVE
EXAMPLE LEAD LENGTH CALCULATION SENSORS
FOR 107 TEMPERATURE SENSOR
Table 13.3-5 summarizes the data required to
Assume a limit of 0.05°C over a 0°C to +40°C estimate the effect of lead length on settling
range is established for the transient settling errors for Campbell Scientific's resistive
error. This limit is a reasonable choice since it sensors. Comparing the transient level, Veo, to
approximates the linearization error over that the input range, one suspects that transient
range. The output signal from the thermistor errors are the most likely limitation for the 107
bridge varies nonlinearly with temperature sensor. The sensors in the WVU-7 are the
ranging from about 100 µV/=°C at 0°C to 50 same as in the Model 107 (the lead wire is
µV/°C at 40°C. Taking the most conservative different), but the signal leads for the WVU-7
figure yields an error limit of Ve = 2.5 µV. The wet- and dry-bulbs are not subject to excitation
other values needed to calculate the maximum transients because they are shielded
lead length are summarized in Table 13.3-5 independently from the excitation.
and listed below:
13-8
SECTION 13. CR10 MEASUREMENTS
TABLE 13.3-5. Summary of Input Settling Data For Campbell Scientific Resistive Sensors
Sensor Belden Ro Cw τ* Input
Model # Wire # (kohms) (pfd/ft.) (us) Range(mV) Vx(mV) Veo(mV)**
107 8641 1 42 45 7.5 2000 50
207(RH) 8771 1 41 44 250 1500 85
WVU-7 8723 1 62 65 7.5 2000 0
227 8641 0.1-1 42 5-45 250 250 0
237 8641 1 42 45 25 2500 65
024A 8771 1-6 41 1-222 250 500 0-90
* Estimated time constants are for 1000 foot lead lengths and include 3.3nfd CR10 input capacitance.
** Measured peak transients for 1000 foot lead lengths at corresponding excitation, Vx.
TABLE 13.3-6. Maximum Lead Length vs. Error for Campbell Scientific Resistive Sensors
Sensor Maximum
Model # Error Range Ve(µV) Length(ft.)
107 0.05°C 0°C to 40°C 5 10001
207(RH) 1%RH 20% to 90% 250 20003
WVU-7 0.05°C 0°C to 40°C 5 8522
024A 3o @ 360° 2083 3802
227 - - - 20003
237 10 kohm 20k to 300k 1000 20003
1 based on transient settling
2 based on signal rise time
3 limit of excitation drive
The comparatively small transient yet large MINIMIZING SETTLING ERRORS IN NON-
source resistance of the 024A sensor indicates CAMPBELL SCIENTIFIC SENSORS
that signal rise time may be the most important
When long lead lengths are mandatory in
limitation. The analysis in Section 13.3.2
sensors configured by the user, the following
confirms this.
general practices can be used to minimize or
The Model 227 Soil Moisture Block has a measure settling errors:
relatively short time constant and essentially no
1. When measurement speed is not a prime
transient. Lead lengths in excess of 2000 feet
consideration, Instruction 4, Excite, Delay,
produce less than a 0.1 bar (0-10 bar range)
and Measure, can be used to insure ample
input settling error. With this sensor, the drive
settling time for half bridge, single-ended
capability of the excitation channel limits the
sensors.
lead length. If the capacitive load 0.1 µfd and
the resistive load is negligible, Vx will oscillate 2. An additional low value bridge resistor can be
about its control point. If the capacitive load is added to decrease the source resistance, Ro.
0.1 or less, Vx will settle to within 0.1% of its For example, assume a YSI nonlinear
correct value 150 µs. A lead length of 2000 thermistor such as the model 44032 is used
feet is permitted for the Model 227 before with a 30 kohm bridge resistor, Rf'. A typical
approaching the drive limitation. configuration is shown in Figure 13.3-7A. The
disadvantage with this configuration is the
Table 13.3-6 summarizes maximum lead lengths
high source resistance shown in column 3 of
for corresponding error limits in six Campbell
Table 13.3-7. Adding another 1 K resistor, Rf,
Scientific sensors. Since the first three sensors
as shown in Figure 13.3-7B, lowers the source
are nonlinear, the voltage error, Ve, is the most
resistance of the CR10 input. This offers no
conservative value corresponding to the error
improvement over configuration A because Rf'
over the range shown.
still combines with the lead capacitance to
slow the signal response at point P. The
13-9
SECTION 13. CR10 MEASUREMENTS
TABLE 13.3-7. Source Resistances and Signal Levels for YSI #44032 Thermistor Configurations
Shown in Figure 13.3-7 (2V Excitation)
13-10
SECTION 13. CR10 MEASUREMENTS
FIGURE 13.3-7. Half Bridge Configuration for YSI #44032 Thermistor Connected to CR10
Showing: A) large source resistance,
B) large source resistance at point P, and
C) configuration optimized for input settling
13-11
SECTION 13. CR10 MEASUREMENTS
FIGURE 13.3-9. Incorrect Lead Wire Extension on Model 107 Temperature Sensor
13-12
SECTION 13. CR10 MEASUREMENTS
13.4.1 ERROR ANALYSIS yield a ±0.4°C error in the range of -24°C to +48°C
The error in the measurement of a and ±0.9°C over the range of -38°C to +53°C. It is
thermocouple temperature is the sum of the emphasized that this is the worst case. Campbell
errors in the reference junction temperature, the Scientific's experience shows that the overall
thermocouple output (deviation from standards accuracy is typically better than ±0.2°C. The major
published in NBS Monograph 125), the error component in the -0°C to +50°C range is the
thermocouple voltage measurement, and the ±0.2°C thermistor interchangeability specification.
polynomial error (difference between NBS When a CR10 is outside of this temperature range,
standard and CR10 polynomial the polynomial error becomes much worse (Figure
approximations). The discussion of errors 13.4-1), and may necessitate the use of an external
which follows is limited to these errors in reference junction to improve the accuracy.
calibration and measurement and does not
include errors in installation or matching the If the terminal that the thermocouple is wired into
sensor to the environment being measured. is at a different temperature than the CR10TCR
thermistor, this difference in temperature
REFERENCE JUNCTION TEMPERATURE becomes an error in the thermocouple
temperature measurement. With the CR10 in
The junction which is created when a one of the enclosure options (Section 14) this
thermocouple is wired to the wiring panel is error will generally be less than 0.3°C.
referred to as the reference junction. The
temperature of the reference junction must be
THERMOCOUPLE LIMITS OF ERROR
known in order to calculate the absolute
temperature of the measuring junction. The The standard reference which lists
CR10TCR Thermocouple Reference thermocouple output voltage as a function of
Temperature (CR10TCR) is used to measure temperature (reference junction at 0°C) is the
the temperature of the reference junction National Bureau of Standards Monograph 125
(terminal strips). (1974). The American National Standards
Institute has established limits of error on
The CR10TCR uses a thermistor to measure the thermocouple wire which is accepted as an
relative temperature of the terminal strips. The industry standard (ANSI MC 96.1, 1975). Table
accuracy of this measurement is a combination of 13.4-1 gives the ANSI limits of error for
the thermistor's interchangeability specification, the standard and special grade thermocouple wire
precision of the bridge resistors, and the polynomial of the types accommodated by the CR10.
error. In a "worst case" example, all errors add to
TABLE 13.4-1. Limits of Error for Thermocouple Wire (Reference Junction at 0°C)
Limits of Error
Thermocouple Temperature (Whichever is greater)
Type Range °C Standard Special
13-13
SECTION 13. CR10 MEASUREMENTS
When both junctions of a thermocouple are at the temperature curve) for the various
same temperature, there is no voltage produced thermocouples. Lacking this information, a
(law of intermediate metals). A consequence of reasonable approach is to apply the percentage
this is that a thermocouple cannot have an offset errors, with perhaps 0.25% added on, to the
error; any deviation from a standard (assuming the difference in temperature being measured by
wires are each homogeneous and no secondary the thermocouple.
junctions exist) is due to a deviation in slope. In
light of this, the fixed temperature limits of error ACCURACY OF THE THERMOCOUPLE
(e.g., +1.0°C for type T as opposed to the slope VOLTAGE MEASUREMENT
error of 0.75% of the temperature) in the table
The accuracy of a CR10 voltage measurement
above are probably greater than one would
experience when considering temperatures in the is specified as 0.2% (0.1% 0 to 40°C) of the full
environmental range. In other words, the scale range being used to make the
measurement. The actual accuracy may be
reference junction, at 0°C, is relatively close to the
better than this as it involves a slope error (the
temperature being measured, so the absolute
error is proportional to the measurement being
error (the product of the temperature difference
made though limited by the resolution). The
and the slope error) should be closer to the
error in the temperature due to inaccuracy in
percentage error than the fixed error. Likewise,
the measurement of the thermocouple voltage
because thermocouple calibration error is a slope
is worst at temperature extremes, where a
error, accuracy can be increased when the
relatively large scale is necessary to read the
reference junction temperature is close to the
thermocouple output. For example, assume
measurement temperature. For the same reason,
type K (chromel-alumel) thermocouples are
differential temperature measurements, over a
small temperature gradient, can be extremely used to measure temperatures at 600°C. The
accurate. TC output is on the order of 24.9 mV, requiring
the +25 mV input range. The accuracy
specification of 0.1% FSR is 25 uV which is a
In order to quantitatively evaluate thermocouple
error when the reference junction is not fixed at temperature error of about 0.60°C. In the
environmental temperature range with voltage
0°C, one needs limits of error for the Seebeck
measured on an appropriate scale, error in
coefficient (slope of thermocouple voltage vs.
13-14
SECTION 13. CR10 MEASUREMENTS
temperature due to the voltage measurements should be made by obtaining the actual
is a few hundredths of a degree. temperatures referenced to a junction within the
reference temperature range and subtracting.
THERMOCOUPLE POLYNOMIALS - Voltage
Table 13.4-3 gives the reference temperature
to Temperature Conversion
ranges covered and the limits of error in the
NBS Monograph 125 gives high order linearizations within these ranges.
polynomials for computing the output voltage of a
Two sources of error arise when the reference
given thermocouple type over a broad range of
temperature is out of range. The most significant
temperatures. In order to speed processing and
error is in the calculated compensation voltage;
accommodate the CR10's math and storage
however, error is also created in the temperature
capabilities, 4 separate 6th order polynomials are
difference calculated from the thermocouple
used to convert from volts to temperature over
output. For example, suppose the reference
the range covered by each thermocouple type.
temperature for a measurement on a type T
Table 13.4-2 gives error limits for the
thermocouple is 300°C. The compensation
thermocouple linearization functions.
voltage calculated by the CR10 corresponds to a
temperature of 272.6°C, a -27.4°C error. The
TABLE 13.4-2. Limits of Error on CR10
type T thermocouple with the measuring junction
Thermocouple Output Linearization
at 290°C and reference at 300°C would output -
(Relative to NBS Standards)
578.7 µV; using the reference temperature of
TC Type Range °C Limits of Error °C 272.6°C, the CR10 calculates a temperature
difference of -10.2°C, a -0.2°C error. The
T -270 to 400
temperature calculated by the CR10 would be
-270 to -200 ±18 @ -270
262.4°C, 27.6°C low.
-200 to -100 ± 0.08
-100 to 100 ± 0.001
100 to 400 ± 0.015 TABLE 13.4-3. Reference Temperature
Compensation Range and Linearization
J -150 to 760 ± 0.008 Error Relative to NBS Standards
-100 to 300 ± 0.002 TC Type Range °C Limits of Error °C
T -100 to 100 ± 0.001
E -240 to 1000
-240 to -130 ± 0.4 J -150 to 296 ± 0.005
-130 to 200 ± 0.005 E -150 to 206 ± 0.005
200 to 1000 ± 0.02 K -50 to 100 ± 0.01
13-15
SECTION 13. CR10 MEASUREMENTS
indicating 25.3°C, and the terminal that the wire, but meets the same limits of error within that
thermocouple is connected to is 0.3°C cooler range. The only situation where it would be
than the RTD. necessary to use extension grade wire instead of
an external measuring junction is where the
TABLE 13.4-4. Example of Errors in junction box temperature is outside the range of
Thermocouple Temperature reference junction compensation provided by the
CR10. This is only a factor when using type K
Source Error °C % of Total Error thermocouples, where the upper limit of the
1°C 1% Slope reference compensation linearization is 100°C and
Error Error the upper limit of the extension grade wire is
Reference Temp. 0.6 36.1 69.6 200°C. With the other types of thermocouples, the
reference compensation range equals or is greater
TC Output than the extension wire range. In any case, errors
ANSI 1.0 60.1 can arise if temperature gradients exist within the
0.01 x 20oC 0.2 23.2 junction box.
Voltage
Measurement 0.06 3.6 7.0 Figure 13.4-4 illustrates a typical junction box.
Terminal strips will be a different metal than the
Reference thermocouple wire. Thus, if a temperature
Linearization 0.001 0.1 0.1 gradient exists between A and A' or B and B', the
junction box will act as another thermocouple in
Output
series, creating an error in the voltage measured
Linearization 0.001 0.1 0.1
by the CR10. This thermoelectric offset voltage
Total Error is a factor whether or not the junction box is used
With ANSI error 1.662 100 for the reference. It can be minimized by making
the thermal conduction between the two points
Assuming 1% 0.862 100
large and the distance small. The best solution in
slope error
the case where extension grade wire is being
connected to thermocouple wire would be to use
13.4.2 USE OF EXTERNAL REFERENCE connectors which clamped the two wires in
JUNCTION OR JUNCTION BOX contact with each other.
An external junction box is often used to facilitate
connections and to reduce the expense of An external reference junction box must be
thermocouple wire when the temperature constructed so that the entire terminal area is
measurements are to be made at a distance from very close to the same temperature. This is
the CR10. In most situations, it is preferable to necessary so that a valid reference temperature
make the box the reference junction, in which can be measured, and to avoid a thermoelectric
case its temperature is measured and used as the offset voltage which will be induced if the
reference for the thermocouples; copper wires are terminals at which the thermocouple leads are
run from the box to the CR10 (Section 3.4). connected (points A and B in Figure 13.4-4) are
Alternatively, the junction box can be used to at different temperatures. The box should
couple extension grade thermocouple wire to the contain elements of high thermal conductivity,
thermocouples being used for measurement, and which will act to rapidly remove any thermal
the CR10 panel used as the reference junction. gradients to which the box is subjected. It is
Extension grade thermocouple wire has a smaller not necessary to design a constant temperature
temperature range than standard thermocouple box; it is desirable that the box respond slowly
to external temperature fluctuations.
13-16
SECTION 13. CR10 MEASUREMENTS
Radiation shielding must be provided when a and measurement sequence for Instruction 6, a
junction box is installed in the field. Care must 4 wire full bridge. Excitation is applied
also be taken that a thermal gradient is not separately for each phase of a bridge
induced by conduction through the incoming measurement. For example, in Instruction 6, as
wires. The CR10 can be used to measure the shown in Figure 13.5-2, excitation is switched
temperature gradients within the junction box. on for the 4 integration periods and switched off
between integrations.
13.5 BRIDGE RESISTANCE
MEASUREMENTS Instruction 8 measurement sequence consists
of applying a single excitation voltage, delaying
There are 6 bridge measurement instructions a specified time, and making a differential
included in the standard CR10 software. Figure voltage measurement. If a delay of 0 is
13.5-1 shows the circuits that would typically be specified, the inputs for the differential
measured with these instructions. In the measurement are not switched for a second
diagrams, the resistors labeled Rs would integration as is normally the case (Section
normally be the sensors and those labeled Rf 13.2). The result stored is the voltage
would normally be fixed resistors. Circuits measured. Instruction 8 does not have as good
other than those diagrammed could be resolution or common mode rejection as the
measured, provided the excitation and type of ratiometric bridge measurement instructions. It
measurements were appropriate. does provide a very rapid means of making
bridge measurements as well as supplying
With the exception of Instructions 4 and 8, excitation to circuitry requiring differential
which apply an excitation voltage then wait a measurements. This instruction does not
specified time before making a measurement, reverse excitation. A 1 before the excitation
all of the bridge measurements make one set of channel number (1X) causes the channel to be
measurements with the excitation as incremented with each repetition.
programmed and another set of measurements
with the excitation polarity reversed. The error The output of Instruction 8 is simply the voltage
in the two measurements due to thermal emfs measurement. When 8 is used to measure a
can then be accounted for in the processing of full bridge (same connections as Instruction 6 in
the measurement instruction. The excitation is Figure 13.5-1), the result is V1 which equals Vx
switched on 450 µs before the integration (R3/(R3+R4) - R2/(R1+R2)). (In other words, to
portion of the measurement starts and is make the output the same as Instruction 6, use
grounded as soon as the integration is a factor of 1000/Vx in the multiplier.)
completed. Figure 13.5-2 shows the excitation
13-17
SECTION 13. CR10 MEASUREMENTS
13-18
SECTION 13. CR10 MEASUREMENTS
FIGURE 13.5-2. Excitation and Measurement Sequence for 4 Wire Full Bridge
13-19
SECTION 13. CR10 MEASUREMENTS
Calculating the actual resistance of a sensor multiplier and stores the result in the original
which is one of the legs of a resistive bridge location. Instruction 42 computes the reciprocal
usually requires the use of one or two Processing of a value in an input location. Table 13.5-2 lists
Instructions in addition to the bridge the instructions used to compute the resistance
measurement instruction. Instruction 59 takes a of any single resistor shown in the diagrams in
value, X, in a specified input location and Figure 13.5-1, provided the values of the other
computes the value MX/(1-X), where M is the resistors in the bridge circuit are known.
TABLE 13.5-2. Calculating Resistance Values from Bridge Measurement
Instr. Result Instr.# Multiplier; Offset
4 X = Vx(Rs/(Rs+Rf))
X/Vx 4 1/Vx 0
Rs = Rf ________ 59 Rf
1-X/Vx
1 4 1/Vx 0
Rf = ____________________ 59 1/Rs
((X/Vx)/(1-X/Vx))/Rs 42
5 X = Rs/(Rs+Rf)
X 5 1 0
Rs = Rf _____ 59 Rf
1-X
1 5 1 0
Rf = _____________ 59 1/Rs 0
(X/(1-X))/Rs 42
where X2 = X1 59 R1
1 6 or 9 0.001 R2/(R1+R2)
R4 = _______________
(X4/(1-X4))/R3 59 1/R3
42
where X4 = X3
7&9* X = Rs/Rf * used as half bridge
R s = R fX 7 or 9 Rf 0
13-20
SECTION 13. CR10 MEASUREMENTS
Rf = Rs/X 7 or 9 1/Rs 0
42
13-21
SECTION 13. CR10 MEASUREMENTS
In Figure 13.6-2, Vx is the excitation voltage, Rf The CR10 has an internal calibration function
is a fixed resistor, Rs is the sensor resistance, that feeds positive and negative voltages
and RG is the resistance between the excited through the amplifiers and integrator and
electrode and CR10 earth ground. With RG in calculates new calibration coefficients. By
the network, the measured signal is: adjusting the calibration coefficients the
accuracy of the voltage measurements is
Rs maintained over the -25 to +50°C operating
V1 = Vx __________________ [13.6-1] range of the CR10. Calibration is executed
(Rs+Rf) + RsRf/RG under four conditions:
RsRf/RG is the source of error due to the 1. When the CR10 is powered up.
ground loop. When RG is large the equation
reduces to the ideal. The geometry of the 2. Automatically when Instruction 24 is not
electrodes has a great effect on the magnitude contained in a program table.
of this error. The Delmhorst gypsum block
used in the 227 probe has two concentric 3. When the watchdog resets the processor.
cylindrical electrodes. The center electrode is
used for excitation; because it is encircled by 4. When the calibration instruction, Instruction
the ground electrode, the path for a ground loop 24, is executed.
through the soil is greatly reduced. Moisture
blocks which consist of two parallel plate AUTOMATIC CALIBRATION SEQUENCE
electrodes are particularly susceptible to
ground loop problems. Similar considerations The primary advantage of automatic calibration
apply to the geometry of the electrodes in water is that the CR10 is constantly calibrated without
conductivity sensors. user programming. The CR10 defaults to
automatic calibration when Instruction 24 is not
The ground electrode of the conductivity or soil contained in a program table.
moisture probe and the CR10 earth ground
form a galvanic cell, with the water/soil solution Every 8 seconds one part of a 22 part
acting as the electrolyte. If current was allowed calibration sequence is performed. Program
to flow, the resulting oxidation or reduction execution is interrupted (5.4 - 21.4 ms), when
would soon damage the electrode, just as if DC necessary, for each part of the calibration.
excitation was used to make the measurement. Every 2.9 minutes (8 seconds * 22) ten
Campbell Scientific probes are built with series calibration coefficients are calculated. The
capacitors in the leads to block this DC current. calculated coefficients are multiplied by 1/5,
In addition to preventing sensor deterioration, and then added to 4/5 times the existing
the capacitors block any DC component from coefficients. Averaging is done as a safeguard
affecting the measurement. against coefficients calculated from a noisy
measurement.
13.7 CALIBRATION PROCESS
The above weighting of the newly calculated
The CR10 makes voltage measurements by coefficients results in a 15 minute time constant
integrating the input signal for a fixed time and (see Instruction 58) in the response of the
then holding the integrated value for the analog calibration to step changes affecting the
to digital (A/D) conversion. The A/D conversion calibration coefficients (primarily temperature).
is made by a 13 bit approximation using a For most environmental applications a 15
digital to analog converter (DAC). The result minute time constant is acceptable. The
from the approximation is DAC counts, which automatic calibration may result in the
are multiplied by coefficients to obtain millivolts calibration coefficients not being optimum for
(mV). There are 10 calibration coefficients, one applications that subject the CR10 to extreme
for each of the 5 gain ranges for the fast and temperature gradients.
slow integration times.
Automatic calibration extends the processing
time 5.4 to 21.4 ms when it is executed (every 8
13-22
SECTION 13. CR10 MEASUREMENTS
seconds). If the processing time exceeds the Calibration coefficients are replaced each time
execution interval the CR10 finishes processing that Instruction 24 is executed. Unlike
the table and awaits the next occurrence of the automatic calibration, there is no time constant
execution interval before initiating the table. At for the coefficients to respond in changes to
the fastest execution interval of 1/64 (0.0156) calibration. Instruction 24 calibration ensures
second the program table WILL be overrun by that the coefficients are optimum at the time
the automatic calibration. If an overrun occurs that the instruction is executed. For example,
every time calibration is executed, then 1 consider a CR10 mounted under the dash of an
execution is skipped for every 512 times that automobile, where temperature could easily
the program table is executed. If the change 50 degrees. Temperature changes
measurements are being averaged, the effect affect the measurement circuitry which must be
of the overrun is negligible. Program table compensated for by calculating new
overruns are indicated by the appearance of coefficients. Each time Instruction 24 is
two decimals on either side of the sixth digit on executed a new set of calibration coefficients is
the CR10KD and are also stored in memory calculated based on the measurements made
(Section 1.7). at that time.
13-23
SECTION 13. CR10 MEASUREMENTS
13-24
SECTION 14. INSTALLATION AND MAINTENANCE
14.1 PROTECTION FROM THE The Model ENC 12/14 fiberglass enclosure
ENVIRONMENT houses the CR10, power supply, and one or
more peripherals. Inside dimensions of the
The normal environmental variables of concern ENC 12/14 are 14" x 12" x 5.5", outside
are temperature and moisture. The standard dimensions are 18" x 13.5" x 8.13" (with
CR10 is designed to operate reliably from -25 brackets); weight is 11.16 lbs.
to +50°C (-55° to +85°C, optional). Internal
The Model ENC 16/18 fiberglass enclosure
moisture is eliminated by sealing the module at
houses the CR10 Power Supply, and several
the factory with three packets of silica gel (0.75
peripherals. Inside dimensions of the ENC
g each) inside. The desiccant is replaced
16/18 are 16" x 18" x 9", outside dimensions
whenever the CR10 is repaired at Campbell
are 21.75" x 20.0" x 11.0" (with brackets);
Scientific. The module should not be opened
weight is 17.2 lbs.
by the user except for the infrequent purpose of
PROM replacement (refer to Appendix G).
Repeated disassembly/assembly of the CR10 14.2 POWER REQUIREMENTS
will degrade the seal, leading to potential The CR10 operates at a nominal 12 VDC.
moisture problems. Extra desiccant should Below 9.6 or above 16 volts the CR10 does not
also be placed in the enclosure to prevent operate properly.
corrosion on the Wiring Panel terminals and
CR10/Wiring Panel connections. The CR10 is diode protected against accidental
reversal of the positive and ground leads from
Campbell Scientific offers two enclosures for the battery. Input voltages in excess of 18 V
housing a CR10 and peripherals. The fiberglass may damage the CR10 and/or power supply. A
enclosures are classified as NEMA 4X (water- transzorb provides transient protection by
tight, dust-tight, corrosion-resistant, indoor and limiting voltage at approximately 20 V.
outdoor use). A 1.25" diameter entry/exit port is
located at the bottom of the enclosure for routing CAUTION: The metal surfaces of the
cables and wires. The enclosure door can be Wiring Panel and mounting bracket are at
fastened with the hasp for easy access, or with the same electrical ground as the power
the two supplied screws for more permanent supply. Caution must be exercised when
applications. The white plastic inserts at the connecting power directly to the Wiring
corners of the enclosure must be removed to Panel's 12 V and ground terminals.
insert the screws. Both enclosures are white for Connect the plus (+) side of the supply first,
reflecting solar radiation, thus reducing the keeping the minus (-) side away from the
internal enclosure temperature. Wiring Panel. Once the plus side is
secured, connect the power return.
14-1
SECTION 14. INSTALLATION AND MAINTENANCE
System operating time for the batteries can be The charge input can be either AC or DC, and it
determined by dividing the battery capacity does not matter which terminal is positive or
(amp-hours) by the average system current negative. The voltage input must be within 16
drain. The CR10 draws <1 mA in the quiescent to 26 VDC, or 16 to 26 VAC RMS.
state, 13 mA while processing, and 46 mA
The ON-OFF switch controls power to the 12 V
during an analog measurement; the length of
ports. Charging of lead acid batteries still
operating time for each datalogger instruction is
occurs when the switch is off. The red charge
listed in the programming section. Typical
light is on when a charging source is connected
current requirements for common CR10
to the power supply.
peripherals are given in Table 14.2-1.
The connectors labeled INT and EXT are for
14.3 CAMPBELL SCIENTIFIC POWER connecting the internal (power supply) battery
SUPPLIES and an external battery, respectively. A five
foot cable, with connector, is included with the
The PS12 Power Supply is available from
power supply for connection to an external
Campbell Scientific with either alkaline or lead
battery. This is commonly used for supplying
acid batteries, the PS12ALK and PS12LA,
power to the datalogger while changing power
respectively. The PS512M is also a lead acid
supply batteries.
supply with two 9-pin null modem ports for
communication modems, see Section 14.3.3.
The PS12ALK has 8 D cell alkaline batteries, A thermal fuse in the power circuit limits source
the PS12LA has a rechargeable lead acid current. If excessive current is drawn, the fuse
battery. The alkaline batteries are discarded gets hot, increases in resistance, and limits
after use. The lead acid batteries should be current. When the problem is fixed, the fuse
float charged with either AC power or a solar cools and the resistance decreases, eventually
panel. The lead acid battery supplies power allowing current to pass. When excessive
during a power failure or in times of low charge current is drawn due to shorting the power
with a solar panel. leads to the Wiring Panel, allow 10 to 15
seconds for the fuse to cool before connecting
The CH12R and CH512R contain the same power.
circuitry as the PS12LA and PS512M,
respectively. They are used to float charge an 14.3.1 PS12ALK ALKALINE POWER SUPPLY
external 12 VDC Yuasa battery using AC or
solar power. No internal batteries are The PS12ALK utilizes 8 alkaline D cells
contained in the CH12R and CH512R. Their mounted in place of the lead acid battery shown
operation, however, is identical to that of the in Figure 14.3-1. The PS12ALK can also be
PS12LA and PS512M. Other power supply used with a lead acid battery connected to the
options are connecting a 12 volt battery directly external battery port, in this case the alkaline
to the CR10, Section 14.5, or supplying power batteries act as a backup.
from a vehicle, Section 14.6. Before installing the alkaline batteries, connect
The PS12 Power Supply provides 12 volts, all necessary sensor leads, control lines, and
regulates incoming AC or DC power, limits power leads. The CR10 can be turned on and
current from the battery, and provides circuitry off with the switch on the PS12ALK.
to connect an external 12 volt battery. The To replace the batteries without losing the
terminals on the PS12 are exposed by datalogger program and data: 1) do not turn the
unscrewing the two set screws, as shown in power switch off, 2) connect an external battery
Figure 4.3-1. to the port labeled EXT with the supplied 6 foot
The two 12 volt and two ground terminals are cable, 3) remove the old batteries, 4) replace
for supplying power to the datalogger, or other with new alkaline D cell batteries, and 5)
12 volt devices. remove the external battery.
The two terminals, labeled CHG, are for A fresh set of eight alkaline D cells has 12.4
connecting a 20 VDC adapter or solar panel to volts and a nominal rating of 7.5 amp-hours at
charge lead acid batteries. 20°C. The amp-hour rating decreases with
temperature as shown in Table 14.3-1.
Datalogger Instruction 10 can be used to
14-2
SECTION 14. INSTALLATION AND MAINTENANCE
14-3
SECTION 14. INSTALLATION AND MAINTENANCE
TABLE 14.3-1. Typical Alkaline Battery The five foot external battery cable can be
Service and Temperature connected to a large capacity (amp-hour) battery to
power the system for an extended period of time.
Temperature (°C) % of 20°C Service The red and black leads connect to the positive and
20 - 50 100 negative battery posts, respectively. The alkaline
15 98 cells act as a power backup in this case. A diode in
10 94 the PS12ALK isolates the lead acid supply from the
5 90 alkaline batteries.
0 86
-10 70 14.3.2 PS12LA LEAD ACID POWER SUPPLY
-20 50 The PS12LA power supply includes a 12 V, 7.0
-30 30 amp-hour lead acid battery, a AC transformer
(18 V), and a temperature compensated
NOTE: This data is based on one "D" cell charging circuit with a charge indicating diode.
under conditions of 50 mA current drain An AC transformer or solar panel should be
with a 30 ohm load. As the current drain connected to the PS12 at all times. The
decreases, the percent service improves charging source powers the CR10 while float
for a given temperature. charging the lead acid batteries. The internal
lead acid battery powers the datalogger if the
14-4
SECTION 14. INSTALLATION AND MAINTENANCE
charging source is interrupted. The PS12LA from the CR10 and charging circuit in order to
specifications are given in Table 14.3-2. measure the actual lead acid battery voltage.
14-5
SECTION 14. INSTALLATION AND MAINTENANCE
14-6
SECTION 14. INSTALLATION AND MAINTENANCE
14-7
SECTION 14. INSTALLATION AND MAINTENANCE
14-8
SECTION 14. INSTALLATION AND MAINTENANCE
In the field, an earth ground may be created The Wiring Panel carries two lines between the
through a grounding rod. A 12 AWG or larger CR10 and each excitation port. One line is for
wire should be run between a Wiring Panel excitation voltage, the other is for feedback
power ground (G) terminal and the earth control of the voltage. The feedback line is
ground. Campbell Scientific's CM10 and CM6 required to compensate for line losses between
Tripods come complete with ground and the CR10 and the excitation port on the Wiring
lightning rods, grounding wires, and appropriate Panel (see Figure 14.7-1).
ground wire clamps.
Two 5 V output terminals are available on the
Wiring Panel for powering 5 V peripherals. The
14.7.2 EFFECT OF GROUNDING ON
most common use of these terminals is to
MEASUREMENTS: COMMON MODE
switch the 5 V to a relay coil through a relay
RANGE driver circuit which is enabled by one of the
The common mode range is the voltage range, eight Digital I/O Ports, C1 through C8 (see
relative to the CR10 ground, within which both Section 14.9 for relay driver circuits). The 5 V
inputs of a differential measurement must lie in ports can source up to 200 mA. An input
order for the differential measurement to be protection transzorb will divert current to ground
made. Common mode range for the CR10 is at approximately 10 V.
±2.5 V. For example, if the high side of a
differential input is at 2 V and the low side is at A functional description of the 37 pin connector
0.5 V relative to CR10 ground, a measurement located on the CR10 is provided in Appendix D.
made on the ±2.5 V range would indicate a
signal of 1.5 V. However, if the high input 14.9 SWITCHED 12 VOLT
changed to 3 V, the common mode range is
exceeded and the measurement cannot be A single switched 12 volt output is available for
made. powering sensors or devices that require an
unregulated 12 volts. The 12 volt output is
Common mode range may be exceeded when limited to 600 mA of current.
the CR10 is measuring the output from a
sensor which has its own grounded power A control port is used to operate the switched
supply and the low side of the signal is 12 volt control. Connect a wire from any control
referenced to power ground. If the CR10 port to the switched 12 volt control (see Figure
ground and the sensor ground are at sufficiently OV1.1-2 for location of ports). When the
different potentials, the signal will exceed the control port is set high, 12 volts is turned on to
common mode range. To solve this problem, the switched 12 volt port. When the control port
the sensor power ground and the CR10 ground is set low, the switched 12 volts is turned off.
should be connected, creating one ground for
the system.
14.10 USE OF DIGITAL I/O PORTS FOR
In a laboratory application, where more than SWITCHING RELAYS
one AC socket may be used to power various
sensors, it is not always safe to assume that Each of the eight digital I/O ports can be
the power grounds are at the same potential. configured as an output port and set low or high
To be safe, the ground of all the AC sockets in (0 V low, 5 V high) using I/O Instruction 20, Port
use should be tied together with a 12 AWG Set, or commands 41 - 68 associated with
wire. Program Control Instructions 83 through 93. A
digital output port is normally used to operate
an external relay driver circuit because the port
14.8 WIRING PANEL itself has a limited drive capability (1.5 mA at
The purpose of the Wiring Panel is to provide 3.5 V). Figure 14.10-1 shows a typical relay
transient protection, improve excitation voltage driver circuit in conjunction with a coil driven
accuracy, and make convenient, positive relay which may be used to switch external
connections of power, sensors, and peripherals power to some device. In this example, when
to the CR10 (refer to Figure 14.7-1). Wiring the control port is set high, 12 V from the
Panel transient protection is discussed in datalogger passes through the relay coil,
Section 14.7. closing the relay which completes the power
circuit to a fan, turning the fan on. Campbell
14-9
SECTION 14. INSTALLATION AND MAINTENANCE
14-10
SECTION 14. INSTALLATION AND MAINTENANCE
14.11 MAINTENANCE
The CR10 Wiring Panel and power supplies
require a minimum of routine maintenance.
14-11
SECTION 14. INSTALLATION AND MAINTENANCE
14-12
APPENDIX A. GLOSSARY
ASCII: Abbreviation for American Standard EXECUTION TIME: The time required to
Code for Information Interchange (pronounced execute an instruction or group of instructions.
"askee"). A specific binary code of 128 If the execution time of a Program Table
characters represented by 7 bit binary exceeds the table's Execution Interval, the
numbers. Program Table will be executed less frequently
than programmed (Section OV4.3.1 and 8.9).
ASYNCHRONOUS: The transmission of data
between a transmitting and a receiving device FINAL STORAGE: That portion of memory
occurs as a series of zeros and ones. For the allocated for storing Output Arrays. Final
data to be "read" correctly, the receiving device Storage may be viewed as a ring memory, with
must begin reading at the proper point in the the newest data being written over the oldest.
series. In asynchronous communication, this Data in Final Storage may be displayed using
coordination is accomplished by having each the *7 Mode or sent to various peripherals
character surrounded by one or more start and (Sections 2, 3, and OV4.1).
stop bits which designate the beginning and
GARBAGE: The refuse of the data
ending points of the information (see
communication world. When data are sent or
Synchronous).
received incorrectly (and there are numerous
BAUD RATE: The speed of transmission of reasons this happens) a string of invalid,
information across a serial interface, expressed meaningless characters (garbage) results. Two
in units of bits per second. For example, 9600 common causes are: 1) a baud rate mismatch
baud refers to bits being transmitted (or and 2) synchronous data being sent to an
received) from one piece of equipment to asynchronous device and vice versa.
another at a rate of 9600 bits per second.
HANDSHAKE, HANDSHAKING: The
Thus, a 7 bit ASCII character plus parity bit plus
exchange of predetermined information
1 stop bit (total 9 bits) would be transmitted in
between two devices to assure each that it is
9/9600 sec. = .94 ms or about 1000
connected to the other. When not used as a
characters/sec. When communicating via a
clock line, the CLK/HS (pin 7) line in the CR10
serial interface, the baud rate settings of two
is primarily used to detect the presence or
pieces of equipment must match each other.
absence of peripherals such as the Storage
DATA POINT: A data value which is sent to Module.
Final Storage as the result of an Output
HIGH RESOLUTION: A high resolution data
Instruction. Strings of data points output at the
value has 5 significant digits and may range in
same time make up Output Arrays.
magnitude from +.00001 to +99999. A high
EXECUTION INTERVAL: The time interval resolution data value requires 2 Final Storage
between initiating each execution of a given locations (4 bytes). All Input and Intermediate
Program Table. If the Execution Interval is Storage locations are high resolution. Output to
evenly divisible into 24 hours (86,400 seconds), Final Storage defaults to low resolution; high
the Execution Interval will be synchronized with resolution output must be specified by
24 hour time, so that the table is executed at Instruction 78.
midnight and every execution interval
INDEXED INPUT LOCATION: An Input
thereafter. The table will be executed for the
location entered as an instruction parameter
first time at the first occurrence of the Execution
may be indexed by keying "C" before it is
Interval after compilation. If the Execution
entered by keying "A"; two dashes (--) will
Interval does not divide evenly into 24 hours,
appear at the right of the display. Within a loop
execution will start on the first even second
(Instruction 87, Section 12), this will cause the
after compilation. See Section OV4.3.1 for
location to be incremented with each pass
information on the choice of an Execution
through the loop. Indexing is also used with
Interval.
Instruction 75 to cause an Input location, which
A-1
APPENDIX A. GLOSSARY
A-2
APPENDIX A. GLOSSARY
A-3
APPENDIX A. GLOSSARY
A-4
APPENDIX A. GLOSSARY
A-5
APPENDIX B. CR10 PROM SIGNATURE AND OPTIONAL SOFTWARE
B.1 PROM SIGNATURE AND VERSION The signatures of current standard PROMs are
listed in Table B-1. If the CR10 has a Library
The CR10 PROM signature is viewed by Option PROM, the signature is listed on the
entering the *B Mode and advancing to window calibration sheet shipped with the datalogger.
2 (Section 1.6). The version number is in The instructions for using the special features,
window 6 and the revision number in window 7. can be found in Appendix H.
TABLE B-1. CR10 PROM Signatures
PROM SIGNATURE PROM NUMBER REVISION NUMBER
DESCRIPTION *B, WINDOW 2 *B, WINDOW 6 WINDOW 7
OS10-0.1 51903 .10000 0001
OS10-1.1 55030 1.1000 0001
OS10-0.1-4K 19464 90.100 0000
B.2 AVAILABLE PROMS / LIBRARY Library Option PROMS are assembled from a
OPTIONS base set of instructions plus selected functions
in Table B.2-1. Consult a Campbell Scientific
The set of instructions available in the CR10 is applications engineer for pricing and help in
determined by the PROM (Programmable Read configuring a library option.
Only Memory that it is equipped with. If the
standard PROM, OS10-0.1, does not fit the B.3 DESCRIPTION OF LIBRARY OPTIONS
customer's application it is possible to create a
library option PROM with the instructions and
NOT IN STANDARD MANUAL
features desired, provided the memory capacity The following is a brief description of library
of the PROM is not exceeded. options not found in the standard manual. If the
B-1
APPENDIX B. CR10 PROM SIGNATURE AND OPTIONAL SOFTWARE
CR10 PROM contains one of the following The Instruction can either process a swath of
options then detailed information on the special data from measurements made with the burst
option(s) will be placed in Appendix H. measurement instruction, or it can be used "on
line", processing a new reading with each
13,14 ADD R, S, & B THERMOCOUPLE execution interval.
LINEARIZATIONS
In addition to the linearizations for the T, E, J, 99 SATELLITE TRANSMITTER INTERFACE
and K thermocouples, Instructions 13 and 14 Interface to allow output to GOES satellite via
have the R, S, and B thermocouple the Valcom satellite transmitter.
linearizations.
64 Hz RESET ON PULSE COUNTERS
15 CONTROL PORT SERIAL I/O (for smart The reset interval on the pulse counters is
sensor) changed from 1/8 second to 1/64 second. This
This Instruction allows sending and receiving allows reading the pulse counters on intervals
half duplex data through the control ports at shorter than 0.125 second and allows counting
300 or 1200 baud. frequencies up to 16 kHz with the 8 bit option.
The quiescent current drain of the CR10 is
105,106 SDI12 RECORDER/SENSOR increased to 5 mA when the pulse count
Instruction 105 allows the CR10 to use its instruction is used. A hardware modification to
control ports to collect data from an intelligent the CR10 is also required.
sensor which uses the SDI12 communication
protocol. *4 PARAMETER ENTRY TABLE
This option allows instruction parameters to be
Instruction 106 allows the CR10 to behave as flagged. The values to use for the parameters
an SDI12 sensor. are then entered into a table in the *4 Mode.
This feature is of use when the same program
62 COVARIANCE/CORRELATION is used for a number of stations but individual
This Instruction calculates 1) means, 2) changes need to be made for each station (e.g.
variances, 3) standard deviations, 4) identical measurements are made at each
covariances and 5) correlations for a set of station but certain sensors do not have
input values and stores the results in Input interchangeable calibrations). It is easier and
Storage. Subintervals are allowed for safer to train someone to enter the correct
convenient high pass filtering. values in the table format than it would be to
have them attempt to alter the program.
81 RAINFLOW HISTOGRAM
The Rainflow counting algorithm is a means of
estimating cumulative damage fatigue by
processing strain measurements to produce a
histogram in which closed stress/strain
hysteresis loops are counted by amplitude
ranges. The histogram can be two
dimensional, with each amplitude range sorted
on the basis of average strain during the cycle.
(The name, Rainflow, comes from the idea that
a strain/time plot with strain as the y axis looks
like a pagoda roof. Then, the algorithm is
somehow analogous to the way in which rain
flows down the roof.)
B-2
APPENDIX C. BINARY TELECOMMUNICATIONS
C-1
APPENDIX C. BINARY TELECOMMUNICATIONS
C-2
APPENDIX C. BINARY TELECOMMUNICATIONS
C-3
APPENDIX C. BINARY TELECOMMUNICATIONS
Representing the bits in the first byte of each The decimal locators can be viewed as a
two byte pair as ABCD EFGH (A is the most negative base 10 exponent with decimal
significant bit, MSB), the byte pairs are locations as follows:
described here.
B C Decimal Location
LO RESOLUTION FORMAT - D,E,F,
0 0 XXXX.
NOT ALL ONES
0 1 XXX.X
Bits Description 1 0 XX.XX
1 1 X.XXX
A Polarity, 0 = +, 1 = -.
B, C Decimal locators as defined below.
DATA TYPE WHEN D,E,F, ALL EQUAL ONE
D-H plus 13 bit binary value (D=MSB).
second Largest possible number without D, If D, E, and F are all ones, the data type is
E, and F all 1 is 7167, determined by the other bits as shown below.
byte but CSI defines the largest X implies a "don't care" condition; i.e., the bit
allowable range as 6999. can be either 1 or 0 and is not used in the
decode decision.
A B C D E F G H DATA TYPE AND SECOND BYTE FORMAT
HI RESOLUTION FORMAT
Continuing to use the A-H bit representation, the four byte number is shown below as two two byte
pairs.
AB0111GH XXXXXXXX 001111GH XXXXXXXX
BITS, 1ST BYTE,
1ST PAIR DESCRIPTION
CDEF = 0111 Code designating 1st byte pair of four byte number.
B Polarity , 0 = +, 1 = -.
G,H,A, Decimal locator as defined below.
2nd byte 16th - 9th bit (left to right) of 17 bit binary value.
ABCDEF = 001111 Code designating 2nd byte pair of four byte number.
G Unused bit.
H 17th and MSB of 17 bit binary value.
2nd byte 8th - 1st bit (left to right) of 17 bit binary value.
C-4
APPENDIX C. BINARY TELECOMMUNICATIONS
CSI defines the largest allowable range of a 2. When a transmitted byte, M(n+1), is
high resolution number to be 99999. received, form a new highsignature byte by
setting it equal to the existing low byte.
Interpretation of the decimal locator for a 4 byte Save the old high byte for later use.
data value is given below. The decimal
equivalent of bits GH is the negative exponent T1 = S1(n)
to the base 10.
S1(n+1) = S0(n)
BITS DECIMAL FORMAT
GHA 5 digits 3. Form a temporary byte by shifting the old
low signature byte one bit to the left and
000 XXXXX.
adding any carry bit which results from the
001 XXXX.X
shift operation. A "shift left" is identical to a
010 XXX.XX
multiply by 2. Ignore any carry bit resulting
011 XX.XXX
from the add.
100 X.XXXX
101 .XXXXX
T2 = shift left (S0(n)) + carry
C.3 GENERATION OF SIGNATURE 4. Form the new low signature byte by adding
At the end of a binary transmission, a signature the results of operation 3 to the old high
is sent. The signature is a 2 byte integer value signature byte and the transmitted byte.
which is a function of the data and the Ignore any carry bits resulting from these
sequence of data in the Output Array. It is add operations.
derived with an algorithm that assures a
99.998% probability of detecting a change in S0(n+1) = T2 + S1(n) + M(n+1)
the data or its sequence. The CR10 calculates
the signature using each transmitted byte As each new transmitted byte is received, the
beginning with the Final Storage format data procedure is repeated.
(for K command, echo and carriage return line
feed are not included) until the 2 byte signature
itself. By calculating the signature of the
received data and comparing it to the
transmitted signature, it can be determined
whether the data was received correctly.
SIGNATURE ALGORITHM
• S1,S0 - represent the high and low bytes of
the signature, respectively
• M - represents a transmitted data byte
• n - represents the existing byte
• n+1 - represents the new byte
• T - represents a temporary location
• C - represents the carry bit from a shift
operation
C-5
APPENDIX C. BINARY TELECOMMUNICATIONS
C-6
APPENDIX D. CR10 37 PIN PORT DESCRIPTION
1 12V 19 C1
2 6L 20 G
3 AG 21 6H
4 5H 22 5L
5 4L 23 AG
6 AG 24 4H
7 3H 25 3L
8 2L 26 AG
9 AG 27 2H
10 1H 28 1L
11 EX CTRL 3 29 AG
12 EX CTRL 2 30 E3
13 EX CTRL 1 31 E2
14 AG 32 E1
15 P1 33 P2
16 C7 34 C8
17 C5 35 C6
18 C3 36 C4
37 C2
D-1
This is a blank page.
APPENDIX E. ASCII TABLE
E-1
This is a blank page.
APPENDIX G. CHANGING RAM OR PROM CHIPS
The CR10 has two sockets for Random Access G.2.2 RAM TEST
Memory (RAM) and one socket for
Attach the CR10KD Keyboard/Display and
Programmable Read Only Memory (PROM).
apply power to the CR10. After the CR10
The standard CR10 has 64K of RAM, (a 32K
executes the RAM/PROM self test, the number
RAM chip in each socket). Earlier CR10s had
96 should be displayed in the window. The
16K of RAM (an 8K RAM chip in each socket).
number is the sum of Kbytes in RAM (64) plus
the number of Kbytes in ROM (32).
G.1 DISASSEMBLING THE CR10
The sockets provided for RAM and PROM are G.3 INSTALLING NEW PROM
located on the CR10 CPU circuit card inside the
The PROM chip is found at location C8 on the
CR10 can. To expose the RAM and PROM
CR10 CPU board, (see Figure G-2). With a
sockets, remove the two phillips head screws
small flat screw driver, gently pry out the PROM
from the end opposite the connectors. Remove
chip and replace it with the new one. The new
the end cap. The ends of two circuit cards and
chip should be installed so that the notched end
the RF shield will be visible (see Figure G-1).
is towards the nearest card edge. Before
Now lay the CR10 on a flat surface, (i.e., a
pushing the chip into the socket make certain
table), and push on the RF shield with your
that all the pins are seating correctly. After
thumbs while grasping the can with your hands.
installing the chip check for pins that may be
Remove the circuit cards from the can. Orient
bent or not making contact. If you notice a bent
the cards with the connector on the left and with
pin, remove the chip, carefully straighten it and
the card that matches Figure G-2. The Central
repeat the installation procedure.
Processing Unit (CPU) is found at location H-9
and the three slots for RAM and PROM will be
directly beneath it. To make certain that the new chip is installed
correctly enter the CR10 *B mode, (Section
1.6), and advance to the second window. This
G.2 INSTALLING NEW RAM CHIPS IN window displays the PROM signature. The five
CR10s WITH 16K RAM digit number in the window should match the
The two 8K RAM chips are found at locations PROM signature given with the new PROM
C-11 and C-14. With a small flat screw driver documentation. If the numbers are different
gently pry out the two 8K RAM chips at these disassemble the CR10 and look for pins that
locations and replace them with the 32K RAM are bent or not firmly seated.
chips provided in the memory upgrade. The
new chips should be installed so the notched G.4 INSTALLING 4K PROGRAM
end is towards the nearest card edge. Before MEMORY PROM
pushing the chips into the socket make certain
that all the pins are correctly seated. After Newer CR10s (shipped after 11-4-93) can be
installing the 32K chips check for pins that may converted from the standard 2K Program
be bent or not firmly seated in the socket. If Memory to 4K Program Memory by installing
you notice a bent pin, remove the chip, carefully the correct PROM and moving a jumper.
straighten it and repeat the installation Figure G-3 shows the location and settings for
procedure. the jumper. Install the PROM as described in
Section G.3.
G.2.1 CHANGING JUMPERS
Older CR10s do not have this jumper and must
There are six jumpers used to configure be sent to Campbell Scientific for a hardware
hardware for different RAM sizes. Figure 2 modification to 4K Program Memory.
shows the jumper settings for different memory
configurations. A pin or small screw driver tip
will work best for pulling these jumpers and
relocating them as shown in Figure 2.
G-1
APPENDIX G. CHANGING RAM OR PROM CHIPS
G-2
APPENDIX G. CHANGING RAM OR PROM CHIPS
FIGURE G-2. Jumper Settings for Different RAM Configurations in Early CR10s
G-3
APPENDIX G. CHANGING RAM OR PROM CHIPS
G-4
APPENDIX G. CHANGING RAM OR PROM CHIPS
G-5
LIST OF TABLES
PAGE
OVERVIEW
OV4.1-1 * Mode Summary .............................................................................................................. OV-10
OV4.2-1 Key Definition/Editing Functions ..................................................................................... OV-10
OV4.2-2 Additional Keys Allowed In Telecommunications ........................................................... OV-11
OV6.1-1 Data Retrieval Methods and Related Instructions .......................................................... OV-18
OV6.1-2 Data Retrieval Sections in Manual.................................................................................. OV-18
1. FUNCTIONAL MODES
1.2-1 Sequence of Time Parameters in *5 Mode............................................................................ 1-3
1.3-1 *6 Mode Commands .............................................................................................................. 1-3
1.5-1 Memory Allocation in CR10 ................................................................................................... 1-5
1.5-2 Description of *A Mode Data ................................................................................................. 1-5
1.6-1 Description of *B Mode Data ................................................................................................. 1-6
1.7-1 *C Mode Entries..................................................................................................................... 1-7
1.8-1 *D Mode Commands.............................................................................................................. 1-7
1.8-2 ASCII and Storage Module Command Options..................................................................... 1-8
1.8-3 Program Load Error Codes.................................................................................................... 1-8
1.8-4 Example Program Listing From *D Command 1 ................................................................... 1-8
LT-1
LIST OF TABLES
PAGE
5. TELECOMMUNICATIONS
5.1-1 Telecommunications Commands .......................................................................................... 5-3
9. INPUT/OUTPUT INSTRUCTIONS
9-1 Input Voltage Ranges and Codes.......................................................................................... 9-1
9-2 Pulse Count Configuration Codes ......................................................................................... 9-3
9-3 Thermocouple Type Codes.................................................................................................... 9-7
9-4 Voltage and Temperature Ranges for Thermocouples If the Reference is 20°C.................. 9-7
9-5 Port Configuration Option Codes........................................................................................... 9-9
9-6 SDI-12 Command Codes..................................................................................................... 9-16
LT-2
LIST OF TABLES
PAGE
LT-3
LIST OF TABLES
LT-4
LIST OF FIGURES
PAGE
OVERVIEW
OV1.1-1 CR10 and Wiring Panel ...................................................................................................... OV-2
OV1.1-2 CR10 Wiring Panel/Instruction Access ............................................................................... OV-3
OV2.1-1 Instruction Types and Storage Areas ................................................................................. OV-6
OV2.3-1 Program and Subroutine Tables......................................................................................... OV-8
OV6.1-1 Data Retrieval Hardware Options ..................................................................................... OV-19
LF-1
LIST OF FIGURES
PAGE
9. INPUT/OUTPUT INSTRUCTIONS
9-1 Conditioning for Long Duration Voltage Pulses..................................................................... 9-2
LF-2
CR10 INDEX
I-1
CR10 INDEX
I-2
CR10 INDEX
I-3
CR10 INDEX
I-4
CR10 INDEX
I-5
CR10 INDEX
I-6
CR10 INDEX
SC90 Serial Line Monitor 4-7 Spatial Average - [Instruction 51] 10-4
SC92/93 for writing to tape, Don't use 4-4 Spatial Maximum - [Instruction 49] 10-3
SC92A/93A 4-4 Spatial Minimum - [Instruction 50] 10-4
Scaling Array with Multiplier & Offset - Specifications OV-20
[Instruction 53] 10-4 SPTR, see Storage Module Pointer
Programming example 8-7 Square Root - [Instruction 39] 10-2
SDC99 Synchronous Device Interface 6-3 Standard and Weighted Value Histogram -
SDM-A04 4 Channel Analog Output Module - [Instruction 75] 11-3
[Instruction 103] 9-15 Standard Deviation in Time -
Current drain, Typical 14-1 [Instruction 82] 11-5
Programming example 8-7 Step Loop Index - [Instruction 90] 12-4
SDM-CD16 Control Port Expansion Module - Stop Bit 6-7
[Instruction 104] 9-15 Storage and retrieval options, Data OV-19
Current drain, Typical 14-1 Storage Module Pointer (SPTR) 2-2
SDM-INT8 8 Channel Interval Timer - Storage Modules (SM192/716) 4-7
[Instruction 101] 9-14 Addressing with CR10 4-1
Current drain, Typical 14-1 Commands to (*9 Mode) 4-8
SDM-SW8A Switch Closure Input Module - Current drain, Typical 14-2
[Instruction 102] 9-14 File Mark 4-7
Current drain, Typical 14-1 Manually initiated data output (*8 Mode) 4-7
SD's, see Synchronous devices Save/load program (*D Mode) 1-9
SDM peripherals 7-24 Use with Instruction 96 4-2
Security 1-7 Storage peripherals, External 4-1
Send Character - [Instruction 98] 12-8 Storage
Sensors See Final Storage, input storage,
Connecting to Wiring Panel OV-3 intermediate storage
Effect of lead length on signal Store Area - [Instruction 80] 11-5
settling time 13-3 Programming example 8-3
Settling errors for CSI resistive sensors 13-8 Strip charts
Serial Input/Output Converting wind direction output
General 6-1 to 0-540 8-8
Pin Description 6-1 Use with SDM-A04 8-7
Serial Out - [Instruction 96] 4-1, 12-6 Subroutines
Programming example OV-17 Entering 1-1
Set Active Storage Area - [Instruction 80] 11-5 Label Subroutine - [Instruction 85] 12-1
Programming examples 8-2, 8-3, 8-9 Port Interrupt Subroutines 12-1
Set Resolution Data Storage Format - Programming Example 8-6
[Instruction 78] 11-5 Subtract - [Instruction 35] 10-1
Setting and Displaying the Clock - *5 Mode 1-2 SW8A Switch Closure Input Module, see
Spark gaps on wiring panel terminals 14-6 SDM-SW8A
Signature Switch closure
CR10 PROM 1-6, B-1 Counting on Tipping Bucket
Definition A-3 Rain Gage 8-6
Generation of C-4 Measuring 9-1
Signature - [Instruction 19] 9-8 Switch Closure Input Module, see SDM-SW8A
Sin(X) - [Instruction 48] 10-3 Switching power to a device 14-7
Single-ended measurements on analog inputs Synchronous Device Communication 6-4
OV-3, 13-1 Synchronous, Definition A-3
Single-ended Volts - [Instruction 1] 9-1 System memory OV-5, 1-4
Programming example 7-1 System status (*B Mode) 1-6
SM192/716 Storage Modules, see Storage
Modules T
Sample on Maximum or Minimum -
[Instruction 79] 11-5 Tables, List of LT-1
Solar panels, Solarex MSX10/MSX18 14-5 see also Program Tables
I-7
CR10 INDEX
I-8
CR10 INDEX
Y
YSI 44032 Thermistor source resistance and
signal levels 13-10, 13-11
I-9
CR10 INDEX
I-10