Campbell Manufacturing CR10 User Manual

CR10 MEASUREMENT AND CONTROL MODULE
OPERATOR'S MANUAL
REVISION: 3/96
COPYRIGHT (c) 1987-1996 CAMPBELL SCIENTIFIC, INC.
This is a blank page.
WARRANTY AND ASSISTANCE
The CR10 MEASUREMENT AND CONTROL MODULE is warranted by CAMPBELL SCIENTIFIC, INC. to be free from defects in materials and workmanship under normal use and service for thirty-six (36) months from date of shipment unless specified otherwise. Batteries have no warranty. CAMPBELL SCIENTIFIC, INC.'s obligation under this warranty is limited to repairing or replacing (at CAMPBELL SCIENTIFIC, INC.'s option) defective products. The customer shall assume all costs of removing, reinstalling, and shipping defective products to CAMPBELL SCIENTIFIC, INC. CAMPBELL SCIENTIFIC, INC. will return such products by surface carrier prepaid. This warranty shall not apply to any CAMPBELL SCIENTIFIC, INC. products which have been subjected to modification, misuse, neglect, accidents of nature, or shipping damage. This warranty is in lieu of all other warranties, expressed or implied, including warranties of merchantability or fitness for a particular purpose. CAMPBELL SCIENTIFIC, INC. is not liable for special, indirect, incidental, or consequential damages.
Products may not be returned without prior authorization. To obtain a Returned Materials Authorization (RMA), contact CAMPBELL SCIENTIFIC, INC., phone (435) 753-2342. After an applications engineer determines the nature of the problem, an RMA number will be issued. Please write this number clearly on the outside of the shipping container. CAMPBELL SCIENTIFIC's shipping address is:
CAMPBELL SCIENTIFIC, INC.
RMA#_____ 815 West 1800 North Logan, Utah 84321-1784
CAMPBELL SCIENTIFIC, INC. does not accept collect calls. Non-warranty products returned for repair should be accompanied by a purchase order to cover the
repair.
This is a blank page.
CR10 MEASUREMENT AND CONTROL MODULE
TABLE OF CONTENTS
PAGE
OV1. PHYSICAL DESCRIPTION
OV1.1 Wiring Panel........................................................................................................................ OV-1
OV1.2 Connecting Power to the CR10
OV2. MEMORY AND PROGRAMMING CONCEPTS
OV2.1 Internal Memory..................................................................................................................OV-5
OV2.2 CR10 Instruc OV2.3 Program Tables, Execution Interval and Output Intervals
tion Types ......................................................................................................OV-7
OV3. COMMUNICATING WITH CR10
OV3.1 CR10 Keyboard/Display......................................................................................................OV-9
OV3.2 Using the PC208 Terminal Emulator (GraphTerm)............................................................
OV3.3 ASCII Terminal or Computer with Terminal Emulator
OV4. PROGRAMMING THE CR10
OV4.1 Functional Modes.............................................................................................................. OV-10
OV4.2 Key Definition
OV4.3 Programming Sequence...................................................................................................
OV4.4 Instruction Format
OV4.5 Entering a Program...........................................................................................................
....................................................................................................................OV-10
.............................................................................................................OV-11
..........................................................................................OV-5
..................................................OV-7
OV-9
........................................................OV-9
OV-11 OV-12
OV5. PROGRAMMING EXAMPLES
OV5.1 Sample Program 1............................................................................................................ OV-13
OV5.2 Sample Program 2 OV5.3 Editing an Exis
............................................................................................................OV-14
ting Program..............................................................................................OV-15
OV6. DATA RETRIEVAL OPTIONS.................................................................................... OV-17
OV7. SPECIFICATIONS..........................................................................................................OV-20

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.3 Displaying/Altering Input Memory, Flags, and Ports - *6 Mode
1.4 Compiling and Logging Data - *0 Mode
1.5 Memory Alloc
1.6 Memory Testing and System Status - *B
1.7 *C Mode -- Security
1.8 *D Mode -- Save or Load Program
ation - *A .......................................................................................................... 1-4
................................................................................................................ 1-7
........................................................................................ 1-7
.......................................................................... 1-2
............................................. 1-3
................................................................................. 1-4
............................................................................... 1-6
CR10 TABLE OF CONTENTS
2. INTERNAL DATA STORAGE
2.1 Final Storage Areas, Output Arrays, and Memory Pointers .................................................. 2-1
2.2 Data Output Format and Range Limits
2.3 Displaying Stored Data on Keyboard/Display - *7 Mode.......................................................
.................................................................................. 2-3
2-3
3. INSTRUCTION SET BASICS
3.1 Parameter Data Types........................................................................................................... 3-1
3.2 Repetitions
3.3 Entering Negative Numbers
3.4 Indexing Input Locations and Ports
3.5 Voltage Range and Overrange Detection
3.6 Output Proc
3.7 Use of Flags: Output and Program Control ..........................................................................
3.8 Program Control Logical Constructions
3.9 Instruction Memory and Execution Time
3.10 Error Codes
............................................................................................................................. 3-1
................................................................................................... 3-1
....................................................................................... 3-1
.............................................................................. 3-2
essing ................................................................................................................. 3-2
3-3
................................................................................. 3-4
............................................................................... 3-5
............................................................................................................................ 3-8

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 Cassette Tape Option
4.4 Printer Output Formats
4.5 Storage Module (SM192/716)
4.6 *9 Mode -- Storage Module Commands
............................................................................................................ 4-3
.......................................................................................................... 4-5
................................................................................................ 4-6
.............................................................................. 4-3
................................................................................ 4-7
5. TELECOMMUNICATIONS
5.1 Telecommunications Commands .......................................................................................... 5-1
5.2 Remote Programming of the CR10
....................................................................................... 5-4
6. 9-PIN SERIAL INPUT/OUTPUT
6.1 Pin Description....................................................................................................................... 6-1
6.2 Enabling and Addressing Peripherals
6.3 Ring Interrupts
6.4 Interrupts During Data Trans
6.5 Modem/Terminal Peripherals
6.6 Synchronous Device Communication
6.7 Modem/Terminal and Computer Requirements
........................................................................................................................ 6-3
fer............................................................................................. 6-3
................................................................................................. 6-4
.................................................................................... 6-2
.................................................................................... 6-4
.................................................................... 6-5
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.3 Thermocouple Temperatures Using the Optional CR10TCR to Measure the Referenc
7.4 Thermocouple Temperatures Using an External Reference Junction
7.5 107 Temperature Probe
7.6 207 Temperature and RH Probe
7.7 Anemometer with Photochopper Output................................................................................
7.8 Tipping Bucket Rain Gage with Long Leads .........................................................................
7.9 100 ohm PRT in 4 Wire Half Bridge
7.10 100 ohm PRT in 3 Wire Half Bridge
7.11 100 ohm PRT in 4 Wire Full Bridge
7.12 Pressure Transducer - 4 Wire Full Bridge ...........................................................................
7.13 Lysimeter - 6 Wire Full Bridge
7.14 227 Gypsum Soil Moisture Block
7.15 Nonlinear Thermistor in Half Bridge (Model 101 Probe) .....................................................
7.16 Water Level - Geokon's Vibrating Wire Pressure Sensor
7.17 Paroscientific "T" Series Pres
7.18 SDM Peripherals
7.19 Paroscientific Pressure Trans
e Temperature................................................................................................... 7-3
......................................................................................................... 7-4
.................................................................................................................. 7-24
......................................................................................... 7-2
.................................. 7-3
........................................................................................... 7-4
7-5
7-6
....................................................................................... 7-6
....................................................................................... 7-8
....................................................................................... 7-9
7-10
............................................................................................. 7-11
......................................................................................... 7-13
7-14
.................................................... 7-15
sure Transducer.................................................................... 7-19
ducer Processing.................................................................. 7-24
8. PROCESSING AND PROGRAM CONTROL EXAMPLES
8.1 Computation of Running Average.......................................................................................... 8-1
8.2 Rainfall Intens
8.3 Using Control Ports and Loop to Run AM416 Multiplexer
8.4 Sub 1 Minute Output Interval Synched to Real Time
8.5 Interrupt Subroutine Used to Count Switch Closures (Rain Gage)
8.6 SDM-A04 Analog Output Multiplexer to Strip Chart ..............................................................
8.7 Converting 0-360 Wind Direction Output to 0-540 for Strip Chart
8.8 Use of 2 Final Storage Areas - Saving Data Prior to Event
8.9 Logarithmic Sampling Using Loops
ity..................................................................................................................... 8-2
..................................................... 8-3
............................................................ 8-5
....................................... 8-5
8-7
......................................... 8-8
................................................... 8-9
..................................................................................... 8-10

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.3 The Effect of Sensor Lead Length on the Signal Settling Time...........................................
13.4 Thermocouple Measurements
13.5 Bridge Resistance Measurements
13.6 Resistance Measurements Requiring AC Excitation.........................................................
13.7 Calibration Proces
s............................................................................................................ 13-22
........................................................................................... 13-12
..................................................................................... 13-17
........................................................ 13-2
13-3
13-21

