Section 2. storing data from cr10, 21x, and cr7 – Campbell Scientific SM192/SM716 Storage Modules User Manual

Page 10

Advertising
background image

2-1

SECTION 2. STORING DATA FROM CR10, 21X, AND CR7

This section covers data storage from the CR10 and from the 21X and CR7 with current software. 21X
Microloggers released after February 1989, and CR7 dataloggers released after August 1991, contain
the OSX and OS7 Series PROMS which support two major SM functions that earlier versions do not:

1. Datalogger programs can be stored and retrieved in the *D Mode.

2. Instruction 96, transfer of binary Final Storage data to the SM, will not send data until the SM is
connected. In older versions of the 21X and CR7 PROMS, the Instruction 96 transfer is simply an ASCII
printer dump. Data are sent regardless of whether the SM is or is not connected.

See Section 3 for earlier PROM versions of the 21X and CR7.

2.1 INSTRUCTION 96 -- OUTPUT DATA

UNDER PROGRAM CONTROL

Instruction 96 is used to send Final Storage
data to a Storage Module under program
control. Instruction 96 should be entered into
the program table following the Output
Processing Instructions. Instruction 96 should
be executed each time the table is executed
(i.e. the program should not branch around or
skip over Instruction 96).

Instruction:

96

Parameter:

01: 7X - CR10 option 7X sends

the data to the Storage
Module with address "X".
X = 1 - 8

30 - 21X and CR7 use option

code 30 to send data to
Storage Module.

When output to the Storage Module is enabled
with Instruction 96, the Storage Module(s) may
either be left on-site and periodically
exchanged, or brought to the site to milk the
data from the datalogger.

The datalogger is capable of recognizing
whether or not the Storage Module is
connected. Each time Instruction 96 is
executed and there is data to output, the
datalogger checks for the presence of the
Storage Module. If one is not present, no data
are sent; the datalogger continues its other
operations without advancing its Storage
Module Pointer.

When the user finally does connect the Storage
Module to the datalogger, two things happen:

1. Immediately upon connection, a File Mark is

placed in the Storage Module Memory at
the position of the Module's Storage
Reference Pointer (SRP). The File Mark
allows the operator to distinguish blocks of
data from different dataloggers or from
different visits to the field.

2. During the next execution of Instruction 96,

the datalogger recognizes that the Storage
Module is present, outputs all of the data
stored since the previous output, and
updates the Storage Module Pointer to the
DSP location. This transfer occurs in binary
at 9600 baud.

Under optimum conditions, the datalogger
outputs 480 low resolution data points per
second; a full 64K CR10 takes over one minute
to complete the data transfer. If the execution
interval is less than one minute, the data
transfer will be interrupted and will take longer
to complete.

Advertising