beautypg.com

3 *9 dump to storage module, 4 printer output formats – Campbell Scientific CR7 Measurement and Control System User Manual

Page 56

background image

SECTION 4. EXTERNAL STORAGE PERIPHERALS

4-4

If a Storage Module is not connected no data
are sent and the Printer Pointer (PPTR, Section
2.1) is not advanced.

When a Storage Module is connected, two
things happen:

1.

Immediately upon connection, a File Mark is
placed in the Storage Module Memory
following the last data stored.

2.

During the next execution of Instruction 96,
the CR7 detects the Storage Module and
outputs all data between the PPTR and the
DSP location.

The File Mark allows the operator to distinguish
blocks of data from different dataloggers or
from different visits to the field.

If the SM is just brought to the site to pick-up
data, the SC90 Serial Line Monitor can be used
to visually confirm that data were transferred.
The SC90 contains an LED which lights during
data transmission. When the light goes OFF,
data transfer is complete and the SM can be
disconnected from the CR7.

4.3.3 *9 DUMP TO STORAGE MODULE

In addition to the on-line data output procedures
described above, output from CR7 Final
Storage to the SM192 and SM716 can be
manually initiated in the *9 Mode. The
procedure for setting up and transferring data is
as follows:

1.

Connect the Storage Module to the CR7
using the SC12 cable.

2.

Enter the appropriate commands as listed
in Table 4.2-2.

4.4 PRINTER OUTPUT FORMATS

Printer output can be sent in the binary Final
Storage Format (Appendix C.2) or Printable
ASCII. If using the *4 Mode to enable on-line
output, Printable ASCII is the only format
available.

In the Printable ASCII format, each data point is
preceded by a two digit data point ID and a + or
- sign. The ID and fixed spacing of the data
points make particular points easy to find on a
printed output. This format requires 10 bytes
per data point to store on disk.

Figure 4.5-1 shows both high and low resolution
data points in a 12 data point output array. The
example data contains Day, Hour-Minute, and
Seconds in the 2nd - 4th data points. The
output array ID and time values (year, day,
hour-minute, and seconds) are always four
character numbers, even when high resolution
output is specified.

Each full line of data contains eight data points
(79 characters including spaces), plus a
carriage return (CR) and line feed (LF). If the
last data point in a full line is high resolution, it is
followed immediately with a CR and LF. If it is
low resolution, the line is terminated with a
space, CR and LF. Lines of data containing
less than eight data points are terminated
similarly after the last data point.