INSTALLATION

14. INSTALLATION AND MAINTENANCE
14.1 Protection from the Environment ......................................................................................... 14-1
14.2 Power Requirements
14.3 Campbell Scientific Power Supplies
14.4 Solar Panels
14.5 Direct Battery Connection to the CR10WP Wiring Panel....................................................
14.6 Vehicle Power Supply Connections
14.7 Grounding ............................................................................................................................
14.8 Wiring Panel
14.9 Switched 12 Volt
14.10 Use of Digital I/O Ports
14.11 Maintenance
......................................................................................................................... 14-5
......................................................................................................................... 14-7
......................................................................................................................... 14-9
........................................................................................................... 14-1
.................................................................................... 14-2
14-5
..................................................................................... 14-5
14-6
.................................................................................................................. 14-7
for Switching Relays....................................................................... 14-7

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.3 Description of Library Options Not in Standard Manual ........................................................
C. BINARY TELECOMMUNICATIONS
C.1 Telecommunications Command with Binary Responses......................................................C-1
C.2 Final Storage Format C.3 Generation of Signature
.............................................................................................................C-2
.........................................................................................................C-4
D. CR10 37 PIN PORT DESCRIPTION................................................................................D-1
E. ASCII TABLE...........................................................................................................................E-1
G. CHANGING RAM OR PROM CHIPS
G.1 Disassembling the CR10 .......................................................................................................G-1
G.2 Installing New RAM Chips in CR10s G.3 Installing New PROM G.4 Installing 4K Program Memory PROM
.............................................................................................................G-1
.........................................................................................B-1
B-2
with 16K RAM .............................................................G-1
...................................................................................G-1
iv
CR10 TABLE OF CONTENTS
LIST OF TABLES..........................................................................................................................LT-1
LIST OF FIGURES........................................................................................................................LF-1
INDEX................................................................................................................................................... I-1
v
CR10 TABLE OF CONTENTS
This is a blank page.
vi

SELECTED OPERATING DETAILS

1. Storing Data - Data are stored in Final Storage only by Output Processing Instructions and only when the Output Flag is set. (Sections OV4.1.1 and OV4.2.1)
2. Storing Date and Time - Date and time are stored with the data in Final Storage ONLY if the Real Time Instruction 77 is used. (Section 11)
3. Data Transfer - On-line data transfer from Final Storage to peripherals (printer, Storage Module, etc.) occurs only if enabled with Instruction 96 in the datalogger program. (Sections 4 and 12)
4. Final Storage Resolution - All Input Storage values are displayed (*6 mode) as high resolution with a maximum value of
99999. However, the default resolution for data stored in Final Storage is low resolution, maximum value of 6999. Results exceeding 6999 are stored as 6999 unless Instruction 78 is used to store the values in Final Storage as high resolution values. (Sections 2.2.1 and 11)
7. ALL memory
can be erased and the CR10 completely reset by entering 1986 for the number of bytes left in Program Memory. (Section 1.5.2)
8. The set of instructions available in the CR10 is determined by the PROM (Programmable Read Only Memory) that it is equipped with. Standard and optional software are identified in Appendix B. If you have ordered optional software that is not covered in the standard manual, the documentation is in Appendix H.
9. Radiotelemetry
Users - As of February, 1990, CR10 PROMs no longer contain radio frequency interface software. That function is now contained in the RF95 Modem. To make measurements at a phone-to-RF base station using the RF100/RF200 Radio and RF95 Modem, current CR10 software is required. A CR10 with old software can be used with the new RF95 in the "RF95-ME" state, but the datalogger loses the "callback" capability as well as the SDC function.
5. Floating Point Format - The computations performed in the CR10 use floating point arithmetic. CSI's 4 byte floating point numbers contain a 23 bit binary mantissa and a 6 bit binary exponent. The largest and smallest numbers that can be stored and processed are 9 x 10
18
and 1 x 10
-19
,
respectively. (Section 2.2.2)
6. Erasing Final Storage - Data in Final Storage can be erased without altering the program by using the *A Mode to repartition memory. (Section 1.5.2)
10. Changes w
ith the release of OS10-0.1:
Wind Vector Instruction 69 has replaced
Instruction 76. The options to do sub­interval averaging of the standard deviation of wind direction, σ(θ), and to calculate σ(θ) using the Yamartino algorithm have been added to the previous options (Section 9).
Intermediate Processing Disable Flag 9
in now set low if a conditional test for setting it high fails (same as Output Flag 0, Section 3.7.2).
*D options for saving and loading programs w
ith a cassette tape are no
longer in a standard PROM and must be ordered as a library option PROM (Appendix B).
vi

