beautypg.com

2 storage module use with instruction 96, 3 *8 dump to storage module, 5 *9 mode -- sm192/716 storage module commands – Campbell Scientific CR10X Measurement and Control System User Manual

Page 69

background image

SECTION 4. EXTERNAL STORAGE PERIPHERALS

4-5

will address that Storage Module regardless of
the address that is assigned to the Module.

Address 1 would be used with Instruction 96 if
several Storage Modules with different
addresses were connected to the CR10X and
were to be filled sequentially. The Storage
modules would be configured as fill and stop.
When the lowest addressed Module was full
data would be written to the next lowest
addressed Module, etc.

4.4.2 STORAGE MODULE USE WITH

INSTRUCTION 96

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

USE OF STORAGE MODULE TO PICK UP
DATA

The CR10X 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 CR10X checks for the presence of a
Storage Module. If one is not present, the
CR10X does not attempt to output data.
Instead, the CR10X saves the data and
continues its other operations without advancing
the Storage Module Pointer (SPTR, Section 2.1).

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

1.

Immediately upon connection, a File Mark is
placed in the Storage Module Memory
following the last data stored (if a File Mark
wasn't the last data point already in storage).

2.

During the next execution of Instruction 96,
the CR10X recognizes that the Storage
Module (SM) is present and outputs all data
between the SPTR 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.

To be certain that the Storage Module has been
connected to the CR10X during an execution of
P96, the user can:

• Leave the Storage Module connected for a time

period longer than an execution interval or

• Observe the built-in LED with the SM4M/16M

or the SC90 9-Pin Serial Line Monitor with the
SM192/716. The LED lights up during data

transmission. When the light goes off, data
transfer is complete and the SM can be
disconnected from the CR10X.

4.4.3

∗∗∗∗8 DUMP TO STORAGE MODULE

In addition to the on-line data output procedures
described above, output to the Storage Module
can be manually initiated in the

∗8 Mode. The

procedure for setting up and transferring data is
as follows:

1.

Connect both the CR10KD Keyboard/Display
(or terminal) and the Storage Module to the
CR10X using the SC12 cable. (For terminals,
an SC32A is needed. See Section 5 for
interfacing details.)

2.

Key in the appropriate commands as listed
in Table 4.2-1.

4.5

∗∗∗∗9 MODE -- SM192/716 STORAGE

MODULE COMMANDS

The CSM1 does not support the

∗9 Mode Commands.

The

∗9 Mode is used to issue commands to the

SM192/716 Storage Module, through the CR10X,
using the CR10KD or a terminal/computer. These
commands are like

∗ Modes for the Storage

Module and in some cases are directly analogous
to the CR10X

∗ Modes. Command 7 enters a

mode used to review stored data, and 8 is used to
transfer data between two Storage Modules
connected to the CR10X. The operations with the
Storage Module are not directly analogous as may
be seen in Table 4.5-1 which lists the commands
(e.g., when reviewing data, #A advances to the
start of the next Output Array rather than to the
same element in the next array with the same ID).

When

∗9 is keyed, the CR10X responds: 09:01

1 is the default address for the Storage Module
(Section 4.4.1). If you have more than 1
Storage Module connected, enter the address
of the desired Storage Module. Address 1 will
always work if only one Module is connected.
Key A and the CR10X responds: 9N:00
Where N is the address which was entered.

You may now enter any of the commands in
Table 4.5-1 (key in the command number and
enter with A). Most commands have at least one
response. Advance through the responses and
return to the 9 command state by keying A.