beautypg.com

3 21x, 1 instruction 99, 2 datalogger programming theory – Campbell Scientific DCP100 GOES Data Collection Platform User Manual

Page 22

background image

DCP100 DATA COLLECTION PLATFORM

14

9.3 21X

9.3.1 Instruction 99

Theory

The 21X's Instruction 99 is the same as the
CR10X’s Instruction 120, except there is an
extra parameter that specifies the array of data
that is transferred to the TGT1 buffer.
Instruction 99 also automatically compares the
datalogger and transmitter's clocks. If the
clocks differ more than 3 seconds, the
datalogger's clock is set to the transmitter's.
However, only the seconds are compared;
therefore, the datalogger's clock is not reset
when the minutes or hours differ. The complete
time (HH:MM:SS) will be uploaded to the 21X if
the clocks differ by more than 3 seconds. Table
9.3-1 lists and describes Instruction 99’s
parameters.

TABLE 9.3-1 21X's Instruction 99

Parameters

01: xy Where: x = 0 self-timed buffer

x = 1 random buffer

y = 0 appends the new data to

the old data

y = 1 writes over the old data

02: z

Where: z>0

Starting input location for

the forward power
reading (see Section 7).
The next input location
automatically contains
the reflected power
reading (e.g., when the
forward power's input
location is 10, the
reflected power's input
location is 11). By
placing these readings
into input locations, you
can sample and output
the forward and reflected
power as part of the data
stream (21X Instruction
70).

z = 0

The forward and

reflected power readings
are NOT placed into
input locations.

03: ID Where: ID>0

The array ID for the data
that is transferred to the
TGT1's buffer.

9.3.2 Datalogger Programming Theory

Campbell Scientific dataloggers are
programmed via a keyboard/display or an IBM-
PC compatible computer running PC208
software. Please see your 21X manual for
detailed programming information.

To transmit two different arrays the datalogger's
program must have this structure:

Set Output Flag 0 high (10) based on
condition 1

Output Processing Instructions

Conditional Statement; if true “Then Do”
(Command Code 30)

P99 Data transfer to TGT1

Set Output Flag 0 high (10) based on
condition 2

Output Processing Instructions

Conditional Statement; if true “Then Do”
(Command Code 30)

P99 Data Transfer to TGT1

Also, when a storage module is connected,
special datalogger programming and a serial
cable for the storage module are required;
contact a Campbell Scientific applications
engineer for more information.

Table 9.3-2 illustrates the correct programming
structure.

TABLE 9.3-2 21X Example Program

This 21X program measures the battery
voltage, performs a thermocouple
measurement, and transfers an array of data to
the TGT1's self-timed buffer.

NOTE: Use a conditional statement (i.e.,
Instruction 92) to transfer data only when
there is an output to final storage.