CAUTIONARY NOTES

1. Damage will occur to the analog input circuitry if voltages in excess of ±16 V are applied for a sustained period. Voltages in excess of ±5V will cause errors and possible overranging on other analog input channels.
2. When using the CR10 with the PS12LA, remember that the sealed lead acid batteries are permanently damaged if discharged below 10.5 V. The cells are rated at a 7 Ahr capacity but experience a slow discharge even in storage. It is advisable to maintain a continuous charge on the PS12LA battery pack, whether in operation or storage (Section 14).
3. When connecting power to the CR10, first connect the positive lead from the power source to the 12 V terminal. Then connect the negative lead to G. Connecting these leads in the reverse order creates the possibility of a short (Section 14).
4. There are frequent references in this manual to Storage Modules. The Storage Modules referred to are the SM192 and SM716. The old SM16 and SM64 Storage Modules will NOT work with the CR10 without a specially modified cable. In addition, the SM16 and SM64 cannot perform many of the functions that the SM192 and SM716 are capable of performing.
5. Voltages in excess of 5.5 volts applied to a control port can cause the CR10 to malfunction.
6. Voltage pulses can be counted by CR10 Pulse Counters configured for High Frequency Pulses. However, when the pulse is actually a low frequency signal (below about 10 Hz) AND the positive voltage excursion exceeds 5.6 VDC, the 5 VDC supply will start to rise, upsetting all analog measurements.
Pulses whose positive voltage portion exceed 5.6 VDC with a duration longer than 100 milliseconds need external conditioning. See the description of the Pulse count instruction in Section 9 for details on the external conditioning.
7. The CR10 module is sealed and contains desiccant to protect against excess humidity. The Wiring Panel and the connections between the Wiring Panel and the CR10 are still susceptible to humidity. To prevent corrosion at these points, additional desiccant must be placed inside the enclosure. To reduce vapor transfer into the enclosure, plug the cable entry conduit with Duct Seal, a putty-type sealant available at most electrical supply houses. DO NOT totally seal enclosures equipped with lead acid batteries. Hydrogen 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 This Overview
2.
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. Muc included with every datalogger or PC208 order.
This Overview introduces the concepts required to take advantage of the CR10's capabilities. Hands­on program 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.
h of the material in this Overview is covered in PCTOUR. A copy of PCTOUR is
ming examples start in Section OV5. Working with a CR10 will help the learning process, so
The sections of the Operator's Manual which should be read to com 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 program 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 program 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.

OV1. PHYSICAL DESCRIPTION

