Manual - Datalogger CR23X
Manual - Datalogger CR23X
Manual - Datalogger CR23X
Revision: 11/06
C o p y r i g h t 1 9 8 6 - 2 0 0 6
C a m p b e l l S c i e n t i f i c , I n c .
PROGRAMMING
1.
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
FUNCTIONAL MODES
1
2
3
4
Datalogger Programs ,
,
, and
Modes ................................. 1-1
5
Mode .................................................................. 1-4
Setting and Displaying the Clock 6
Mode..................................... 1-4
Displaying/Altering Input Memory, Flags, and Ports 0
Mode ........................................................................ 1-5
Compiling and Logging Data A .................................................................................................. 1-5
Memory Allocation B ....................................................................... 1-9
Memory Testing and System Status C Mode -- Security...................................................................................................... 1-11
D Mode -- Save or Load Program .............................................................................. 1-11
2.
2.1
2.2
2.3
3.
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.10
DATA RETRIEVAL/COMMUNICATION
4.
4.1
4.2
4.3
4.4
4.5
5.
5.1
5.2
6.
6.1
6.2
6.3
TELECOMMUNICATIONS
Telecommunications Commands .......................................................................................... 5-1
Remote Programming of the CR23X ..................................................................................... 5-6
PROGRAM EXAMPLES
7.
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
7.9
7.10
7.11
8.
8.1
8.2
8.3
8.4
8.5
8.6
8.7
8.8
8.9
8.10
8.11
8.12
INSTRUCTIONS
9.
MEASUREMENTS
13. CR23X MEASUREMENTS
13.1
13.2
13.3
13.4
13.5
13.6
13.7
iii
INSTALLATION
14. INSTALLATION AND MAINTENANCE
14.1
14.2
14.3
14.4
14.5
14.6
14.7
14.8
14.9
14.10
APPENDICES
A.
B.
B.1
B.2
B.3
B.4
B.5
B.6
B.7
B.8
C.
C.1
C.2
C.3
C.4
E.
F.
F.1
F.2
G.
G.1
G.2
G.3
iv
H.
H.1
H.2
H.3
H.4
I.
vi
vii
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 8 V will cause errors and
possible overranging on other analog input
channels.
viii
This Overview
The CR23X Operator's Manual
The CR23X Prompt Sheet
This Overview introduces the concepts required to take advantage of the CR23X's capabilities. Handson programming examples start in Section OV4. Working with a CR23X will help the learning process,
so don't just read the examples, turn on the CR23X and 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 CR23X 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 OV5), and Section 14 which covers
installation and maintenance.
The Prompt Sheet is an abbreviated description of the programming instructions. Once familiar with the
CR23X, it is possible to program it using only the Prompt Sheet and on-line prompts as a reference,
consulting the manual if further detail is needed.
OV-1
9
#
OV-2
Continuous
Analog Outputs
133 Analog
O
Input/Output Instructions
10
11
12
L
18
19
40
20
21
11
22
23
12
24
L
G 12V
POWER IN
CONTROL I/O
C3
C2
17
C1
16
12V
12V
15
14
5V
13
SW12
POWER OUT
SE
DIFF
P4
C8
P3
C7
P2
P1
C4
External
12 Volt
Power Input
CAO2
CAO1
EX4
EX3
1
H
Command Codes:
4X Set port x high
49 Switched 12 V on
5X Set port x low
59 Switched 12 V off
6X Toggle port x
7X Pulse port x
95 Port Subr.
96 Port Subr.
97 Port Subr.
98 Port Subr.
EX2
SE
Ex-Del-Se
AC Half Br
Full Br
3W Half Br
Ex-Del-Diff
Full Br-Mex
Temp (107)
RH (207)
Del w/Opt Ext
Wire Meas
INW Press
EX1
4
5
6
7
8
9
11
12
22
28
29
), for
DIFF
EXCITATION OUTPUTS
C6
Input/Output Instructions
1 Volt (SE)
2 Volt (DIFF)
4 Ex-Del-Se
5 AC Half Br
6 Full Br
7 3W Half Br
8 Ex-Del-Diff
9 6W Full Br
11 Temp (107)
12 RH-(207)
13 Temp-TC SE
14 Temp-TC DIFF
16 Temp-RTD
27 Interval-Freq.
28 Vibrating Wire Meas
29 INW Press
131 Enhanced Vib. Wire
Signal Ground (
Analog
Pulse
Excitation
Sensor Shields
Input/Output Instructions
3 Pulse
15 Serial I/O
20 Set Ports
21 Pulse Port
25 Read Ports
100-110, 118 SDM and SDI12
Instructions
134 AM25T
PULSE INPUTS
Input/Output Instructions
3 Pulse
C5
ANALOG INPUTS
GROUND
LUG
SDM
04:REF_TEMP
+21.93
CR23X MICROLOGGER
CS I/O
Earth Ground
Connect 12ga
or larger wire to
earth ground
COMPUTER
RS232
(OPTICALLY ISOLATED)
SN:
SERIAL I/O
Telecommunications
Program Control Instructions
96 Storage Module, Printer, Serial Out
97 Initiate Telecommunications
120 TGT1 GOES Satellite (CS I/O only)
121 ARGOS Satellite (CS I/O only)
122 INMARSAT-C Satellite (CS I/O only)
123 TGT1 Programming
MADE IN USA
Switched
12 Volts
OV-5
OV-6
Flash Memory
(EEPROM)
Total 512 Kbytes
Operating System
(128 Kbytes)
How it works:
The Operating System is loaded into
Flash Memory at the factory. System
Memory is used while the CR23X is
running for calculations, buffering data
and general operating tasks.
Any time a user loads a program into
the CR23X, the program is compiled in
SRAM and stored in the Active
Program areas. If the CR23X is
powered off and then on, the Active
Program is loaded from Flash and run.
The Active Program is run in SRAM to
maximize speed. The program
accesses Input Storage and
Intermediate Storage and stores data
into Final Storage for later retrieval by
the user.
Active Program
(32 Kbytes Code)
Stored Programs
(32 Kbytes Code)
(32 Kbytes Labels)
Temporary Copy of
Current Program
Saved during
download if download
is aborted
(64 Kbytes)
Alphanumeric Labels
(32 Kbytes)
SRAM/FLASH
Total 1152 Kbytes
32K SRAM
System Memory
4096 Bytes
Active Program
Default
2048 Bytes
Input Storage
Default
112 Bytes
28 Locations
Intermediate Storage
Default
256 Bytes
64 Locations
96K SRAM
Final Storage 1 and 2
98,304 Bytes
49,154 Locations
1M FLASH
Final Storage 1 and 2
917,504 Bytes
458,752 Locations
or
4M FLASH
Final Storage 1 and 2
4,292,610 Bytes
2,146,305 Locations
Final Storage 1 Only
131,072 Bytes
65,536 Locations
Memory available only to
system
Memory shared between
Program, Input Storage,
and Intermediate Storage
Unassigned
(192 Kbytes)
Table 1.
Execute every x sec.
0.01 < x < 6553.5
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
Table 2.
Execute every y sec.
0.01 < y < 6553.5
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
OV-8
OV-9
INPUT/OUTPUT
INSTRUCTIONS
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.
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.
FINAL STORAGE
Final results from OUTPUT
PROCESSING INSTRUCTIONS are
stored here for on-line or interrogated
transfer to external devices (Figure
OV5.1-1). When memory is full, new
data overwrites the oldest data.
OV-10
Action
A
B
C
D
OV-12
Action
CR
S or ^S
C or ^C
OV-14
Display
HELLO
3: Sample (P70)
1:
1
2:
1
Reps
Loc [ CR23XTemp ]
Mode
Enter mode.
Mode 01 Go To
0000
Enter Program
Table 1.
13:Enter Command
00
Enter
13:
00
7 is command to
load program from
flash
Mode
07:Program ID
00
Execute command
7, CR23X is ready
for program
number
07:Program ID
00 00
Load Program 0
(empty program)
Scan Interval
execution
+0000
Advance to
interval (In seconds)
Scan Interval
+0.0000 5
Key in an execution
interval of 5 seconds.
01:P00
01:P00
17
Key in Instruction 17
which directs the
CR23X to measure
the panel
temperature in
degrees C. This is
an Input/Output
Instruction.
Panel Temp
01:Loc
0000
Enter Instruction 17
and advance to the
first parameter.
01:Loc
0000 1
Execute program
load, after a short
wait, the display
will show
Prog. operation
complete
Enter mode
2: Do (P86)
1:
10
Explanation
Mode
Key
OV-15
02:P00
Key
Running Table 1
OV-16
Mode 01 Go To
02:P00
02:P00
86
Do
01:CMD
00
0
Advance to first
storage location.
Panel temp. is
21.234C (display
shows actual
temperature so exact
value will vary).
01:CMD
00 10
03:P00
03:P00
70
Sample
01:Reps
0000
01:Reps
0000
1.
A
02:Loc
0000
02:Loc
0000 1
the
A
04:P00
Mode
Running Table 1
Advance to 2nd
instruction location
(this is where we left off).
This is the DO
instruction (a
Program Control
Instruction).
Enter 86 and
advance to the first
parameter (which will
specify the command
to execute).
This command sets
the Output Flag
(Flag 0) high.
Enter 10 and
advance to third
program instruction.
The SAMPLE
instruction. It directs
the CR23X to take a
reading from an Input
Storage location and
send it to Final
Storage (an Output
Processing
Instruction).
Enter 70 and
advance to the first
parameter
(repetitions).
There is only one
input location to
sample; repetitions =
Enter 1 and advance
to second parameter
(Input Storage
location to sample).
Input Storage
Location 1, where
temperature is
stored.
Enter 1 and advance
to fourth program
instruction.
Exit Table 1.
Enter 0 Mode,
compile program, log
data.
Key
Mode 07
Enter 7 Mode.
The Loc 13 Data
Storage Pointer
(DSP) is at Location
13 (in this example).
Array ID
01:
+0102
02:
+21.231
Array ID
01:
+0102
02:
+21.42
Advance to 2nd
stored temp, 21.42
deg. C.
Execution Interval
6:
7:
8:
2
1.0
0.0
3: If time is (P92)
1:
0
2:
60
3:
10
Loc [ TCTemp
Mult
Offset
Reps
Loc [ CR23XTemp ]
6: If time is (P92)
1:
0
2: 1440
3:
10
Reps
Value with Hr-Min
Loc [ TCTemp ]
SAMPLE PROGRAM 2
Instruction
(Loc:Entry)
Parameter
(Par#:Entry)
01:60
Key # D until
is displayed
01:P17
02:P14
(differential)
03:P92
Description
Enter Program Table 1
01:1
01:1
02:21
03:5
04:1
05:1
06:2
07:1
08:0
1 repetition
Range code (10 mV, 60 Hz Rejection)
Input channel of TC
TC type: copper-constantan
Reference temp is stored in Location 1
Store TC temp in Location 2
Multiplier of 1
No offset
01:0
02:60
03:10
If Time instruction
0 minutes into the interval
60 minute interval
Set Output Flag 0
The CR23X 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.
Instruction #
(Loc.:Entry)
04:P77
05:P71
06:P92
07: P77
08: P73
Parameter
(Par.#:Entry)
01:110
01:1
02:2
Description
Output Time instruction
Store Julian day, hour, and minute
Average instruction
one repetition
Location 2 - source of TC temps. to be
averaged
01:0
02:1440
03:10
If Time instruction
0 minutes into the interval
1440 minute interval (24 hrs.)
Set Output Flag 0
01:100
01:1
02:10
03:2
Maximize instruction
One repetition
Output time of daily maximum in hours and minutes
Data source is Input Storage Location 2.
OV-19
Minimize instruction
One repetition
Output the time of the daily minimum in hours
and minutes
Data source is Input Storage Location 2.
01:1
02:10
03: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
1:71
The program is complete. (Here the example reverts back to the key by key format.)
Key
correctly.
A
1
1
A
OV-20
Display
Explanation
00:21:32
Enter
05:0000
05:1996
05:0000
05:197
05:0021
Enter and advance to location for hours and minutes (24 hr. time).
05:1324
:13:24:01
Instruction/Mode
Section in Manual
Instruction 96
4.1, 12
4.2
4.5
8
9
Telecommunications
Printer or other
Serial device
Telecommunications
Commands
Instruction 97
Instruction 99
Instruction 96
Instruction 98
8
5
12
12
4.1, 12
12
4.2
OV-21
CR23X
COMPUTER
RS-232
CS I/O PORT
SC12 CABLES
DSP4
HEADS UP
DISPLAY
CSM1
SM192/716
STORAGE
MODULES
STORAGE
MODULE
OR CARD
BROUGHT
FROM THE
FIELD TO
THE
COMPUTER
CSM1
SM192/716
STORAGE
MODULES
MD9
MULTIDROP
INTERFACE
RF95 RF
MODEM
RF100/RF200
TRANSCEIVER
W/ ANTENNA
& CABLE
COAXIAL
CABLE
SC932
INTERFACE
SC32A
RS-232
INTERFACE
COM200 OR
VS1 PHONE
MODEM
COM100
CELLULAR
PHONE
SATELLITE
SRM-6A RAD
SHORTHAUL
MODEM
PHONE
LINE
MD9
MULTIDROP
INTERFACE
RF100/RF200
TRANSCEIVER
W/ ANTENNA
& CABLE
SC12 CABLE
SC532
RS-232
INTERFACE
COMPUTER
GROUND
STATION
SC12 CABLE
RF232 RF
BASE
STATION
SRM-6A RAD
SHORTHAUL
MODEM
HAYES
COMPATIBLE
PHONE
MODEM
RS-232
CABLE
ASYNCHRONOUS SERIAL
COMMUNICATIONS PORT
NOTES:
OV-22
OV7. SPECIFICATIONS
Electrical specifications are valid for -25 to 50C range unless otherwise specified. To maintain electrical specifications, yearly recalibrations are recommended.
CLOCK ACCURACY
1 minute per month
Accuracy (mV)
(-25 to 50C)
5.00
1.00
0.20
0.05
0.01
2.1 ms
3.1 ms
18.3 ms
35.9 ms
6.9 ms
V
V
V
V
rms
rms
rms
rms
ANALOG OUTPUTS
DESCRIPTION: 4 switched, active only during
measurement one at a time; 2 continuous.
RANGE: Programmable between 5 V
RESOLUTION: 333 V
RESISTANCE MEASUREMENTS
ANALOG INPUTS
Fast differential
Slow differential (60 Hz)
Fast single-ended
Slow single-ended (60 Hz)
MEASUREMENT TYPES: The CR23X provides ratiometric measurements of 4- and 6-wire full bridges,
and 2-, 3-, and 4-wire half bridges. Precise, dual
polarity excitation using any of the 4 switched
outputs eliminates DC errors. Conductivity
measurements use a dual polarity 0.75 ms excitation to minimize ionic polarization errors.
ACCURACY: 0.02% of FSR (0.015%, 0 to 40C)
plus bridge resistor error.
PULSE COUNTERS
DESCRIPTION: Four 8-bit or two 16-bit inputs
selectable for switch closure, high frequency pulse,
or low-level AC. Counters read at 10 or 100 Hz.
MAXIMUM COUNT RATE: 2.5 kHz and 25 kHz, 8-bit
counter read at 10 Hz and 100 Hz, respectively; 500 kHz, 16-bit counter.
PHYSICAL SPECIFICATIONS
Frequency Range
1.0 Hz to 1 kHz
0.5 Hz to 10 kHz
0.3 Hz to 16 kHz
WARRANTY
3 years against defects in materials and workmanship.
OV-23
OV-24
1.1.2 SUBROUTINES
Table 3 is used to enter subroutines which may
be called with Program Control Instructions in
Tables 1 and 2 or other subroutines. The group
of instructions which form a subroutine must
begin with Instruction 85, Label Subroutine, and
end with Instruction 95, End (Section 12).
Subroutines 95, 96, 97, and 98 have the unique
capability of being executed when a port goes
high (ports 5, 6, 7, and 8 respectively). Any of
these subroutines will interrupt Tables 1 and 2
(Section 1.1.3) when the appropriate port goes
high. When the port goes high, the processor
awakes within a few microseconds. The port
triggers on the rising edge (i.e., when it goes
from low to high). If the port stays high, the
subroutine is not called again.
1.1.3 TABLE PRIORITY/INTERRUPTS
Table 1 execution has priority over Table 2. If
Table 2 is being executed when it is time to
execute Table 1, Table 2 will be interrupted.
After Table 1 processing is completed, Table 2
processing resumes at the interruption point. If
the execution interval of Table 2 coincides with
Table 1, Table 1 is executed first, then Table 2.
Interrupts by Table 1 are not allowed in the
middle of an instruction or while output to Final
Storage is in process (flag 0 is set high). The
interrupt occurs as soon as the instruction is
completed or flag 0 is set low.
ASSIGNING PARAMETERS TO
EDLOG
1.1.4
4
The CR23X
mode is a table with up to
one hundred values. Each value corresponds
to an instruction parameter in the datalogger
program. When the datalogger compiles the
4
table are
program, values in the
transferred to the corresponding instruction
parameter. The datalogger program must be
1-2
4
The only way to implement the
mode is
through EDLOG. The datalogger program is
generated in EDLOG in the normal way.
4
location,
To assign a parameter to a
position the cursor on the desired parameter
and press the "@" key. EDLOG then prompts
4
table to
for the location number in the
be assigned to the associated parameter. After
a valid number is entered, EDLOG marks the
parameter with "@@nn" to the right of the
4
parameter description, where "nn" is the
location number.
01:
01:
Table 1 Program
0.0
Execution Interval
(seconds) @@0
Volts (SE) (P1)
1: 1
Reps
2: 1
2.5 mV Slow Range
3: 1
SE Channel
4: 1
Loc [ _________ ]
5: 1
Mult @@1
6: 0
Offset @@2
4
location 0 is
In the above example,
assigned to the program table execution
interval, and locations 1 and 2 to the multiplier
and offset of the measurement instruction.
Note that a default execution interval of zero
means the program will not execute until an
alternative interval is entered in location 00 of
4
mode. A default multiplier and
the
offset of 1 and 0 means that the measurement
value is in units of millivolts. A different
4
location can be used in only one
A
4
program parameter. For example,
locations 0, 1, and 2 used in the example
cannot be reused in another instruction in the
same program.
4
feature is enabled in EDLOG
If the
when printing a program to a printer or disk file,
4
list is printed at the end of the file.
the
TABLE
4
4
Enter the
Mode by keying "
";
"04:00" is then displayed. At this point it is
4
location by
possible to jump to any valid
keying the desired location number and
pressing the A key. For example, when the
display shows 04:00 and the desired location is
80, key in the number 80, press the A key and
the display will show "80:XXXXX." where
XXXXX. is the value stored in location 80.
Pressing the "A" key advances to the next
4
location, and the "B" key backs up to
4
location is not
the previous location. If a
assigned in the datalogger program, it can not
4
mode.
be displayed in the
4
location, advance
To enter a value in a
to the desired location, key in the number and
enter it by pressing the "A" key. The value is
not entered if the "A" key is not pressed.
4
The CR23X will not respond to the
command if any of the following conditions
exist.
1-3
A
A
A
A
1-4
Display
ID:DATA
HH:MM:SS
Year
XXXX
Day of Year
XXXX
or
MMDD
XXXX
Time
HHMM
Seconds
SS
Description
Display current time
Display/enter year
Display/enter day of
year 1-365(366) or
press D and enter
as month and day,
such as 1012 for
October 12. D
toggles back to Day
of Year.
Display/enter
hours:minutes
Display/enter
seconds
A
B
C
D
1
0
#
Mode Commands
Action
6
Enter
mode
Advance to next input location or
enter new value
Back-up to previous location
Change value in first input location on
display (followed by keyed in value,
then "A")
Display/alter user flags 1 through 8
Display/alter user flags 11 through 18
Display/alter ports
Display current location and allow a
location number to be keyed in,
followed by "A" to jump to that
location
1-5
0
of memory can be displayed in the
mode. A -- after the number displayed means
that the memory test was aborted. The number
shown indicates how far the test progressed
before aborted.
1-6
Flash Memory
(EEPROM)
Total 512 Kbytes
Operating System
(128 Kbytes)
How it works:
The Operating System is loaded into
Flash Memory at the factory. System
Memory is used while the CR23X is
running for calculations, buffering data
and general operating tasks.
Any time a user loads a program into
the CR23X, the program is compiled in
SRAM and stored in the Active
Program areas. If the CR23X is
powered off and then on, the Active
Program is loaded from Flash and run.
The Active Program is run in SRAM to
maximize speed. The program
accesses Input Storage and
Intermediate Storage and stores data
into Final Storage for later retrieval by
the user.
Active Program
(32 Kbytes Code)
Stored Programs
(32 Kbytes Code)
(32 Kbytes Labels)
Temporary Copy of
Current Program
Saved during
download if download
is aborted
(64 Kbytes)
Alphanumeric Labels
(32 Kbytes)
SRAM/FLASH
Total 1152 Kbytes
32K SRAM
System Memory
4096 Bytes
Active Program
Default
2048 Bytes
Input Storage
Default
112 Bytes
28 Locations
Intermediate Storage
Default
256 Bytes
64 Locations
96K SRAM
The Active Program can be copied into
the Stored Programs area. While 98
program "names" are available, the
number of programs stored is limited
by the available memory. Stored
programs can be retrieved to become
the active program. While programs
are stored one at a time, all stored
programs are erased simultaneously.
That is because the flash memory can
only be written to once before it must
be erased and can only be erased in 16
Kbytes blocks.
(Memory Areas separated by dashed
lines:
can be re-sized by the user.)
1 byte per character stored. 9 bytes
per input location label. All final
storage label characters plus 2 bytes
per table name (array ID name) and
field name.
1M FLASH
Final Storage 1 and 2
917,504 Bytes
458,752 Locations
or
4M FLASH
Final Storage 1 and 2
4,292,610 Bytes
2,146,305 Locations
Final Storage 1 Only
131,072 Bytes
65,536 Locations
Memory available only to
system
Memory shared between
Program, Input Storage,
and Intermediate Storage
Unassigned
(192 Kbytes)
1.5.2
MODE
1-8
Display ID:
Data
01: Input Locations
XXXX
Description of Data
A
A
A
A
1-9
Keyboard
Entry
B Mode Data
TABLE 1.6-1. Description of
Display ID:
Data
Description of Data
01:
Program memory Signature. The value is dependent upon the
+XXXXX
programming entered and memory allotment. If the program has
not been previously compiled, it will be compiled and run.
02:
+XXXXX
03:
XXXXX
04:
XX
05:
XX
06:
+X.XXXX
07:
XXXX.
08:
+X.XXXX
09:
XX
10:
XX
11:
+X.XXXX
12:
XX
13:
+X.XXXX
14:
+X.XXXX
15:
XX
Coprocessor Revision
16:
XX
Coprocessor Status
17:
XX
CPLD Revision
1-10
Display ID:
Data
01:
XXXX
02:
XXXX
03:
XXXX
Description
1
2
3
Non-zero password blocks entry to
,
,
,
A , and
D
Modes, telecommunication S command.
5
4
6
Non-zero password blocks
,
, and
except
for display.
5
6
7
8
Non-zero password blocks
,
,
,
,
9
B , and all telecommunications commands except
,
A, L, N, and E.
SECURITY ENABLED
Keyboard
Entry
12:
0000
01:
XX
1.7
Display ID:
Data
Description
Enter password. If correct, security is temporarily unlocked
through that level.
Level to which security has been disabled.
0 -- Password 1 entered (everything unlocked)
1 -- Password 2 entered
2 -- Password 3 entered
(everything unlocked) must be entered before
any passwords can be altered.
MODE -- SECURITY
C
The
Mode is used to block access to
the user's program information and certain
CR23X functions. There are 3 levels of
security, each with its own 4 digit password.
Setting a password to a non-zero value "locks"
the functions secured at that level. The
password must subsequently be entered to
temporarily unlock security through that level.
Passwords are part of the program. If security
is enabled in the active program, it is enabled
as soon as the program is run when the CR23X
is powered up.
C
will advance
When security is disabled,
directly to the window containing the first
password. A non-zero password must be
entered in order to advance to the next window.
Leaving a password 0, or entering 0 for the
password disables that and subsequent levels
of security.
1.8
D
The
Mode is used to save or load
CR23X programs, to set the degree to which
memory is cleared on powerup, to set the
datalogger ID, to set communication to full or
half duplex, and to set the displays contrast
level.
4
1
2
3
,
,
,
,
Programs (
A ,
C , and
D
Mode data) may
be stored to and from computers, internal flash
memory, and Storage Modules. Several
programs can be stored in the CR23X Flash
Memory and later recalled and run using the
D
Mode or Instruction 111.
1-11
D
PC208W automatically makes use of the
Mode to upload and download programs from a
computer. Appendix C gives some additional
information on Commands 1 and 2 that are used
for these operations.
6
7
7N
8
9
10
11
12
13
Mode Commands
Description
Send (Print) ASCII Program
0
Load ASCII Program,
Compile
6
Load ASCII Program,
Compile
1
0
D
(canceled by
mode)
Store Program in Flash
Load Program from Flash
Save/Load/Clear Program from
Storage Module N
Set Datalogger ID
Set Full/Half Duplex
Set Powerup Options
Set Display Contrast Level
Set Initial Baud/Set RS232 Power
Set Compile Option
Display
13: Enter Command
00
06: Program ID
00
A
B
1-12
Display
13: Enter Command
00
07: Program ID
00
A
B
Display
13: Enter Command
00
7N: Save, Load, Clr
00
Display
13: Enter Command
00
08: Datalogger ID
0XXX
Display
13: Enter Command
00
09: Comm Duplex
0x
Key
Entry
D
Display
Key entry
D
Display
13: Enter Command
00
10: Power Up Option
0X
1-14
Comments
xxxx is the
current setting.
Key in new
setting followed
by an A or . . .
Press A to
darken, B to
lighten
LOG
Save setting,
restart program
Key
Entry
Display
13:Enter Command
00
12: Connect Baud Rate
00
12: Connect Baud Rate
0X--
Display
Comments
13:Enter Command
00
13: Compile Option
00
13: Compile Option
01
Sets Compile
like 6
Comments
Enter Baud
Rate Code X
(Table 1.8-11).
Index (--)
is optional.
X = 0 300 Baud
X = 1 1200 Baud
X = 4 2400 Baud
X = 5 4800 Baud
X = 2 9600 Baud
X = 6 19.2 K Baud
X = 7 38.4 K Baud
X = 3 76.8 K Baud
X-- = RS232 Power On
1.8.8 SET PROGRAM COMPILE OPTION
Table 1.8-13 shows the option codes available
for setting the program compile option. This
setting will affect the program compile when the
program is downloaded from the PC or a
SM192/716 Storage Module. It also affects
B and the arcane
D
compiling with
7
command. Keyboard or Remote Keyboard
6
0
and
is not
compiling with
affected by this setting. If a .DLD file has this
setting, it will affect the compile operation
AFTER the .DLD file is downloaded.
1-15
1-16
2-1
Zero
Minimum Maximum
Magnitude Magnitude
Low
High
0.000
0.0000
+0.001
+ .00001
+6999.
+99999.
TABLE 2.3-1.
Key
Action
2-4
B
#
C
#
7
Mode Command
Summary
Fast
250 s
Integ.
Slow
60 Hz
Reject.
Slow
50 Hz
Reject.
10
11
12
13
14
15
20
21
22
23
24
25
30
31
32
33
34
35
Resolution
Differential*
.
Autorange**
10 mV
50 mV
200 mV
1000 mV
5000 mV
0.33
1.67
6.66
33.3
166.
V
V
V
V
V
Output Flag
User Flags
User Flags
Intermediate Processing
Disable Flag
X+1
X+2
Param.
Entry
No.
P
1
2
3
89
14
4
4.5
4
P
P
1
19
75
86
29
Description
If wind speed < 4.5 m/s
Wind speed location
Comparison: <
Minimum wind
speed for histogram
Set Flag 9 high
Histogram
Do
Set Flag 9 Low
3-6
9 FULL BR-MEX
V1 = 15
V1 = 25
10 BATT VOLT
11 TEMP (107)
12 RH (207)
13 TEMP-TC SE
14 TEMP-TE DIF
15 SERIAL I/O
16 TEMP-RTD
17 TEMP-PANEL
18 TIME
19 SIGNATURE
20 PORT SET
21 PULSE PORT
22 DELAY-EXCITE
23 BURST
24 CALIBRATION
25 READ PORT
26 TIMER
27 PERIOD AVG
28 VIBR. WIRE
29 INW PS9105
100 TDR
101 SDM-INT8
102 SDM-SW8A
103 SDM-AO4
104 SDM-CD16
105 SDI-12 REC.
106 SDI-12 SEN.
107 SDM CSAT3
108 SDM-UDG01
109 SDMX50
110 SDM GRP TRIG
113 SDM-SIO4
114 SET TIME
115 SDM BAUD
116 GENERIC SDM
117 DATALOG ID
118 SDM-OBDII
130 STATUS MON
131 SLOPE IND VW
132 SETTLING TIME
133 CAO
134 AM25T MX
220 DISPLAY OUT
1
1 OR 5
1
0
0
0
X
19
1
1 OR 0
R
R
2
R
R
R
R
R
R
R
R
AC HALF BR
FULL-BR
3W HALF BR
EX - DEL - DIFF
(with delay)
5
6
7
8
R
R
R
R
VOLT (SE)
VOLT (DIFF)
PULSE
EX - DEL - SE
(with delay)
InLoc
1
2
3
4
Inst. Desc.
1-4 or NA
4.4
135
1.7+1.0R
0.9+2.1R
2.7+2.7R
15 0.8+1.3R
4
2.8
7
2
4
40.2
6
6.6
10 0.8+10H
9 0.5+del(ms)
35
4
6
0.3
4
19
21
88
157
(-8.0) + 49.0 * R
NOT
NOT
3.0+3.6R
2.2+4.7R
NOT
3.2+3.6R
READY
READY
2.0+3.6R
2.2+4.7R
READY
0.6+1.6R
YET
YET
2.0+3.7R
1.8+4.7R
YET
0.6+1.6R
(-10.0) + 195.0 * R
5.6 + 98.6 * R
5.4 + 115.4 * R
4.4+117.8*R
4.5+161.7*R
20
4.5 + 118.5 * R
4.5+R*(118.5+5*
Delay)
3.5+3.0R 2.4+3.2R 2.4+3.2R 3.5 + 205.1 * R
2.6+5.1R 2.6+5.1R 2.6+5.1R 13.6 + 327.5 * R
4.3+5.8R 3.2+7.0R 3.2+7.0R 148.9 + 314.6 * R
1.7+1.7R 0.7+1.7R 0.7+1.7R 3.6 + 118.7 * R
3.6+2*R*(118.7+5*
Delay)
2.0+10.7R 1.3+11.1R 2.5+11.2R 3.9 + 679.3 * R
3.0+10.9R 3.0+10.9R 3.0+10.9R
0.4+46.1R 0.4+46.1R 0.4+46.1R
1.6+1.6R
0.5+1.6R
0.5+2.6R
15
0.3 + 12.4 * R
0.3+R*(12.4+5*
Delay)
12.2 + 24.2 * R
12.0 + 32.8 * R
16.6 + 34.1 * R
0.4 + 12.2 * R
0.4+2*R*(12.2+5*
Delay)
15.1 + 45.8 * R
0.5+1.6R
0.5+2.6R
Fast
13-14
1.5+1.6R
0.5+2.6R
11-12
(-1.8)+11.8*R
0.4+14.4*R
10
4
2.5
15 3.2+3.6R
17 3.0+4.3R
(-1.3) + 17.2 * R
18
(-0.5) + 18.1 * R
18
19
18
18
18
20
15
15
15 0.8+0.8R
20
Bytes
60Hz
23-24
30
0.4+9.9R (-8.3+140.0*R
0.0+19.7R 3.2+191.9*R
25
19.2+20.2R 1.7+20.2R
1.6+37.9R 1.6+37.9R
17.8+56.9R
5.0 + 226.0 * R
17.5+18.2R 0.1+18.2R
0.0+35.9R 0.0+35.9R
21-22
50Hz
33-34
40
0.4+11.6R 7.5+52.5*R
0.0+23.0R 4.4+97.2*R
35
22.6+23.6R 1.7+23.6R
1.7+44.6R 1.7+44.6R
21.1+63.6R
(-30.0) + 133.0 * R
21.0+21.6R 0.0+21.6R
0.0+42.5R 0.0+42.5R
31-32
3.1+11.9R
1.6+21.7R
17.8+56.9R
0.4+78.9R
0.0+45.8R
0.8+79.4R
3.1+19.9R
1.9+39.1R
1.5+41.5R
1.6+10.0R
1.5+10.0R
1.4+9.9R
0.0+19.7R
Fast
41-42
50
(-10.0) + 150.0 * R
0.4+9.9R 4.7+61.0*R
0.0+19.7R 3.2+114.6*R
60Hz
43-45
3.1+13.6R
2.0+25.0R
21.1+63.6R
0.0+92.3R
0.0+52.2R
0.4+86.3R
2.8+23.4R
20.+45.6R
3.2+46.7R
1.6+11.7R
1.5+11.7R
1.5+11.7R
1.4+11.6R
0.0+23.0R
Fast
51-52
2.0+13.6R
2.0+25.0R
0.0+93.1R
0.0+52.2R
0.2+86.5R
1.6+23.6R
1.5+45.8R
2.1+47.9R
0.5+11.6R
0.5+11.7R
0.5+11.7R
0.4+11.6R
0.0+23.0R
50Hz
53-55
TABLE 3.9-2. Processing Instruction Memory and Execution Times R = No. of Reps.
INSTRUCTION
INPUT
LOC.
MEMORY
INTER. LOC.
30 Z=F
31 Z=X
1
0
32 Z=Z+1
1
0
33 Z=X+Y
1
0
34 Z=X+F
1
0
35 Z=X-Y
1
0
36 Z=XY
1
0
37 Z=XF
1
0
38 Z=X/Y
1
0
39 Z=SQRT(X)
1
0
40 Z=LN(X)
1
0
41 Z=EXP(X)
1
0
42 Z=1/X
1
0
43 Z=ABS(X)
1
0
44 Z=FRAC(X)
1
0
45 Z=INT(X)
1
0
46 Z=X MOD F
1
0
Y
1
0
47 Z=X
48 Z=SIN(X)
1
0
49 SPA. MAX
1 or 2
0
50 SPA. MIN
1 or 2
0
51 SPA. AVG
1
0
52 RUNNING AVG
1
(R par 4) + R + 1
53 AX+B
4
0
54 BLOCK MOVE
R
0
55 POLYNOMIAL
R
0
56 SAT. VP
1
0
57 WDT-VP
1
0
58 LP FILTER
R
R+1
59 X/(1-X)
1
0
60 FFT
see instruction see instruction
61 INDIR. MOVE
1
0
62 COV/COR
see instruction see instruction
63 PARA.EXTN.
0
0
64 PAROSCIENTIFIC
3
0
65 BULK LOAD
8
0
66 ARC TAN
1
0
67 DYNAGAGE
2 or 6
0
68 4 DIG PARA. EXTN. 0
0
PROG.
BYTES
9
6
4
8
10
8
8
10
8
6
6
6
6
6
6
6
10
8
6
8
8
8
11
36
10
31
6
10
13
9
13
6
18
10
6
36
8
43
18
3-7
INSTRUCTION
INTER.
LOC.
69 WIND VECTOR
2+9R
FINAL
MEMORY
VALUES BYTES
2R
3R
4R
2R
3R
4R
R
R
R
R
2R, 3R
R
2R, 3R
BINS*R
1 TO 4
0
R
0
70 SAMPLE
71 AVERAGE
72 TOTALIZE
73 MAXIMUM
0
1+R
R
1R
2R
74 MINIMUM
1R
2R
75 HISTOGRAM
1+binsR
77 REAL TIME
0
78 RESOLUTION
0
79 SMPL ON MM
R
0
80 STORE AREA1
81 RAINFLOW HIST see
instruction
82 STD. DEV.
1+3R
R
FLAG O
LOW
FLAG 0
HIGH
3.9+38.7R
4.5+15.6R
3.8+34.7R
0.0+27.3R
3.7+15.8R
3.1+27.4R
24
4
3
7
7
2.7+8.3R
2.7+8.3R
2.4+8.8R
2.1+8.2R
2.1+8.2R
1.6+6.4R
0.5+0.2R
0.6+0.3R
0.4+0.3R
0.6+0.5R
0.6+0.5R
0.6+0.5R
0.6+0.5R
0.7+1.7R
0.1
0.4
0.2
0.2
1.4+1.7R
0.9+0.6R
1.6+1.4R
1.6+2.8R
1.6+1.4R
1.6+2.8R
0.8+(2.8+0.7*BIN)R
2.2
0.4
0.7+0.3R
0.2
42
7
0.8+1.0R
3.3+7.0R
12
6
7
7
8
8
OPTION
00,
01,
02,
10,
11,
12,
0.1
0,
01,10,11
0,
01,10,11
INSTRUCTION
83 IF CASE <F
85 LABEL SUBR.
86 DO
87 LOOP
88 IF X<=>Y
89 IF X<=>F
90 LOOP INDEX
91 IF FLAG/PORT
92 IF TIME
93 BEGIN CASE
94 ELSE
95 END
96 SERIAL OUT
97 INIT.TELE.
98 SEND CHAR.
120 GOES SAT
121 ARGOS SAT
3-8
MEMORY
INTER.
PROG.
LOC.
BYTES
0
10
0
3
0
6
1
10
0
11
0
13
0
3
0
7
1
12
1
8
0
4
0
4
0
3
7
0
0 or 2
0
17
3
5
8
Type
Description
03
04
05
Editor
Compile
Compile
08
Run Time
09
10
11
Run Time
Run Time
Editor
12
13
20
Compile
Run Time
Compile
21
Compile
22
23
Compile
Compile
24
Compile
25
26
Compile
Compile
27
Compile
30
Compile
31
Run Time
32
Compile
40
41
Editor
Editor
60
61
Compile
Compile
62
68
Compile
Compile
80
Compile
92
Compile
93
94
Compile
D
Mode
95
Mode
96
Mode
97
Mode
98
Mode
99
Mode
101
102
105
106
107
3-10
TGT1
TGT1
Illegal
Illegal
Compile
ELSE without IF
EXIT LOOP without
LOOP
IF CASE without BEGIN
CASE
IF and/or LOOP nested
too deep
SUBROUTINES nested
too deep
Instruction 3 and interrupt
subroutine use same port
Instruction does not exist
Incorrect execution
interval
Insufficient Input Storage
Burst Measurement Scan
Rate too short
N<2 in FFT
Instruction 118 without
enough Instructions 68 or 63
Valid entries for parameter 1
of P80 are 1, 2, 3 (-- is illegal)
Instruction 92, intervals in
seconds: Time into Interval
> 59 or Interval > 60
Save labels full
Program Storage Area
full
Program does not exist in
Flash memory
Addressed device not
connected or wrong
address (see Table 1.8-2)
Data not received within
30 seconds
Uncorrectable errors
detected
Wrong file type or editor
error
No response
Bad Star Pound entry
Baud C5-C8
Channel C5-C8
Second CSAT3
Instruction not nested
A specific pin in the CS I/O 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".
2.
Modems are pin-enabled. Only one modem device may be connected to the CR23X at any one
time.
The SM192, SM716, and CSM1 Storage Modules are addressed. The CR23X can tell when the
addressed device is present. The CR23X will not send data meant for the Storage module if the
Storage Module is not present (Section 4.4.2).
9
Mode (Section 4.5) allows the user to communicate directly with the Storage Module
The
and to perform several functions, including review of data, battery test, review of Storage Module
status, etc.
DATA
TYPE
DESCRIPTION
Option Device
Code
0
1
2
3
4
5
6
7
PARAM.
NUMBER
01:
4-2
TABLE 4.2-1.
Key
A
A
A
A
Display ID:
DATA
Mode 08: Storage Area
00
01: Device Code
XX
02: Start Location
XXXXX
03: End Location
XXXXX
04: Number Starts
00
Mode Entries
Description
Key 1 or 2 for Storage Area. (This window is skipped if no memory
has been allocated to Final Storage Area 2.)
Key in Output Device Option. See Table 4.1-1.
Start of dump location. Initially the SPTR or PPTR location; a
different location may be entered if desired.
End of dump location. Initially the DSP location; a different location
may be keyed in if desired.
Ready to dump. To initiate dump, key any number, then A. While
dumping, "04 activated; key aborts" and the location number will be
displayed. Output complete will be displayed when the dump is
complete. (Any key aborts transmission after completion of the
current data block.)
1,234,1145,23.65,-12.26,625.9
1,234,1200,24.1,-10.98,650.3
4-4
4.4.3
4-5
4.5
MODE -- SM192/716
STORAGE MODULE COMMANDS
9
When
Mode
9
Mode is used to issue commands to
The
the SM192/716 Storage Module, from the CR23X.
Modes for the
These commands are like
Storage Module and in some cases are directly
Modes. Command 7
analogous to the CR23X
enters a mode used to review stored data, and 8 is
used to transfer data between two Storage
Modules connected to the CR23X. The operations
with the Storage Module are not directly analogous
as may be seen in Table 4.5-1 which lists the
TABLE 4.5-1.
COMMAND
DISPLAY
DESCRIPTION
01: 0000
01: XX
03: 01
04: XX
RESET, enter 248 to erase all data and programs. While erasing,
the SM checks memory. The number of good chips is then
displayed (6 for SM192, 22 SM716).
INSERT FILE MARK, 1 indicates that the mark was inserted, 0
that it was not.
DISPLAY/SET MEMORY CONFIGURATION enter the
appropriate code to change configuration 0=ring, 1=fill & stop
DISPLAY STATUS (A to advance to each window)
Window 1:
Storage pointer location (chip no.)
Total good RAM chips (1-22)
Window 2:
Display pointer location (chip no.)
Unloaded Batt. Chk. 0=low, 1=OK
No. of Programs stored (Max=8)
Window 3:
Errors logged (up to 9)
Not Used
Memory Config. (0=ring, 1=fill&stop)
Memory Status (0=not full, 1=full)
PROM signature (0 if bad PROM)
BATTERY CHECK UNDER LOAD (0=low, 1=OK)
DISPLAY DATA, Select the Storage Module Area with these codes:
0 Dump pointer to SRP
1 File 1, current file
2 File 2, previous to file 1
3 File 3, previous to file 2
4 File 4, previous to file 3
5 File 5, previous to file 4
7 Display pointer to SRP
9 Oldest data to SRP
1-5 will loop within file boundaries, 0,7,9 allow display to
cross boundaries
6
7
4-6
01: ABCD
AB
CD
02: ABCD
AB
C
D
03: A0CD
A
0
C
D
04: XXXXX
06: 0X
07: 00
07:XXXXXX
8
08:00
01:XXXXXX
02:XXXXXX
03:XX
9
XXXXXXXX
87654321
10
10:0X
4-7
4-8
SECTION 5. TELECOMMUNICATIONS
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, PC208W,
has been designed to meet most needs in datalogger support and telecommunications. Therefore,
information in this section is not necessary for most datalogger applications.
Telecommunications is used to retrieve data from Final Storage directly to a computer/terminal and to
program the CR23X. Any user communication with the CR23X that makes use of a computer or
terminal is done through Telecommunications.
Telecommunications can take place over a variety of links including:
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 BINARY or ASCII. 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 Scientifics PC208W Datalogger Support Software uses the binary format
for data transfer.
This section does not furnish sufficient detail to write telecommunications software. Appendix C contains
some details of binary data transfer and Campbell Scientifics 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 CR23X 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:
The Remote Keyboard State (Section 5.2) allows the user with a computer/terminal to use the same
commands as on the CR23X keypad.
5.1 TELECOMMUNICATIONS
COMMANDS
When a modem/terminal rings the CR23X, the
CR23X should answer almost immediately.
Several carriage returns (CR) must be sent to
the CR23X to allow it to set its baud rate to that
5-1
SECTION 5. TELECOMMUNICATIONS
5-2
SECTION 5. TELECOMMUNICATIONS
Description
SELECT AREA/STATUS - If 1 or 2 does not precede the A to select
the Final Storage Area, the CR23X will default to the Area last used
(initially this is Area 1). All subsequent commands other than A will
address the area selected. Datalogger returns Reference, the DSP
location; the number of Filled Final Storage locations; Version of
datalogger; Final Storage Area; Location of MPTR (the location
number may be 1 to 7 characters long); Errors #1, #2, #3, and #4
where #1 is the number of E08's, #2 is the number of overrun errors,
#3 is the number of times the program stopped due to low voltage,
and #4 is the number of times the 5 V supply dropped below 5V (all
are cleared by entering 8888A; #2 is also cleared at time of program
compilation); size of total Memory in CR23X in Kbytes; the lithium
Battery voltage; and Checksum. All in the following format:
[YR:DAY:HR:MM:SS]C
[no. of arrays]D
E
[no. of loc.]F
7H or 2718H
SECTION 5. TELECOMMUNICATIONS
[loc. no.]I
3142J
2413J
SET UP FOR K COMMAND - Used in the Monitor Mode and with the
Heads Up Display. Similar to the 3142J command but does not
toggle flags and ports. See Appendix C for details. (Available first in
CR23X OS Version 1.7; also indicated by V4 returned to the A
command, see above.)
[Password]L
[X]M
1N
P
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 Mode (Section 4.5 and the Storage Module
manual).
Connect phone modem to RF modem at phone to RF base station.
Command to set 9.8304 MHz crystal coefficients. Coefficients are
set at the factory and normally should not be altered. Displays:
E clock Hz - 2.4576 MHz
to give better resolution. Also, gets rid of out of bounds check that
used to load default back in. If not set, P27 and other timing
instructions will have problems.
19287P will display the 2 coefficient numbers for you (e.g. 0.8944
.8133). If the 2 numbers are -99999, the datalogger needs to be
calibrated.
19287:1600P will calibrate it for you if your crystal is exactly 2.4576
MHz E Clock. This temporary fix will improve the performance of a
datalogger that failed the 19287P test.
5-4
SECTION 5. TELECOMMUNICATIONS
Temperature C
< -15
-10 to -15
-5 to -10
-5 to +5
+5 to +30
+30 to +40
+40 to +50
> +50
nnnnU
nnnn:[value]:[checksum]U
Loads the input location, port, or flag referred to by nnnn with value if
the checksum is correct. nnnn refers to input location, flag, or port
as above. The datalogger returns the same as the nnnnU
command.
5-5
SECTION 5. TELECOMMUNICATIONS
Examples:
14:-3.2450:xxxxU<CR> returns
V-3.2450 C1357 (sets input location 14 to -3.2450)
9003:1:xxxxU<CR> returns
V1.0000 Cxxxx (sets flag 3 high)
9105:0:xxxxU<CR> returns
V0.0000 Cxxxx (sets port 5 low)
Remember that entering * 0 will compile and
run the CR23X program if program changes
have been made.
7H (or 2718H)
Telecommunications
Command
State
5-6
Remote
Keyboard
State
ABR
I/O
Description
1
2
3
4
5
6
7
8
9
DTR
TX
RX
O
O
I
CTS
RTS
RING
I
O
I
Pin 5
CS I/O
COMPUTER
RS232
(OPTICALLY ISOLATED)
Pin 9
Pin 1
Pin 6
GND
6-1
=
=
=
=
PIN
ABR
5V
SG
RING
RXD
ME
Modem Enable: Raised when the CR10X determines that a modem raised the
ring line.
SDE
CLK/HS I/O
+12 VDC
TXD
I/O
O
Description
5V: Sources 5 VDC, used to power peripherals.
Signal Ground: Provides a power return for pin 1 (5V), and is used as a
reference for voltage levels.
Clock/Handshake: Used with the SDE and TXD lines to address and transfer
data to SDs. When not used as a clock, pin 7 can be used as a handshake line
(during printer output, high enables, low disables).
Transmit Data: Serial data are transmitted from the CR10X to peripherals on pin
9; logic low marking (0V) logic high spacing (5V) standard asynchronous ASCII, 8
data bits, no parity, 1 start bit, 1 stop bit, 300, 1200, 9600, 76,800 baud (user
selectable).
(ME)
MODEM
(COM200
RF95
SC32A)
6-2
6-3
6-4
VS1
X 1
SDC99 Printer
X 1
Storage Module
X 1
STATE 6
RF95 Modem
X 1
Pin number
Signal Out of the SC32A to a peripheral
Signal Into the SC32A from peripheral
I/O
ABBREVIATION
GROUND
TX
RX
RTS (POWER)
CTS
DSR
GROUND
DCD
DTR (POWER)
I
O
I
O
O
O
I
ABBREVIATION
+5V INPUT
GROUND
RING
RX
ME
SDE
TX
=
=
=
=
I/O
TD
RD
PIN
FUNCTION
RTS
CTS
20
DTR
DSR
DCD
22
RI
SG
6.2.6.3 COMMUNICATION
PROTOCOL/TROUBLE SHOOTING
The ASCII standard defines an alphabet
consisting of 128 different characters where
each character corresponds to a number, letter,
symbol, or control code.
An ASCII character is a binary digital code
composed of a combination of seven "bits", each
bit having a binary state of 1 (one) or 0 (zero).
For example, the binary equivalent for the ASCII
character "1" is 0110001 (decimal 49).
ASCII characters are transmitted one bit at a
time, starting with the 1st (least significant) bit.
During data transmission the marking condition
is used to denote the binary state 1, and the
spacing condition for the binary state 0. The
signal is considered marking when the voltage
is more negative than minus three volts with
respect to ground, and spacing when the
voltage is more positive than plus three volts.
Most computers use 8-bits (1 byte) for data
communications. The 8th bit is sometimes
used for a type of error checking called paritychecking. Even parity binary characters have
an even number of 1's, odd-parity characters
have an odd number of 1's. When parity
checking is used, the 8th bit is set to either a 1
or a 0 to make the parity of the character
correct. The CR23X ignores the 8th bit of a
character that is receives, and transmits the 8th
bit as a binary 0. This method is generally
described as "no parity".
To separate ASCII characters, a Start bit is sent
before the 1st bit and a Stop bit is sent after the
8th bit. The start bit is always a space, and the
stop bit is always a mark. Between characters
the signal is in the marking condition.
Figure 6.2-5 shows how the ASCII character "1"
is transmitted. When transmitted by the CR23X
using the SC32A RS-232 interface spacing and
marking voltages are positive and negative, as
shown. Signal voltages at the CS I/O port are
5V in the spacing condition, and 0V in the
marking condition.
6-7
IF GARBAGE APPEARS
If garbage characters appear on the display,
check that the baud rate is supported by the
CR23X. If the baud rate is correct, verify that
the computer/terminal is set for 8 data bits, and
no parity. Garbage will appear if 7 data bits and
no parity are used. If the computer/terminal is
set to 8 data bits and even or odd parity,
communication cannot be established.
PIN
6
ABR
SDE
PIN
ABR
CLK/HS I/O
5V
SG
RING
12 V
TXD
I/O
O
RXD
ME
Description
5V: Sources 5 VDC, used
to power peripherals.
Signal Ground: Provides
a power return for pin 1
(5V), and is used as a
reference for voltage
levels.
Ring: Raised by a
peripheral to put the
CR23X in the
telecommunications
mode.
Receive Data: Serial
data transmitted by a
peripheral are received
on pin 4.
Modem Enable: Raised
when the CR23X
determines that a
modem raised the ring
line.
I/O
O
Description
Synchronous Device
Enable: Used to
address Synchronous
Devices (SDs), and can
be used as an enable
line for printers.
Clock/Handshake: Used
with the SDE and TXD
lines to address and
transfer data to SDs.
When not used as a clock,
pin 7 can be used as a
handshake line (during
printer output, high
enables, low disables).
12 V: Sources 12 VDC,
used to power 12 VDC
peripherals.
Transmit Data: Serial
data are transmitted
from the CR23X to
peripherals on pin 9;
logic low marking (0V)
logic high spacing (5V)
standard asynchronous
ASCII, 8 data bits, no
parity, 1 start bit, 1 stop
bit, 300, 1200, 9600,
76,800 baud (user
selectable).
6-9
6-10
7-1
CR23X
SE 5
SE 6
SWITCHED 12V
G
INPUT LOCATIONS
1 Temp_C
2 RH_pct
Temperature (Black)
Relative Humidity (Brown)
12 V (Red)
Power Ground (Green)
Shield (Clear)
CR23X
FIGURE 7.1-2. Typical Connection for Active Sensor with External Battery
7-2
CS500
PROGRAM
01:
CR23X
7-3
CONNECTIONS
m/s =
0.01632 m/s/rpm x 6 rpm/Hz x XHz + 0.2 m/s
CR23X
PROGRAM
1: Temp (107) (P11)
1:
3
Reps
2:
1
SE Channel
3:
1
Excite all reps w/E1
4:
1
Loc [ TEMP_1 ]
5:
1.0
Mult
6:
0.0
Offset
7-4
PROGRAM
1: Pulse (P3)
1:
1
2:
1
3:
20
4:
1
5:
.0979
6:
.2
Reps
Pulse Channel 1
High Frequency, Output Hz
Loc [ WS_m_s ]
Mult
Offset
CR23X
Reps
Pulse Channel 1
Switch Closure, All Counts
Loc [ InchRain ]
Mult
Offset
CR23X
7-5
PROGRAM
1: Full Bridge w/mv Excit (P9)
1:
1
Reps
2:
22
50 mV, 60 Hz Reject, Slow,
Ex Range
3:
22
50 mV, 60 Hz Reject, Slow,
Br Range
4:
1
DIFF Channel
5:
1
Excite all reps w/Exchan 1
6: 4400
mV Excitation
7:
1
Loc [ Rs_Ro ]
8:
1.0111 Mult
9:
0.0
Offset
2: Temperature RTD (P16)
1:
1
Reps
2:
1
R/R0 Loc [ Rs_Ro ]
3:
2
Loc [ TEMP_degC ]
4:
1.0
Mult
5:
0.0
Offset
CR23X
7-6
CR23X
temperature coefficient of
The 5 ppm per
the fixed resistors was chosen so that their
0.01% accuracy tolerance would hold over the
desired temperature range.
The relationship between temperature and PRT
resistance is a slightly nonlinear one. Instruction
16 computes this relationship for a DIN standard
PRT where the nominal temperature coefficient
is 0.00385/oC. The change in nonlinearity of a
PRT with the temperature coefficient of
0.00392/oC is minute compared with the slope
change. Entering a slope correction factor of
0.00385/0.00392 = 0.98214 as the multiplier in
Instruction 16 results in a calculated
temperature which is well within the accuracy
specifications of the PRT.
7-8
PROGRAM
1: Full Bridge (P6)
1:
1
Reps
2:
21
10 mV, 60 Hz Reject, Slow
Range
3:
3
DIFF Channel
4:
1
Excite all reps w/Exchan 1
5: 5000
mV Excitation
6:
1
Loc [ Rs_Ro ]
7:
.001
Mult
8:
.02344 Offset
2: BR Transform Rf[X/(1-X)] (P59)
1:
1
Reps
2:
1
Loc [ Rs_Ro ]
3:
50
Multiplier (Rf)
3: Temperature RTD (P16)
1:
1
Reps
2:
1
R/R0 Loc [ Rs_Ro ]
3:
2
Loc [ TEMP_degC ]
4:
.98214 Mult
5:
0.0
Offset
CR23X
7-10
3.106mV/V1/250lb x 2.2lb/kg x
3.1416kg/mm/4 =
0.02147mV/V1/mm
The reciprocal of this gives the multiplier to
convert mV/V1 into millimeters. (The result of
Instruction 9 is the ratio of the output voltage to
the actual excitation voltage multiplied by 1000,
which is mV/V1):
1/0.02147mV/V1/mm = 46.583mm/mV/V1
The output from the load cell is connected so
that the voltage increases as the mass of the
lysimeter increases. (If the actual mechanical
linkage was as diagrammed in Figure 7.12-1,
the output voltage would be positive when the
load cell was under tension.)
When the experiment is started, the water
content of the soil in the lysimeter is
approximately 25% on a volume basis. It is
decided to use this as the reference, (i.e., 0.25 x
1500mm = 375 mm). The experiment is started
at the beginning of what is expected to be a
period during which evapotranspiration exceeds
precipitation. Instruction 9 is programmed with
the correct multiplier and no offset. After
hooking everything up, the counterbalance is
adjusted so that the load cell is near the top of
its range; this will allow a longer period before
readjustment is necessary. The result of
6
Mode)
Instruction 9 (monitored with the
is 109. The offset needed to give the desired
initial value of 375mm is 266. However, it is
decided to add this offset in a separate
instruction so that the result of Instruction 9 can
be used as a ready reminder of the strain on the
load cell (range = 140mm). When the strain on
the load cell nears its rated limits, the
counterbalance is readjusted and the offset
recalculated to provide a continuous record of
the water budget.
The program table has an execution interval of
10 seconds. The average value in millimeters
is output to Final Storage (not shown in Table)
every hour. The average is used, instead of a
sample, in order to cancel out the effects of
wind loading on the lysimeter.
CR23X
X Loc [ RAW_MEAS ]
F
Z Loc [ MEAS_OFFS ]
CR23X
-53.784
147.97
-218.76
219.05
-111.34
23.365
-53.7842
0.147974
-2.18755E-4
2.19046E-7
-1.11341E-10
2.33651E-14
CR23X
7-13
P = -FxG + B where
P = pressure, PSI
G = the Gage Factor obtained from the
sensors calibration sheet in PSI/digit.
The units of a digit are Hz2(10-3).
B = offset
Fx = f2Hz2(10-3), where f is frequency.
Instruction 28 measures period, T, of the
vibrating wire in milliseconds (ms) and returns a
measured value, X, of
X = 1/(T2(ms)2) = f2(10-6)Hz2
A multiplier of -1000 in Instruction 28 converts
the measurement to digits, as shown below.
-Fx = -X(-103) = -f2(10-3)Hz2
To calculate the multiplier, convert Geokon's
gage factor, G, to the desired units (i.e., feet of
2
water per digit) and multiply by -1000 digits/kHz .
TEMPERATURE CORRECTION
The temperature correction is applied as
follows.
PT = P + C (t1 - t0), where
= Pressure corrected for temperature, C
= Temperature coefficient, PSI/C
(from Geokon calibration sheet)
t0 & t1 = Initial and current temperatures, C.
PT
C
7-14
Temp. Coeff.
(psi/C)
0.0151
-0.0698
7-15
CR23X
02:
7-16
03:
Polynomial (P55)
1:
1
Reps
2:
1
X Loc [ Temp
]
3:
1
F(X) Loc [ Temp
4: -104.78
C0
5: 378.11
C1
6: -611.59
C2
7: 544.27
C3
8: -240.91
C4
9: 43.089
C5
04:
05:
06:
07:
08:
09:
Z=X+F (P34)
1:
1
2: -24
3:
3
Z=X*F (P37)
1:
3
2:
-.0698
3:
3
X Loc [ Temp_Comp ]
F
Z Loc [ Temp_Comp ]
Z=X+Y (P33)
1:
3
X Loc [ Temp_Comp ]
2:
2
Y Loc [ Pressure ]
3:
2
Z Loc [ Pressure ]
IF (X<=>F) (P89)
1:
5
X Loc [ Cmpile_Ck ]
2:
1
=
3:
0
F
4: 30
Then Do
Z=X+F (P34)
1:
2
2: 47.23
3:
4
X Loc [ Pressure ]
F
Z Loc [ Offset ]
Z=F (P30)
1:
1
2:
0
3:
5
F
Exponent of 10
Z Loc [ Cmpile_Ck ]
10:
End (P95)
11:
Z=X-Y (P35)
1:
4
2:
2
3:
6
PARAM.
NUMBER
DATA
TYPE
01:
02:
03:
2
2
2
04:
05:
4
4
06:
07:
08:
4
FP
FP
DESCRIPTION
Repetitions
Gain/output option
Single Ended Input
Channel
# Cycles to measure
Time out (0.01 sec, at
least the maximum
duration of the # of cycles
specified + 1 1/2 cycles.)
Destination input location
Multiplier
Offset
X Loc [ Offset ]
Y Loc [ Pressure ]
Z Loc [ Distance ]
Range
Code
1
2
3
4
mV
mV
mV
V
10
20
30
100
kHz
kHz
kHz
kHz
0x
1x
7-17
where:
C
= C1 + C2U + C3U
= D1 + D2U
= Ut - U 0
7-18
Coeff.
U0
Y1
Y2
* Y3
C1
C2
C3
* D1
D2
T1
T2
T3
T4
T5
Value
5.860253
-3970.348
-7114.265
102779.1
70.29398
6.610141
-119.2867
0.0308837
0.0
26.33703
0.8516985
21.80118
0.0
0.0
Entry
5.8603
-3970.3
-7114.3
102.78
70.294
6.6101
-119.29
30.884
0.0
26.337
0.85170
21.801
0.0
0.0
CR23X
CONNECTIONS
01:
IF (X<=>F) (P89)
1:
17
X Loc [ Comp_Chk ]
2:
1
=
3:
0
F
4:
1
Call Subroutine 1
02:
03:
04:
PROGRAM
End (P95)
01:
End Program
INPUT LOCATION LABELS:
1 Temp_us
2 Press_us
3 U0
4 Y1
5 Y2
6 Y3
7 C1
8 C2
9 C3
10 D1
11 D2
7-20
12 T1
13 T2
14 T3
15 T4
16 T5
17 Comp_Chk
18 plce_hold
19 Temp_C
20 Press_psi
21 Signature
INPUT LOCATIONS
1 Dew_Pnt_C
CR23X
CR10X
H
4H
4H
4L
4L
100
0.01%
4 to 20 mA
Sensor
GND
AG
CURS100
G
G
12V Power12V
Out
G
G
FIGURE 7.17-1 Wiring Diagram for CURS100 Terminal Input Module and 4 to 20 mA Sensor.
7-21
7-22
PROGRAM
*
01:
Table 1 Program
10.0
Execution Interval (seconds)
01:
02:
03:
04:
05:
Do (P86)
1: 10
8-1
06:
Sample (P70)
1: 1
Reps
2: 2
Loc [ 10smpl_mx ]
03:
04:
Maximum (P73)
1:
1
Reps
2:
5
Loc [ XX_mg_M3 ]
05:
06:
07:
08:
Sample (P70)
1:
1
2:
4
09:
If Flag/Port (P91)
1:
10
Do if Output Flag is High
(Flag 0)
2:
30
Then Do
10:
11:
End (P95)
INPUT LOCATIONS
1 Panl_Temp
2 10smpl_mx
11 Temp_i_#1
12 Temp_i_8
13 Temp_i_7
14 Temp_i_6
15 Temp_i_5
16 Temp_i_4
17 Temp_i_3
18 Temp_i_2
19 Temp_i_1
20 Temp_i
PROGRAM
*
01:
01:
02:
8-2
Table 1 Program
5.0
Execution Interval (seconds)
Volt (Diff) (P2)
1:
1
Reps
2:
25
5000 mV Slow 60 Hz
Rejection Range
3:
3
DIFF Channel
4:
5
Loc [ XX_mg_M3 ]
5:
10
Mult
6:
0
Offset
If time is (P92)
1:
0
Minutes (Seconds --) into a
2:
60
Interval (same units as
above)
3:
10
Set Output Flag High
Reps
Loc [ 3_Hr_max ]
INPUT LOCATIONS
1 max_i_2
2 max _i_1
3 max _i
4 3_Hr_ max
5 XX_mg_M3
PROGRAM
*
01:
01:
Table 1 Program
60.0
Execution Interval (seconds)
Pulse (P3)
1:
1
2:
1
3:
2
4:
1
5:
.254
6:
0
Reps
Pulse Input Channel
Switch Closure
Loc [ Precip_mm ]
Mult
Offset
02:
If time is (P92)
1:
0
Minutes (Seconds --) into a
2:
15
Interval (same units as above)
3:
10
Set Output Flag High
03:
04:
Totalize (P72)
1:
1
2:
1
05:
06:
Reps
Loc [ Precip_mm ]
IF (X<=>F) (P89)
1:
2
X Loc [ 15min_tot ]
2:
2
<>
3:
0
F
4:
30
Then Do
Set Active Storage Area (P80)
1:
1
Final Storage Area 1
2:
25
Array ID or Loc
[ _________ ]
07:
08:
Sample (P70)
1:
1
2:
2
09:
End (P95)
INPUT LOCATIONS
1 Precip_mm
2 15min_tot
Reps
Loc [ 15min_tot ]
8-3
CR23X
AM416
12V
G
C1
C2
1H
1L
EX1
2L
EX2
2H
FIGURE 8.3-1. AM416 Wiring Diagram For Thermocouple and Soil Moisture Block Measurements
PROGRAM
*
01:
01:
02:
03:
04:
05:
06:
8-4
Table 1 Program
600.0
Execution Interval (seconds)
Temp (107) (P11)
1:
1
Reps
2:
4
SE Channel
3:
1
Excite all reps w/Exchan 1
4:
1
Loc [ Ref_Temp ]
5:
1
Mult
6:
0
Offset
Do (P86)
1:
41
Do (P86)
1:
72
Pulse Port 2
6:
7:
8:
2-1
0
07:
08:
End (P95)
09:
Do (P86)
1:
51
5:
10:
BR Transform
1:
16
2:
18
3:
.1
Rf[X/(1-X)] (P59)
Reps
Loc [ Soil_#1 ]
Multiplier (Rf)
11:
If time is (P92)
1:
0
Minutes (Seconds --) into a
2:
60
Interval (same units as above)
3:
10
Set Output Flag High
12:
13:
Average (P71)
1:
33
Reps
2:
1
Loc [ Ref_Temp ]
INPUT LOCATIONS
1 Ref_Temp
2 TC_#1
3 TC_#2
4 TC_#3
5 TC_#4
6 TC_#5
7 TC_#6
8 TC_#7
9 TC_#8
10 TC_#9
11 TC_#10
12 TC_#11
13 TC_#12
14 TC_#13
15 TC_#14
16 TC_#15
17 TC_#16
18 Soil_#1
19 Soil_#2
20 Soil_#3
21 Soil_#4
22 Soil_#5
23 Soil_#6
24 Soil_#7
25 Soil_#8
26 Soil_#9
27 Soil_#10
28 Soil_#11
29 Soil_#12
30 Soil_#13
31 Soil_#14
32 Soil_#15
33 Soil_#16
03:
If time is (P92)
1: 0-Minutes (Seconds --) into a
2: 30
Interval (same units as above)
3: 10
Set Output Flag High
04:
Average (P71)
1: 1
Reps
2: 2
Loc [ TC_Temp ]
INPUT LOCATIONS
1 Ref_Temp
2 TC_Temp
PROGRAM
*
Table 1 Program
01:
0.5
Execution Interval (seconds)
01:
02:
*
01:
01:
02:
Table 1 Program
10.0
Execution Interval (seconds)
Pulse (P3)
1:
2
2:
1
3:
2
4:
10
5:
.254
6:
0
Reps
Pulse Input Channel
Switch Closure
Loc [ Precip_1 ]
Mult
Offset
Pulse (P3)
1:
1
2:
8
3:
2
4:
12
5:
.254
6:
0
Reps
Control Port
Switch Closure
Loc [ Precip_3 ]
Mult
Offset
8-5
03:
If time is (P92)
1:
0
Minutes (Seconds --) into a
2:
60
Interval (same units as above)
3:
10
Set Output Flag High
04:
05:
Totalize (P72)
1:
3
2:
10
01:
03:
04:
INPUT LOCATIONS
10 Precip_1
11 Precip_2
12 Precip_3
This example illustrates the use of the SDMA04 4 Channel Analog Output Multiplexer to
output 4 analog voltages to a strip chart.
While of questionable value because of current
requirements and strip chart reliability, some
archaic regulations require strip chart backup
on weather data. The SDM-A04 may be used
with the CR23X to provide an additional four
analog outputs to strip charts. The output
values in this example are wind speed, wind
direction, air temperature, and solar radiation.
Instruction 103 is used to activate the SDMA04. The (4) millivolt values to output must be
stored in adjacent Input Storage locations, the
first of which is referenced in Instruction 103.
The following program measures the sensors
every 5 seconds. The readings are moved to
another 4 locations and scaled to a 0 to 1000
millivolt output for the SDM-A04. Wind direction
is changed from a 0-360 degree input to output
representing 0 to 540 degrees. This conversion
is done in a subroutine which is described in the
next example.
The example also includes instructions to
output wind vector and average temperature
and solar radiation every hour.
PROGRAM
*
01:
8-6
Table 1 Program
5
Execution Interval (seconds)
Reps
Pulse Input Channel
Switch Closure, Output Hz
Loc [ WS
]
Mult
Offset
02:
Reps
Loc [ Precip_1 ]
Pulse (P3)
1:
1
2:
1
3:
22
4:
1
5:
1.789
6:
1
Reps
10 mV Slow Range
SE Channel
Loc [ Rs
]
Mult
Offset
05:
If time is (P92)
1:
0
Minutes (Seconds --) into a
2:
60
Interval (same units as above)
3:
10
Set Output Flag High
06:
07:
Do (P86)
1:
1
Call Subroutine 1
08:
09:
10:
If time is (P92)
1:
0
Minutes (Seconds --) into a
2:
60
Interval (same units as above)
3:
10
Set Output Flag High
11:
Table 3 Subroutines
01:
INPUT LOCATIONS
02:
1 WS
2 0_360_WD
3 Ta
4 Rs
5 WS_out
6 WD_out
7 Ta_out
8 Rs_out
IF (X<=>F) (P89)
1: 10
X Loc [ 0_540_WD ]
2: 3
>=
3: 270
F
4: 30
Then Do
03:
Do (P86)
1: 11
12:
Average (P71)
1:
2
Reps
2:
3
Loc [ Ta
04:
Else (P94)
05:
Do (P86)
1: 21
06:
End (P95)
8-7
07:
Z=X (P31)
1: 2
2: 10
X Loc [ 0_360_WD ]
Z Loc [ 0_540_WD ]
08:
IF (X<=>F) (P89)
1: 10
X Loc [ 0_540_WD ]
2: 4
<
3: 180
F
4: 30
Then Do
09:
If Flag/Port (P91)
1: 11
Do if Flag 1 is High
2: 30
Then Do
10:
Z=X+F (P34)
1: 10
X Loc [ 0_540_WD ]
2: 360
F
3: 10
Z Loc [ 0_540_WD ]
11:
Z=X (P31)
1: 10
2: 6
12:
End (P95)
13:
End (P95)
14:
End (P95)
X Loc [ 0_540_WD ]
Z Loc [ 0_540_out ]
02:
Do (P86)
1:
10
INPUT LOCATIONS
2 0_360_WD
6 0_540_out
10 0_540_WD
Table 1 Program
1
Execution Interval (seconds)
03:
04:
05:
Sample (P70)
1:
1
2:
1
06:
Reps
Loc [ Force_kg ]
IF (X<=>F) (P89)
1:
1
X Loc [ Force_kg ]
2:
3
>=
3:
25
F
4:
30
Then Do
07:
If Flag/Port (P91)
1:
21
Do if Flag 1 is Low
2:
30
Then Do
08:
Do (P86)
1:
11
09:
Z=F (P30)
1:
10
2:
0
3:
2
F
Exponent of 10
Z Loc [ Down_cnt ]
10:
End (P95)
11:
End (P95)
12:
IF (X<=>F) (P89)
1:
2
X Loc [ Down_cnt ]
2:
1
=
3:
0
F
4:
30
Then Do
13:
If Flag/Port (P91)
1:
11
Do if Flag 1 is High
2:
30
Then Do
14:
15:
Do (P86)
1:
21
16:
End (P95)
17:
Else (P94)
18:
Z=X+F (P34)
1:
2
2:
-1
3:
2
19:
End (P95)
A
01:
02:
03:
28
64
84
X Loc [ Down_cnt ]
F
Z Loc [ Down_cnt ]
to 10
10 sec.
to 30
30 sec.
to 100
1 min.
to 300
2 min.
to 1000
5 min.
and greater 10 min.
Output Interval
Loop #
1
2
3
4
5
6
INPUT LOCATIONS
1 Force_kg
2 Down_cnt
8-9
PROGRAM
*
01:
04:
Do (P86)
1:
1
07:
15:
Do (P86)
1:
1
10:
Do (P86)
1:
1
13:
Do (P86)
1:
1
Call Subroutine 1
End (P95)
Call Subroutine 1
20:
End (P95)
Table 3 Subroutines
01:
02:
03:
Do (P86)
1:
10
Call Subroutine 1
End (P95)
Do (P86)
1:
1
If Flag/Port (P91)
1:
21
Do if Flag 1 is Low
2:
31
Exit Loop if True
End (P95)
19:
Call Subroutine 1
End (P95)
Call Subroutine 1
Call Subroutine 1
End (P95)
Do (P86)
1:
1
16:
18:
Table 1 Program
10
Execution Interval (seconds)
03:
14:
04:
05:
Sample (P70)
1:
1
2:
1
06:
End (P95)
INPUT LOCATIONS
1 Level_Ft
Reps
Loc [ Level_Ft ]
TABLE 8.10-1. Example Sensor Description and CR23X Multiplier and Offset
DESCRIPTION
Horiz. Wind
Horiz. Wind
Vert. Wind
Air Temp.
Wet-bulb Temp.
Vap. Pressure
SYMBOL
U
V
W
Ta
Tw
e
SENSOR
CALIB
MEAS TYPE
prop
prop
prop
TC
TC
derived
18m/s/V
18m/s/V
22m/s/V
-
S.E.V.
S.E.V.
S.E.V.
TC DIFF.
TC DIFF.
-
MULT
OFFSET
.018m/s/mV
.018
.022
o
1.0 C
o
1.0 C
-
0.0
0.0
0.0
0.0
0.0
-
VARIANCES LOC
COVARIANCES LOC
CORRELATIONS LOC
M(W1)
M(U1)
M(V1)
M(Tal)
M(e1)
V(W1)
V(U1)
V(V1)
V(Tal)
V(e1)
CV(W1,U1)
CV(W1,V1)
CV(W1,Tal)
CV(W1,e1)
CR(W1,U1)
CR(W1,V1)
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
LEVEL 2 OUTPUTS
MEANS LOC
VARIANCES LOC
COVARIANCES LOC
M(W2)
M(U2)
M(V2)
M(Ta2)
M(e2)
V(W2)
V(U2)
V(V2)
V(Ta2)
V(e2)
CV(W2,U2)
CV(W2,V2)
CV(W2,Ta2)
CV(W2,e2)
CV(U2,V2)
CV(U2,Ta2)
CV(U2,e2)
CV(V2,Ta2)
CV(V2,e2)
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
8-11
PARAM
W1
U1
V1
W2
U2
V2
Ta2
Tw2
Ta1
Tw1
INPUT INPUT
CHAN LOC
INPUT
PARAM LOC
1
2
3
4
5
6
7
8
9
10
W1
U1
V1
Ta1
Tw1
W2
U2
V2
Ta2
Tw2
1
2
3
4
5
6
7
8
9
10
->Block->
move
PROGRAM
*
01:
Table 1 Program
1
Execution Interval (seconds)
01:
02:
8-12
Reps
5000 mV Slow Range
SE Channel
Loc [ W1
]
Mult
Offset
INPUT
PARA LOC
1
W1
2
U1
3
V1
9 ---------------------- Ta1
10 Separate moves e1
11
W2
12
U2
13
V2
14
Ta2
15
e2
1
2
3
4
5
11
12
13
14
15
03:
AM25TMultiplexer (P134)
1:
4
Reps
2:
11
10 mV, Fast Range
3:
1
Channel
4:
4
DIFF Channel
5:
21
Exchan 1, 60 Hz Reject
6:
1
Clock Control
7:
2
Reset Control
8:
2
Type E (Chromel-Constantan)
9:
16
Ref Temp (Deg. C) Loc [ Ref_Temp ]
10:
7
Loc [ Ta2_1 ]
11:
1.0
Mult
12:
0.0
Offset
04:
Z=X*F (P37)
1:
1
2:
1.2222
3:
1
X Loc [ W1
F
Z Loc [ W1
Z=X*F (P37)
1:
4
2:
1.2222
3:
4
X Loc [ W2
F
Z Loc [ W2
05:
06:
07:
]
]
]
]
X Loc [ Ta1
Z Loc [ W2
]
]
08:
09:
10:
If time is (P92)
1:
0
2:
30
3:
10
8-13
11:
12:
Covariance/Correlation (P62)
1:
5
No. of Input Locations
2:
5
No. of Means
3:
5
No. of Variances
4:
0
No. of Std. Dev.
5:
4
No. of Covariance
6:
2
No. of Correlations
7:
300
Samples per Average
8:
1
First Sample Loc [ W1
9:
20
Loc [ MEAN_W1 ]
Covariance/Correlation (P62)
1:
5
No. of Input Locations
2:
5
No. of Means
3:
5
No. of Variances
4:
0
No. of Std. Dev.
5:
9
No. of Covariance
6:
2
No. of Correlations
7:
300
Samples per Average
8:
11
First Sample Loc [ W2_i
9:
36
Loc [ mean_W2 ]
13:
14:
Sample (P70)
1:
35
2:
20
Reps
Loc [ mean_W1 ]
119
V(W1)
CV(W1,e1)
V(W2)
CV(W2,e2)
8-14
02
10
18
26
34
DAY
V(U1)
CR(W1,U1)
V(U2)
CV(U2,V2)
03
11
19
27
35
HRMIN
04
V(V1)
12
CR(W1,V1) 20
V(V2)
28
CV(U2,Ta2) 36
M(W1)
V(Ta1)
M(W2)
V(Ta2)
CV(U2,e2)
05
13
21
29
37
M(U1)
V(e1)
M(U2)
V(e2)
CV(V2,Ta2)
06
14
22
30
38
M(V1)
CV(W1,U1)
M(V2)
CV(W2,U2)
CV(V2,e2)
07
15
23
31
M(Ta1)
CV(W1,V1)
M(Ta2)
CV(W2,V2)
08
16
24
32
M(e1)
CV(W1,Ta1)
M(e2)
CV(W2,Ta2)
8-15
FIGURE 8.11-2. FFT Power Spectra Analysis of 0.25 and 1.25 Hz Signal
TABLE 8.11-1. FFT Real and Imaginary Results 0.25 and 1.25 Hz Signal
8-16
BIN #
0
.
1 ..
2
3
Hz
0
0.009766
0.019532
0.029298
FFT Ri
0.02303
0.01036
-0.00206
0
FFT Ii
0
0
0
0
22
23
24
25
26
.
27 ..
28
29
0.214852
0.224618
0.234384
0.24415
0.253916
0.263682
0.273448
0.283214
-0.00086
0.01096
-0.19328
0.59858
-0.65827*
0.26778
-0.02466
0.00086
-0.00009
0.0036
-0.06277
0.19439
-0.21391*
0.08709
-0.00796
0.00034
125
126
127
128
.
129 ..
130
131
1.22075
1.230516
1.240282
1.250048
1.259814
1.26958
1.279346
0
0.00009
0.00009
0*
0
-0.00009
0.00009
0.00069
-0.04342
0.23044
-0.37302*
0.23053
-0.0435
0.0006
511
4.990426
-0.00009
TABLE 8.11-2. FFT Magnitude and Phase Results 0.25 and 1.25 Hz Signal
BIN #
0
1
2
.
3 ..
Hz
0
0.009766
0.019532
0.029298
FFT Mi
0.02303
0.01036
0.00206
0
22
23
24
25
26
27
28
.
29..
0.214852
0.224618
0.234384
0.24415
0.253916
0.263682
0.273448
0.283214
0.00086
0.01154
0.20321
0.62935
0.69215*
0.28158
0.02592
0.00092
185.58
17.952
197.78
17.776
197.79*
17.801
197.68
21.646
125
126
127
128
129
130
.
131 ..
1.22075
1.230516
1.240282
1.250048
1.259814
1.26958
1.279346
0.00069
0.04342
0.23044
0.37302*
0.23053
0.0435
0.00061
90
270.11
89.979
270*
90
269.89
82.042
511
4.990426
0.00009
180
PROGRAM
Hz
0
FFT PSi
1.0859
22
23
24
25
26
27
28.
29..
0.214852
0.224618
0.234384
0.24415
0.253916
0.263682
0.273448
0.283214
0
0.49212
84.152
811.01
980.79*
162.4
1.4764
0
125
126
127
128
129
130.
131..
1.22075
1.230516
1.240282
1.250048
1.259814
1.26958
1.279346
0
3.9369
108.76
284.94*
108.76
3.9369
0
511
4.990426
FFT Pi
0
0
180
-99999
If Flag/Port (P91)
1:
11
Do if Flag 1 is High
2:
0
Go to end of Program Table
0
;The 2nd through 11th instructions are used to
;generate and combine the 1.25 and 0.25 Hz
;signals for the FFT.
8-17
02:
03:
04:
05:
06:
07:
Z=F (P30)
1:
0
2:
0
3: 1025
Z=F (P30)
1:
0
2:
0
3: 1026
13:
14:
Do (P86)
1:
10
F
Exponent of 10
Z Loc [ _________ ]
F
Exponent of 10
Z Loc [ _________ ]
15:
Resolution (P78)
1:
1
high resolution
16:
Sample (P70)
1:
1
2:
1--
Z=SIN(X) (P48)
1: 1025
2: 1027
17:
End (P95)
18:
Do (P86)
1:
11
X Loc [ _________ ]
Z Loc [ _________ ]
Z=SIN(X) (P48)
1: 1026
2: 1028
X Loc [ _________ ]
Z Loc [ _________ ]
Z=X*F (P37)
1: 1028
2:
2
3: 1028
X Loc [ _________ ]
F
Z Loc [ _________ ]
09:
10:
11:
Z=X+Y (P33)
1: 1027
2: 1028
3:
1--
X Loc [ _________ ]
Y Loc [ _________ ]
Z Loc [ #1
]
Z=X+F (P34)
1: 1025
2:
45
3: 1025
X Loc [ _________ ]
F
Z Loc [ _________ ]
Z=X+F (P34)
1: 1026
2:
9
3: 1026
X Loc [ _________ ]
F
Z Loc [ _________ ]
End (P95)
8-18
FFT (P60)
1:
10
2:
1
3:
0
4:
1
5:
1
*Table 3 Subroutines
Reps
Loc [ #1
*Table 2 Program
02:
0.0000
End Program
*
08:
A
01: 1030
02: 260
TABLE 8.11-4. FFT Bin Averaging Results from Simulated Ocean Buoy Wave Data
BIN #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FREQUENCY
0.00195
0.0039
0.00585
0.0078
0.00975
0.0117
0.01365
0.0156
0.01755
0.0195
0.02145
0.0234
0.02535
0.0273
0.02925
0.0312
0.03315
0.0351
0.03705
0.039
0.04095
0.0429
0.04485
0.0468
0.04875
FFT*0.1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
PROGRAM
BIN #
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
02:
FREQUENCY
0.0507
0.05265
0.0546
0.05655
0.0585
0.06045
0.0624
0.06435
0.0663
0.06825
0.0702
0.07215
0.0741
0.07605
0.078
0.07995
0.0819
0.08385
0.0858
0.08775
0.0897
0.09165
0.0936
0.09555
0.0975
Do (P86)
1:
1
FFT*0.1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0.226
0.527
6.246
21.52
123.1
Call Subroutine 1
03:
04:
Do (P86)
1:
10
05:
06:
Sample (P70)
1:
1
2:
284--
*
01:
Table 1 Program
2
Execution Interval (seconds)
8-20
If Flag/Port (P91)
1:
11
Do if Flag 1 is High
2:
30
Then Do
07:
End (P95)
08:
End (P95)
09:
Do (P86)
1:
21
Reps
Loc [ _________ ]
10:
11:
If Flag/Port (P91)
1:
12
Do if Flag 2 is High
2:
30
Then Do
04:
FFT (P60)
1:
11
2:
1
3:
3
4:
284
05:
5:
12:
13:
14:
.1
Sample (P70)
1:
1
2:
284--
Reps
Loc [ _________ ]
15:
End (P95)
16:
End (P95)
17:
Do (P86)
1:
22
*
02:
06:
Z=X+F (P34)
1:
1
2:
-.5
3:
2
X Loc [ #1
]
F
Z Loc [ _________ ]
Z=X*F (P37)
1:
2
2:
30
3:
2
X Loc [ _________ ]
F
Z Loc [ _________ ]
08:
09:
10:
Z=X+Y (P33)
1:
3
2:
4-3:
4--
Table 3 Subroutines
02:
03:
]
]
07:
Table 2 Program
0.0000 Execution Interval
(seconds)
Z=FRAC(X) (P44)
1:
1
X Loc [ #1
2:
1
Z Loc [ #1
Polynomial (P55)
1:
1
2:
1
3:
1
4:
.1
5:
99
6:
0
7:
0
8:
0
9:
0
Reps
X Loc [ #1
]
F(X) Loc [ #1
C0
C1
C2
C3
C4
C5
X Loc [ _________ ]
Y Loc [ _________ ]
Z Loc [ _________ ]
11:
12:
Z=SIN(X) (P48)
1:
4-2:
8--
13:
X Loc [ _________ ]
Z Loc [ _________ ]
End (P95)
8-21
14:
15:
F
Exponent of 10
Z Loc [ _________ ]
16:
17:
Z=X+Y (P33)
1:
8-2:
12
3:
12
18:
End (P95)
19:
Z=X*F (P37)
1:
12
2:
1
3:
284--
20:
End (P95)
21:
End (P95)
End Program
8-22
X Loc [ _________ ]
Y Loc [ _________ ]
Z Loc [ _________ ]
X Loc [ _________ ]
F
Z Loc [ _________ ]
22:
*
A
01: 2500
02: 270
End Table 3
Mode 10 Memory Allocation
Input Locations
Intermediate Locations
PURPLE
2H
PURPLE
3H
ASPTC
(UPPER)
RED
3L
ASPTC
(LOWER)
RED
2L
BLACK
RED
SWITCHED 12 V
RED
G
BLACK
Table 1 Program
20
Execution Interval (seconds)
06:
If time is (P92)
1:
40-Minutes (Seconds --) into a
2:
60
Interval (same units as above)
3:
49
Set Port 9 High
07:
02:
If time is (P92)
1:
0
Minutes (Seconds --) into a
2:
1
Interval (same units as above)
3:
30
Then Do
08:
If time is (P92)
1:
0
Minutes (Seconds --) into a
2:
60
Interval (same units as above)
3:
10
Set Output Flag High
03:
If Flag/Port (P91)
1:
49
Do if Port 9 is High
2:
30
Then Do
09:
10:
Average (P71)
1:
4
Reps
2:
1
Loc [ Ref_Temp ]
11:
End (P95)
12:
End (P95)
01:
01:
04:
05:
Do (P86)
1:
59
Z=X-Y (P35)
1:
3
2:
2
3:
4
X Loc [ Upper_TC ]
Y Loc [ Lower_TC ]
Z Loc [ del_TC ]
Input Locations
1 Ref_Temp
2 Lower_TC
3 Upper_TC
4 del_TC
8-23
8-24
Range Codes*
Fast
250 s
Integ.
60 Hz
Reject.
50 Hz
Reject.
10
11
12
13
14
15
20
21
22
23
24
25
30
31
32
33
34
35
Autorange***
10 mV
50 mV
200 mV
1000 mV
5000 mV
Resolution
Differential**
0.33
1.67
6.66
33.3
166
V
V
V
V
V
* See Measurements section for a full list and explanation of possible range codes.
** Differential measurement, resolution for single-ended measurement is twice value shown.
*** See autoranging precaution in Table 3.5-1.
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 ***
FUNCTION
This Instruction is used to measure voltage at a
single-ended input with respect to ground.
Output is in millivolts.
PARAM.
NUMBER
DATA
TYPE
01:
02:
03:
2
2
2
04:
05:
06:
FP
FP
DESCRIPTION
Repetitions
Range code (Table 9-1)
Single-ended channel
number for first
measurement
Input location for first
measurement
Multiplier
Offset
DATA
TYPE
01:
02:
03:
2
2
2
04:
05:
06:
FP
FP
DESCRIPTION
Repetitions
Range code (Table 9-1)
Differential channel
number for first
measurement
Input location for first
measurement
Multiplier
Offset
FUNCTION
This Instruction reads the voltage difference
between the high and low inputs of a differential
channel. Table 9-1 contains all valid voltage
ranges and their codes. Both the high and low
9-1
CR23X
20k
Pi
Pulse Channels
Maximum Input Voltage: 20 V
Control Ports
Maximum Input Voltage: 5.0 V
Pulse Channels
Minimum Pulse Width: 1.2 microsecond
Maximum Frequency: 25 kHz
(8 Bit Counter, 50% Duty Cycle,
0.015 execution interval)
Maximum Frequency: 400 kHz
(16 Bit Counter 50% Duty Cycle)
Lower Threshold: 1.5 V*
Upper Threshold: 3.5 V*
When a pulse channel is configured for
high-frequency pulse, there is an internal
100 kohm pull-up resistor to 5 V on the
pulse channel. This pull-up resistor
accommodates open-collector output
devices for high-frequency input.
9-2
Switch Closure
Pulse Channels
A switch closure is connected between
P1..P4 and analog ground. When the
switch is open, the CR23X pulls the
pulse channel to 5 V through a 100
kOhm impedance. When the switch is
closed, the pulse channel is pulled to
ground. The count is incremented
when the switch opens.
Minimum Switch Closed Time: 5 ms
Minimum Switch Open Time: 6 ms
Maximum Bounce Time: 1 ms open
without being counted
Control Ports
The switch closure is connected
between channels C5..C8 and the 5 V
terminal. When the switch is open, the
control port is pulled to ground through
an internal 100 kOhm resistor. When
the switch is closed, the control port is
at 5 V. The count is incremented when
the switch closes.
Maximum Frequency: 40 Hz
Minimum Switch Closed Time: 6 ms
Minimum Switch Open Time: 6 ms
High Precision Measurements
Maximum Program Execution
Interval: < 4.0 s
Minimum Frequency: > 0.25 Hz
Counter
Maximum
Reset
Input
Frequency (Hz) Frequency (kHz)
0.01
0.02
0.05
0.10
100
50
20
10
25.50
12.75
5.10
2.55
9-3
TABLE 9-3. Execution and Counter Reset Intervals and Maximum Input Frequencies
User
Programmed
Execution
Interval (s)
Counter
Reset
Interval (s)
Counter
Reset
Frequency (Hz)
Maximum
Input
Frequency (kHz)
0.01
0.02
0.03
0.04
0.05
0.10
0.15
0.80
1.0
0.01
0.02
0.01
0.02
0.05
0.10
0.05
0.10
0.10
100
50
100
50
20
10
20
10
10
25.5
12.75
25.5
12.75
5.10
2.55
5.10
2.55
2.55
9-4
Pulse Channels
Hz = counts / Execution Interval
Maximum Error (Hz) = [1/(Execution
Interval - 50 s)]
Control Ports
Hz = counts / measured time (0.5 s)
since previous measurement
Error if Execution Interval < 4.0 s
Maximum Error (Hz) =
2
(0.5 s)(Frequency)
Error if Execution Interval 4.0 s
Maximum Error (Hz) =
[1/Execution Interval]
Configuration
High Frequency Pulse
(8 bit counter)
Low Level AC
Switch Closure
High Frequency
(16 bit counter)
Low Level AC
(16 bit counter)
No Change
Long interval counts discarded
Long interval counts discarded/
Frequency (Hz) output
10 Hz reset
100 Hz reset
PARAM.
NUMBER
DATA
TYPE
01:
02:
2
2
03:
04:
05:
06:
FP
FP
DESCRIPTION
Repetitions
Pulse channel or
Control Port number for
first measurement
Configuration code
(from above table)
Input location for first
measurement
Multiplier
Offset
DATA
TYPE
01:
02:
03:
2
2
2
04:
05:
06:
07:
08:
09:
FP
FP
DESCRIPTION
Repetitions
Range code (Table 9-1)
Single-ended channel
number for first
measurement
Excitation channel
number (Table 9-2A)
Delay in hundredths of
a second
Excitation voltage
(millivolts)
Input location number
for first measurement
Multiplier
Offset
9-5
DATA
TYPE
01:
02:
03:
2
2
2
04:
05:
06:
07:
08:
FP
FP
DESCRIPTION
Repetitions
Range Code (Table 9-1)
Single-ended channel
number
Excitation channel
number (Table 9-2A)
Excitation voltage
(millivolts)
Input location number
for first measurement
Multiplier
Offset
9-6
DATA
TYPE
01:
02:
03:
2
2
2
04:
05:
06:
07:
08:
FP
FP
DESCRIPTION
Repetitions
Range code (Table 9-1)
Differential channel
number for first
measurement
Excitation channel
number (Table 9-2A)
Excitation voltage
(millivolts)
Input location number
for first measurement
Multiplier
Offset
PARAM.
NUMBER
DATA
TYPE
01:
02:
2
2
03:
04:
05:
06:
07:
08:
FP
FP
DESCRIPTION
Repetitions
Range code for both
measurements (Table
9-1)
Single-ended channel
number for first
measurement
Excitation channel
(Table 9-2A)
Excitation voltage
(millivolts)
Input location number
for first measurement
Multiplier
Offset
PARAM.
NUMBER
DATA
TYPE
01:
02:
03:
2
2
2
04:
05:
06:
4
4
07:
08:
09:
FP
FP
DESCRIPTION
Repetitions
Range code (Table 9-1)
Differential channel
number for first
measurement
Excitation channel number
(Table 9-2A)
Delay (0.01s)
Excitation voltage
(millivolts)
Input location number
for first measurement
Multiplier
Offset
9-7
PARAM.
NUMBER
01:
02:
DATA
TYPE
2
2
03:
04:
05:
06:
07:
08:
09:
FP
FP
DATA
TYPE
4
Error (C)
<1.0
<0.1
PARAM.
NUMBER
DATA
TYPE
01:
02:
2
2
03:
04:
05:
06:
FP
FP
DESCRIPTION
Repetitions
Single-ended channel
number of first
measurement
Excitation channel/
Integration (Table 9-3)
Input location for first
measurement
Multiplier
Offset
DESCRIPTION
Input location
9-8
Range (C)
-40 to +56
-24 to +48
FUNCTION
This instruction applies a 3.0 VAC excitation
across Campbell Scientific's Model 207
Temperature and RH Probe, makes a fast
single-ended measurement across a series
resistor, calculates the result with a 5th order
polynomial, and performs the required
temperature compensation before outputting
the result in % RH.
When measuring several probes, all the RH
elements should be connected sequentially.
The temperature values used to correct the RH
measurements should also be stored
sequentially to make use of the REP feature in
Instruction 11.
DATA
TYPE
01:
02:
2
2
03:
04:
Error (%RH)
4
1
05:
06:
07:
FP
FP
DESCRIPTION
Repetitions
First single-ended
channel for RH
measurement
Excitation channel
number
Input location for first
compensating
temperature
measurement (C)
Thermocouple Type
T (copper - constantan)
E (chromel - constantan)
K (chromel - alumel)
J (iron - constantan)
B (platinum - rhodium)
R (platinum - rhodium)
S (platinum - rhodium)
N (nickel - chromium)
X=0
X=8
X=9
Normal Measurement
TC input from A5B40 isolation
(uses 5 V range)
Output -99999 if out of common
mode range (Inst. 14 only)
9-9
Type T
Type E
Type K
Type J
10 mV
50 mV
200 mV
-200 to 227
-200 to 400
-----
-199 to 169
-240 to 675
-240 to 1000
-56 to 264
-56 to 1372
-----
-150 to 205
-150 to 422
-----
Voltage
Range
Type B
Type R
Type S
Type N
-50 to 1045
-50 to 1450
-200 to 333
-200 to 1240
10 mV
50 mV
PARAM.
NUMBER
01:
02:
03:
50 to 1260
50 to 1700
DATA
TYPE
2
2
2
04:
05:
06:
07:
08:
FP
FP
0 to 970
0 to 1450
DESCRIPTION
Repetitions
Range code (Table 9-1)
Single-ended channel
number for first TC
(when indexed (--),
becomes an input
location containing
voltage measurement)
Thermocouple type
code (Table 9-4)
Reference temperature
location
Destination input
location
Multiplier
Offset
9-10
DATA
TYPE
01:
02:
03:
2
2
2
04:
05:
06:
07:
08:
FP
FP
DESCRIPTION
Repetitions
Range code (Table 9-5, 9-1)
Differential channel
number for first TC
(when indexed (--),
becomes an input
location containing
voltage measurement)
Thermocouple type
code (Table 9-4)
Reference temperature
location
Destination input
location
Multiplier
Offset
FUNCTION
Send and receive serial data through the
CR23X control ports, see Appendix B for details
on using Instruction 15.
FUNCTION
This instruction takes the current time in
seconds into the minute, minutes into the day,
or hours into the year and does a modulo divide
(see Instruction 46) on the time value with the
number specified in the second parameter. The
result is stored in the specified input location.
Entering 0 or a number which is greater than
the maximum value of the time for the second
parameter will result in the actual time value
being stored.
DATA
TYPE
DESCRIPTION
01:
02:
03:
04:
05:
2
4
4
FP
FP
Repetitions
Input location of R/Ro
Input location of result
Multiplier
Offset
DATA
TYPE
4
DESCRIPTION
Input location number
for temperature
PARAMETER 1 CODES
Code
0
1
2
3
PARAM.
NUMBER
Time Units
Seconds into minute (maximum 60)
Minutes into current day (maximum
1440)
Hours into current year (maximum
8784)
Store yr,day,hr,min,sec into 5 input
locations (modulo divide not used)
DATA
TYPE
01:
02:
2
4
03:
DESCRIPTION
Time Code
Number to modulo
divide by
Input location number
DATA
TYPE
4
DESCRIPTION
Input location number
9-11
PARAM.
NUMBER
Function
Set port low
Set port high
Toggle port
Pulse duration 1 ms
Pulse duration 10 ms
Pulse duration 100 ms
Pulse duration 1 s
Configure as output
Configure as input
Leave unchanged
9-12
DATA
TYPE
01:
02:
DESCRIPTION
C8, C7, C6, C5 option
codes
C4, C3, C2, C1 option
codes
DATA
TYPE
2
4
DESCRIPTION
Control port
Input location of pulse
length in hundredths of
a second
DATA
TYPE
01:
02:
03:
04:
DESCRIPTION
Excitation channel
number (Table 9-2A)
Delay time in
hundredths of a second
that excitation is on
Delay time in hundredths
of a second after
excitation is turned off
Excitation voltage in
millivolts/Input location
DATA
TYPE
01:
02:
03:
2
2
04:
DESCRIPTION
Input channels per
scan (reps)
Range code
Single-ended or
differential channel for
first analog
measurements
Option, 4 digit code
ABCD
A
Trigger
0 - Trigger on 1st
analog channel
1 - Digital trigger
on Control Port #1
2 Same as 0, but
set Digital Control
Port #1 high when
trigger is met, low
when done
measuring
B
Trigger option
0 - Trigger
immediately
1 - Trigger if
above limit (high)
2 - Trigger if below
limit (low)
3 - Trigger on
rising edge
4 - Trigger on
falling edge
C Destination
0 - Input Storage
1 - CS I/O port
9600 baud
2 - CS I/O port
76,800 baud
05:
FP
06:
FP
07:
08:
FP
09:
10:
4
4
11:
FP
12:
FP
3 - CS I/O port
76,800 baud to
SM192/716
5 - CS I/O port
38.4 K
6 - RS-232 port
38.4 K
D Measurement
0 - Differential
measurement
1 - Single-ended
measurement
Scan interval (ms,
minimum 0.6666 x
reps, limited to 25 ms)
Number of scans (units
of 1000)
Number of samples
saved before trigger (not
used with serial output)
Trigger limit (mV,
unscaled measurement)
Excitation voltage (mV)
1st input location in
which to store data
Multiplier (not used with
serial output)
Offset (not used with
serial output)
DATA
TYPE
01:
02:
Option
0
Description
Calibrate only the active components;
do not store the results
Calibrate only the active components;
store the active components
Calibrate all components; store the
results
Do not calibrate; store active
components
1
2
3
C8 C7 C6 C5 C4 C3 C2 C1
128
64
32
16
Base 10 equivalent: 32 + 16 + 2 = 50
50 will be stored in the input location.
The mask is also base 2 representation; 1
indicates the port is to be read, 0 results in a 0
for the port regardless of the status of the port
(AND operation). For example, if 50 (see above
example) is entered for the mask, ports 2, 5,
and 6 are read. If only ports 4 and 5 are high,
the status will be 16 (port 4 is not read).
NOTE: Voltages in excess of 16 volts
applied to a control port can cause the
CR23X to malfunction.
DESCRIPTION
9-16
TABLE 9-7
PARAM.
NUM.
01:
02:
DATA
TYPE
4
4
DESCRIPTION
MASK (0-255)
INPUT LOCATION TO
STORE RESULT
DATA
TYPE
DESCRIPTION
Voltage
Gain
Minimum
1
Signal (pk-pk)
Maximum
1
Signal (pk-pk)
Minimum
Pulse Width
Maximum
2
Frequency
x4
1.0
500 mV
10.0 V
2.5 s
200 kHz
x3
5.0
40 mV
2.0 V
10 s
50 kHz
x2
20
5 mV
2.0 V
62 s
8 kHz
x1
100
2 mV
2.0 V
100 s
5 kHz
x = 0 Output Period in s
x = 1 Output frequency in Hz
1 - Signals must be centered around datalogger ground to trigger zero-crossing detector.
2 - Maximum frequency equals 1/(Twice Minimum Pulse Width) for 50% duty cycle signals.
9-17
1F
To single - ended
input
Sensor
with
DC
Vo s
offset
D1
D2
R
10k
Silicon diodes
such as 1N4001
DATA
TYPE
01:
02:
2
2
03:
DESCRIPTION
Repetitions
Output option/Range
code (Table 9-8)
Single-ended input
channel
04:
05:
4
4
06:
07:
08:
FP
FP
# Cycles to measure
Time out (0.01 sec, at
least the maximum
duration of the number
of cycles specified + 1
1/2 cycles.)
Destination input
location
Multiplier
Offset
DATA
TYPE
01:
02:
03:
04:
2
2
05:
06:
07:
08:
09:
10:
DESCRIPTION
Repetitions Hit C (--) to
skip repeat of
excitation
Single-ended channel
for first measurement
Excitation Channel
Start frequency of
sweep (100'S of Hz)
End frequency of
sweep (100'S of Hz)
# Cycles to measure (0
means none)
Delay before excitation
applied (0.01 sec units)
Input location (1/T2), T
in ms
FP
Multiplier
FP
Offset
PARAM.
NUMBER
DATA
TYPE
01:
02:
03:
04:
4
FP
05:
06:
07:
08:
09:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
FP
FP
FP
FP
FP
FP
FP
FP
FP
FP
FP
FP
FP
FP
FP
FP
FP
FP
FP
DESCRIPTION
Differential channel
number for first
measurement
Excitation channel
number
Input location number
Pressure Range (psig)
(enh. par. 1)
Enhanced Parameter 2
Enhanced Parameter 3
Enhanced Parameter 4
Enhanced Parameter 5
Enhanced Parameter 6
Enhanced Parameter 7
Enhanced Parameter 8
Enhanced Parameter 9
Enhanced Parameter 10
Enhanced Parameter 11
Enhanced Parameter 12
Enhanced Parameter 13
Enhanced Parameter 14
Enhanced Parameter 15
Enhanced Parameter 16
Enhanced Parameter 17
Enhanced Parameter 18
Enhanced Parameter 19
Enhanced Parameter 20
9-19
DATA
TYPE
01:
02:
03:
04:
05:
06:
07:
08:
09:
4
4
FP
FP
Execution Time:
DESCRIPTION
Address, Base 4
(00..33)
*Input config; channels
8,7,6,5
*Input config; channels
4,3,2,1
**Function; channels
8,7,6,5
**Function; channels
4,3,2,1
***Averaging option
Loc
Mult
Offset
2.3 ms + 1.65 ms/value +
averaging interval if used
9-20
none
period in ms
frequency in kHz
time since previous channel's
edge in ms
time since channel 1 in ms
counts on channel 2 since
channel 1, linear interpolation
frequency in kHz (low resolution)
counts
counts on Channel 2 since
Channel 1, no interpolation
9999-
DATA
TYPE
01:
02:
2
2
03:
04:
05:
06:
07:
4
FP
FP
DESCRIPTION
Reps (# of channels)
Starting Address, Base 4
(00..33)
Function Option
(0=State, 1=Duty,
2=Counts, 3=Signature)
SDM-SW8A Starting
Channel (1..8)
Starting input location
Mult
Offset
PARAM.
NUMBER
DATA
TYPE
01
02
2
2
03
DESCRIPTION
Reps (# of outputs)
Starting Address, Base 4
(00..33)
Starting input location
C1 is Data line
C2 is Clk/Hand Shake line
C3 is SDE (Enable) line
Input locations reads: 1 per repetitions
*** 104 SDM-CD16AC ***
FUNCTION
Instruction 104 is used to control the SDMCD16AC or the SDM-CD16. The SDMCD16AC Control Port Expansion Module has 16
digital control ports with drivers. Each port can
be controlled by a datalogger or controlled
manually with an override toggle switch. Each
port can be thought of as a switch to ground;
closed when active, open when inactive. The
primary function is to activate AC powered
external relays, solenoids, or resistive loads
under datalogger control.
The SDM-CD16AC is a synchronously
addressed datalogger peripheral. Datalogger
control ports 1, 2 and 3 are used to address the
SDM-CD16AC then clock out the desired state
of each of the 16 control ports. Up to 16 SDMCD16AC's may be addressed, making it
possible to control a maximum of 256 ports
from the first three datalogger control ports.
For each Rep, the 16 ports of the addressed
SDM-CD16AC are sent according to 16
sequential input locations starting at the input
location specified in parameter 3. Any non-zero
value stored in an input location activates
(connects to ground) the associated SDMCD16AC port. A value of zero (0) deactivates
the port (open circuit). For example, assuming 2
Reps and a starting input location of 33,
OUTPUT 1 through 16 of the first SDM-CD16AC
are set according to input locations 33 through
48, and OUTPUT 1 through 16 of the second
SDM-CD16AC are set according to input
locations 49 through 64. See the SDM-CD16AC
manual for detailed instructions and examples.
9-21
PARAM.
NUMBER
DATA
TYPE
01:
02:
03:
DESCRIPTION
Reps (# of CD16AC
modules sequentially
addressed)
Starting Address, Base 4
(00..33)
Starting input location
DATA
TYPE
01:
02:
03:
04:
05:
06:
2
2
4
FP
FP
DESCRIPTION
Address (0-9, 10126)
Command (Table 9-8)
Control Port (C5-C8)
Input Loc.
Mult
Offset
9-22
ENTRY
COMMAND
DESCRIPTION
Initiate Measurement
0 --
Initiate Concurrent
Measurement
1..9
M1..M9
Additional
Measurement
commands specified
by the SDI-12 sensor
10
Initiate Verify
sequence
11
Send Identification
Command 0: the CR23X will issue the M SDI12 measurement command and wait for the
sensor to complete its measurement before
requesting the data and proceeding to the next
instruction in the program table. If Instruction
105 is placed in Table 1, program execution will
be suspended during this delay. If it is placed in
Table 2, instructions in Table 1 may be
executed during this delay.
Command 0--: this command enables
concurrent measurements with SDI-12 sensors
that support this feature. With concurrent
measurements, the CR23X can initiate
measurements with multiple SDI-12 sensors
without having to wait for each individual
sensor to complete its sequence before
proceeding to the next sensor. The CR23X will
issue the C SDI-12 concurrent measurement
command and wait for the sensor response,
which includes the amount of time in seconds it
will take for the sensor to make the
measurement. The CR23X will not wait for the
data: rather, it will continue executing the table.
The next time the instruction is executed, the
CR23X will check the elapsed time. If the
elapsed time is equal to or greater than that
given by the sensor, the CR23X will get the data
from the SDI-12 sensor. In the following
02:
;ASCII character A
;ASCII character 0
;Send first value
;Send second value
;End of command string
9-23
PARAMETER 3. PORT
Enter the CR23X control port (C5-C8)
connected to the SDI-12 sensor data line. The
default port is C8.
PARAMETER 4. INPUT LOCATION
Input location where the returned data is stored.
If multiple values are returned from the SDI-12
sensor they are stored in sequential input
locations beginning at the specified location.
ERRORS
If the CR23X receives either an incorrect
response or no response from an SDI-12
sensor, the CR23X will retry the operation. If
after retries a valid response has not been
received, the CR23X will store a -99999 in the
input location specified in Parameter 4. Only
the first location will be altered. Sequential
locations will contain values from previous
measurements.
TRANSPARENT MODE
The SDI-12 transparent mode is used to
communicate directly with an SDI-12 sensor. A
common application of the transparent mode is
to verify proper operation of the SDI-12 sensor.
A computer or terminal is required to use the
transparent mode; the keyboard cannot be
used. Transparent mode is entered while the
computer is in telecommunications with the
SDI-12 recorder CR23X (at the asterisk ''
prompt). Enter 'pX' at the asterisk prompt,
where 'p' is the Control Port number (5-8)
attached to the SDI-12 data line. The CR23X
responds with entering SDI-12. Any SDI-12
command preceded with the sensor address
and followed with an exclamation point '!' may
then be entered. For example, entering '0I!'
would request identification from an SDI-12
sensor addressed at 0.
The SDI-12 prompt will not appear until the
CR23X finishes executing all program tables.
While in transparent mode, scheduled tables in
the CR23X will not execute. Transparent mode
ends and the * prompt is returned when an
invalid SDI-12 command (e.g., a blank line) is
entered, if the SDI-12 sensor doesnt respond
within the time-out period following a valid
command (approximately 1/3 second), or if the
user does not enter a command before the
mode times out (approximately 35 seconds).
Security must be unlocked to level 2 before the
Transparent mode is enabled.
9-24
PARAM.
NUMBER
PARAMETER 3. LOCATION
DATA
TYPE
01:
02:
4
4
03:
DESCRIPTION
ADDRESS (0-9, 10-126)
TIME/VALUES
ttnn: tt=time(sec)
nn=no. values
LOCATION starting
loc. for values
PARAMETER 1. ADDRESS
PARAMETER 2. TIME/VALUES
Enter the time in seconds required for the
sensor CR23X to complete subroutine 98
followed by the number of input locations to be
returned to the SDI-12 recorder. The format is
ttnn where tt specifies the time in seconds and
nn (maximum 63) is the number of values from
Input Locations to be sent.
Enter a time of 0 to transfer the values already
stored in input locations. With a time of zero,
the remaining instructions in Subroutine 98 are
not executed.
The actual time to complete subroutine 98 is the
time required to execute all instructions from
FUNCTION
Instruction 113 communicates with the
SDM-SI04 serial input multiplexer. See the
SDM-SI04 manual for directions.
*** 114 SET TIME ***
PARAM.
NUMBER
DATA
TYPE
01:
02:
03:
04:
05:
FP
FP
DESCRIPTION
UDG01 SDM address
(Base 4)
Input location number
for the air temperature
Input location number
for the distance
Multiplier
Offset
FUNCTION
Instruction 114 can be used to set the CR23X
clock from values in input locations.
PARAM.
NUMBER
DATA
TYPE
01:
02:
DATA
TYPE
01:
02:
DESCRIPTION
SDMX50 Address
(Base 4)
SDMX50 channel
number
9-26
DESCRIPTION
Option code:
0 set time with
hr,min,sec with
values in 3 input
locations.
1 set time with
day,hr,min,sec
using 4 input
locations.
2 set time with
yr,day,hr,min,sec
using 5 input
locations.
First Input location
number
PARAM.
NUMBER
01:
DATA
TYPE
4
Option Codes:
DESCRIPTION
Bit period, 10s units
DATA
TYPE
4
0
1
2
3
4
5
6
7
8
DESCRIPTION
Input location number
FUNCTION
Excites a vibrating wire sensor with a swept
frequency (from low frequency to high), then
measures the response period and calculates
2
1/T , where T is the period in ms. Excitation is
normally provided for each repetition. As an
option, a single excitation can be made prior to
all repetitions of the measurement. A AVW1 or
AVW4 Vibrating Wire Interface is required for
these sensors, but it may have trouble reading
the low frequencies.
T - Amount of Time to sweep between the
specified frequencies
N - Number of steps to use when sweeping
from the Starting Frequency to the
Ending Frequency
2
PARAM
NUMBER
DATA
TYPE
01:
02:
DESCRIPTION
Option Code (Index (--) to
reset error count after
reading)
Input Location
9-27
1
2
3
4
2
5
20
500
PARAM
NUMBER
DATA
TYPE
01:
02:
03:
2
2
04:
05:
2
4
06:
07:
4
4
08:
09:
4
4
10:
11:
4
4
12:
13:
14:
4
FP
FP
mV
mV
mV
mV
10
20
30
100
kHz
kHz
kHz
kHz
DESCRIPTION
Repetitions (Index (- - )
to skip repeat of
excitation)
Range Code (Table 9-10)
Single-ended channel
for first measurement
EX CHAN
Starting Frequency
(HZ)
Ending Frequency (HZ)
T (sweep, Units = 1
msec)
N (Number of steps)
Delay after excitation
before measurement
(Units = 0.01 sec)
CYCLES to measure
DELAY between reps
(Units = 0.01 sec)
First Input Location
Multiplier
Offset
DATA
TYPE
01:
FP
DESCRIPTION
milliseconds
Minimum = 0.2 for X1
Range codes, else
Minimum range is 0.1.
Maximum = 6.0 ms.
0 = default = 450
milliseconds
Description
mA
Source
(+V)
mA
Sink
(-V)
01 - 02
15
11 - 12
15
15
Port
Option
PARAM.
NUMBER
DATA
TYPE
01:
02:
DESCRIPTION
Option / CAO Channel
Number
Input Location number
of analog output
magnitude (mV)
06:
07:
08:
2
2
2
09:
10:
11:
12:
FP
FP
02:
03:
04:
05:
DATA
TYPE
2
2
2
2
2
9-29
This is a blankpage.
9-30
PARAM.
NUMBER
01:
DATA
TYPE
4
DESCRIPTION
Destination input
location
[Z]
*** 33 X + Y ***
FUNCTION
Add X to Y and place result in a third input location.
PARAM.
NUMBER
DATA
TYPE
01:
Input location of X
[X]
02:
Input location of Y
[Y]
03:
DATA
TYPE
FP
2
4
DESCRIPTION
Mantissa
[F]
n (Exponent of 10)
Destination for input
location
[Z]
1
DESCRIPTION
DATA
TYPE
02:
Destination input
location
[Z]
*** 32 Z = Z + 1 ***
FUNCTION
Add 1 to the current value in the specified input
location.
DESCRIPTION
01:
Input location of X
[X]
02:
FP
Fixed value
[F]
03:
01:
FUNCTION
Add F to X (where F is a fixed floating point
number) and place the result in an input location.
PARAM.
NUMBER
FUNCTION
Copy data from one input location to another.
DATA
TYPE
*** 34 X + F ***
*** 31 Z = X ***
PARAM.
NUMBER
DESCRIPTION
*** 35 X - Y ***
FUNCTION
Subtract Y from X and place the result in an
input location.
PARAM.
NUMBER
DATA
TYPE
DESCRIPTION
01:
Input location of X
[X]
02:
Input location of Y
[Y]
03:
1
10-1
PARAM.
NUMBER
*** 36 X * Y ***
FUNCTION
Multiply X by Y and place the result in an input
location (Z).
PARAM.
NUMBER
DATA
TYPE
DESCRIPTION
01:
Input location of X
02:
DESCRIPTION
01:
Input location of X
[X]
02:
Input location of Y
[Y]
03:
DATA
TYPE
*** 37 X * F ***
[X]
DATA
TYPE
DESCRIPTION
FUNCTION
Multiply X by F (where F is a fixed multiplier)
and place the result in an input location.
01:
Input location of X
02:
PARAM.
NUMBER
DATA
TYPE
4
Input location of X
[X]
02:
FP
Fixed value
[F]
03:
FUNCTION
Divide X by Y and place the result in an input
location. Division by 0 will cause the result to be
set to the maximum CR23X number (99999).
DATA
TYPE
DESCRIPTION
Input location of X
[X]
02:
Input location of Y
[Y]
03:
FUNCTION
Raise the exponential (EXP) base e to the X
power and place it in an input location.
DATA
TYPE
DESCRIPTION
01:
Input location of X
02:
[X]
01:
PARAM.
NUMBER
*** 38 X / Y ***
PARAM.
NUMBER
DESCRIPTION
01:
[X]
FUNCTION
Take the inverse of X and place the result in an
input location. If X=0, 99999 will be given as
the result.
PARAM.
NUMBER
DATA
TYPE
DESCRIPTION
01:
Input location of X
02:
[X]
PARAM.
NUMBER
DATA
TYPE
4
Input location of X
[X]
02:
FUNCTION
Take the fractional (FRAC) value (i.e., the noninteger portion) of X and place the result in an
input location.
DATA
TYPE
4
Input location of X
02:
[X]
DATA
TYPE
DESCRIPTION
01:
Input location of X
02:
Input location of X
[X]
02:
FP
Fixed divisor
[F]
03:
*** 47 XY ***
PARAM.
NUMBER
DATA
TYPE
[X]
DESCRIPTION
01:
Input location of X
[X]
02:
Input location of Y
[Y]
03:
DESCRIPTION
01:
FUNCTION
Raise X to the Y power and place the result in
an input location.
PARAM.
NUMBER
DESCRIPTION
01:
DESCRIPTION
01:
DATA
TYPE
DATA
TYPE
DESCRIPTION
01:
Input location of X
02:
[X]
PARAM.
NUMBER
PARAM.
NUMBER
DATA
TYPE
DESCRIPTION
01:
Swath
02:
03:
[SWATH]
1 or 2
DATA
TYPE
4
Swath
02:
[SWATH]
10-4
DESCRIPTION
01:
4(--)*
Swath
02:
03:
[SWATH]
DATA
TYPE
DESCRIPTION
01:
Reps (REPS)
02:
03:
04:
DESCRIPTION
01:
03:
DATA
TYPE
DATA
TYPE
DESCRIPTION
01:
02:
FP
Multiplier 1
[A1]
03:
FP
Offset 1
[B1]
04:
FP
Multiplier 2
[A2]
05:
FP
Offset 2
[B2]
06:
FP
Multiplier 3
[A3]
07:
FP
Offset 3
[B3]
08:
FP
Multiplier 4
[A4]
09:
FP
Offset 4
[B4]
PARAM.
NUMBER
DATA
TYPE
DESCRIPTION
01:
Repetitions
02:
03:
04:
FP
C0 coefficient
[C0]
FUNCTION
Executes a "block move" of data in input
locations. Parameters specify the number of
values to move, the source, source step,
destination, and destination step. The "step"
parameters designate the increment of the
source and destination input locations for each
value that is moved. For example, a "source
step" of 2 and a "destination step" of 1 will move
data from every other input location to a
contiguous block of input locations.
05:
FP
C1 coefficient
[C1]
06:
FP
C2 coefficient
[C2]
07:
FP
C3 coefficient
[C3]
08:
FP
C4 coefficient
[C4]
09:
FP
C5 coefficient
[C5]
PARAM.
NUMBER
FUNCTION
Calculate saturation vapor pressure (over water
SVPW) in kilopascals from the air temperature
(C) and place it in an input location. The
algorithm for obtaining SVPW from air
temperature (C) is taken from: Lowe, Paul R.:
1977, An approximating polynomial for
computation of saturation vapor pressure, J.
Appl. Meteor, 16, 100-103.
DATA
TYPE
DESCRIPTION
01:
Number of values to
move
02:
03:
Step of source
04:
05:
Step of destination
[REPS]
DATA
TYPE
DESCRIPTION
01:
02:
Destination input
location for saturated
vapor pressure
[VP or Z]
10-5
DATA
TYPE
4
DATA
TYPE
DESCRIPTION
01:
Repetitions
[REPS]
02:
03:
04:
FP
Weighting function, W
[W]
FUNCTION
This instruction is used to aid in the conversion
of a ratiometric Bridge measurement by
obtaining the value for Rs which is equivalent to
Rf[X/(1-X)], where X is the value derived by the
standard CR23X Bridge Measurement
Instructions (with appropriate multiplier and
offset, Section 13.5) and Rf represents the
MULTIPLIER value. The result of Instruction 59
is stored in the same location that X was.
03:
04:
Destination input
location for vapor
pressure
[VP or Z]
1
10-6
DESCRIPTION
Input location of
atmospheric pressure
in kilopascals
[PRESSURE]
02:
PARAM.
NUMBER
DATA
TYPE
DESCRIPTION
01:
Repetitions
02:
03:
FP
Multiplier (Rf)
[REPS]
[MULT]
1 per repetition
DATA
TYPE
2
DESCRIPTION
Log base 2 of N, where
N is the number of
samples in the original
data; e.g., this
parameter is 11 for
2048 samples or 12 for
4096 samples
(maximum).
02:
03:
04:
05:
FP
FFT Option
0X = Power Spectrum
1X = Real & Imaginary
2X = Magnitude & Phase
X0 = No Taper
X1 = Taper
Log base 2 of the number
of adjacent bins to
average; e.g., this
parameter is 3 for
averaging 8 adjacent bins.
Input location containing
the first value in the original
time series. After this
program has executed, this
location will contain the first
spectral bin or bin average
of the result.
Multiplier for scaling
FFT results.
10-7
10-8
Ri = Mi * cos Pi
[2]
POWER SPECTRUM
The result of the FFT when the power spectrum
option is selected is N/2 bins of spectral energy
(PSi) representing frequencies from 0 Hz to 1/2
the sampling frequency. The value of i varies
from 1 to N/2. The result in each bin i, is related
to the magnitude (Mi) of the wave in the
following manner:
Ii = Mi * sin Pi
[3]
PSi = 2*N*(Mi*Mi)
[4]
Pi = arctan (Ii/Ri)
[5]
[6]
[7]
PSi = F*T*(Ui*Ui)
[8]
10-9
BIN FREQUENCY
The band width or the frequency covered by
each averaged bin is equal to FA/N where F is
the sample frequency in Hz (1/scan interval in
seconds) and A is the number of bins being
averaged.
The frequency (fi) of any given averaged bin i
where i ranges from 1 to (N/2A)-1 is given by the
following equation:
i-1 * F * A / N < fi < i * F * A / N
POWER SPECTRUM
The result of the FFT with A bins averaged, are
(N/2A)-1 bins of average spectral energy (APSn)
representing frequencies from 0 Hz to 1/2 the
sampling frequency. The value of i varies from
1 to (N/2A)-1. The results are found in
consecutive input locations starting with the first
one specified by Parameter 4. The value for
average bin n (APSn) is related to the spectral
bin values (PSi see previous section) by the
following equation:
[9]
APSn=( PSi+0.5(PSnA-A/2+PSnA+A/2))/A
[10]
1
2
3
4
5
6
7
8
9
10
11
12
DC
1/1024
2/1024
3/1024
4/1024 ------------------------1
5/1024
6/1024
7/1024
8/1024 ------------------------2
9/1024
10/1024
11/1024
. . .
502/1024
503/1024
504/1024 -------------------- 126
505/1024
506/1024
507/1024
508/1024 -------------------- 127
509/1024
510/1024
511/1024
Averaged in Groups of 4
AVERAGED
LOC.
REPRESENTATIVE
BIN NO.
FREQUENCY
4/1024 or 1/256
8/1024 or 2/256
126
504/1024 or 126/256
127
508/1024 or 127/256
DATA
TYPE
DESCRIPTION
01:
02:
PARAM.
NUMBER
DATA
TYPE
DESCRIPTION
01:
02:
03:
Number of variances
desired
04:
Number of standard
deviations desired
05:
Number of covariances
desired
06:
Number of correlations
desired
07:
FP
Number of input
samples in averaging
period
08:
09:
TABLE 10-2. Maximum Number of Outputs and Output Order for K Input Values.
(The output order flows from left to right and from top to bottom)
INPUTS:
TYPE
MAX NO.
OUTPUTS
X1
X2
X3
X4
(1st)
(2nd)
(3rd)
OUTPUTS
(4th)
.....
XK
(Kth)
Means
M(X1)
M(X2)
M(X3)
M(X4)
.....
M(XK)
Variances
V(X1)
V(X2)
V(X3)
V(X4)
.....
V(XK)
Std. Deviation
SD(X1)
SD(X2)
SD(X3)
SD(X4)
.....
SD(XK)
Covariance
(K/2)(K-1)
CV(X1,X2)
CV(X1,X3)
CV(X2,X3)
CV(X1,X4)
CV(X2,X4)
CV(X3,X4)
.....
.....
.....
...
..
.
CV(X1,XK)
CV(X2,XK)
CV(X3,XK)
.
.
.
CV(XK-1,XK)
Correlation
Coefficient
(K/2)(K-1)
CR(X1,X2)
CR(X1,X3)
CR(X2,X3)
CR(X1,X4)
CR(X2,X4)
CR(X3,X4)
.....
.....
.....
...
..
.
CR(X1,XK)
CR(X2,XK)
CR(X3,XK)
.
.
.
CR(XK-1,XK)
SYMBOL
DEFINITION
M(XK)
V(XK)
SD(XK)
CV(XK,X1)
CR(XK,X1)
INSTRUCTION PROCESSING
The CV/CR Instruction contains 3 separate
processing phases:
1. Input Processing
2. Averaging Period Processing
3. Output Processing
The Input Processing phase is where new input
values are received, the necessary squares or
cross products formed, and the appropriate
summations calculated as required by the
desired final output. The rate at which the
measurements can be made, the input values
ordered, and the input processing phase
completed without interruption determines the
maximum rate of execution (see Execution
Time).
10-13
DATA
TYPE
2
EXECUTION TIME
If K, S, and Q are defined as in the previous
section, the execution time of the COV/CORR
Instruction in milliseconds can be approximated
by:
T(ms) = 1.1K + 0.5S + 0.9Q + 1.8
When evaluating how frequently input samples
can be processed by the COV/CORR Instruction
(i.e., determining the minimum program table
execution interval), the time required to make
the measurements and order the input values
must be added to the COV/CORR execution
time. Two alternatives exist for the
measurement portion of the programming. The
fastest method is to group as many sensors as
possible into the fewest measurement
instructions, ignoring the Input location order
required by the COV/CORR Instruction. After
the measurements are made, use "move"
instructions (i.e., 31 and 54) to obtain the proper
input order. The slower alternative is to order
separate measurement instructions directly as
required by the COV/CORR Instruction. While
avoiding "move" instructions, this approach uses
more measurement instructions. The reason the
first method is in general faster is that less
overhead time is required in going from one
measurement to another within a single
instruction (using the "repetitions" feature) than
in going from one measurement instruction to
another.
In many situations, the CR23X must perform
measurement and processing tasks in addition
to those associated with the COV/CORR
Instruction. Uninterrupted operation of the
COV/CORR Instruction is assured by entering it
in Program Table 1 (highest priority) and placing
the additional tasks in Program Table 2.
A covariance correlation example is given in
Section 8.
10-14
DESCRIPTION
Depends upon preceding
instruction. Following
Instruction 97 RF IDs
and Phone No. 1 digit at
a time, 32 Between RF
IDs, 70 after the last RF
ID, 32 and 84 Between
RF and DC112 Phone,
and 13 To END.
Following Instruction 98
(255 character limit)
Base 10 value of ASCII
character (Appendix E)
00 TO END.
0
DATA
TYPE
DESCRIPTION
Y2
* Y3
C1
C2
C3
* D1
D2
T1
T2
T3
T4
T5
-7114.265
102779.1
70.29398
6.610141
-119.2867
0.0308837
0.0
26.33703
0.8516985
21.80118
0.0
0.0
-7114.3
102.78
70.294
6.6101
-119.29
30.884
0.0
26.337
0.85170
21.801
0.0
0.0
01:
02:
Destination Loc:
o
Temp( C), Pressure(psi),
Signature
Value
5.860253
-3970.348
Entry
DATA
TYPE
DESCRIPTION
01:
02:
03:
04:
05:
06:
07:
08:
09:
FP
FP
FP
FP
FP
FP
FP
FP
4
Param. to be entered
"
"
"
"
"
"
"
Starting input location
5.8603
-3970.3
10-15
PARAM.
NUMBER
01:
02:
03:
DATA
TYPE
DESCRIPTION
4
4
4
+y
-x
+x
270
90
FUNCTION
This instruction is used in conjunction with a
Dynamax, Inc. Stem Flow Gage. It processes
four voltages measured by instruction 2. See
Appendix F for information on Instruction 67.
Input locations altered: 2 or 6
-y
180
+90
x/y > 0
x/y < 0
-90
10-16
DATA
TYPE
DESCRIPTION
01:
Repetitions
02:
03:
Sensor/Output 2 digits:
AB
A Sensor type:
0 = Speed and
Direction
1 = East and North
B
04:
05:
Output option:
0 S, 1, (1)
1 S, 1
2 S, U, u, (u)
First wind speed input
location no. (East wind
speed)
First wind direction
input location no.
(North wind speed)
where
Ux=(sin i)/N
Option 0:
Mean horizontal wind speed, S.
Unit vector mean wind direction, 1.
Standard deviation of wind direction, (1).
Standard deviation is calculated using the
Yamartino algorithm. This option complies
with EPA guidelines for use with straightline Gaussian dispersion models to model
plume transport.
Uy=(cos i)/N
or, in the case of orthogonal sensors
Ux=((Uei/Ui))/N
Uy=((Uni/Ui))/N
2
2 1/2
Option 1:
Mean horizontal wind speed, S.
Unit vector mean wind direction, 1.
where,
=[1-((Ux) +(Uy) )]
2
2 1/2
Option 2:
2 1/2
U=(Ue +Un )
where for polar sensors:
2 1/2
Si=(Uei +Uni )
11-2
Un=(Uni)/N
(u)=81(1-U/S)
1/2
DATA
TYPE
4
4
Outputs Generated:
DESCRIPTION
Repetitions
Starting input location no.
1 for each repetition
DATA
TYPE
DESCRIPTION
01:
Repetitions
PARAM.
NUMBER
02:
01:
Repetitions
02:
Time of minimum
(optional)
03:
Outputs Generated:
1 per repetition
DATA
TYPE
DESCRIPTION
01:
Repetitions
02:
Outputs Generated:
1 per repetition
Options
00
01
10
11
PARAM.
NUMBER
DATA
TYPE
DESCRIPTION
01:
Repetitions
02:
Time of maximum
(optional)
03:
Outputs Generated:
1 per repetition
(1 or 2 additional outputs per repetition with time
option)
DATA
TYPE
DESCRIPTION
Outputs Generated:
1 per repetition
(1 or 2 additional outputs per repetition with time
option)
*** 75 STANDARD AND WEIGHTED ***
VALUE HISTOGRAM
FUNCTION
Processes input data as either a standard
histogram (frequency distribution) or a weighted
value histogram.
The standard histogram outputs the fraction of
the Output Interval that the value in a specified
input location (defined as the bin select value) is
within a particular sub-range of the total
specified range. A counter in the bin associated
with each sub-range is incremented whenever
the value falls within that sub-range. The value
which is output to Final Storage for each bin is
computed by dividing the accumulated total in
each bin by the total number of scans. This
form of output is also referred to as a frequency
distribution.
The weighted value histogram uses data from 2
input locations. One location contains the bin
select value; the other contains the weighted
value. Each time the instruction is executed,
the weighted value is added to a bin. The subrange that the bin select value is in determines
the bin to which the weighted value is added.
When the Output Flag is set, the value
accumulated in each bin is divided by the
TOTAL number of input scans to obtain the
values that are output to Final Storage. These
values are the contributions of the sub-ranges
to the overall weighted value. To obtain the
average of the weighted values that occurred
11-3
10C
30C
10
Closed Form
Open Form
DATA
TYPE
DESCRIPTION
01:
Repetitions
02:
Number of bins
03:
04:
05:
06:
FP
07:
FP
Outputs Generated:
11-4
PARAM.
NUMBER
01:
DATA
TYPE
4
Outputs Generated:
parameter selected
DESCRIPTION
Enter appropriate TIME
option code
1 for each time
Code
Result
xxx1
xx1x
xx2x
x1xx
x2xx
1xxx
DATA
TYPE
2
Outputs Generated:
PARAM.
NUMBER
01:
02:
Outputs Generated:
DESCRIPTION
Repetitions (number of
sequential locations to
sample)
Starting input location no.
1 per repetition
DESCRIPTION
0 = low resolution;
1 = high resolution
DATA
TYPE
DATA
TYPE
01:
02:
DESCRIPTION
Storage area option
00 or 01 = Final
Storage Area 1
02 = Final Storage Area 2
03 = Input Storage Area
Starting input location
destination if option 03
Output Array ID if options
0-2 (1-511 are valid IDs)
11-6
C1,1
C2,1
.
.
.
CM,1
C1,2
C2,2
.
.
.
CM,2
. . .
. . .
.
.
.
. . .
C1,N
C2,N
.
.
.
CM,N
DATA
TYPE DESCRIPTION
01:
02:
03:
2
4
4
04:
05:
06:
07:
08:
4
4
FP
FP
FP
Repetitions
Input location of input data
Swath (per rep) of data at
input location; 1 = on line
processing
No. of Mean bins
No. of Amplitude Bins
Low limit of input data
High limit of input data
Minimum distance between
peak and valley
09:
2
A:
B:
10:
Option (AB)
Form 0 = closed, 1 = open
form
Output 0 = fraction, 1 =
counts
Input location to start
storing histogram. Enter 0
to send output directly to
Final Storage.
DATA
TYPE
2
4
Outputs Generated:
DESCRIPTION
Repetitions
Starting input location no.
1 per repetition
11-7
11-8
Output Flag
User Flags
User Flags
Intermediate Processing
Disable Flag
FUNCTION
If the value in the location specified in the Begin
Case Instruction 93 is less than the fixed value
entered as parameter 1 then execute the
command in parameter 2 then go to the end of
the case statement when the next Instruction 83
occurs. Else, continue to next instruction. See
Instruction 93 for an example.
PARAM.
NUMBER
DATA
TYPE
DESCRIPTION
01:
FP
Fixed value
02:
Command
12-1
DATA
TYPE
2
DESCRIPTION
Subroutine number
(1-9, 79-99)
*** 86 DO ***
FUNCTION
This Instruction unconditionally executes the
specified command.
PARAM.
NUMBER
01:
DATA
TYPE
2
DESCRIPTION
Command (Table 12-2)
12-2
DATA
TYPE
DESCRIPTION
4
4
Delay
Iteration count
5: Average (P71)
1:
5
2:
21
Reps
Loc [ VP1
12-3
2: Time (P18)
1:
2
3: End (P95)
Call Subroutine 1
3: If (X<=>F) (P89)
1:
25
2:
3
3:
6
4:
31
X Loc [ Day
]
>=
F
Exit Loop if True
4: End (P95)
5: Beginning of Loop (P87)
1:
1
Delay
2:
0
Loop Count
6: Do (P86)
1:
1
Call Subroutine 1
7: If (X<=>F) (P89)
1:
25
2:
3
3:
16
4:
31
X Loc [ Day
]
>=
F
Exit Loop if True
2:
3:
4
2
03:
04:
4
2
DESCRIPTION
Input location for X
Comparison code
(Table 12-5)
Input location for Y
Command (Table 12-2)
Function
IF X = Y
IF X Y
IF X Y
IF X < Y
Call Subroutine 1
12-4
DATA
TYPE
01:
02:
8: End (P95)
10: Do (P86)
1:
1
24
25
FUNCTION
This Instruction compares an input location to a
fixed value and, if the result is true, performs
the specified Command. The comparison codes
are given in Table 12-5.
PARAM.
NUMBER
DATA
TYPE
01:
02:
4
2
03:
04:
FP
2
DESCRIPTION
Input location for X
Comparison code
(Table 12-5)
Fixed value
Command (Table 12-2)
DATA
TYPE
2
DESCRIPTION
Increment for the loop
index counter
DATA
TYPE
01:
02:
DESCRIPTION
Flag or Port condition to
check
Command (Table 12-2)
DATA
TYPE
01:
02:
03:
DESCRIPTION
Time into interval
(minutes or seconds if
entered XXXX--)
Time interval (units
same as above)
Command (Table 12-2)
PARAM.
NUMBER
DATA
TYPE
01:
EXAMPLE:
1: CASE (P93)
1:
2
F
Exponent of 10
Z Loc [ ValueY ]
12-6
FUNCTION
Instruction 96 is used to activate Storage
Module (SM192/SM716 or Card Storage
Module) or serial data (printer) output. Some
applications require the Computer RS232 port
be left on continuously for proper operation.
The Computer RS232 port can be configured to
D mode as
stay on continuously in the
described in Section 1.8.7.
Normally Instruction 96 is placed in the program
table after all Output Instructions have been
entered and is executed each time the Table is
executed. In this situation any data sent to Final
Storage is output as soon as possible.
However, by using Program Control Instructions
to allow execution of Instruction 96 only at
certain times, the user can control when the
output device(s) are active. Instruction 96
allows a choice of serial data format and the
selection of Addressed or Pin Enabled device
for the serial print output.
A single parameter is used to select whether the
instruction is to control the "printer", Storage
Module, or Card Storage Module output, and if
the printer is selected, the format and baud rate.
The Instruction must be entered separately for
each device that is to receive output.
If both Final Storage areas are in use,
Instruction 96 will send data from the area
which is currently active. Final Storage Area 1
is active at the start of each Table. Instruction
80 can be used to change the active area. The
Area set by Instruction 80 remains active until
changed by another Instruction 80 or the Table
ends (at which time Area 1 becomes the active
Area 1). Instruction 80 can also direct output to
Input Storage, in which case Instruction 96
assumes Final Storage Area 1.
If the CR23X is already communicating on a 9pin serial port when Instruction 96 is executed,
the output request is put in a queue and
program execution continues. As a 9-pin serial
port becomes available, each device in the
queue will get its turn.
The request is not put in the queue if the same
device is already in the queue. The data
contained in the queue (and which determine a
unique entry) are baud rate (if applicable), and
DATA
TYPE
DESCRIPTION
Option Device
Baud Rate
300
1200
9600
76800
2400
4800
19200
38400
Request numeric
responses
12-8
Device
Baud
00
01
02
10
11
14
15
12
16
17
20
21
24
25
22
26
27
31
40
41
44
45
42
46
47
50
51
52
60
61
64
65
62
66
67
70
71
74
75
72
76
77
80
81
84
85
82
86
87
RF95
RF95
RF95
Direct CS I/O
Direct CS I/O
Direct CS I/O
Direct CS I/O
Direct CS I/O
Direct CS I/O
Direct CS I/O
COM200, DC112
COM200, DC112
COM200
COM200
COM200
Telephone
Telephone
VS1, COM300
VS1, COM300
VS1, COM300
COM300
COM300
COM300
COM300
COM300
RF (SDC)
RF (SDC)
RF (SDC)
Direct Computer RS232
Direct Computer RS232
Direct Computer RS232
Direct Computer RS232
Direct Computer RS232
Direct Computer RS232
Direct Computer RS232
Generic Modem CS I/O
Generic Modem CS I/O
Generic Modem CS I/O
Generic Modem CS I/O
Generic Modem CS I/O
Generic Modem CS I/O
Generic Modem CS I/O
Generic Modem RS232
Generic Modem RS232
Generic Modem RS232
Generic Modem RS232
Generic Modem RS232
Generic Modem RS232
Generic Modem RS232
300
1200
9600
300
1200
2400
4800
9600
19.2 k
38.4 k
300
1200
2400
4800
9600
19.2 k
38.4 k
Voice
300
1200
2400
4800
9600
19.2 k
38.4 k
300
1200
9600
300
1200
2400
4800
9600
19.2 k
38.4 k
300
1200
2400
4800
1600
19.2 k
38.4 k
300
1200
2400
4800
9600
19.2 k
38.4 k
12-9
Rn
Dnn
Wnn
Lnn
Inn
DATA
TYPE
01:
02:
03:
04:
2
4
4
05:
06:
2
4
07:
08:
12-10
DESCRIPTION
Modem option and baud rate
code. Left digit specifies the
modem being used and the
right, the baud rate.
Interrupt disable flag
Time limit on call, 1 sec. units
Delay between fast retries, 1
sec. units
No. of retries at fast rate
Delay between slow retries, 1
min. units
Input location to store no. of
tries
ID to send
01:
DATA
TYPE
2
DESCRIPTION
1y
4y
A )
NOTE: The memory allocation (
must be the same between the program in
RAM and the program that is loaded from
Flash. If the memory allocations are not the
same, the CR23X will reallocate memory
and the data in Final Storage will be lost.
Do not use the auto program allocation (0
A mode),
for Parameter 5 in the
because data will be lost.
PARAM.
NUMBER
01:
DATE
TYPE
2
DESCRIPTION
Flash program number
(name)
02:
DATA
TYPE
2
DESCRIPTION
Option
0 = Hr, Min, Sec
1 = Day*, Hour, Minutes,
Seconds
2 = Year, Day*, Hour,
Minutes, Seconds
Beginning Input Location
DATE
TYPE
4
4
4
4
4
4
4
4
DESCRIPTION
ASCII code
ASCII code
ASCII code
ASCII code
ASCII code
ASCII code
ASCII code
ASCII code
12-11
Backspace
Clears bottom line
Blank Display
Turn off display
Beginning of Top line
Beginning of Bottom line
Skip # Spaces (please note that not
all characters are displayed on the
screen). For example 131 skips 1
1
9
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
12-12
T
O
SPACE
!
"
#
$
%
&
'
(
)
*
+
,
.
/
0
1
2
3
4
5
6
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
P
Q
R
S
T
U
V
W
X
Y
Z
[
]
^
_
`
a
b
c
d
e
f
g
h
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
60 Hz
Reject.
50 Hz
Reject.
20
21
22
23
24
30
31
32
33
34
Faster
50 Hz
Reject.
40
41
42
43
44
45
50
51
52
53
54
55
Autorange ***
10 mV
50 mV
200 mV
1000 mV
5000 mV
Differential**
Resolution
0.33
1.67
6.66
33.3
166.
V
V
V
V
V
* Same as 2X 60Hz Rejection Range. Made available for compatibility with 21X Micrologger programs.
** Differential measurement, resolution for single-ended measurement is twice value shown.
*** See autoranging precaution in Table 3.5-1.
13-1
450 uS
250 uS fast
260 uS
16.67 mS 60 Hz Reject
20.00 mS 50 Hz Reject
Reset Integrator
250 us fast
260 us
16.67 ms 60 Hz Reject
20.00 ms 50 Hz Reject
500 us
250 us fast
260 us
16.67 ms 60 Hz Reject
20.00 ms 50 Hz Reject
[13.3-3]
CT = Cf + CwL
[13.3-4]
[13.3-5]
[13.3-1]
Cf = 3.3 nfd
[13.3-2]
[13.3-6]
[13.3-7]
%
Max. Error
0.7
0.1
0.004
CR23X
CR23X
HI OR LO
INPUT
FIGURE 13.3-3. Source Resistance Model for Half Bridge Connected to the CR23X
13-5
[13.3-8]
[13.3-9]
Ro = Rf/2, Rf=Rs
[13.3-10]
Ro ~ Rs, Rf>>Rs
[13.3-11]
13-6
Conductors
3 shld. 3 pair
1 shld. pair
1 shld. 4 cond.
Insulation
polypropylene
polypropylene
polyethylene
AWG
Rl
(ohms/1000ft.)
Cw
(pfd/ft.)
24
22
22
28
18
16
41
42
32
DIELECTRIC ABSORPTION
The dielectric absorption of insulation
surrounding individual conductors can seriously
affect the settling waveform by increasing the
time required to settle as compared to a simple
exponential. Dielectric absorption is difficult to
quantify, but it can have a serious effect on low
level measurements (i.e., 50 mV or less). The
primary rule to follow in minimizing dielectric
absorption is: Avoid PVC insulation around
conductors. PVC cable jackets are permissible
since the jackets don't contribute to the lead
capacitance because the jacket is outside the
shield. Campbell Scientific uses only
polyethylene and polypropylene insulated
conductors in CR23X sensors (see Table 13.32) since these materials have negligible
dielectric absorption. Teflon insulation is also
very good but quite expensive.
13.3.2 EFFECT OF LEAD LENGTH ON SIGNAL
RISE TIME
In the 034A Wind Vane, a potentiometer
sensor, the peak transient voltage is much less
than the true signal voltage (see Table 13.3-5).
This means the signal rise time is the major
source of error and the time constant is the
same as if Cw were between the signal lead and
ground as represented below.
13-7
error =
-6
3
-9
-12
-1
360 * e ( -4 5 0* 1 0 s / ( 6* 1 0 * (3.3* 1 0 fd+ ( 4 1* 1 0 fd ft * 1 0 0 0 ft))))
Ro = Rd+(Rb(Rs-Rb+Rf)/(Rs+Rf)) =
Rd+(Rb(20k-Rb)/20k)
error = 66
[13.3-12]
Wind
Direction
360
270
180
90
[13.3-13]
[13.3-14]
66
45
21
4
15
9
3
0
Error
L=1000 ft.
L=500 ft.
Cf = 3.3nfd
Cw = 41 pfd/ft., p/n 9721 wire
t = 450s
Example calculation at 360 with 1000 ft lead:
(all variables converted to ohms, farads,
seconds, or feet)
TABLE 13.3-4. Measured Peak Excitation Transients for 1000 Foot Lengths of Lead Wires Used
by Campbell Scientific
Vx(mV)
#
9661
2000
1000
13-8
50
25
60
40
100
60
140
90
#
9721
80
40
[13.3-15]
TABLE 13.3-5. Summary of Input Settling Data For Campbell Scientific Resistive Sensors
Sensor
Model #
Belden
Wire #
107
227
237
034A
9661
9661
9661
9721
*
**
Ro
Cw
*
(kohms) (pfd/ft.) (us)
1
0.1-1
1
1-6
42
42
42
41
45
5-45
45
1-222
Input
Range(mV)
10
1000
50
5000
Vx(mV)
Veo(mV)**
2500
500
5000
5000
50
0
65
0-90
Estimated time constants are for 1000 foot lead lengths and include 3.3nfd CR23X input
capacitance.
Measured peak transients for 1000 foot lead lengths at corresponding excitation, Vx.
13-9
TABLE 13.3-6. Maximum Lead Length vs. Error for Campbell Scientific Resistive Sensors
Sensor
Model #
Error
Range
107
034A
227
237
0.05C
3
10 kohm
0C to 40C
@ 360
20k to 300k
1
2
3
5
2083
1000
Maximum
Length(ft.)
10001
3802
20003
20003
13-10
Ve(V)
TABLE 13.3-7. Source Resistances and Signal Levels for YSI #44032 Thermistor Configurations
Shown in Figure 13.3-7 (2V Excitation)
Rs
(kohms)
-40
-20
0
+25
+40
+60
884.6
271.2
94.98
30.00
16.15
7.60
--------A-------Ro
Vs(mV)
(kohms)
29.0
27
22.8
15.0
10.5
6.1
164
498
1200
2500
3250
3989
-----B----Ro@P
(kohms)
30.0
27.8
23.4
15.2
10.6
6.1
-------C------Ro
Vs(mV)
(kohms)
1
1
1
1
1
1
5.5
16.5
39.5
82.0
106.0
129.5
13-11
FIGURE 13.3-7. Half Bridge Configuration for YSI #44032 Thermistor Connected to CR23X
Showing: A) large source resistance,
B) large source resistance at point P, and
C) configuration optimized for input settling
13-12
CR23X
CR23X
FIGURE 13.3-9. Incorrect Lead Wire Extension on Model 107 Temperature Sensor
CR23X
13-13
CR23X
FIGURE 13.3-9. Incorrect Lead Wire Extension on Model 107 Temperature Sensor
0.45
0.4
0.35
Error (deg C)
0.3
0.25
0.2
0.15
0.1
0.05
0
-40
-30
-20
-10
10
20
25
30
40
50
60
70
80
Temperature
13-15
3.5
50
TC Temperature Error, Channel 1 40
3
2.5
20
1.5
10
True TC Temperature
0
CR23X Reference Temperature
0.5
0
-10
-20
-0.5
-30
80
75
70
65
60
55
50
45
40
35
30
25
20
15
10
-5
-40
-10
-1
Time, Minutes
Thermocouple
Type
Temperature
Range C
-200 to 0
0 to 350
1.0C or 1.5%
1.0C or 0.75%
0.5C or 0.4%
0 to 750
2.2C or 0.75%
1.1C or 0.4%
-200 to 0
0 to 900
1.7C or 1.0%
1.7C or 0.5%
1.0C or 0.4%
-200 to 0
0 to 1250
2.2C or 2.0%
2.2C or 0.75%
1.1C or 0.4%
13-16
30
Temperature, Deg. C
13-17
TC Type
Range C
87
316
400
Limits of
Error C
0.022
0.042
0.060
-200 to
87 to
316 to
-240 to -130
-130 to 479
479 to 1000
0.40
0.05
0.21
-56 to 413
413 to 1372
0.05
0.40
-150 to
92 to
92
412
0.02
0.04
50 to 1007
1007 to 1700
0.20
0.50
0 to 579
579 to 1450
0.10
0.40
0 to 972
972 to 1450
0.17
0.40
-200 to 1000
1000 to 1240
0.0075
0.01
Range C
-100
-150
-50
-150
25
-50
-50
-100
to
to
to
to
to
to
to
to
100
206
100
296
80
100
100
100
Limits of
Error C
0.025
0.040
0.030
0.045
0.100
0.020
0.080
0.001
ERROR SUMMARY
The magnitude of the errors described in the
previous sections illustrate that the greatest
sources of error in a thermocouple temperature
measurement are likely to be due to the limits of
error on the thermocouple wire and in the
reference temperature determined with the
built-in thermistor. Errors in the thermocouple
and reference temperature polynomials are
extremely small, and error in the voltage
measurement is negligible.
To illustrate the relative magnitude of these
errors in the environmental range, we will take a
worst case situation where all errors are
Error C
% of Total Error
o
1 C 1% Slope
Error Error
Reference Temp.
0.6
36.1
TC Output
ANSI
0.01 x 20C
1.0
0.2
60.1
Voltage
Measurement
0.06
3.6
7.0
Reference
Linearization
0.001
0.1
0.1
Output
Linearization
0.001
Total Error
With ANSI error
1.662
Assuming 1%
slope error
0.862
69.6
23.2
0.1
0.1
100
100
13-19
CR23X
13-21
FIGURE 13.5-2. Excitation and Measurement Sequence for 4 Wire Full Bridge
TABLE 13.5-1. Comparison of Bridge Measurement Instructions
Instr. Circuit
Description
DC Half Bridge User entered settling time allows compensation for capacitance in long lead
lengths. No polarity reversal. One single-ended measurement. Measured
voltage output.
AC Half Bridge Rapid reversal of excitation polarity for ion depolarization. One single-ended
measurement at each excitation polarity. Ratiometric output.
4 Wire
Full Bridge
3 Wire
Half Bridge
Differential
Makes a differential measurement without reversing excitation polarity or
Measurement switching inputs. Used for fast measurements on load cells, PRTs etc.
with Excitation Resolution and common mode rejection worse than 6 if used with delay=0.
Measured voltage output.
6 Wire
Full Bridge
or 4 Wire
Half Bridge
13-22
Result
X = Vx(Rs/(Rs+Rf))
Instr.#
Multiplier;
Offset
X/Vx
Rs = Rf ________
1-X/Vx
4
59
1/Vx
Rf
1
Rf = ____________________
((X/Vx)/(1-X/Vx))/Rs
4
59
42
1/Vx
1/Rs
X
Rs = Rf _____
1-X
5
59
1
Rf
1
Rf = _____________
(X/(1-X))/Rs
5
59
42
1
1/Rs
X = Rs/(Rs+Rf)
-0.001;
1/Vx
R2 = R1(X2/(1-X2))
where X2 = X1
6 or 9
59
-0.001
R1
R3/(R3+R4)
R3 = R4(X3/(1-X3))
where X3 = X/1000 + R2/(R1+R2)
6 or 9
59
0.001
R4
R2/(R1+R2)
1
R4 = _______________
(X4/(1-X4))/R3
6 or 9
0.001
R2/(R1+R2)
59
42
1/R3
1
R1 = _______________
(X1/(1-X1))/R2
R3/(R3+R4)
1/R2
where X4 = X3
7&9* X = Rs/Rf
Rs = RfX
Rf = Rs/X
0
0
13-23
Rs
(Rs + Rf ) + RsRf / RG
[13.6-1]
INSTRUCTION 24 CALIBRATION
The alternative to automatic calibration is the
use of Instruction 24, the calibration instruction.
Instruction 24 implements a complete calibration
which occurs ONLY when EXECUTED by a
program table. Instruction 24 calibration is the
average of 10 calibrations, and takes
approximately 2.8 seconds to complete.
Automatic calibration is disabled when a
program is compiled that contains Instruction 24.
Instruction 24 calibration, as opposed to
automatic calibration, may be advantageous in
applications where: 1) the CR23X is exposed to
extreme thermal gradients, or 2) automatic
calibration would interfere with the desired
sampling rate, and the ambient temperature is
stable enough to allow calibration at specific
points during program execution.
Calibration coefficients are replaced each time
that Instruction 24 is executed. Unlike
13-26
14-1
Peripheral
AM25T
AM416
COM100
COM200 Phone Modem
CSM1
MD9
RAD Modem and SC932 Interface
RF100-VHF 5 Watt Radio
RF200-UHF 4 Watt Radio
RF95 RF Modem
SDM-A04
SDM-CD16
SDM-INT8
SDM-SW8A
SM192/SM716 Storage Module
VS1
14-2
1
17
1.8
140
18
80
10-15
1700
1500
30
-11/LED lit
6.5
6
3
110
4
7
8
0
9
#
14-3
Temperature (oC)
20 - 50
15
10
5
0
-10
-20
-30
% of 20oC Service
100
98
94
90
86
70
50
30
-40 to +60C
(Table 14.3-3).
Charging voltage:
17 to 24 VDC or
18 V RMS AC.
6V 7AH
LEAD ACID
BATTERY
RED
WHITE
BLACK
Operating temperature
AC Transformer
Input:
Isolated Output:
Yuasa NP7-6
3 years minimum
7.0 amp-hour
6 months
40 hr full charge,
20 hr 95% charge
-15C to 50C
charge
-20C to 60C
discharge
120 VAC, 60 Hz
18 VAC 1.11 Amp
14-6
CR23X
Panel
+12V
G
14-7
Tie CAO and pulse-counter returns into grounds ( ) in CAO and pulsecounter terminal strip. Large excitation return currents may also be tied
into this ground in order to minimize induced single-ended offset voltages
in half bridge measurements.
10
11
12
L
Star Ground at
Ground Lug
P4
P3
P2
P1
CAO2
CAO1
EX4
DIFF
EX3
EX1
SE
EX2
External
Power Input
CAUTION
DC ONLY
GG
On/Off
G
C8
12V
POWER IN
C7
C6
C5
C4
C3
C2
C1
16
12V
CONTROL I/O
12V
15
14
SW12
DIFF
13
POWER OUT
5V
SE
Ground Plane
GROUND
LUG
Power
Grounds (G)
SW12
Control 7
A use
85 F
1. al
m
er
CS I/O
To CR23X
Electronics
5A
Thermal
Fuse
Th
s
9A u
0. al F
m
er
Th
04:REF_TEMP
+21.93
CR23X MICROLOGGER
Batteries
SDM
COMPUTER
RS232
12V
10
1.5k E20A
(OPTICALLY ISOLATED)
1.85A
Thermal Fuse
SN:
MADE IN USA
SW12
12V + SW12
5V + CSI/O
< 200 mA
14-10
14.10 MAINTENANCE
The CR23X power supplies require a minimum
of routine maintenance.
When not in use, the rechargeable supply
should be stored in a cool, dry environment with
the AC charging circuit activated.
The alkaline supply should not drop below
11.0 V before replacement. When not in use,
remove the ten cells to eliminate potential
corrosion of contact points and store in a cool
dry place.
14.10.1 DESICCANT
The CR23X is shipped with desiccant to reduce
humidity. Desiccant should be changed
periodically. To prevent corrosion in
uncontrolled or condensing atmospheres, the
CR23X must be placed inside a weather tight
instrument enclosure with desiccant. If only
alkaline batteries are used, the enclosure may
be sealed to inhibit vapor transfer into the
enclosure. Do not seal the enclosure if lead
acid batteries are present. Hydrogen gas
generated by the batteries may build up to an
explosive concentration.
14-11
O
SANY
SANY
O
SANY
14-12
CR17335 SE (3V)
1800 mAh
1%/year @ 25C
17.0 mm
33.5 mm
-40C to 85C
-40C to 60C
O
SANY
14-13
14-14
APPENDIX A. GLOSSARY
ASCII: Abbreviation for American Standard
Code for Information Interchange (pronounced
"askee"). A specific binary code of 128
characters represented by 7 bit binary numbers.
ASYNCHRONOUS: The transmission of data
between a transmitting and a receiving device
occurs as a series of zeros and ones. For the
data to be "read" correctly, the receiving device
must begin reading at the proper point in the
series. In asynchronous communication, this
coordination is accomplished by having each
character surrounded by one or more start and
stop bits which designate the beginning and
ending points of the information (see
Synchronous).
BAUD RATE: The speed of transmission of
information across a serial interface, expressed
in units of bits per second. For example, 9600
baud refers to bits being transmitted (or
received) from one piece of equipment to
another at a rate of 9600 bits per second.
Thus, a 7 bit ASCII character plus parity bit plus
1 stop bit (total 9 bits) would be transmitted in
9/9600 sec. = .94 ms or about 1000
characters/sec. When communicating via a
serial interface, the baud rate settings of two
pieces of equipment must match each other.
DATA POINT: A data value which is sent to
Final Storage as the result of an Output
Instruction. Strings of data points output at the
same time make up Output Arrays.
EXECUTION INTERVAL: The time interval
between initiating each execution of a given
Program Table. If the Execution Interval is
evenly divisible into 24 hours (86,400 seconds),
the Execution Interval will be synchronized with
24 hour time, so that the table is executed at
midnight and every execution interval thereafter.
The table will be executed for the first time at
the first occurrence of the Execution Interval
after compilation. If the Execution Interval does
not divide evenly into 24 hours, execution will
start on the first even second after compilation.
See Section OV4.3.1 for information on the
choice of an Execution Interval.
EXECUTION TIME: The time required to
execute an instruction or group of instructions.
If the execution time of a Program Table
A-1
APPENDIX A. GLOSSARY
APPENDIX A. GLOSSARY
A-3
APPENDIX A. GLOSSARY
A-4
OUTPUT
TRANSMIT
BAUD RATES
Control ports (C5,C6,C7,C8 ONLY):
300, 1200, 2400, 4800
9-pin RS-232 Port on CR23X:
300, 1200, 2400, 4800, 9600, 19200, 38400,
76800
CR23X
DATA
TYPE DESCRIPTION
01:
02:
03:
2
2
4
04:
05:
06:
2
4
4
07:
08:
09:
10:
11:
12:
4
FP
FP
Repetitions
Configuration code (xy)
CTS / Delay before send
0 = Wait for Clear to Send
>0 = delay (.01 secs)
Control ports (AB)
Output start Loc
Number of locations to send
0 = send nothing
xxxx = locations; preamble
xxxx-- = locations; data
Input termination character
(0..255)
Maximum number of input
characters
Delay for CTS and/or
Input (.01 secs)
Input start location
Multiplier
Offset
B-2
Configuration Code
is converted to
X
0
1
2
3
4
5
Description
RS-232 ASCII
RS-232 ASCII Hex pair
RS-232 Binary
TTL ASCII
TTL ASCII Hex pair
TTL Binary
Y
0
1
2
3
4
5
6
7
Description
300 baud
1200 baud
2400 baud
4800 baud
9600 baud*
19200 baud*
38400 baud*
76800 baud*
"-123.456,+1000,0000,2333,.0001*"
B-3
B-4
Output (5V)
Output (5V)
Output
Input
Input
B-5
1
2
3
4
5
Configuration
Number
Parameters
6
8
DTR,RX
DTR,TX
DTR,CTS,TX
DTR,TX, RX
DTR,CTS,TX,RX
x
nz
0
nz
0
0
nz
nz
nz
nz
DTR/RTS
nz
0
0
nz
nz
A
A
A
A
A
Port Function
CTS
TXD
RXD
Ports
Used
nc
nc
A+1
nc
A+1
B
nc
B+1
B+1
B+1
2
2
3
3
4
TXD
RXD
nz
nc
B
=
=
=
=
=
nc
B
B
B
B
serial output
serial input
non-zero number
not connected
control port to use for TXD and RXD
PIN No.
2
to
3
to
4
to
5
to
6
to
7
to
8
to
PIN No.
3
2
6
5
4
8
7
25 pin D to 9 pin D
SIGNAL
TXD
RXD
RTS
CTS
DSR
SG
DTR
25 PIN No.
2
to
3
to
4
to
5
to
6
to
7
to
20
to
9 PIN No.
RXD 2
TXD 3
CTS 8
RTS 7
DTR 4
SG 5
DSR 6
GND (SG)
TXD
RXD
RTS
CTS
DSR
DCD
DTR
Connector 2
B-7
DTR
DSR/DCD
RTS
CTS
TXD
RXD
GND
DSR/DCD
DTR
CTS
RTS
RXD
TXD
GND
Data
$GPGGA
174548
3.
4.
5.
6.
7.
4146.008
N
11151.240
W
1
8.
9.
6
001.9
10.
11.
12.
13.
14.
15.
1113
M
-017
M
*40
CRLF
Description
message identification
UTC of position (i.e.,
Greenwich mean Time)
Latitude
N (North) or S (South)
Longitude
W (West) or E (East)
GPS Quality Indicator:
0=No GPS Available,
1=GPS Available,
2=DGPS
Number of Satellites in use
Horizontal Dilution of
Precision (HDOP).
Antenna Altitude
M = Meters
Geoidal Separation in Meters.
M = Meters
Checksum
Carriage Return Line
Feed
Data
$GPVTG
010
3.
4.
T
356
5.
6.
M
5.39
*Table 1 Program
01:
1
Description
message identification
Track made good in
degrees True
True
Track made good in
degrees Magnetic
Magnetic
Speed over ground in
Knots
7.
8.
N
10.0
9.
10.
11.
K
*4F
CRLF
Knots
Speed over ground in
Kilometers per Hour
Kilometers per Hour
Checksum
Carriage Return Line
Feed
Reps
Configuration Code
Delay (0.01 seconds)
RS-232 Port
Output Loc [ _________ ]
No. of Locs to Send
Termination Character
Maximum Characters
CTS/Input Wait
Loc [ RAW_TIME ]
Mult
Offset
;ASTERISK *
;GGA + VTG CHARACTERS
;Input Location for first byte of received data
;$
;G
;P
;G
;G
;A
;END OF STRING 1
;$
;G
;P
;V
;T
;G
;END OF STRING 2
B-9
B-10
CONTROL PORT 5
CR23X
CONTROL PORT 5
CR23X
1
00
03:
04: AB
05:
06:
07:
13
Repetitions
Configuration code of
ASCII/TTL/1200 bd
CTS/Delay before send (does
not matter)
Control ports used (User's
choice). A = sensor Shut Down
Output start location (no output
from CR23X)
Number of locations to send
(no output from CR23X)
Input termination character is
Carriage Return
B-11
08:
9
09: 100
10:
?
11:
1
12:
0.0000
TABLE B-3. Number of Characters/Output and Memory Requirements for Various Barometer
Output Modes
B-12
ET = 10.9 seconds
Time out = 10.9/0.01
Time out = 1090
In general, the above equations overestimate
the execution time. When execution speed is
critical, the minimum time out delay must be
determined through trial and error.
B.7.1.4 BAROMETER PROGRAM
The following example program assumes the
barometer is jumpered for TTL output and the
01:
01:
02:
03:
04:
05:
06:
07:
08:
09:
10:
11:
12:
P15
1
31
1
15
0
0
13
20
200
1
1
0
02:
01:
02:
03:
04:
P89
1
3
1300
11
If X<=>F
X Loc AIR, mb
>=
F
Set high Flag 1
03:
01:
02:
03:
04:
P89
1
4
800
11
If X<=>F
X Loc AIR, mb
<
F
Set high Flag 1
04:
01:
02:
P91
11
30
If Flag/Port
Do if flag 1 is high
Then Do
If Flag 1 is set,
05:
01:
P86
10
Do
Set high Flag 0 (output)
ASCII;TTL
13 = CR
Wait 1 sec for Input
barometer jumpered
for millibar output
START: Limit testing
If reading is > 1300 mb
then set Flag 1 high
do the following.
B-13
06:
01:
P77
110
Real Time
Day,Hour-Minute
07:
01:
02:
P70
1
1
Sample
Rep
Loc AIR, mb
08:
01:
P86
19
Do
Set high Flag 9
09:
01:
P86
21
Do
Set low Flag 1
10:
P95
End
11:
01:
02:
03:
P92
0
720
10
If time is
minutes into a
minute interval
Set high Flag 0 (output)
Output mb twice/day
12:
01:
P77
110
Real Time
Day,Hour-Minute
13:
01:
02:
P71
1
1
Average
Reps
Loc AIR, mb
End Table 1
14:
CR23X#1
SEND DATA
FUNCTION
DTR
CTS
TX
CR23X#2
RECEIVE DATA
PORT
PORT
C1 ----------->C8
C2<----------- C1
C5 ----------->C5
FUNCTION
Interrupt; SBR 98
RTS
RX
B-14
1
5
01:
02:
P87
0
10
Beginning of Loop
Delay
Loop Count
01:
P32
11
Z=Z+1
Z Loc [:COUNTER ]
01:
02:
P31
11
1--
Z=X
X Loc COUNTER
Z Loc [:VALUE #1 ]
P95
End
01:
02:
03:
04:
05:
06:
07:
08:
09:
10:
P15
1
0
0
15
1
10-0
0
100
28
11:
12:
1
0
Multiplier
Offset
End Table 1
01:
02:
03:
04:
05:
06:
Table 1 Programs
Sec. Execution Interval
Start loop to generate values
4:VALUE #4
5:VALUE #5
6:VALUE #6
7:VALUE #7
8:VALUE #8
9:VALUE #9
10:VALUE #10
11:COUNTER
12:_________
01:
Table 3 Subroutines
01:
P85
98
Beginning of Subroutine
Subroutine Number
01:
02:
03:
04:
05:
06:
P15
1
0
0
6
0
0
02:
RS-232, 1200 bd
B-15
07:
08:
09:
10:
11:
12:
03:
13
75
200
11
1
0.0000
P95
End
16:VALUE #6
17:VALUE #7
18:VALUE #8
19:VALUE #9
20:VALUE #10
Program Example # 3
This program will decode the $GPGGA and $GPVTG strings, format them in input locations, and set the
CR23X clock according to the GPS time. The primary reason for formatting the data strings is to parse
long data strings into multiple input locations. The CR23X can display 5 significant digits. The
maximum value that can be displayed in an input location is 99999. Data in the GPS string is anywhere
from 1 to 8 characters. Data fields such as time has 6 digits (i.e. HHMMSS) and will exceed the 99999
input location value limit. To get around this problem, data will be parsed and separated into individual
input locations.
If the GPS receiver is to be used to keep the CR23X clock updated (via P114) caution should be used
when pulse count type measurements (i.e. wind speed, velocity) are made. This can increase or
decrease the total number of counts based on if the datalogger clock was slow or fast. The program
code below can be put into a conditional type statement (P92, P95) to be executed on an less frequent
interval rather than once per second (i.e. once per day).
CR23X#3 PROGRAM EXAMPLE
*Table 1 Program
01:
1
B-16
;ASTERISK *
;GGA + VTG CHARACTERS
12:
0.0
Offset
03:
;$
;G
;P
;G
;G
;A
;END OF STRING 1
;$
;G
;P
;V
;T
;G
;END OF STRING 2
If (X<=>F) (P89)
1:
27
2:
3
3:
0
4:
30
X Loc [ RAW_TIME ]
>=
F
Then Do
If (X<=>F) (P89)
1:
30
2:
1
3:
1
4:
30
X Loc [ RAW_AVAIL ]
=
F
Then Do
07:
08:
Z=X*F (P37)
1:
27
2:
.01
3:
27
X Loc [ RAW_TIME ]
F
Z Loc [ RAW_TIME ]
Z=INT(X) (P45)
1:
27
2:
1
X Loc [ RAW_TIME ]
Z Loc [ HOUR_MIN ]
Z=FRAC(X) (P44)
1:
27
X Loc [ RAW_TIME ]
2:
2
Z Loc [ SECONDS ]
B-17
09:
10:
Z=X*F (P37)
1:
2
2:
100
3:
2
X Loc [ SECONDS ]
F
Z Loc [ SECONDS ]
Z=INT(X) (P45)
1:
2
2:
2
X Loc [ SECONDS ]
Z Loc [ SECONDS ]
12:
13:
If (X<=>F) (P89)
1:
2
2:
4
3:
59
4:
30
X Loc [ SECONDS ]
<
F
Then Do
Z=X+F (P34)
1:
2
2:
2
3:
2
X Loc [ SECONDS ]
F
Z Loc [ SECONDS ]
End (P95)
15:
16:
If (X<=>F) (P89)
1:
2
2:
1
3:
60
4:
30
X Loc [ SECONDS ]
=
F
Then Do
Z=F (P30)
1:
0
2:
0
3:
2
F
Exponent of 10
Z Loc [ SECONDS ]
End (P95)
18:
B-18
If (X<=>F) (P89)
1:
2
2:
1
3:
99
4:
30
X Loc [ SECONDS ]
=
F
Then Do
Z=F (P30)
1:
1
2:
0
3:
2
F
Exponent of 10
Z Loc [ SECONDS ]
19:
20:
Z=X+F (P34)
1:
1
2:
1
3:
1
X Loc [ HOUR_MIN ]
F
Z Loc [ HOUR_MIN ]
End (P95)
Z=INT(X) (P45)
1:
28
2:
3
X Loc [ RAW_LAT ]
Z Loc [ LAT_DEG ]
22:
Z=FRAC(X) (P44)
1:
28
X Loc [ RAW_LAT ]
2:
4
Z Loc [ LAT_DDD ]
23:
Z=INT(X) (P45)
1:
29
2:
5
X Loc [ RAW_LONG ]
Z Loc [ LONG_DEG ]
24:
Z=FRAC(X) (P44)
1:
29
X Loc [ RAW_LONG ]
2:
6
Z Loc [ LONG_DDD ]
25:
Z=X (P31)
1:
30
2:
7
X Loc [ RAW_AVAIL ]
Z Loc [ GPS_AVAIL ]
Z=X (P31)
1:
31
2:
8
X Loc [ RAW_SATS ]
Z Loc [ NO_SATS ]
Z=X (P31)
1:
32
2:
9
X Loc [ RAW_HDOP ]
Z Loc [ HDOP
]
26:
27:
29:
30:
Z=X*F (P37)
1:
33
2:
3.281
3:
10
X Loc [ RAW_ALT ]
F
Z Loc [ ALTITUDE ]
Z=X (P31)
1:
35
2:
11
X Loc [ RAW_TRUE ]
Z Loc [ DEG_TRUE ]
Z=X (P31)
1:
36
2:
12
X Loc [ RAW_MAG ]
Z Loc [ DEG_MAG ]
B-19
31:
Z=X*F (P37)
1:
38
2:
0.6214
3:
13
X Loc [ RAW_SPDK ]
F
Z Loc [ SPD_MPH ]
Do (P86)
1:
10
33:
34:
Resolution (P78)
1:
1
High Resolution
35:
Sample (P70)
1:
13
2:
1
Reps
Loc [ HOUR_MIN ]
; SET DATALOGGER CLOCK WHEN VALID TIME AND GPS IS AVAILABLE EVERY INTERVAL
36:
If Flag/Port (P91)
1:
28
Do if Flag 8 is Low
2:
30
Then Do
37:
Do (P86)
1:
18
Z=X*F (P37)
1:
1
2:
0.01
3:
39
X Loc [ HOUR_MIN ]
F
Z Loc [ HOURS ]
Z=INT(X) (P45)
1:
39
2:
39
X Loc [ HOURS
Z Loc [ HOURS
Z=X*F (P37)
1:
1
2:
0.01
3:
40
X Loc [ HOUR_MIN ]
F
Z Loc [ MINUTES__ ]
38:
39:
40:
]
]
41:
Z=FRAC(X) (P44)
1:
40
X Loc [ MINUTES__ ]
2:
40
Z Loc [ MINUTES__ ]
42:
Z=X*F (P37)
1:
40
2:
100
3:
40
X Loc [ MINUTES__ ]
F
Z Loc [ MINUTES__ ]
Z=X (P31)
1:
2
2:
41
X Loc [ SECONDS ]
Z Loc [ SEC
]
43:
B-20
; PERFORM RANGE CHECKING TO ENSURE GPS TIME DATA FALLS WITHIN A REASONABLE
RANGE.
1: If (X<=>F) (P89)
1:
39
2:
4
3:
24
4:
30
X Loc [ HOURS
<
F
Then Do
2: If (X<=>F) (P89)
1:
39
2:
3
3:
0
4:
30
X Loc [ HOURS
>=
F
Then Do
3: If (X<=>F) (P89)
1:
40
2:
4
3:
60
4:
30
X Loc [ MINUTES ]
<
F
Then Do
4: If (X<=>F) (P89)
1:
40
2:
3
3:
0
4:
30
X Loc [ MINUTES ]
>=
F
Then Do
5: If (X<=>F) (P89)
1:
41
2:
4
3:
60
4:
30
X Loc [ SEC
<
F
Then Do
6: If (X<=>F) (P89)
1:
41
2:
3
3:
0
4:
30
X Loc [ SEC
>=
F
Then Do
B-21
*Table 2 Program
02:
0.0000
*Table 3 Subroutines
End Program
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[ HOUR_MIN ]
[ SECONDS ]
[ LAT_DEG ]
[ LAT_DDD ]
[ LONG_DEG ]
[ LONG_DDD ]
[ GPS_AVAIL ]
[ NO_SATS ]
[ HDOP
]
[ ALTITUDE ]
[ DEG_TRUE ]
[ DEG_MAG ]
[ SPD_MPH ]
[ _________ ]
[ _________ ]
[ _________ ]
[ _________ ]
[ _________ ]
[ _________ ]
[ _________ ]
[ _________ ]
[ _________ ]
[ _________ ]
[ _________ ]
[ _________ ]
[ _________ ]
[ RAW_TIME ]
[ RAW_LAT ]
[ RAW_LONG ]
[ RAW_AVAIL ]
[ RAW_SATS ]
[ RAW_HDOP ]
[ RAW_ALT ]
[ RAW_GEOID ]
[ RAW_TRUE ]
[ RAW_MAG ]
[ RAW_SPDN ]
[ RAW_SPDK ]
[ HOURS ]
[ MINUTES__ ]
[ SEC
]
[ _________ ]
[ _________ ]
[ _________ ]
B-22
RW-RW--W--W--W--W--W--W--W--W--W--W--W----------------------------------------RW-R--R--R--R--R--R-----R--R-----R--RW-RW-RW-----------
5
7
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
4
2
2
2
1
1
1
0
1
1
0
1
4
5
3
0
0
0
2
6
1
1
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
0
0
0
0
0
0
0
0
0
0
2
3
1
0
0
0
# 7 6 5 4 3 2 1 0
u
u
u
u
r
*
r
u
u
u
u
r
*
r
r
0
r
0
1
1
1
r
b
r
b
0
1
1
n
n
n
n
n
n
t
n
n
n
n
n
n
t
0
0
1
1
1
1
0
0
1
0
0
1
1
1
mb
in(Hg)
mm(Hg)
PSIA
0
0
1
1
0
1
0
1
ft
m
ft/in(Hg)
m/mb
0
0
1
1
0
1
0
1
1
10
100
1000
0
0
1
1
0
1
0
1
9600
1200
300
110
0
0
1
1
0
1
0
1
-----
9600
1200
300
110
0
0
1
1
0
1
0
1
- - 0 0 - - - - - 0 1 - - - -
0
0
1
1
0
1
0
1
B-24
Description
[nnnnn]F
C-1
a
b
c
d
n
Null
K
C-2
Datalogger
Echo
2
4
1
3
J
CR
LF
<
a
b
c
d
n
Null
Datalogger
Echo
K
CR
LF
Time Minutes byte 1
Time Minutes byte 2
Time Tenths byte 1
Time Tenths byte 2
Flags 1..8 byte
Ports byte (if requested)
Flags 11..18 byte (if requested)
Data1 byte 1
Data1 byte 2
Data1 byte 3
Data1 byte 4
Data2 byte 1
Data2 byte 2
Data2 byte 3
Data2 byte 4
DataN byte 1
DataN byte 2
DataN byte 3
DataN byte 4
Final Storage Data bytes
01111111 binary byte
00000000 binary byte
Signature byte 1
Signature byte 2
Sign(Mantissa*2
-7
which equals
C-3
Bits
Description
Exponent is 4 decimal.
Polarity, 0 = +, 1 = -.
B, C
D-H plus
second
byte
-2
-4
-5
-8
-9
-12
-13
2 +2 +2 +2 +2 +2 +2 +2
-17
-20
-21
-23
2 + 2 + 2 + 2 = 0.85000.
-16
+2
C-4
Decimal Location
0
0
1
1
0
1
0
1
XXXX.
XXX.X
XX.XX
X.XXX
XXXXXXXX
001111GH
XXXXXXXX
DESCRIPTION
CDEF = 0111
Polarity , 0 = +, 1 = -.
G,H,A,
2nd byte
ABCDEF = 001111
Unused bit.
2nd byte
DECIMAL FORMAT
GHA
5 digits
000
001
010
011
100
101
XXXXX.
XXXX.X
XXX.XX
XX.XXX
X.XXXX
.XXXXX
C-5
SIGNATURE ALGORITHM
TABLE C.4-1.
Command
C-6
1&2
D Command 1 and 2
Options
Synchronously addressed
Hardware enabled
x = Baud Rate Codes
0 - 300
1 - 1200
2 - 9600
3 - 76,800
4 - 2400
5 - 4800
6 - 19,200
7 - 38,400
C-8
Char.
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
CONTROL
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
Dec.
Char.
Dec.
Char.
Dec.
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
SPACE
!
"
#
$
%
&
'
(
)
*
+
,
.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
Char.
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~
DEL
E-1
Option 1
-1
-1
Sapflow (g h )
-1
Kshapp (W mV )
Sapflow (g h )
-1
Kshapp (W mV )
dT (C)
power input (W)
Qv (Vertical Flux, W)
Qr (Radial Flux, W)
Qf (Sapflow Flux, W)
-1
F2.4.1 Sapflow (g h )
The calculated sap flow rate. If total sapflow is
desired, Output Processing Instruction 72 can
be used in conjunction with Instruction 67 to
totalize sap flow.
F2.4.2 Qf and dT
Qf is the residual energy that is assumed lost
through sap flow and is defined as:
Qf = Qh - (Qr + Qv)
The temperature difference, dT, is defined as:
dT = Upper TC - Lower TC
where the Upper TC is the thermocouple above
the heater and the Lower TC is the
thermocouple below the heater.
F2.4.3 Qr, Ksh, Kshapp
Qr, radial energy loss, is the loss of energy
through the cork and foam sheath on the
sensor. Ksh, the thermal conductivity constant,
is used to calculate Qr. Since Qr can be a large
percentage of the total energy loss, Ksh must be
determined accurately as outlined in the
Dynagage manual. The essence of the
procedure is to record Ksh (the second output of
Instruction 67, Kshapp) when there is no stem
flow such as at dawn. This value is then placed
-1
in Instruction 67, Parameter 2, Ksh (W mV ).
-1
Kshapp and Ksh (W mV ) have no effect on each
other in Instruction 67. Ksh must be determined
for each installation.
F2.4.4 Power Input (W)
Power input or Qh is calculated from the input
voltage and heater resistance: Qh = V/R.
F2.4.5 Qv (W)
Qv, or vertical energy loss, is the loss of energy
through the wood at the ends of the sensor not
associated with the heating of the sap.
F-2
Appendix A
Qr = (Loc 1)*(Par 2)
Qf = Pin - Qv - Qr
YYYYYY
Sapflow = Qf/(dT*4.186)
F-3
F-4
G.1 INTRODUCTION
Successful use of Callback requires precision
placement of hardware and software elements.
Success is usually achieved by first becoming
proficient with the simplest case, then
incrementally adding levels of complexity. If
possible, become familiar with Callback over a
simple RS232 connection (using the SC32A
Interface or SC929 Cable) before incorporating
telephone or radio options.
consult the PC208W manual, PC208W onscreen help, and the CR23X manual.
Limited free telephone support is also
available from Campbell Scientific
applications engineers.
2) Modify the PC208W software to answer a
call. Three simple modifications are
required:
a) As shown in Figure G.2-1 go to
PC208W | Setup | COM(Port#) |
Hardware and check the box labeled
Allow Call-back On this Port. Also, set
the Callback baud rate equal to that
used in step 1 above. If in doubt, use a
baud rate of 1200. Setting the port to
allow callback may cause PC208W
storage module support to malfunction.
G-2
G-3
*Table 1 Program
01:
10
5: Average (P71)
1:
1
2:
2
Reps
Loc [ TempDegC ]
6: If (X<=>F) (P89)
1:
2
2:
4
3:
31
4:
11
X Loc [ TempDegC ]
<
F
Set Flag 1 High
7: If (X<=>F) (P89)
1:
2
2:
3
3:
32
4:
21
X Loc [ TempDegC ]
>=
F
Set Flag 1 Low
G-4
5: Average (P71)
1:
1
2:
2
Reps
Loc [ TempDegC ]
6: If (X<=>F) (P89)
1:
2
2:
4
3:
31
4:
11
X Loc [ TempDegC ]
<
F
Set Flag 1 High
7: If (X<=>F) (P89)
1:
2
2:
3
3:
32
4:
21
X Loc [ TempDegC ]
>=
F
Set Flag 1 Low
G-5
*Table 1 Program
01:
10.0
Execution Interval (seconds)
;
;****************************************
;Interrupt disable flag is set high to prevent callback.
;Error location cleared.
;Flag transition states are preset.
;****************************************
;
1: If Flag/Port (P91)
1:
21
Do if Flag 1 is Low
2:
30
Then Do
2: Do (P86)
1:
11
3: Do (P86)
1:
14
4: Z=F (P30)
1:
0
2:
0
3:
4
F
Exponent of 10
Z Loc [ ErrorLoc ]
5: Z=F (P30)
1:
1
2:
0
3:
5
F
Exponent of 10
Z Loc [ new_flag ]
6: Z=F (P30)
1:
1
2:
0
3:
6
F
Exponent of 10
Z Loc [ old_flag ]
7: End (P95)
8: Panel Temperature (P17)
1:
1
Loc [ RefTemp ]
G-7
X Loc [ ErrorLoc ]
=
F
Set Flag 4 High
Do if Flag 4 is High
Then Do
F
Exponent of 10
Z Loc [ ErrorLoc ]
F
Exponent of 10
Z Loc [ new_flag ]
G-8
X Loc [ old_flag ]
=
F
Then Do
X Loc [ new_flag ]
=
F
Then Do
F
Exponent of 10
Z Loc [ cntr_set ]
18: Do (P86)
1:
18
Do if Flag 8 is Low
Then Do
X Loc [ TempDegC ]
>=
F
Then Do
23: Do (P86)
1:
24
F
Exponent of 10
Z Loc [ new_flag ]
X Loc [ CallCntr ]
=
F
Then Do
G-9
F
Exponent of 10
Z Loc [ cntr_set ]
F
Exponent of 10
Z Loc [ CallCntr ]
32: Do (P86)
1:
28
X Loc [ cntr_set ]
=
F
Then Do
Z Loc [ CallCntr ]
44
44
9
8
Option
Option
Option
Option
; Termination Character
X Loc [ new_flag ]
Z Loc [ old_flag ]
5: Average (P71)
1:
1
2:
3
Reps
Loc [ TempDegC ]
G-11
6: If (X<=>F) (P89)
1:
3
2:
4
3:
31
4:
11
X Loc [ TempDegC ]
<
F
Set Flag 1 High
7: If (X<=>F) (P89)
1:
3
2:
3
3:
32
4:
21
X Loc [ TempDegC ]
>=
F
Set Flag 1 Low
G-12
APPENDIX H
CALL ANOTHER DATALOGGER VIA PHONE OR RF
H.1 INTRODUCTION
Instructions 97, Initiate Telecommunications,
and 63, Extended Parameters can be used to
call another datalogger and collect data in input
locations. This function can only be
accomplished via phone or radio modems.
H.2 PROGRAMMING
Instruction 97 initiates the call and Instruction 63
specifies the dialing path and special options.
More than one Instruction 63 may be required.
The calling dataloggers program requires
Instructions 97 and 63 for each datalogger it
calls. Only one datalogger can be called with
each set of instructions.
H.3.1 INSTRUCTION 97
Many of the parameters in Instruction 97 dont
apply when being used to call another
datalogger. See Section 12 for more detailed
information on Instruction 97s parameters.
PAR.
NO.
01:
02:
03:
04:
05:
06:
07:
08:
DATA
TYPE
2
2
4
4
2
4
4
4
DESCRIPTION
Modem/Baud Option
Flag No. to Disable Instruction 97
Seconds Call Time Limit
Seconds Before Fast Retry
Fast Retries
Minutes Before Slow Retry
Failures Loc :
Datalogger ID
Parameter 1
This specifies the first modem type to call out
through and the appropriate baud rate. See
Table H.3-1 for valid options. An RF modem is
in the SDC state when the 9th dip switch is
closed.
Modem
300
RF, ME State
Phone (DC112/COM200)
Voice Data
RF, SDC State
00
20
40
50
02
22
42
52
Parameter 2
This specifies the flag lowered in the calling
datalogger to initiate the call to the other
datalogger. This should not be confused with
the flag that the calling datalogger sets in the
remote datalogger (specified in Instruction 63).
Parameter 3
This is the total length of time the calling
datalogger will try to collect input locations from
the remote datalogger. The timer begins when
a call is initiated and includes the dialing time.
This timer must be long enough for the remote
datalogger to detect that a flag has been set
(i.e., long enough to allow for the execution
H-1
1: If time is (P92)
1:
0
2:
2
3:
22
1: If time is (P92)
1:
0
2:
2
3:
22
H-3
* 1 Table 1 Programs
01:
1
Sec. Execution Interval
01:
01:
02:
P91
11
30
If Flag
1 is set
Then Do
02:
01:
P10
1
Battery Voltage
Loc :
03:
01:
P17
2
Panel Temperature
Loc :
04:
01:
02:
03:
04:
05:
06:
P11
1
1
1
3
1
0
05:
01:
P86
21
Do
Set low Flag 1
06:
P95
End
07:
H-4
End Table 1
REVISION: 1/03
Feature
Table Data OS
Standard OS
Element
Yes
Automatic
No
No
No
No
Commands protocol with error
checking on all commands and
responses. Feedback to confirm
commands have been accepted.
Yes
Yes
Yes
No
Yes
No
Yes in PakBus
Yes in PakBus
No
No
No
Yes
No Difference
No Difference
No Difference
No Difference
AD-1
01/27/91 10:00:0023.5
01/27/91 11:00:0024.2
24.6
22.4
28.2
23.4
Only the hourly data is stored in the hourly table, Each output interval
has its own table. Data tables can also be "event driven" rather than
interval driven, that is a new record is stored when a specified event
occurs rather than based on time. Each table is completely independent
of any other tables and all records in a given table have the same
number of fields.
The TD operating system supports naming of tables and fields, so any
data value can be referenced by the table and field names. For example,
the temperature data for the first thermocouple is referenced as
"HOURLY.TEMP1". Computer software also allows the station to be
named. When multiple dataloggers are in use, this can be used to
reference specific data in the network. If, in the previous example, the
CR10T site was named DALLAS, the first thermocouple's data values
would be referenced by "DALLAS.HOURLY.TEMP1".
AD-2
Check all instructions which set the Output Flag (Flag 0). These
should be replaced with the Data Table Instruction (Instruction 84).
If the Set Active Storage Area instruction (Instruction 80) is used, it
should be removed as Instruction 84 provides this functionality.
Add labels for the Final Storage values. Use the same character as
are allowed for Input Location labels. See Section 2.1
Make a copy of the original program with the name you want the
new program to have: Load the original into Edlog and Save As
the new name.
2.
Remove or comment out all Instructions 77, 96, 97, and 98. (first
three points in AD3.1, these instructions are not in the Table OS)
3.
4.
Edit the CSI file with a text editor (e.g., Notepad - Edlog will not
allow you to make and save this change) and add TD to the
datalogger type on the first line, for example, change:
;{CR10X}
to:
;{CR10X-TD}.
Save the CSI file and close the editor.
5.
Open the file with Edlog. Edlog should now recognize that the
program is for a table data OS.
6.
AD-3
Differences
Section 1
Section 2
Section 3
Section 4
Section 5
Section 6
Section 7
Section 8
Section 9
Section 10
Section 11
AD-4
Section 12
Section 13
Section 14
No Change
AD-5
AD-6
*1
Program Table 1
*2
Program Table 2
*3
*5
*6
*7
*9
*A
Memory allocation/reset
*B
Signature/status
*C
Security
Action
0-9
Enter/Advance
Back up
#A
#B
#D
TD ADDENDUMOVERVIEW
Action
CR
Enter/advance (same as A)
AD-OV-2
TD ADDENDUMOVERVIEW
Explanation
On power-up, the CR10X
displays "HELLO" while it checks
the memory (this display occurs
only with the CR10KD).
Key
Display
Explanation
*
1
A
5
A
00:00
01:00
01:0.0000
01:5
01:P00
17
01:P17
A
1
A
01:0000
01:1
02:P00
Enter mode.
Enter Program Table 1.
Advance to execution interval (In seconds)
Key in an execution interval of 5 seconds.
Enter the 5 second execution interval and advance to
the first program instruction location.
Key in Instruction 17 which directs the CR10X to
measure the internal temperature in degrees C. This is
an Input/Output Instruction.
Enter Instruction 17 and advance to the first parameter.
The input location to store the measurement, location 1.
Enter the location # and advance to the second
program instruction.
The CR10X is now programmed to read the internal temperature every 5 seconds and place the reading
in Input Storage Location 1. The program can be compiled and the temperature displayed.
AD-OV-3
TD ADDENDUMOVERVIEW
Key
(ID:Data)
Explanation
*0
LOG 1
*6
A
06:0000
01:21.234
*1
2A
01:00
02:P00
84
A
02:P84
01:0.0000
01:0
A
0
02:0.000
02:0
A
1000
03:0.0000
03:1000.00
03:P00
70
03:P70
01:0000
1
A
01:1
02:0000
02:1
A
*
0
04:P00
00:00
LOG 1
AD-OV-4
The CR10X has read the sensor and stored the result
again. The internal temp is now 21.423C. The value
is updated every 5 seconds when the table is executed.
At this point the CR10X 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 CR10X send each reading to Final Storage.
Exit *6 Mode. Enter program table 1.
Advance to 2nd instruction location (this is where we
left off).
This is the Data Table Instruction.
Enter 84 and advance to the first parameter (which is
the time into the interval).
This parameter determines when in the output internal
data is stored. 0 stores data on the even interval.
Enter 0 and advance to the second parameter.
This parameter specifies the output interval. 0 stores
data each execution.
Enter 0 and advance to third parameter.
This parameter specifies how many records to store in
the table before overwriting the oldest. For this
example, keep 1000 records.
Enter 1000 and advance to the third program
instruction.
The SAMPLE instruction. It directs the CR10X to take
a reading from an Input Storage location and send it to
Final Storage (an Output Processing Instruction).
Enter 70 and advance to the first parameter
(repetitions).
There is only one input location to sample; repetitions = 1.
Enter 1 and advance to second parameter (Input
Storage location to sample).
Input Storage Location 1, where the temperature is
stored.
Enter 1 and advance to fourth program instruction.
Exit Table 1.
Enter *0 Mode, compile program, log data.
TD ADDENDUMOVERVIEW
AD-OV-5
TD ADDENDUMOVERVIEW
SAMPLE PROGRAM 2
Instruction #
(Loc:Entry)
Parameter
(Par#:Entry)
Description
*1
01:60
Key "#D"
repeatedly until
is displayed
01:P00
01:1
01:1
02:1
03:5
04:1
05:1
06:2
07:1
08:0
01:0
02:3600
03: 0
01:P17
02:P14
03:P84
The CR10X is programmed to measure the thermocouple temperature every sixty seconds.
The CR10X automatically allocates the number of records. Time information is automatically
stored. Next the output instruction for the average is added.
Instruction #
(Loc.:Entry)
Parameter
(Par.#:Entry)
04:P71
01:1
02:2
Average instruction
One repetition
Location 2 - source of TC temps. to be averaged
01:0
02:86400
03:0
01:1
02:1
03:2
Maximize instruction
One repetition
Output the time of the daily maximum
Data source is Input Storage Location 2.
01:1
02:1
03:2
Minimize instruction
One repetition
Output the time of the daily minimum
Data source is Input Storage Location 2.
05:P84
06: P73
07: P74
AD-OV-6
Description
TD ADDENDUMOVERVIEW
The program to make the measurements and send the desired data to Final Storage has been
entered. 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
A
00:21:32
05:01.01
1004
05:1004
05:1990
1994
05:1994
Key in year.
05:00:21
1324
05:1324
05:27.250
Key in seconds
30
05:30
13:24:30
*0
LOG 1
AD-OV-7
TD ADDENDUMOVERVIEW
DATALOGGER
MD9
MULTIDROP
INTERFACE
COAXIAL
CABLE
MD9
MULTIDROP
INTERFACE
SC12 CABLE
RF95 RF
MODEM
COM210
PHONE
MODEM
SC932
INTERFACE
RF100/RF200
TRANSCIEVER
W/ ANTENNA
& CABLE
SRM-6A RAD
SHORTHAUL
MODEM
SC32A
RS-232
INTERFACE
2 TWISTED
PAIR WIRES
UP TO 5 MI.
RF100/RF200
TRANSCIEVER
W/ ANTENNA &
CABLE
COM100
CELLULAR
PHONE
PHONE
LINE
SC12 CABLE
SC532
RS-232
INTERFACE
RF232 RF
BASE
STATION
SRM-6A RAD
SHORTHAUL
MODEM
COMPUTER
HAYES
COMPATIBLE
PHONE
MODEM
RS-232
CABLE
ASYNCHRONOUS SERIAL
COMMUNICATIONS PORT
NOTES:
AD-OV-8
AD-1-1
Flash Memory
(EEPROM)
Operating System
(96 Kbytes-CR10X)
(128 Kbytes-CR23X)
How it works:
The Operating System is loaded into
Flash Memory at the factory. System
Memory is used while the CR10X is
running for calculations, buffering data
and general operating tasks.
Any time a user loads a program into
the datalogger, the program is
compiled in SRAM and stored in the
Active Program areas. If the
datalogger is powered off and then on,
the Active Program is loaded from
Flash and run.
Active Program
(16 Kbytes)
SRAM
Total 128 Kbytes
32K SRAM
Main Memory
System Memory
Active Program
(automatically allocated)
Input Storage
default: 28 locations
(Size Set with *A)
Intermediate Storage
(automatically allocated)
PakBus Routing Table
(Size Set with *D 15)
PakBus Settings
(Size Set with *A)
96K SRAM
Final Storage Data
Tables
Flash EEPROM
Optional in CR10X
Final Storage
(Additional 524,288
locations per Mbyte)
AD-1-2
Display
ID: Data
01: XXXX
02: XXXX
03: XXXXX
04: XXXXX
05:
A
A
A
06:
07:
06:
Description of Data
Input Storage Locations (minimum of 28, maximum of 6655,
but the usable maximum is less than this because intermediate
and program storage require some of this memory). This value
can be changed by keying in the desired number.
Intermediate Storage Locations (maximum limited by available
memory and constraints on Input and Final Storage). The
CR10X-TD will assign the exact number needed for the active
program. The CR10X-TD erases all data whenever the program
is changed and compiled.
Final Storage Locations (minimum of 0, maximum limited by
available memory). Changing this number automatically
reallocates Final Storage Area 1.
Bytes allocated for user program. The CR10X-TD will assign the
exact number needed. The CR10X-TD erases all data whenever
the program is changed and compiled. Key in 98765 to
completely reset datalogger.
Bytes free in Flash Memory for active program. The user
cannot change this window. It is a function of window 5 and the
program.
PakBus and user Settings memory
Main Memory Free
Label Bytes Free
Description
Send (Print) ASCII Program
Load ASCII Program, 0 Compile
Load ASCII Program, 6 Compile
# Rings Before Answering Phone
Erase Current Program
Set Powerup Options
Set Initial Baud
PakBus Address/Routing Table
Memory for General Purpose File
PakBus Routing Table
PakBus Beacon Interval
PakBus Neighbor List
AD-1-4
Display
13:00
10:0X
1A
2A
Display
13:00
07:00
Display
Comments
*D
13:00
Enter Command
12A
12:00
Display
Comments
*D
13:00
Enter Command
15A
15:xxxx
01:xxxx
02:xxxx
03:xxxx
04:xxxx
300 Baud
1200 Baud
9600 Baud
76.8 K Baud
Key
Entry
Display
Comments
*D
13:00
Enter Command
18A
01:xxxx
02:xxxx
03:xxxx
04:xxxx
Display
Comments
*D
13:00
Enter Command
17A
02:xxxx
03:xxxx
AD-1-6
Display
Comments
*D
13:00
Enter Command
19A
19:00
19:0000
A
A
01:xxxx
01:xx
A
A
02:xxxx
02:xx
nn:0000
... etc.
A
Display
ID: Data
Description
*9
09:xx
0A
00:x.xxxx
01:xxxxx.
02:xxxxx
nn:xxxxx.
AD-1-7
AD-1-8
TEMP2
24.6
22.4
TEMP3
28.2
23.4
AD-2-1
AD-2-2
Resolution
Zero
Low
High
0.000
0.0000
Minimum
Magnitude
+ 0.001
-19
1x10
Maximum
Magnitude
+7999.
+18
+9x10
AD-2-3
ACTION
"Advances" along a record, when the
end of the record is reached the
'cursor' advances to the first field in
the next record.
29
Compile
30
Compile
Code
Type
Description
03
Editor
04
Compile
31
Run Time
05
Compile
SUBROUTINES nested
too deep
32
Compile
08
Run Time
CR10X reset by
watchdog timer
33
Compile
40
Editor
41
Editor
Incorrect execution
interval
43
Compile
Time in Instruction 84 or
92 is not a multiple of
execution interval (note:
time is in seconds)
09
Run Time
10
Run Time
11
Editor
20
Compile
SUBROUTINE encountered
before END of previous
subroutine
21
Compile
22
Compile
Missing END
44
Compile
23
Compile
Nonexistent
SUBROUTINE
60
Compile
24
Compile
ELSE in SUBROUTINE
without IF
61
Compile
25
Compile
ELSE without IF
62
Compile
N<2 in FFT
26
Compile
68
Compile
27
Compile
80
Compile
28
Compile
At compile time, no
output specified after P84
or unable to automatically
allocate at least one
record per P84
81
Compile
82
Compile
92
Compile
94
Program
Transfer
95
Program
Transfer
96
Program
Transfer
Addressed
device not connected
97
Program
Transfer
98
Program
Transfer
Uncorrectable errors
detected
99
Program
Transfer
AD-3-2
15:Temp_i5
16:Temp_i4
17:Temp_i3
18:Temp_i2
19:Temp_i1
20:Temp_i
01:
1
10
01:
01:
P17
1
Module Temperature
Loc [:Panl_Temp]
02:
01:
02:
03:
04:
05:
06:
07:
08:
P14
1
1
1
1
1
20
1
0
03:
01:
02:
03:
P51
10
11
2
Spatial Average
Swath
First Loc Temp_i9
Avg Loc [:smpl10avg]
04:
01:
02:
03:
04:
P54
9
12
1
11
05:
Block Move
No. of Values
First Source Loc Temp_i8
Source Step
First Destination Loc
[:Temp_i9 ]
Destination Step
Table 1 Programs
Sec. Execution Interval
AD-8-1
05:
01:
02:
03:
P84
0
0
0
Data Table
Seconds into interval
Every time
Records (0=auto; -=redirect)
06:
01:
02:
P70
1
2
Sample
Reps
Loc smpl10avg
07:
02:
03:
End Table 1
1:AVG_i2
2:AVG_i1
3:AVG_i
4: AVG_3_HR
5:XX_mg_M3
01:
1
5
01:
01:
02:
03:
04:
05:
06:
P2
1
25
3
5
10
0
Table 1 Programs
Sec. Execution Interval
Volt (DIFF)
Rep
2500 mV 60 Hz rejection Range
IN Chan
Loc [:XX_mg_M3 ]
Mult
Offset
02:
P84
01:
0
02: 3600
03:
-3
Data Table
Seconds into interval
Seconds interval
Records (0=auto; -=redirect)
03:
01:
02:
P71
1
5
Average
Rep
Loc XX_mg_M3
04:
01:
P51
3
Spatial Average
Swath
AD-8-2
05:
P84
01:
0
02: 3600
03:
0
Data Table
Seconds into interval
Seconds interval
Records (0=auto; -=redirect)
06:
01:
02:
P70
1
4
Sample
Reps
Loc Avg_3_HR
07:
P92
01:
0
02: 3600
03:
30
If time is
seconds into a
second interval
Then Do
08:
01:
02:
03:
04:
P54
2
2
1
1
05:
Block Move
No. of Values
First Source Loc AVG_i1
Source Step
First Destination Loc
[:AVG_i2 ]
Destination Step
09:
P95
10:
End
End Table 1
1
4
1
60
Table 1 Programs
Sec. Execution Interval
P3
1
1
2
1
.254
0
Pulse
Rep
Pulse Input Chan
Switch closure
Loc [:Rain_mm ]
Mult
Offset
P86
21
Do
Set low Flag 1
03:
01:
02:
03:
P92
0
900
11
If time is
seconds into a
second interval
Set high Flag 1
04:
01:
02:
03:
P84
0
-1
-2
Data Table
Seconds into interval
When flag 1 is high
Records (0=auto; -=redirect)
05:
01:
02:
P72
1
1
Totalize
Rep
Loc Rain_mm
06:
01:
02:
03:
04:
P89
2
1
0
21
If X<=>F
X Loc TOT_15min
=
F
Set low Flag 1
07:
01:
02:
03:
P84
0
-1
0
Data Table
Seconds into interval
When flag 1 is high
Records (0=auto; -=redirect)
08:
01:
02:
P70
1
2
Sample
Reps
Loc TOT_15min
09:
End Table 1
AD-8-3
FIGURE 8.3-1. AM416 Wiring Diagram For Thermocouple and Soil Moisture Block Measurements
EXAMPLE PROGRAM MULTIPLEXING
THERMOCOUPLES AND SOIL MOISTURE
BLOCK
*
01:
1
600
01:
01:
02:
03:
04:
05:
06:
P11
1
4
1
1
1
0
02:
01:
P86
41
Do
Set high Port 1
03:
01:
02:
P87
0
16
Beginning of Loop
Delay
Loop Count
04:
01:
P86
72
Do
Pulse Port 2
05:
01:
02:
P14
1
21
03:
04:
05:
06:
07:
08:
AD-8-4
1
1
1
2-1
0
Table 1 Programs
Sec. Execution Interval
Temp 107 Probe
Rep
IN Chan
Excite all reps w/EXchan 1
Loc [:REF_TEMP ]
Mult
CR10X
Offset
06:
01:
02:
03:
04:
05:
06:
07:
08:
P5
1
14
3
1
250
18-1
0
AC Half Bridge
Rep
250 mV fast Range
IN Chan
Excite all reps w/EXchan 1
mV Excitation
Loc [:SOIL_M_1 ]
Mult
Offset
07:
P95
End
08:
01:
P86
51
Do
Set low Port 1
09:
01:
02:
03:
P59
16
18
.1
BR Transform Rf[X/(1-X)]
Reps
Loc [:SOIL_M_1 ]
Multiplier (Rf)
10:
P84
01:
0
02: 3600
03:
0
Data Table
Seconds into interval
Seconds interval
Records (0=auto; -=redirect)
11:
01:
02:
Average
Reps
Loc REF_TEMP
12:
P71
33
1
P
End Table 1
1
10
Table 1 Programs
Sec. Execution Interval
P3
2
1
2
10
.254
0
Pulse
Reps
Pulse Input Chan
Switch closure
Loc [:Rain_1 ]
Mult
Offset
02:
P84
01:
0
02: 3600
03:
0
Data Table
Seconds into interval
Seconds interval
Records (0=auto; -=redirect)
03:
01:
02:
P72
2
10
Totalize
Reps
Loc Rain_1
04:
01:
02:
P70
1
12
Sample
Reps
Loc Rain_3
05:
P92
01:
0
02: 3600
03:
30
If time is
seconds into a
second interval
Then Do
06:
01:
02:
03:
P30
0
0
12
Z=F
F
Exponent of 10
Z Loc [:Rain_3 ]
07:
P95
End
08:
End Table 1
Table 3 Subroutines
01:
01:
02:
01:
02:
03:
P85
98
P
12
.254
12
Beginning of Subroutine
Subroutine Number
34 Z=X+F
X Loc Rain_3
F
Z Loc [:Rain_3 ]
03:
01:
02:
03:
04:
P22
1
0
20
0
04:
P95
End
05:
End Table 3
AD-8-5
1
5
Table 1 Programs
Sec. Execution Interval
01:
01:
02:
03:
04:
05:
06:
P3
1
1
22
1
1.789
1
Pulse
Rep
Pulse Input Chan
Switch closure; Output Hz.
Loc [:WS
]
Mult
Offset
02:
01:
02:
P4
1
14
Excite,Delay,Volt(SE)
Rep
250 mV fast Range
AD-8-6
03:
1
04:
1
05:
5
06: 1000
07:
2
08:
.7273
09:
0
03:
01:
02:
03:
04:
05:
06:
04:
01:
02:
03:
04:
05:
06:
P11
1
2
2
3
1.8
32
P1
1
2
3
4
.14493
0
IN Chan
Excite all reps w/EXchan 1
Delay (units .01sec)
mV Excitation
Loc [:WD_360 ]
Mult
Offset
Temp 107 Probe
Rep
IN Chan
Excite all reps w/EXchan 2
Loc [:Temp_F ]
Mult
Offset
Volt (SE)
Rep
7.5 mV slow Range
IN Chan
Loc [:Solar_Rad]
Mult
Offset
05:
01:
02:
03:
04:
P54
4
1
1
5
05:
06:
01:
P86
1
Do
Call Subroutine 1
07:
01:
02:
P53
5
10
03:
04:
0
1.8519
05:
06:
0
5.7143
25
07:
08: 1000
09:
Block Move
No. of Values
First Source Loc WS
Source Step
First Destination Loc
[:WS_output]
Destination Step
08:
P103
01:
4
02:
30
03:
5
SDM-A04
Reps
Address
Loc WS_output
09:
P84
01:
0
02: 3600
03:
0
Data Table
Seconds into interval
Seconds interval
Records (0=auto; -=redirect)
10:
01:
02:
03:
04:
05:
P69
1
180
0
1
2
Wind Vector
02:
Rep
01:
Samples per sub-interval
02:
Polar Sensor/(S, D1, SD1)
03:
Wind Speed/East Loc WS
04:
Wind Direction/North Loc WD_360
03:
Average
01:
Reps
04:
Loc Temp_F
P89
10
3
270
30
If X<=>F
X Loc WD_540
>=
F
Then Do
11:
01:
02:
P71
2
3
P86
11
Do
Set high Flag 1
P94
Else
End Table 1
05:
01:
P86
21
Do
Set low Flag 1
06:
P95
End
07:
01:
02:
P31
2
10
Z=X
X Loc WD_360
Z Loc [:WD_540 ]
08:
01:
02:
03:
04:
P89
10
4
180
30
If X<=>F
X Loc WD_540
<
F
Then Do
09:
01:
02:
P91
11
30
If Flag/Port
Do if flag 1 is high
Then Do
10:
01:
02:
03:
P34
10
360
10
Z=X+F
X Loc WD_540
F
Z Loc [:WD_540 ]
11:
01:
02:
P31
10
6
Z=X
X Loc WD_540
Z Loc [:WD540_out]
12:
P95
End
13:
P95
End
14:
P95
End
15:
12:
2:WD_360
6:WD540_out
10:WD_540
*
*
01:
01:
3
3
P85
1
End Table 3
Beginning of Subroutine
Subroutine Number
AD-8-7
to
10
to
30
to
100
to
300
to 1000
and greater
1
2
3
4
5
6
1
10
Table 1 Programs
Sec. Execution Interval
AD-8-8
01:
01:
02:
P91
21
0
If Flag/Port
Do if flag 1 is low
Go to end of Program Table
P87
1
60
Beginning of Loop
Delay
Loop Count
03:
01:
P86
1
Do
Call Subroutine 1
04:
P95
End
P87
3
40
Beginning of Loop
Delay
Loop Count
06:
01:
P86
1
Do
Call Subroutine 1
07:
P95
End
P87
6
70
Beginning of Loop
Delay
Loop Count
09:
01:
P86
1
Do
Call Subroutine 1
10:
P95
End
P87
12
100
Beginning of Loop
Delay
Loop Count
12:
01:
P86
1
Do
Call Subroutine 1
13:
P95
End
P87
30
140
Beginning of Loop
Delay
Loop Count
15:
01:
P86
1
Do
Call Subroutine 1
16:
P95
End
P87
60
0
Beginning of Loop
Delay
Loop Count
18:
01:
P86
1
Do
Call Subroutine 1
19:
01:
02:
P91
21
31
If Flag/Port
Do if flag 1 is low
Exit Loop if true
20:
P95
End
21:
End Table 1
Table 3 Subroutines
01:
01:
P85
1
02:
01:
02:
P6
1
22
03:
1
04:
1
05: 1500
06:
1
07:
.46199
08: 102
Beginning of Subroutine
Subroutine Number
Full Bridge
Rep
7.5 mV 60 Hz rejection Range
IN Chan
Excite all reps w/EXchan 1
mV Excitation
Loc [:LEVEL_FT ]
Mult
Offset
03:
01:
02:
03:
P84
0
0
0
Data Table
Seconds into interval
Every time
Records (0=auto; -=redirect)
04:
01:
02:
P70
1
1
Sample
Reps
Loc LEVEL_FT
05:
P95
End
06:
End Table 3
AD-8-9
AD-8-10
Time/Date Units
00
01
02
03
04
05
06
PARAM
NUMBER
DATA
TYPE
01:
02:
2
4
03:
DESCRIPTION
Time/Date Code
Number to modulo
divide by
Input Location Number
AD-9-1
OPTIONS
00
01
PARAM.
NUMBER
01:
02:
2
2
03:
Repetitions
Time of maximum
(optional)
Starting input location no.
01:
02:
2
2
03:
FUNCTION
Instruction 84 is used to define a table of final
storage data. New records of data are stored in
the table based on time (interval data) or when
a user flag (CR10X flags 1-8) is set (event
data). Time based output intervals are
specified in seconds. Fractional values may be
used following the same rules that apply for the
table scan rate.
PARAM.
NUMBER
DATA
TYPE
DESCRIPTION
01:
FP
02:
FP
03:
FP
DESCRIPTION
PARAM.
NUMBER
DESCRIPTION
Repetitions
Time of minimum
(optional)
Starting input location no.
AD-11-2
Wireless Networks
More recent CR10X, CR510, and CR23X dataloggers with the PakBus
operating system use the PakBus communications protocol. In addition to
providing a robust means of packet based communication, the protocol allows
transfer of input location data from one datalogger to another, or from a
Campbell Scientific wireless sensor/datalogger (CR200 series datalogger) to a
"host" (or "master") TD datalogger.
The following is some general information on the requirements for successful
communication in a PakBus network.
Datalogger Requirements
PakBus communication requires the current PakBus operating system in the
CR10X, CR510, or CR23X datalogger. All CR200 Series dataloggers are
capable of PakBus communication.
All dataloggers in the PakBus network require a unique address. The address
for TD dataloggers is set in the *D15 mode. The address for the CR200
datalogger's is set using Pakcom software or LoggerNet version 2.1 or greater.
Communication Notes
PakBus dataloggers are also capable of Modbus communication. The Modbus
packet can ride on top of the PakBus packet or can be send independently.
Instruction 190 is used to set up a datalogger as a Modbus master device. The
datalogger's Modbus address is set in the *D8 mode of the datalogger. The
Modbus and Pakbus addresses for a datalogger cannot be the same.
In order to communicate to a datalogger via another datalogger from
LoggerNet's Connect window (e.g., communicating with a CR205 via a
CR10XTD-PB) the datalogger through which you will be communicating must
be set as a router. This is done by entering the number of remote dataloggers
that the router will be connecting to in the *D15 mode, parameter 2.
The PakBus instructions described in this section are often used in combination
with a CR200 series datalogger and the RF400 series spread spectrum radio.
Table 12-1 lists some of the advantages and disadvantages of different methods
of transferring data.
12-1
General Description
PRO
CON/limitations
PakBus Instructions
used in Datalogger
Programming
12-2
Stand Alone
Datalogger
CR205 is programmed
as a stand alone
datalogger. Data are
stored in datalogger and
retrieved by computer
running Loggernet
Normal programming to
measure sensors,
process, and store data.
SendGetData P190
Master datalogger
stores all data and sets
transmission schedule
for remote CR205 w/
sensors.
SetValue, GetValue, or
P190 in datalogger
initiating
communication.
Programming to deal
with any sent data or
codes in the other
datalogger.
Radio Settings
CR205
Power Mode and
Header
RF400 on CR10X
or CR23X
Beacon Interval
RF400 on computer
LoggerNet Settings
When RF400 with direct
access to network is
connected to computer.
Stand Alone
SendGetData P190
Wireless Sensor P193
Datalogger
Radio address, net address, and hop sequence must be the same in all CR2xxs
and RF400s in the network. Because only one header length can be set for a
radio, only one power cycling interval should be used in network; i.e., do not
mix 8 second and 1 second interval radio power cycling. RF on (no cycling) is
specified where necessary below.
NO HEADER.
Select power mode for
Select power mode for
RfpinEn (lowest power)
appropriate response
appropriate response
time and current drain.
time and current drain.
or to allow communication with computer for
Header must match
checking station, downcalled stations cycle.
loading program:
RF8_Sec or RF1_sec.
Router, if used, must
RF on, header to match
Router, if used, must
send appropriate header
CR205 setting to allow
send appropriate header
contacting CR205
0
0
0
RF on, header to match
RF on, header to match
RF on, header to match
neighbors settings
neighbors settings
neighbors settings
For each datalogger:
For each datalogger
For each master
with stored data:
datalogger:
Com
Com
Com
-PbusPort
-PbusPort
-PbusPort
-logger
-logger
-logger
12-3
Notes:
Edlog allocates only one of the input locations used in parameters 5 and 7 of
this instruction. The additional input locations must be inserted manually using
the Input Location Editor.
If this instruction is used to retrieve a value or set a value in the remote
datalogger's public (or input location) table (i.e., code 26 or 27 is used in
parameter 3), Instruction 63 or 68 must follow this instruction to enter the
variable name that will be accessed.
Index parameter 3 to delay execution of subsequent program instructions until
the datalogger receives a valid response or error from the remote. Otherwise,
the PakBus command is queued, the datalogger proceeds to the next
instruction, and the communications are handled later when the remote replies.
Port
The communications port that will be used by the local PakBus datalogger
during the execution of this instruction. Valid options are:
Code
Description
16
17
SDC 7
18
SDC 8
Note: The CR10X-TD and CR510-TD have limited communication rates and
do not support options 4 through 7.
Address
When a PakBus command is being issued, this address refers to the PakBus
address of the datalogger. When a Modbus command is being issued, this
address refers to the Modbus address. The PakBus and Modbus addresses in
the datalogger cannot be set to the same number.
If this instruction is used within a loop, index this parameter to automatically
increment the address with each pass through the loop. When this parameter is
indexed, program execution will be delayed until a response is received from
the remote datalogger.
12-4
PakBus Communication
The unique address for the datalogger in the PakBus network that will be
communicated with using this instruction.
The Pakbus address is set in the datalogger's *D15 mode.
Modbus Communication
The unique address for the datalogger in a Modbus network that will be
communicated with using this instruction (the slave device).
The Modbus address is set in the datalogger's *D8 mode. The valid range of
IDs for a Modbus slave device are 1 - 99. Setting the datalogger's Modbus
address to 0 disables it as a Modbus slave.
Command
This parameter determines what type of communication should take place in
the PakBus or Modbus network when the instruction is executed.
Command
1
2
3
4
5
15
16
21
22
26
27
61
62
63
64
65
66
67
Description
Read Coil Status (Modbus command)
Read Input Status (Modbus command)
Read Holding Registers (Modbus command)
Read Input Registers (Modbus command)
Force Single Coil (Modbus command)
Force Multiple Coils (Modbus command)
Preset Multiple Registers (Modbus command)
Receive input location data from another datalogger (Pakbus
command)
Send input location data to another datalogger (Pakbus
command)
Get Value
Set Value
Read Coil Status (Modbus command)
Read Input Status (Modbus command)
Read Holding Registers (Modbus command)
Read Input Registers (Modbus command)
Force Single Coil (Modbus command)
Force Multiple Coils (Modbus command)
Preset Multiple Registers (Modbus command)
Notes:
Codes 61 through 67 are used when the Modbus packet will ride on top of
Pakbus as a datagram.
If Get Value or Set Value is used (26 or 27), parameter 5 is left blank and
Instruction 63 or 68 is used following this instruction to enter the variable
name in the datalogger's Public (or input locations) table that will be accessed.
If this parameter is indexed, the datalogger will proceed to the next instruction
only after it receives a valid response or error from the remote. Otherwise, the
PakBus command is queued, the datalogger proceeds to the next instruction,
and the communications are handled later when the remote replies. It may be
12-5
Security
Enter the level 2 security code for the remote datalogger in the PakBus network
that will be communicated with using this instruction when Command 22 is
used for parameter 3 (send input location data to another datalogger).
If the security code in this instruction does not match the security code of the
remote datalogger, the remote datalogger will discard the message, and the
failure will be indicated in the local datalogger by an incremental change in the
Result Code Location (parameter 8).
If security is not set in the remote datalogger or if command 21 is used for
parameter 3, this parameter can be left at 0.
For additional information on security codes, see Program Security.
Enter the level 2 security code for the remote datalogger in the PakBus network
that will be communicated with using this instruction when Command 22 is
used for parameter 3 (send input location data to another datalogger).
If the security code in this instruction does not match the security code of the
remote datalogger, the remote datalogger will discard the message, and the
failure will be indicated in the local datalogger by an incremental change in the
Result Code Location (parameter 8).
If security is not set in the remote datalogger or if command 21 is used for
parameter 3, this parameter can be left at 0.
Remote Location/Coil/Register
PakBus Communication
If data is being received from another datalogger in the PakBus network
(Parameter 3 set to 21), this is the first input location in the remote datalogger
from which to retrieve the data.
If data is being sent to another datalogger in the PakBus network (Parameter 3
set to 22), this is the first input location in the remote datalogger in which to
store the first data value.
If a variable in the Public (or Input Locations) table is being accessed using Get
Value or Set Value (Parameter 3 set to 26 or 27), this parameter is left blank
and Instruction 63 or 68 is used following this instruction to enter the variable
name.
Modbus Communication
This is the first coil or register to be acted upon when the instruction is
executed.
For general information on input locations, see Input Locations.
12-6
Remote Location
PakBus Communication
If data is being received from another datalogger in the PakBus network
(Parameter 3 set to 21), this is the first input location in the remote datalogger
from which to retrieve the data.
If data is being sent to another datalogger in the PakBus network (Parameter 3
set to 22), this is the first input location in the remote datalogger in which to
store the first data value.
Modbus Communication
This is the first coil or register to be acted upon when the instruction is
executed.
Swath
PakBus Communication
The number of input locations that will be sent to or retrieved from the remote
datalogger.
Modbus Communication
The number of subsequent coils or registers that will be acted upon when the
instruction is executed.
Local Location
PakBus Communication
If data is being received from another datalogger in the PakBus network
(Parameter 3 set to 21), this is the first input location in which to store the data.
12-7
or unpacked with the least significant bit of the first byte, starting at this
location. Incoming discrete values are set to -1.0 for ON and 0 for OFF.
Outgoing discrete values are translated as 0.0 to OFF and non-zero to ON.
For general information on input locations, see Input Locations.
Description
Successful
Initial attempt failed (value indicates the number of retries)
Table ID
The ID for the data table that should be sent to the computer using this
instruction. If the ID is set to 0, then all final storage tables will be transferred.
Flag
The user flag that will determine if the table definitions are transferred along
with the data table(s). When the flag is high, the table definitions for the
specified table(s) will be output as a separate data gram.
12-8
This instruction is not necessary in networks with wireless sensors and only
one Master datalogger, because the Wireless Network Master (P193) and
Wireless Network Remote (P196) instructions perform these functions
automatically.
This instruction can also be used to remove a datalogger from the PakBus
network.
3:
1:
2:
3:
Message Type
Entry
2
13
Description
Clock report; sends the current time.
The datalogger that receives this message will remove the sending
datalogger from its neighbor list (and therefore all links to the sending
datalogger).
Notes:
The wireless sensors will actually begin transmitting before the specified
transmission time (based on Time Into Transmit Interval and Transmit Interval)
so that transmission is complete when the specified transmission time occurs.
The Transmit Delay Between Remotes is factored into to the transmit time
assigned to each remote.
12-9
Edlog allocates only one of the input locations used in parameters 7, 9, and 10
of this instruction. The additional input locations must be inserted manually
using the Input Location Editor. For information on manually inserting input
locations, refer to Manually Inserting Input Locations Into Edlog.
Number of Remotes
The number of remote dataloggers/wireless sensors in the PakBus network that
will be communicated with using this instruction.
Transmit Interval
The transmission interval, in seconds, that will be assigned to the group of
dataloggers/remote sensors being set up with this instruction. The valid range is
1 through 9999.
The wireless sensors will actually begin transmitting before the specified
transmission time (based on Time Into Transmit Interval and Transmit Interval)
so that transmission is complete when the specified transmission time occurs.
The Transmit Delay Between Remotes, parameter 5, is factored into to the
transmit time assigned to each remote.
The datalogger program can be written to execute P193 on every program scan,
or within a P92 (If Time) instruction. The Transmit Interval must equal the
interval on which Instruction 193 is being executed.
Note: The Transmit Interval must be sufficiently long so that all of the remotes
have a chance to respond before the next transmit interval occurs. Therefore,
Transmit Interval must be equal to or greater than Number of Remotes *
Transmit Delay Between Remotes. You will have to estimate the Transmit
Delay Between Remotes if that value (parameter 5) is set to 0 (which means
use the estimated value from the datalogger's routing table).
12-10
Example
To set up the remotes for an hourly transmission at 15 minutes past the hour,
the Time into Transmit Interval would be set at 900 and the Transmit Interval
would be set at 3600.
Description
Use the default, as determined by the routing table
Use the value entered
Use no delay (dashes are accomplished by indexing the parameter)
Note: The wireless sensors will actually begin transmitting before the specified
transmission time (based on Time Into Transmit Interval and Transmit Interval)
so that transmission is complete when the specified transmission time occurs.
The Transmit Delay Between Remotes is factored into to the transmit time
assigned to each remote.
Example
Assume 4 wireless remotes in a network, with the first having an address of 1
and the remainder of the remotes addressed consecutively. The transmission
time is set at 900 seconds into a 3600 second interval (15 minutes past each
hour). If Transmit Delay Between Remotes is set at 5, Remote 4 will transmit
at about 15 seconds before the transmit time, Remote 3 at about 10 seconds
before, Remote 2 at about 5 seconds, and Remote 1 at the transmit time.
Swath to Receive
The number of data values that will be received from each remote when data is
transferred. If a remote sends less than the number of values indicated by the
swath, the remaining locations will be filled with an overrange value (-99999).
If a remote sends more than the number of data values indicated by the swath,
the extra values will be discarded by the local datalogger.
12-11
Swath to Send
The number of data values that will be sent to each remote when data is
transferred.
12-12
Address
The unique address for the host (master) datalogger in the PakBus network,
whose clock value will be used to set the clock in the remote datalogger.
The address is set in the datalogger's *D15 mode (refer to the datalogger user's
manual for additional information). It can be any number between 1 and 4095.
12-13
Security
Enter the level 2 security code for the master datalogger in the PakBus network
that will be communicated with using this instruction .
If the security code in this instruction does not match the security code of the
master datalogger, the master datalogger will discard the message, and the
failure will be indicated in the local datalogger by an incremental change in the
Result Code Location (parameter 8).
If security is not set in the master datalogger, this parameter can be left at 0.
For additional information on security codes, see Program Security.
Enter the level 2 security code for the master datalogger in the PakBus network
that will be communicated with using this instruction .
If the security code in this instruction does not match the security code of the
master datalogger, the master datalogger will discard the message, and the
failure will be indicated in the local datalogger by an incremental change in the
Result Code Location (parameter 8).
If security is not set in the master datalogger, this parameter can be left at 0.
Swath to Send
The number of data values that will be sent to the host (master) datalogger
when data is transferred.
12-14
Note: For communications paths where there are multiple hops, this instruction
fixes only the first hop.
Neighbor's Address
The address of the first hop (or repeater) in the PakBus network that the
datalogger should use in communicating with the destination datalogger.
Hops
The number of hops (or repeaters) in the communications path to the
destination datalogger.
12-15
Result Location
Result Code
-1001
-1002
-1003
0
>1
Description
The attempted setting is a read-only setting
Out of space in the remote
Syntax error
Success
Number of communication failures
Example
Consider the following routing table information:
Master Datalogger
PakBus Addr 3
PakBus Addr 4
12-16
PakBus Addr 5
Value
Stored
10
-1
End of string
Description
Network
The Network option is used to set the PakBus address in the datalogger and to
configure the datalogger as a router if required. This option is the same as the
datalogger's *D19 mode.
Address - Enter the PakBus address that should be assigned to the datalogger.
Maximum number of nodes - Enter the total number of dataloggers in the
PakBus network.
Maximum number of neighbors - Enter the number of dataloggers in the
PakBus network that the datalogger can communicate with directly (i.e.,
without going through another datalogger).
Maximum number of routers - Enter the number of neighbors to the datalogger
that act as routers to one or more other dataloggers in the PakBus network.
Beacon Intervals
This option is used to set the interval on which the datalogger will transmit a
beacon out a particular port to the PakBus network. Use the drop-down list box
to select the port over which the beacon will be transmitted, and enter the
12-17
desired interval in the Communications Interval field. This option is the same
as the datalogger's *D18 mode.
In some networks, a beacon interval might interfere with regular
communication in the PakBus network (such as in an RF network), since the
beacon is broadcast to all devices within range. In such cases, it may be more
appropriate to use the Neighbor Filter instead, which broadcasts a beacon only
to those dataloggers which it has not received communication from within a
specified interval.
Neighbor Filter
This option allows you to list potential neighbors that are available to the
datalogger in the PakBus network. The datalogger will attempt to issue a
"hello" command to all the dataloggers listed in the neighbors filter list, and
will transmit an expected communication interval. The communication interval
is the interval on which the datalogger expects to receive communication from
the neighbors. If communication is not received from a neighbor within 2.5
times this interval, then the datalogger will attempt to issue another "hello"
command to that datalogger only (thus, creating less network traffic than the
Beacon Interval).
The expected interval is entered into the Communication Interval field in
seconds. The neighbors are defined by entering their addresses into the table. A
range of addresses can be entered by using the Swath field. For example,
entering 1 for the address and 5 for the swath will set up dataloggers with
PakBus addresses 1, 2, 3, 4, and 5 as neighbors to the current datalogger.
This option is the same as the datalogger's *D19 mode.
12-18
CR23X INDEX
NOTE: The pages listed in this index will get you in the right section; however, the exact page
number may be off.
Modes, see Modes
1/X - [Instruction 42] 10-2
3 Wire Half Bridge - [Instruction 7] 9-4, 13-18,
13-19, 13-20
Programming Example 7-5
3WHB10K - 10 K ohm 3-Wire Half Bridge
Module 7-6
4 Wire Full Bridge, see Full Bridge with Single
Diff. Measurement - [Instruction 6]
4WPB100 - 100 ohm 4-Wire PRT Bridge
Module 7-4
5th Order Polynomial - [Instruction 55] 10-5
Programming examples 7-11, 7-12, 7-18,
8-21
5V Outputs OV-3, OV-5
9-Pin Serial Port 6-1
12V terminals OV-3, OV-4
100 ohm PRT
3 wire half bridge 7-5
4 wire half bridge 7-4
4 wire full bridge 7-6
101 Thermistor Probe
Programming example 7-11
107 Thermistor Probe - [Instruction 11] 9-6
Programming examples 7-3, 8-4, 8-6
207 Relative Humidity Probe - [Instruction 12] 9-7
223 Gypsum Soil Moisture Blocks 8-3
227 Gypsum Soil Moisture Block 7-10
A
A*X + B, see Scaling Array with Multiplier and
Offset - [Instruction 53]
A6REL-12/A21REL-12 Relay Driver 14-7
ABS(X) - [Instruction 43] 10-3
AC Excitation Measurements 13-20
AC Half Bridge - [Instruction 5] 9-4, 13-18,
13-19, 13-20
Programming examples 7-10, 8-4
AC/DC Relay Controller, see SDM-CD16AC
Activate Serial Data Output - [Instruction 96]
4-1, 12-6
Interrupts during 6-3
Programming examples OV-16, 8-8
Using Storage Module with 4-5
Alkaline power supply 14-3
B
BATT VOLT, see Battery Voltage - [Instruction 10]
Battery Power 14-3
Battery Voltage - [Instruction 10] 9-6
Baud rate
Definition 6-7, A-1
Begin Case Statement - [Instruction 93] 12-5
Beginning of Loop, see Loop - [Instruction 87]
Binary telecommunications C-1
Generation of signature C-5
Block Move - [Instruction 54] 10-5
Programming examples 8-6, 8-13
INDEX-1
CR23X INDEX
C
Cables/Leads
Avoid PVC insulated conductors 13-10
Connecting Leads to Wiring Panel OV-1
Effect of lead length on signal settling
time 13-4
Tipping bucket rain gage with long leads 7-4
Calibration - [Instruction 24] 9-14, 13-21
Case
Begin Case - [Instruction 93] 12-5
If Case <F - [Instruction 83] 12-1
Cautionary notes x
CD16AC, see SDM-CD16AC AC/DC Relay
Controller
Channels
Differential analog OV-3, 13-2
Single-ended analog OV-3, 13-2
Checksum 5-2
Clear To Send (CTS) 6-6, B-1
Clock
Example of setting OV-19
5
Mode) 1-4
Set/display time (
CM6/CM10 Tripods grounding protection 14-6
COM200 Phone Modem 6-2, 12-7, G-1, H-2
Lightning Protection 14-5
Typical Current Drain 14-1
Common mode range 13-3, 14-7
Communicating with the CR23X OV-11
Via telemetry 5-1
With external peripherals 4-1
With other dataloggers H-1
Communication
Protocol OV-11, 5-1, 6-7
Troubleshooting 6-7
INDEX-2
Compiling
Data 1-5
Errors 3-9
Program 1-3
Computation of Running Average 8-1, 10-4
Computer
Connecting to serial port OV-11
D Mode) 1-11
Save/load program (
Use with SC32A OV-12, 6-5
Connecting Power to the CR23X OV-3, OV-5,
14-2
Control Port Expansion Module with Drivers,
see SDM-CD16AC
Control/Logic ports
Command codes affecting OV-4, 12-1
Configuration, see Port Set - [Instruction 20]
Description of OV-4
Displaying and Toggling 1-5, C-1
Indexing 3-1
Switch Closures, Measuring on Control
Ports 8-5, 9-1
Use of digital I/O ports for switching relays 14-7
Using control ports for RS-232 Input B-1
Voltages > 5.0, Applying x, 9-10
Control port serial I/O - [Instruction 15] 9-9, B-1
Programming examples B-1, B-9
Copy input location data to another location [Instruction 31] 10-1
Programming example 8-7, 8-13
Cosine 10-3
Counter
Add 1 to value in input location [Instruction 32] 10-1
Pulse, see Pulse Count - [Instruction 3]
Sending to 16 bit accumulator 9-2
COV/CORR, see Covariance/Correlation [Instruction 62]
Covariance Correlation - [Instruction 62] 10-11
Programming Example 8-11
CS500 Temp/RH Sensor 7-12
CSAT3, see SDM-CSAT3
CSM1 Card Storage Module, see Storage
Modules
CTS (Clear To Send) 6-6, B-1
Current drain of standard peripherals 14-1
CURS100 Terminal Input Module 7-22
D
Data Carrier Detect (DCD) 6-6
Data point
Definition A-1
Number per Output Array 4-3
CR23X INDEX
E
Earth Ground OV-4, 14-6
Editing datalogger programs OV-18
Editor errors 3-9
EDLOG OV-11, OV-12, OV-14, 1-1
ELSE - [Instruction 94] 12-6
Programming example 8-7
Enclosures, Environmental 14-1
END - [Instruction 95] 12-6
Programming examples 7-19, 8-7
Erasing all memory ix, 1-8
Error codes 3-9
Overranging 3-2
Overrun occurrences 1-1
Examples, programming OV-14
Ex-Del-Diff - [Instruction 8] 9-5, 13-16 to 13-19
Ex-Del-SE, see Excite, Delay, and Measure [Instruction 4]
Excit-Del, see Excitation with Delay [Instruction 22]
Excitation outputs OV-3, OV-4
Excitation with Delay - [Instruction 22] 9-10
Programming examples 7-12, G-1
Excite, Delay, and Measure [Instruction 4] 9-4, 13-17 to 13-19
Programming examples 7-11, 7-18, 8-6
Execution interval OV-8, 1-1
Definition A-1
Example of entering OV-14
Exceeding 1-1
Execution time
Definition A-1
Program instructions 3-6
Execution time requirements for instructions 3-6
EXP(X) - [Instruction 41] 10-2
Extended parameters 4 digit - [Instruction 68]
10-16, H-2
External power supply 14-4
External Reference Junction 7-2
External Storage Peripherals 4-1
8
Mode)
Manually Initiated Data Output (
4-3
F
Fast and Slow Measurement Sequence 13-1
Fast Fourier Transform (FFT) - [Instruction 60] 10-7
Programming example 8-15
FFT, see Fast Fourier Transform - [Instruction 60]
Figures, List of LF-1
INDEX-3
CR23X INDEX
G
Garbage 6-8, A-1, xi to H4
Geokon's Vibrating Wire Pressure Sensor 7-14
GOES, see TGT1 Telonics GOES
Ground loop influence on resistance
measurements 13-20
Grounding
Lightning protection OV-4, 14-6
see also Analog, Earth ground power
Gypsum Soil Moisture block
223 Blocks 8-3
227 Blocks 7-10
H
Half Duplex, Definition 6-7
Handshaking on 9 pin connector
Definition A-1
Modem/terminal hardware 6-5
High resolution
and Memory size 2-1
Definition A-1
INDEX-4
I
ID
Set Datalogger ID 1-13
Read Datalogger ID - [Instruction 117] 9-23
If Case X < F - [Instruction 83] 12-1
If Flag/Port - [Instruction 91] 12-5
Programming example 8-7
IF Then/Else comparisons 3-4
If TIME - [Instruction 92] 12-5
Programming examples OV-16, 8-4, 8-5
If X Compared to F - [Instruction 89] 12-4
Programming examples 8-3
If X Compared to Y - [Instruction 88] 12-4
Increment Value in Input Location [Instruction 32] 10-1
Indexing 3-1, A-1
Indirect Move - [Instruction 61] 10-11
Initiate Telecommunications [Instruction 97] 12-7
From one datalogger to another H-1
Programming example G-1, H-1
Input Locations, Indexing 3-1
Input Storage
Altering 1-4
Changing size of 1-8
Data format 2-3, C-3
Definition OV-5, A-2
Displaying 1-4
Setting Powerup Options 1-13
Input/Output Instructions 9-1
Definition OV-9, A-2
Memory and execution times 3-6
Programming examples 7-1
Voltage range parameter 3-2
Installation and maintenance 14-1
Power requirements 14-2
Instruction location number, Definition A-2
Instruction set, CR23X 3-1
Definition OV-9
Format OV-13
Memory requirements 3-6
Time requirements for execution 3-6
see Input/Output, Output Processing,
Program Control, Processing
CR23X INDEX
K
Key functions OV-11
Keyboard OV-11
7
Mode) 2-3
Displaying Data (
Entering Programs with OV-13
Key Definition OV-11
Typical Current Draining 14-1
L
Labels OV-4
Label Subroutine - [Instruction 85] 12-1
Programming examples 8-10, 8-21
Program Table 3 OV-8, 1-1
Lead acid power supply 14-3
Leads, see Cables/Leads
LI-COR LI200S 7-1
Lightning, Protection from 14-6
Lithium battery, replacing 14-8
Lithium battery usage OV-5, 14-9
LN(X) - [Instruction 40] 10-2
Load cell
Programming examples 7-8, 8-8
Load Fixed Data - [Instruction 30] 10-1
Programming examples 7-19, 8-8
Load program from FLASH memory 1-11
Logarithmic Sampling 8-9
M
Maintenance 14-8
Manually initiated, Definition A-2
8
Mode)
Manually initiated data transfer (
4-3
Maximum - [Instruction 73] 11-3
Programming example OV-16
Measurement Programming Examples 7-1
Memory and Programming Concepts OV-5
Allocation 1-6
Automatic check on power-up 1-6
Description of areas OV-5, 1-6, 1-7
Erasing all ix, 1-8
Expanding 1-8
Final Storage OV-6, 2-1
Input Storage OV-5, 1-6
Instruction & execution time 3-6
Intermediate Storage OV-5, 1-6
Internal OV-5, 1-6
Pointers 2-1
Program OV-5, 1-7, 3-6
System OV-5, 1-7
B
1-9
Testing and system status Minimum - [Instruction 74] 11-3
Programming example OV-16
Minus sign (-) & (--), Entering 3-1
Modes, General overview OV-11
0
, Compile/Log Data 1-5
1
, Program Table 1 1-1
2
, Program Table 2 1-1
3
, Program Table 3 1-1
4
, Parameter Entry Table 1-2
5
- Set/Display Clock 1-4
6
- Display/Alter Memory and Ports 1-4
7
- Display Stored Data on
Keyboard/Display 2-3
INDEX-5
CR23X INDEX
N
Natural logarithm - [Instruction 40] 10-2
Negative numbers 3-1
Nesting 3-5
Noise
Common sources 13-1
Modem 6-4
Rejection 3-2
Non-integer portion, Extracting -[Instruction 44]
10-3
Nonlinear thermistor, Connecting to CR23X 7-11
O
On-line data transfer 4-1, 12-6, A-2
Operating details ix
Operating System (OS) Signature 1-9
OR construction, Logical 3-5
Output Array
and Output Interval A-2
Calculating data points per 4-3
Definition A-2
Setting ID 2-2
Output device codes
8
Mode 4-2
for
for Instruction 96 4-2, 12-7
INDEX-6
Output Flag
Description 3-3
Example of setting OV-14
Setting to interval < 1 minute 8-5
Output interval OV-8, A-2
Output Processing Instructions 3-2, 11-1
Definition OV-8, A-2
Memory and execution times 3-7
Overrange detection 3-2
Overrun errors 1-1, 1-9
Overrun execution 1-1
P
Panel Temperature - [Instruction 17] 9-9
Programming examples OV-14, 8-1
Parameter
Data types 3-1
Definition A-3
4
1-2
Parameter entry table
Parameter Extension - [Instruction 63] 10-14
Programming example G-2, H-2
Parity, Checking 6-7
Paroscientific T series processing [Instruction
64] 10-14
Programming example 7-19
PC208W Datalogger Support Software OV-11,
OV-13, 4-3, 5-1, 5-5, G-2
Period Measurement - [Instruction 27] 9-15
Programming example 7-21
Peripherals
Current drain for common 14-1
Enabling/Addressing 6-2
General 4-1
Physical description, CR23X OV-1
Polynomial, see 5th Order Polynomial [Instruction 55]
Port
Serial Input/Output 9-pin 6-1, 6-8
Port Read - [Instruction 25] 9-14
Port Serial I/O - [Instruction 15] B-1
Port Set - [Instruction 20] 9-10
Programming example 8-13
Port with Duration, see Pulse Port with Duration [Instruction 21]
Ports, see Control/Logic ports
Power ground OV-3, OV-4, 14-6
Power, Raising to Y - [Instruction 47] 10-3
Power requirements OV5, 14-1
Power supplies 14-2
Connecting directly to Wiring Panel 14-4
Connecting to CR23X OV-3, OV-5
Powerup Options, Setting 1-13
PPTR 2-2
CR23X INDEX
Pressure transducer
Programming examples 7-7, 7-19
Print device, Definition A-2
PRINT option on-line data transfer 4-1
Print peripherals 4-2, 6-2, A-3
Printer
Controlling data transmission to 2-2, 4-1
Output formats 4-3
D
Mode) 1-11
Save/Load programs (
Printer Pointer (PPTR) 2-2
Processing Instructions 10-1
Definition OV-8, A-3
Memory and execution times 3-7
Programming examples 8-1
Program Control Flags 3-3
Program Control Instructions 12-1
Command code parameter 3-4, 12-1
Definition OV-9, A-3
Logical constructions 3-4
Memory and execution times 3-8
Programming examples 8-1
Program memory
Definition OV-5, 1-7
Signature 1-9
Program Tables
Compiling 1-3
Definition 1-1, A-3
Example of entering program OV-13
Exceeding execution interval 1-1
Execution interval OV-7, 1-1
Instruction location number A-2
Interrupt subroutine 1-2, 12-1
Start/stop running 1-1
Table priority 1-2
Programming
Entering a program OV-13, 5-5
Entering negative numbers 3-1
Functional modes OV-11
Instruction format OV-13
Key definition OV-11
Logical constructions 3-4
Manual control of program execution 1-5
Overrange detection 3-2
Overview of Instruction Set 3-1
Program memory OV-5, 1-7
Remote 5-5
D
Mode) 1-11
Save/load programs (
Sequence OV-12
Programming examples OV-14, 7-1, 8-1
Editing an existing program OV-18
Sample program 1 OV-14
Sample program 2 OV-16
Programming the CR23X OV-12
Protection
from the environment 14-1
Lightning 14-5
Moisture x, 14-1, 14-8
Reverse polarity 14-2
Temperature 14-1
Transient OV-4, 14-1, 14-5
PS9104E - [Instruction 29] 9-16
Psychrometer programming example 12-3
Pulse Count - [Instruction 3] 9-1
Programming examples 7-3, 7-4, 8-5, 8-6
Pulse inputs OV-3, OV-4
Pulse port with duration - [Instruction 21] 9-10
PVC insulated conductors, Avoiding 13-10
R
Rain gauge, Tipping Bucket
Connecting to CR23X 7-4
Counting switch closure on 8-5
Rainfall intensity, Example of
programming 8-2
Rainflow Histogram - [Instruction 81] 11-5
RD (Received Data) 6-6
Read Datalogger ID - [Instruction 117] 9-23
Read Ports - [Instruction 25] 9-14
Real Time, see Set Real Time - [Instruction 114],
Record Real Time - [Instruction 77]
Received Data (RD) 6-6
Record Real Time - [Instruction 77] 11-4
Programming example OV-16
Reference Junction, see Thermocouple
Reference Junction
Relays, Using digital I/O ports for switching 14-7
Remote Keyboard State OV-11, 5-5
Repetitions parameter 3-1
Request To Send (RTS) 6-6, B-1
Resetting CR23X ix, 1-8
Resistance measurements
Bridge resistance 13-17
Requiring AC excitation 13-20
Resolution 2-3, 11-5
Retrieval options, Data storage and OV-20
RF95 Radio Modem 6-3, 6-4, 6-7, 12-9, H-2, I-2
Typical Current Drain 14-1
RH (207) 9-7
RH (CS500) 7-12
RI (Ring Indicator) 6-6
Ring interrupts 6-3
Ring Line (Pin 3) 6-1, A-3
Ring memory 2-1
RS-232 Input from Sensors B-1
RTD Temp, see Temperature from Platinum
RTD - [Instruction 16]
INDEX-7
CR23X INDEX
S
Sample - [Instruction 70] 11-2
Programming examples OV-14, 8-3
Sample on Maximum or Minimum [Instruction 79] 11-5
Sample rate 1-1, A-3
Saturation Vapor Pressure (VP) - [Instruction 56]
10-5
Save program in flash memory 1-12
SC32A RS-232 Interface OV-12, 5-1, 6-2, 6-3, 6-5
SC90 Serial Line Monitor 4-5
SC932 RS-232 DCE Interface 6-6
Typical Current Drain 14-1
Scaling Array with Multiplier & Offset [Instruction 53] 10-4
Programming examples 8-7, 8-21
SDC, see Synchronous Device Communication
SDC99 Synchronous Device Interface 4-2, 6-2
SDI-12 recorder - [Instruction 105] 9-18
SDI-12 sensor - [Instruction 106] 9-20
SDM group trigger - [Instruction 110] 9-22
SDM-AO4 4 Channel Analog Output Module [Instruction 103] 9-18
Current drain, Typical 14-1
Programming example 8-6
SDM-CD16AC AC/DC Relay Controller [Instruction 104] 9-18
Current drain, Typical 14-1
SDM-CSAT3 - [Instruction 107] 9-22
SDM-INT8 8 Channel Interval Timer [Instruction 101] 9-16
Current drain, Typical 14-1
SDM-SIO4 - [Instruction 113] 9-22
SDM-SW8A Switch Closure Input Module [Instruction 102] 9-17
Current drain, Typical 14-1
SDM-TDR - [Instruction 100] 9-16
SDM-UDG01 - [Instruction 108] 9-22
SDMX50 channel select - [Instruction 109] 9-22
SD's, see Synchronous devices
Security 1-11
Send Character - [Instruction 98] 12-9
INDEX-8
Sensors
Connecting to Wiring Panel OV-3
Effect of lead length on signal
settling time 13-4
Settling errors for CSI resistive sensors 13-8
Serial Input/Output
Control Port Serial I/O - [Instruction 15] B-1
General OV-4, OV-5, 6-1
Pin Description 6-1
Programming example OV-16, 8-8
Serial Out - [Instruction 96] 4-1, 12-6
Set Active Storage Area - [Instruction 80] 11-5
Programming examples 8-2, 8-3, 8-8
Set Datalogger ID 1-13
Set Real Time - [Instruction 114] 9-23
Set Port, see Port Set - [Instruction 20]
Set High or Low Resolution Data Storage
Format - [Instruction 78] 11-5
Programming example 8-18
Set SDM Baud - [Instruction 115] 9-23
5
Mode
Setting and Displaying the Clock 1-4
Setting Powerup Options 1-14
Signal ground OV-3, OV-4, 14-6
Signature
CR23X Operating System (OS) 1-9
Definition A-3
Generation of C-5
Signature - [Instruction 19] 9-9
SIN(X) - [Instruction 48] 10-3
Single-Ended measurements on analog inputs
OV-3, OV-4, 13-2
Single-Ended Volts - [Instruction 1] 9-1
Programming example 7-1
SM192/716 Storage Modules, see Storage
Modules
SMPL on MAX/MIN - [Instruction 79] 11-5
SMS 4-4
Solar panels 14-4
Spark gaps on wiring panel terminals 14-5
Spatial Average - [Instruction 51] 10-4
Programming examples 8-1, 8-2
Spatial Maximum - [Instruction 49] 10-3
Spatial Minimum - [Instruction 50] 10-4
Specifications OV-22
SPTR 2-2
SQRT(X) - [Instruction 39] 10-2
Square Root - [Instruction 39] 10-2
Standard and Weighted Value Histogram [Instruction 75] 11-3
Standard Deviation in Time [Instruction 82] 11-7
Start Bit 6-7
STD DEV, see Standard Deviation in Time [Instruction 82]
CR23X INDEX
T
Tables, List of LT-1
see also Program Tables
Table overruns 1-10, 9-3, A-3
TC, see Thermocouples
TD (Transmitted Data) 6-6
TDR, see SDM-TDR
Telecommunication 5-1
Automatic setting of baud rate 5-1
Automatic time-out from 5-2
Commands 5-3
Key definitions OV-11
Password/Security 5-4
Remote keyboard OV-11, 5-5
Telecommunication states 5-4
with Binary responses C-1
Telecommunications Command OV-12
Telecommunications (Modem) Pointer (MPTR) 2-2
Temp (107), see 107 Thermistor Probe [Instruction 11]
Temp, Module, see Internal Temperature [Instruction 17]
Temp RTD, see Temperature from Platinum
R.T.D. - [Instruction 16]
Temp TC DIFF, see Thermocouple Temperature
Measurement - [Instruction 14]
Temp TC SE, see Thermocouple Temperature
Measurement - [Instruction 13]
Temperature from Platinum R.T.D. [Instruction 16] 9-9
Programming examples 7-4, 7-5, 7-6, 8-13
Temperature from thermocouples, see
Thermocouple temperature
Temperature of Module, see Internal
Temperature - [Instruction 17]
Temperature range, CR23X 14-1
Terminal emulator OV-12
TGT1 Telonics GOES - [Instruction 99] 12-10
Thermocouple Measurements 13-12
Thermocouple Reference Junction 13-11, OV2, OV-16, 13-13
Programming Example 7-4
Thermocouple Temperature Measurement
Differential - [Instruction 14] 9-8
Programming example OV-16, 7-2
Single-Ended Measurement [Instruction 13] 9-7
Technique/error analysis 13-13
Using an External Reference Junction 7-3
Three Wire Half Bridge - [Instruction 7] 9-5,
13-17, 13-18, 13-19
Programming example 7-5
Throughput rate, Definition 1-1, A-3
Time - [Instruction 18] 9-9
Programming example 12-4
Time
Execution time requirements for instructions 3-6
Real Time, see Record Real Time [Instruction 77]
5
Mode) 1-4
Setting/displaying (
Standard Deviation in Time - [Instruction 82]
11-7
INDEX-9
CR23X INDEX
W
Watchdog reset 1-9, 3-9
Water Level
Programming examples 7-7, 7-14
WDT-VP, see Vapor Pressure from Wet/Dry
Bulb Temperatures - [Instruction 57]
Wind Vector - [Instruction 69] 11-1
Programming example 8-7
Wiring Panel
9 Pin Port Description 6-1
Connecting to Vehicle Power Supply 14-5
Description OV-1, 14-7
INDEX-10
Z
Z = 1/X - [Instruction 42] 10-2
Z = ABS(X) - [Instruction 43] 10-3
Z = ARCTAN(X/Y) - [Instruction 66] 10-15
Z = EXP(X) - [Instruction 41] 10-2
Z = F - [Instruction 30] 10-1
Programming examples 7-19, 8-9
Z = FRAC(X) - [Instruction 44] 10-3
Programming example 8-21
Z = INT(X) - [Instruction 45] 10-3
Z = LN(X) - [Instruction 40] 10-2
Z = SIN(X) - [Instruction 48] 10-3
Programming examples 8-18, 8-21
Z = SQRT(X) - [Instruction 39] 10-2
Z = X - [Instruction 31] 10-1
Programming examples 8-7, 8-13
Z = X + F - [Instruction 34] 10-1
Z = X + Y - [Instruction 33] 10-1
Z = X - Y - [Instruction 35] 10-1
Z = X * F - [Instruction 37] 10-2
Z = X * Y - [Instruction 36] 10-2
Z = X / Y - [Instruction 38] 10-2
Z = X MOD F - [Instruction 46] 10-3
Y
Z = X - [Instruction 47] 10-3
Z = Z + 1 - [Instruction 32] 10-1
Programming example B-11