The CR10 is a fully programmable datalogger/controller in a small, rugged, sealed module. Programming is very similar to Campbell Scientific's 21X and CR7 dataloggers. Some fundamental physical differences are listed below.
The CR10 does not have an integral keyboard/display. The user accesses the CR10 with the portable CR10KD Keyboard Display or with a computer or terminal (Section OV2).
The CR10 does not have an integral terminal strip. A removable wiring panel (Figure OV1.1-1) performs this function and attaches to the two D-type connectors located at the end of the module.
The power supply is external to the CR10. This gives the user a wide range of options (Section 14) for powering the CR10.
OV1.1 WIRING PANEL
The CR10 Wiring Panel and CR10 datalogger make electrical contact through the two D-type connectors at the (left) end of the CR10.
The Wiring Panel contains a 9-pin Serial I/O port used when communicating with the datalogger and provides terminals for connecting sensor, control, and power leads to the CR10. It also provides transient protection and reverse polarity protection. Figure OV1.1-2 shows the panel and the instructions used to access the various terminals.
plete a basic understanding of the
ming examples.
ming instructions. Once familiar with the
OV-1
CR10 OVERVIEW
OV-2
FIGURE OV1.1-1. CR10 and Wiring Panel
CR10 OVERVIEW
OV-3
CR10 OVERVIEW
OV-4
FIGURE OV1.1-2. CR10 Wiring Panel/Instruction Access
CR10 OVERVIEW
OV-5
CR10 OVERVIEW
OV1.1.1 ANALOG INPUTS
The terminals labeled 1H to 6L are analog inputs. These numbers refer to the high and low inputs to the differential channels 1 through
6. In a differential measurement, the voltage on the H input is measured with respect to the voltage on the L input. When making single­ended measurements, either the H or L input may be used as an independent channel to measure voltage with respect to the CR10 analog ground (AG). The single-ended channels are numbered sequentially starting with 1H; e.g., the H and L sides of differential channel 1 are single-ended channels 1 and 2; the H and L sides of differential channel 2 are single-ended channels 3 and 4, etc. (The single-ended channel numbers do NOT appear on older wiring panels).
OV1.1.2 SWITCHED EXCITATION OUTPUTS
The terminals labeled E1, E2, and E3 are precision, switched excitation outputs used to supply programmable excitation voltages for resistive bridge measurements. DC or AC excitation at voltages between -2500 mV and +2500 mV are user programmable (Section 9).
OV1.1.3 PULSE INPUTS
The terminals labeled P1 and P2 are the pulse counter inputs for the CR10. They are programmable for switch closure, high frequency pulse or low level AC (Section 9, Instruction 3).
OV1.1.4 DIGITAL I/O PORTS
Terminals C1 through C8 are digital Input/Output ports. On power-up they are configured as input ports, commonly used for reading the status of an external signal. High and low conditions are: 3V < high < 5.5V; -0.5V < low < 0.
8V.
Configured as outputs the ports allow on/off control of external devices. A port can be set high (5V ± 0.1V), set low (<0.1V), toggled or pulsed (Sections 3, 8.3, and 12).
OV1.1.5 ANALOG GROUND (AG)
The AG terminals are analog grounds, used as the reference for single-ended measurements and excitation return.
OV1.1.6 12V AND POWER GROUND (G) TERMINALS
The 12V and power ground (G) terminals are used to supply 12V DC power to the datalogger. The extra 12V and G terminals can be used to connect other devices requiring 12V power.
The G terminals are also used to tie cable shields to ground, and to provide a ground reference for pulse counters and binary inputs. For protection against transient voltage spikes, power ground should be connected to a good earth ground (Section 14.3.1).
OV1.1.7 5V OUTPUTS
The two 5V (±0.2%) outputs are commonly used to power peripherals such as the QD1 Incremental Encoder Interface, AVW1 or AVW4 Vibrating Wire Interface.
The 5V outputs are common with pin 1 on the 9 pin serial connector; 200 mA is the maximum combined output.
OV1.1.8 SERIAL I/O
The 9 pin serial I/O port contains lines for serial communication between the CR10 and external devices such as computers, printers, Storage Modules, etc. This port does NOT hav
e the
same configuration as the 9 pin serial ports currently used on many personal computers.
It has a 5VDC power line which is used to power peripherals such as the SM192 or SM716 Storage Module or the DC112 Phone Modem. The same 5VDC supply is used for the 5V outputs on the lower terminal strip. Section 6 contains technical details on serial communication.
OV1.1.9 SWITCHED 12 VOLT
Wiring panels introduced in March 1994 include a switched 12 volt output. This can be used to power sensors or devices requiring an unregulated 12 volts. The output is limited to 600 mA current.
A control port is used to operate the switch. Connect a wire from the control port to the switched 12 volt control port. When the port is set high, the 12 volts is turned on; when the port is low, the switched 12 volts is off.
OV-6
CR10 OVERVIEW
OV1.2 CONNECTING POWER TO THE CR10
The CR10 can be powered by any 12VDC source. First connect the positive lead from the power supply to one of the 12V terminals and then connect the negative lead to one of the power ground (G) terminals. The Wiring Panel power connection is reverse polarity protected. See Section 14 for details on power supply connections.
CAUTION: The metal surfaces of the CR10 Wiring Panel, and CR10KD Keyboard Display are at the same potential as power ground. To avoid shorting 12 volts to ground, connect the 12 volt lead first, then connect the ground lead.
OV2. MEMORY AND PROGRAMMING
CONCEPTS
The CR10 must be programmed before it will make any measurements. A program consists of a group of instructions entered into a
program table. The program table is given an execution interval which determines how
frequently that table is executed. When the table is executed, the instructions are executed in sequence from beginning to end. After executing the table, the CR10 waits the remainder of the execution interval and then executes the table again starting at the beginning.
The interval at which the table is executed generally determines the interval at which the sensors are measured. The interval at which data are stored is separate from how often the table is executed, and may range from samples every execution interval to processed summaries output hourly, daily, or on longer or irregular intervals.
Figure OV2.1-1 represents the measurement, processing, and data storage sequence, and the types of instructions used to accomplish
hese tasks.
t
OV2.1 INTERNAL MEMORY
The CR10 has 64K bytes of Random Access Memory (RAM), divided into five areas. The use of the Input, Intermediate, and Final Storage in the measurement and data processing sequence is shown in Figure OV2.1-1. While the total size of these three areas remains constant, memory may be reallocated between the areas to accommodate different measurement and processing needs (*A Mode, Section 1.5). The size of the 2 additional memory areas, system and program, are fixed. The five areas of RAM are:
1. Input Storage - Input Storage holds the results of measurements or calculations. The *6 Mode is used to view Input Storage locations for checking current sensor readings or calculated values. Input Storage defaults to 28 locations. Additional locations can be assigned using the *A Mode (Section 1.5).
2. Intermediate Storage - Certain Processing Instructions and most of the Output Processing Instructions maintain intermediate results in Intermediate Storage. Intermediate storage is automatically accessed by the instructions and cannot be accessed by the user. The default allocation is 64 locations. The number of locations can be changed using the *A Mode.
3. Final Storage - Final processed values are stored here for transfer to printer, solid state Storage Module or for retrieval via telecommunication links. Values are stored in Final Storage only by the Output Processing Instructions and only when the Output Flag is set in the users program. Approximately 29,900 locations are allocated to Final Storage on power up. This number is reduced if Input or Intermediate Storage is increased.
4. Sy
stem Memory - used for overhead tasks such as compiling programs, transferring data etc. The user cannot access this memory.
5. Program Memory - available for user programs entered in program tables 1 and 2, and Subroutine Table 3.
OV-7
CR10 OVERVIEW
INPUT/OUTPUT INSTRUCTIONS
Sensors
Control
Specify the conversion of a sensor signal to a data value and store it in Input Storage. Programmable entries specify: (1) the measurement type (2) the number of channels to measure (3) the input voltage range (4) the Input Storage Location (5) the sensor calibration constants used to convert the sensor output to engineering units
I/O Instructions also control analog outputs and digital control ports.
INPUT STORAGE
Holds the results of measurements or calculations in user specified locations. The value in a location is written over each time a new measurement or calculation stores data to the locations.
OUTPUT PROCESSING INSTRUCTIONS
Perform calculations over time on the values updated in Input Storage. Summaries for Final Storage are generated when a Program Control Instruction sets the Output Flag in response to time or events. Results may be redirected to Input Storage for further processing. Examples include sums, averages, max/min, standard deviation, histograms, etc.
Output Flag set high
PROCESSING INSTRUCTIONS
Perform calculations with values in Input Storage. Results are returned to Input Storage. Arithmetic, transcendental and polynomial functions are included.
INTERMEDIATE STORAGE
Provides temporary storage for intermediate calculations required by the OUTPUT PROCESSING INSTRUCTIONS; for example, sums, cross products, comparative values, etc.
OV-8
FINAL STORAGE
Final results from OUTPUT PROCESSING INSTRUCTIONS are stored here for on-line or interrogated transfer to external devices (Figure OV5.1-1). The newest data are stored over the oldest in a ring memory.
FIGURE OV2.1-1. Instruction Types and Storage Areas
CR10 OVERVIEW
OV2.2 CR10 INSTRUCTION TYPES
Figure OV2.1-1 illustrates the use of three different instruction types which act on data. The fourth type, Program Control, is used to control output times and vary program execution. Instructions are identified by numbers.
1. INPUT/OUTPUT INSTRUCTIONS (1-28, 101-104, Section 9) control the terminal strip inputs and outputs (the sensor is the source, Figure OV1.1-2), storing the results in Input Storage (destination). Multiplier and offset parameters allow conversion of linear signals into engineering units. The Digital I/O Ports are also addressed with
tructions.
I/O Ins
2. PROCESSING INSTRUCTIONS (30-66, Section 10) perform numerical operations on values located in Input Storage (source) and store the results back in Input Storage (destination). These instructions can be used to develop high level algorithms to process measurements prior to Output Processing.
3. OUTPUT PROCESSING INSTRUCTIONS (69-82, Section 11) are the only instructions which store data in Final Storage (destination). Input Storage (source) values are processed over time to obtain averages, maxima, minima, etc. There are two types of processing done by Output Instructions: Intermediate and
Final. Intermediate processing normally tak
place each time the instruction is executed. For example, when the Average Instruction is executed, it adds the values from the input locations being averaged to running totals in Intermediate Storage. It also keeps track of the number of samples.
es
Final processing occurs only when the Output Flag is high. The Output Processing Instructions check the Output Flag. If the flag is high, final values are calculated and output. With the Average, the totals are divided by the number of samples and the resulting averages sent to Final Storage. Intermediate locations are zeroed and the process starts over. The
Output Flag, Flag 0, is set high by a Program
Control Instruction which must precede the Output Processing Instructions in the user entered program.
4. PROGRAM CONTROL INSTRUCTIONS (83-98, Section 12) are used for logic decisions and conditional statements. They can set flags, compare values or times, execute loops, call subroutines, conditionally execute portions of the program, etc.
OV2.3 PROGRAM TABLES, EXECUTION
INTERVAL AND OUTPUT INTERVALS
Programs are entered in Tables 1 and 2. Subroutines, called from Tables 1 and 2, are entered in Subroutine Table 3. The size of each table is flexible, limited only by the total amount of program memory. If Table 1 is the only table programmed, the entire program memory is available for Table 1.
Table 1 and Table 2 have independent execution intervals, entered in units of seconds with an allowable range of 1/64 to 8191 seconds. Subroutine Table 3 has no execution interval; subroutines are only executed when called from Table 1 or 2.
OV2.3.1 THE EXECUTION INTERVAL
The execution interval specifies how often the program in the table is executed, which is usually determined by how often the sensors are to be measured. Unless two different
easurement rates are needed, use only one
m 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
Table 1. Execute every x sec.
0.0156 < x < 8191
Instructions are executed sequentially in the order they are entered in the table. One complete pass through the table is made each execution interval unless program control instructions are used to loop or branch execution.
Normal Order: MEASURE PROCESS CHECK OUTPUT COND. OUTPUT PROCESSING
FIGURE OV2.3-1. Program and Subroutine Tables
Each instruction in the table requires a finite time to execute. If the execution interval is less than the time required to process the table, an execution interval overrun occurs; the CR10 finishes processing the table and waits for the next execution interval before initiating the table. When an overrun occurs, decimal points are shown on either side of the G on the display in the LOG mode (*0). Overruns and table priority are discussed in Section 1.1.
OV2.3.2. THE OUTPUT INTERVAL
Table 2. Execute every y sec.
0.0156 < y < 8191
Table 2 is used if there is a need to measure and process data on a separate interval from that in Table 1.
Table 3. Subroutines
A subroutine is executed only when called from Table 1 or 2.
Subroutine Label Instructions End Subroutine Label Instructions End Subroutine Label Instructions End
OV3. COMMUNICATING WITH CR10
An external device must be connected to the CR10's Serial I/O port to communicate with the CR10. This may be either Campbell Scientific's portable CR10KD Keyboard Display or a computer/terminal.
The CR10KD is powered by the CR10 and connects directly to the serial port via the SC12 cable (supplied with the CR10KD). No interfacing software is required.
The interval at which output occurs is independent from the execution interval, other than the fact that it must occur when the table is executed (e.g., a table cannot have a 10 minute execution interval and output every 15 minutes).
A single program table can have many different output intervals and conditions, each with a unique data set (Output Array). Program Control Instructions are used to set the Output Flag. The Output Processing Instructions which follow the instruction setting the Output Flag determine the data output and its sequence. Each additional Output Array is created by another Program Control Instruction checking a output condition, followed by Output Processing Instructions defining the data set to output.
OV-10
To communicate with any device other than the CR10KD, the CR10 enters its Telecom­munications Mode and responds only to valid telecommunications commands. Within the Telecommunications Mode, there are 2 "states"; the Telecommunications Command state and the Remote Keyboard state. Communication is established in the Telecommunications command state. One of the commands is to enter the Remote Keyboard state.
The Remote Keyboard state allows the keyboard of the computer/terminal to act like the CR10KD keyboard. Various datalogger modes may be entered, including the mode in which programs may be keyed in to the CR10 from the computer/terminal.
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
CR10 OVERVIEW
contains a program editor (EDLOG), a terminal emulator (GraphTerm), telecommunications (TELCOM), a data reduction program (SPLIT), and programs to retrieve data from both generations of Campbell Scientific's Storage Modules (SMREAD and SMCOM).
To participate in the programming examples (Section OV5) you must communicate with the CR10. Read Section OV3.1 if the CR10KD is being used, Section OV3.2 if the PC208 software is being used, or Section 3.3 and Section 5 if some other computer or terminal is being used.
OV3.1 CR10 KEYBOARD/DISPLAY
The SC12 cable (supplied with the CR10KD) is used to connect the Keyboard/Display to the 9 pin Serial I/O port on the CR10.
If the Keyboard/Display is connected to the CR10 prior to being powered up, the "HELLO" message is displayed while the CR10 checks memory. The size of the usable system memory is then displayed (96 for 96K bytes of memory). When the CR10KD is plugged in after the CR10 has powered up, the display is meaningless until "*" is pressed to enter a mode.
OV3.2 USING THE PC208 TERMINAL
EMULATOR (GRAPHTERM)
For IBM compatible computers, the PC208 software contains a terminal emulator program called GraphTerm. When using GraphTerm, the baud rate, port, and modem types are specified and stored in a file for future use.
The simplest and most common interface is the SC32A Optically Isolated RS232 Interface. The SC32A converts and optically isolates the voltages passing between the CR10 and the external terminal device.
The SC12 Two Peripheral cable which comes with the SC32A is used to connect the serial I/O port of the CR10 to the 9 pin port of the SC32A labeled "Datalogger". Connect the "Terminal/Printer" port of the SC32A to the serial port of the computer with a straight 25 pin cable or, if the computer has a 9 pin serial port, a standard 9 to 25 pin adapter cable.
To establish the communication link between the computer and the CR10, the user may either select the T option and send carriage returns as described above or select the "C" option to "Call" the station (see PC208 Operator's Manual). Once the link is active, issue the "7H" command to enter the Remote Keyboard State.
OV3.3 ASCII TERMINAL OR COMPUTER WITH
TERMINAL EMULATOR
Devices which can be used to communicate with the CR10 include standard ASCII terminals and computers programmed to function as a terminal emulator.
OV3.3.1 COMPUTER/TERMINAL REQUIREMENTS
The basic requirements are:
1. There must be an asynchronous serial port to transmit and receive characters.
2. Communication protocol must be matched for the two devices.
3. The proper cable/interface must be used between the serial ports.
4. A computer must be programmed to function as a terminal.
While the connection between the computer/terminal and the CR10 may be via modem (phone, RF, or short haul), the most frequently used device for a short connection is the SC32A Optically Isolated RS232 Interface.
Most computer/terminal devices require RS232 input logic levels of -5V for logic low and +5V for logic high. Logic levels from the CR10's serial I/O port are 0V for logic low and +5V for logic high.
The SC32A converts and optically isolates the voltages passing between the CR10 and the external terminal device. The SC32A is configured as Data Communications Equipment (DCE) for direct connection to Data Terminal Equipment (DTE) which includes most computers and terminals.
The SC12 Two Peripheral cable which comes with the SC32A is used to connect the serial I/O port of the CR10 to the 9 pin port of the SC32A 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 (Campbell Scientific SC25PS or equivalent for a 25 pin serial port configured DTE).
OV3.3.2 ESTABLISHING COMMUNICATION WITH THE CR10
Communication software is available for most computers having a serial port. Campbell Scientific's PC208 Datalogger Support Software is available for IBM PC/XT/AT/PS-2's and compatibles. The software must be capable of the following communication protocol:
1. Configuring an asynchronous serial port for 8 Data Bits, 1 Stop Bit, no Parity, and Full Duplex at baud rates of 300, 1200, or 9600 baud.
2. Transmitting characters typed on the keyboard out through the serial port.
3. Displaying characters/data received through the computer's serial port.
Once the computer is functioning as a terminal, initiate communications by sending the CR10 several carriage returns for the CR10 to match the baud rate and respond with "*". Enter the 7H command to enter the Remote Keyboard State. At this point, the CR10 can be controlled using the Keyboard Commands described in Section OV4. For additional information on communications, see Section 6.7.
by first keying *, then the mode number or letter. Table OV4.1-1 lists the CR10 Modes.
OV4. PROGRAMMING THE CR10
A program is created by entering it directly into the datalogger or on a computer using the PC208 Datalogger Support Software program EDLOG. This manual describes direct interaction with the CR10. Work through the direct programming examples in this overview before using EDLOG and you will have the basics of CR10 operation as well as an appreciation for the help provided by the software. Section OV4.5 describes options for loading the program into the CR10.
OV4.1 FUNCTIONAL MODES
CR10/User interaction is broken into different functional MODES (e.g., programming the measurements and output, setting time, manually initiating a block data transfer to Storage Module, etc.). The modes are referred to as Star (*) Modes since they are accessed
OV-12
CR10 OVERVIEW
TABLE OV4.1-1. * Mode Summary
Key Mode
*0 LOG data and indicate active Tables *1 Program Table 1 *2 Program Table 2 *3 Program Table 3, subroutines only *5 Display/set real time clock *6 Display/alter Input Storage data,
toggle flags or control ports. *7 Display Final Storage data *8 Final Storage data transfer to peripheral *9 Storage Module commands *A Memory allocation/reset *B Signature/status *C Security *D Save/load Program
OV4.2 KEY DEFINITION
Keys and key sequences have specific functions when using the CR10KD keyboard or a computer/terminal in the remote keyboard state (Section 5). Table OV4-2 lists these functions. In some cases, the exact action of a key depends on the mode the CR10 is in and is described with the mode in the manual.
some keys available in addition to those found on the CR10KD. Table OV4.2-2 lists these keys.
TABLE OV4.2-2. Additional Keys Allowed in
Telecommunications
Key Action
- Change Sign, Index (same as C) CR Enter/advance (same as A) : Colon (used in setting time) S or ^S Stops transmission of data (10
second time-out; any character restarts)
C or ^C Aborts transmission of Data
OV4.3 PROGRAMMING SEQUENCE
In routine applications, the CR10 measures sensor output signals, processes the measurements over some time interval and stores the processed results. A generalized programming sequence is:
1. Enter the execution interval. In most cases, the execution interval is determined by the desired sensor scan rate.
TABLE OV4.2-1. Key Description/Editing
Functions
Key Action
0-9 Key numeric entries into display
* Enter Mode (followed by Mode
Number) A Enter/Advance B Back up
C Change the sign of a number or
index an input location to loop
counter
D Enter the decimal point
# Clear the rightmost digit keyed into
the display
#A Advance to next instruction in
program table (*1, *2, *3) or to next
Output Array in Final Storage (*7)
#B Back up to previous instruction in
program table or to previous Output
Array in Final Storage
#D Delete entire instruction
#0 (then A or CR) Back up to the start of
the current array.
When using a computer/terminal to communicate with the CR10 (Telecommunications) there are
2. Enter the Input/Output instructions required to measure the sensors.
3. If processing in addition to that provided by the Output Processing Instructions (step 5) is required, enter the appropriate Processing Instructions.
4. Enter the Program Control Instruction to test the output condition and set the Output Flag when the condition is met. For example, use
Instruction 92 to output based on time. Instruction 86 to output every execution
interval. Instruction 88 or 89 to output based on a
comparison of values in input locations. This instruction must precede the Output
Processing Instructions which store data in Final Storage. Instructions are described in Sections 9 through 12.
5. Enter the Output Processing Instructions to store processed data in Final Storage. The order in which data are stored is
OV-13
CR10 OVERVIEW
determined by the order of the Output Processing Instructions in the table.
6. Repeat steps 4 through 6 for additional outputs on different intervals or conditions.
NOTE: The program must be executed for output to occur. Therefore, the interval at which the Output Flag is set must be evenly divisible by the execution interval. For example, with a 2 minute execution interval and a 5 minute output interval, the program will only be executed on the even multiples of the 5 minute intervals, not on the odd. Data will be output every 10 minutes instead of every 5 minutes.
Execution intervals and output intervals set with Instruction 92 are synchronized with real time starting at midnight.
OV4.4 INSTRUCTION FORMAT
Instructions are identified by an instruction number. Each instruction has a number of parameters that give the CR10 the information it needs to execute the instruction.
The CR10 Prompt Sheet has the instruction numbers in red, with the parameters briefly listed in columns following the description. Some parameters are footnoted with further description under the "Instruction Option Codes" heading.
For example, Instruction 73 stores the maximum value that occurred in an Input Storage location over the output interval. The instruction has three parameters (1) REPetitionS, the number of sequential Input Storage locations on which to find maxima, (2) TIME, an option of storing the time of occurrence with the maximum value, and (3) LOC the first Input Storage location operated on by the Maximum Instruction. The codes for the TIME parameter are listed in the "Instruction Option Codes".
The repetitions parameter specifies how many times an instruction's function is to be repeated. For example, four 107 thermistor probes may be measured with a single Instruction 11, Temp­107, with four repetitions. Parameter 2 specifies the input channel of the first thermistor (the probes must be connected to sequential
channels). Parameter 4 specifies the Input Storage location in which to store measurements from the first thermistor. If location 5 were used and the first probe was on channel 1, the temperature of the thermistor on channel 1 would be stored in input location 5, the temperature from channel 2 in input location 6, etc.
Detailed descriptions of the instructions are given in Sections 9-12. Entering an instruction into a program table is described in OV5.
OV4.5 ENTERING A PROGRAM
Programs are entered into the CR10 in one of three ways:
1. Keyed in using the CR10 keyboard.
2. Loaded from a pre-recorded listing using the *D Mode. There are 3 types of storage/input: a. Stored on disk/sent from computer
(PC208 software GraphTerm and EDLOG).
b. Stored/loaded from SM192/716
Storage Module.
3. Loaded from internal PROM (special soft­ware) or Storage Module upon power-up.
A program is created by keying it directly into the datalogger as described in Section OV5, or on a PC using the PC208 Datalogger Support Software.
EDLOG and GraphTerm are PC208 Software programs used to develop and send programs to Campbell Scientific dataloggers. EDLOG is an editor for writing and documenting programs for Campbell Scientific dataloggers. Program files developed with EDLOG can be downloaded directly to the CR10 using GraphTerm. GraphTerm supports communication via direct wire, telephone, or Radio Frequency (RF).
Programs on disk can be copied to a Storage Module with SMCOM. Using the *D Mode to save or load a program from a Storage Module is described in Section 1.8.
It is possible (with special software) to create a PROM (Programmable Read Only Memory) that contains a datalogger program. With this PROM installed in the datalogger, the program will automatically be loaded and run when the
OV-14
datalogger is powered-up, requiring only that the clock be set.
The program on power up function can be achieved by using a SM192/716 Storage Module. Up to 8 programs can be stored in the Storage Module, the programs may be assigned any of the numbers 1-8. If the Storage Module is connected when the CR10 is powered-up the CR10 will automatically load program number 8, provided that a program 8 is loaded in the Storage Module (Section 1.8).
OV5. PROGRAMMING EXAMPLES
We will start with a simple programming example. There is a brief explanation of each step to help you follow the logic. When the example uses an instruction, find it on the Prompt Sheet and follow through the description of the parameters. Using the Prompt Sheet while going through these examples will help you become familiar with its format. Sections 9-12 have more detailed descriptions of the instructions.
CR10 OVERVIEW
Connect the CR10 to either a CR10KD Keyboard/Display or a terminal (Section OV2). With the Wiring Panel connected to the CR10, hook up the power leads as described in Section OV1.2. If using a terminal, use the 7H command to get into the Remote Keyboard State (Sections 5.2). The programming steps in the following examples use the keystrokes possible on the keyboard/display. With a terminal, some responses will be slightly different.
If the CR10KD is connected to the CR10 when it is powered up, the display will show:
Display Explanation HELLO On power-up, the CR10
displays "HELLO" while it checks the memory (this display occurs only with the CR10KD).
after a few seconds delay
:96 The size of the machine's total
memory (RAM plus 32 K of ROM), in this
case 96K
OV-15
CR10 OVERVIEW
OV5.1 SAMPLE PROGRAM 1
In this example the CR10 is programmed to read its own internal temperature (using a built in thermistor) every 5 seconds and to send the results to Final Storage.
Display Will Show: Key (ID:Data) Explanation
* 00:00 Enter mode. 1 01:00 Enter Program Table 1. A 01:0.0000 Advance to execution
interval (In seconds)
5 01:5 Key in an execution
interval of 5 seconds.
A 01:P00 Enter the 5 second
execution interval and advance to the first program
ruction location.
inst
17 01:P17 Key in Instruction 17
which directs the CR10 to measure the internal temperature in degrees C. This is an Input/Output Instruction.
A 01:0000 Enter Instruction 17 and
advance to the first parameter.
1 01:1 The input location to
store the measurement, location 1.
A 02:P00 Enter the location # and
advance to the second program instruction.
The CR10 is now programmed to read the internal
perature every 5 seconds and place the
tem reading in Input Storage Location 1. The program can be compiled and the temperature displayed.
Display Will Show: Key (ID:Data) Explanation
*0 LOG 1 Exit Table 1, enter *0
Mode, compile table and begin logging.
*6 06:0000 Enter *6 Mode (to view
Input Storage).
A 01:21.234 Advance to first storage
location. Panel temp. is
o
21.234
C (display shows
actual temp.).
Display Will Show: Key (ID:Data) Explanation
Wait a few seconds:
01:21.423 The CR10 has read the
sensor and stored the result again. The internal
o
temp is now 21.423
C. The value is updated every 5 seconds when the table is executed. At this point the CR10 is measuring the temperature every 5 seconds and sending the value to Input Storage. No data are being saved. The next step is to have the CR10 send each reading to Final Storage. (Remember, the Output Flag must be set first.)
*1 01:00 Exit *6 Mode. Enter
program table 1.
2A 02:P00 Advance to 2nd
instruction location (this
where we left off).
is
86 02:P86 This is the DO instruction
(a Program Control
nstruction).
I
A 01:00 Enter 86 and advance to
the first parameter (which will specify the command to execute).
10 01:10 This command sets the
Output Flag. (Flag 0)
A 03:P00 Enter 10 and advance to
third program instruction.
70 03:P70 The SAMPLE instruction.
It directs the CR10 to take a reading from an Input Storage location and send it to Final Storage (an Output Processing Instruction).
A 01:0000 Enter 70 and advance to
the first parameter (repetitions).
1 01:1 There is only one input
ation to sample;
loc repetitions = 1.
OV-16
CR10 OVERVIEW
A 02:0000 Enter 1 and advance to
second parameter (Input Storage location to sample).
1 02:1 Input Storage Location 1,
where the temperature is stored.
A 04:P00 Enter 1 and advance to
fourth program
ruction.
inst * 00:00 Exit Table 1. 0 LOG 1 Enter *0 Mode, compile
program, log data.
The CR10 is now programmed to measure the internal tem
perature every 5 seconds and send each reading to Final Storage. Values in Final Storage can be viewed using the *7 Mode.
Display Will Show: Key (ID:Data) Explanation
*7 07: 13.000 Enter *7 Mode. The
Data Storage Pointer (DSP) is at Location 13 (in this example).
A 01: 0102 Advance to the first
value, the Output Array ID. 102 indicates the Output Flag was set by the second instruction in Program Table 1.
A 02: 21.23 Advance to the first
stored temperature.
A 01: 0102 Advance to the next
output array. Same Output Array ID.
OV5.2 SAMPLE PROGRAM 2
This second example is more representative of a real-life data collection situation. Once again the internal temperature is measured, but it is used as a reference temperature for the differential voltage measurement of a type T (copper-constantan) thermocouple; the CR10 should have arrived with a short type T thermocouple connected to differential channel
5. When using a type T thermocouple, the copper
lead (blue) is connected to the high input of the differential channel, and the constantan lead (red) is connected to the low input.
A thermocouple produces a voltage that is proportional to the difference in temperature between the measurement and the reference junctions.
To make a thermocouple (TC) temperature measurement, the temperature of the reference junction (in this example, the approximate panel temperature) must be measured. The CR10 takes the reference temperature, converts it to the equivalent TC voltage relative to 0
o
the measured TC voltage, and converts the sum to temperature through a polynomial fit to the TC output curve (Section 13.4).
The internal temperature of the CR10 is not a suitable reference tem
perature for precision
thermocouple measurements. It is used here
for the purpose of training only. To make thermocouple measurements with the CR10, purchase the Campbell Scientific Thermocouple Reference, Model CR10TCR (Section 13.4) and make the reference temperature measurement with Instruction 11.
C, adds
A 02: 21.42 Advance to 2nd stored
temp, 21.42 deg. C.
There are no date and time tags on the data. They must be put there with Output Instruction
77. Instruction 77 is used in the next example. If a terminal is used to communicate with the
CR10, Telecommunications Commands (Section 5) can be used to view entire Output Arrays (in this case the ID and temperature) at
ame time.
the s
Instruction 14 directs the CR10 to make a differential TC temperature measurement. The first parameter in Instruction 14 is the number of times to repeat the measurement. Enter 1, because in this example there is only one thermocouple. If there were more than 1 TC, they could be wired to sequential channels, and the number of thermocouples entered for repetitions. The CR10 would automatically advance through the channels sequentially and measure all of the thermocouples.
OV-17
CR10 OVERVIEW
Parameter 2 is the voltage range to use when making the measurement. The output of a type T thermocouple is approximately 40 microvolts per degree C difference in temperature between the two junctions. The ±2.5 mV scale
o
will provide a range of +2500/40 = +62.5
C
(i.e., this scale will not overrange as long as the
o
measuring junction is within 62.5
C of the
panel temperature). The resolution of the ±2.5
o
mV range is 0.33 µV or 0.008
C.
Parameter 3 is the analog input channel on which to make the first, and in this case only, measurement.
Parameter 4 is the code for the type of thermocouple used. This information is located on the Prompt Sheet or in the description of Instruction 14 in Section 9. The code for a type T (copper-constantan) thermocouple is 1.
Parameter 5 is the Input Storage location in which the reference temperature is stored. Parameter 6 is the Input Storage location in which to store the measurement (or the first measurement; e.g., if there are 5 repetitions and the first measurement is stored in location 3, the final measurement will be stored in location 7). Parameters 7 and 8 are the multiplier and offset. A multiplier of 1 and an offset of 0 outputs the reading in degrees C. A multiplier of 1.8 and an offset of 32 converts the reading to degrees F.
In this example, the sensor is measured once a minute, and the day, time, and average temperature are output every hour. Once a day the day, time, maximum and minimum temperatures and the times they occur will be output.
Final Storage data will be sent to Storage Module. Remember, all on-line data output to a peripheral device is accomplished with Instruction 96 (Sections 4.1 and 12).
The first example described program entry one keystroke at a time. This example does not show the "A" key. Remember, "A" is used to enter and/or advance (i.e., between each line in the example below). This format is similar to the format used in EDLOG.
It's a good idea to have both the manual and the Prompt Sheet handy when going through this example. You can find the program instructions and parameters on the Prompt Sheet and can read their complete definitions in the manual.
To obtain daily output, the If Time instruction is again used to set the Output Flag and is followed by the Output Instructions to store time and the daily maximum and minimum temperatures and the time each occurs.
Any Program Control Instruction which is used to set the Output Flag high will set it low if the conditions are not met for setting it high. Instruction 92 above sets the Output Flag high every hour. The Output Instructions which follow do not output every hour because they are preceded by another Instruction 92 which sets the Output Flag high at midnight (and sets it low at any other time). This is a unique feature of Flag 0. The Output Flag is set low at the start of each table (Section 3.7).
OV5.3 EDITING AN EXISTING PROGRAM
When editing an existing program in the CR10, entering a new instruction inserts the instruction; entering a new parameter replaces the previous value.
To insert an instruction, enter the program table and advance to the position where the instruction is to be inserted (i.e., P in the data portion of the display) key in the instruction number, and then key A. The new instruction will be inserted at that point in the table, advance through and enter the parameters. The instruction that was at that point and all instructions following it will be pushed down to follow the inserted instruction.
An instruction is deleted by advancing to the instruction number (P in display) and keying #D (Table 4.2-1).
To change the value entered for a parameter, advance to the parameter and key in the correct value then press A. Note that the new value is not entered until A is keyed.
OV-18
Loading...
+ 223 hidden pages