beautypg.com

1 instruction 96 - output under program control, 2 *4 mode - output device enable, 3 *9 mode - keyboard initiated data transfer – Campbell Scientific SM192/SM716 Storage Modules User Manual

Page 14: 3 storing data from the cr21, 4 special data storage operations, 1 dsp4 heads up display, 2 storing burst measurement data from the 21x

background image

SECTION 3. THE PRINTER ENABLE METHOD OF DATA STROAGE

3-2

3.2.1 INSTRUCTION 96 - OUTPUT UNDER

PROGRAM CONTROL

Instruction 96, available in the CR7X and in the
Extended Software PROMs for the earlier
versions of the 21X, is used to send Final
Storage data to the Storage Module under
program control. Instruction 96 should follow
the Output Processing Instructions in the
program table. Consult the datalogger manual
for details about using Instruction 96. Do NOT
use both the *4 Mode and Instruction 96 to
activate a device in a datalogger program.

Instruction:

96

Parameter:

01:22

Explanation:

Option 22 selects binary
printer output at 9600 baud.
The left digit specifies the
device option and the right,
the baud rate. Refer to the
datalogger manual for details.

3.2.2 *4 MODE - OUTPUT DEVICE ENABLE

The *4 Mode is used to enable the output of
Final Storage data to a printer. The Storage
Module will capture this printer output.

Select option "X1" in window 1, and set the
baud rate at 9600 (option 02) in window 2 (to
match the Storage Module's default setting).
Data are written to the Storage Module each
time data are sent to Final Storage.

3.2.3 *9 MODE - KEYBOARD INITIATED DATA

TRANSFER

The *9 Mode in the 21X and CR7 dataloggers is
used to transfer a specified block of data from
Final Storage to the Storage Module. Consult
the appropriate datalogger manual for details.
This function is different from the *9 Mode in
the CR10.

NOTE: The baud rate settings for the
datalogger (set in the *4 Mode) and for the
Storage Module (set from SMCOM) must
be compatible.

3.3 STORING DATA FROM THE CR21

Each time the CR21 outputs data to Final
Storage, the data are also sent (in ASCII) to pin 9,
the TD (transmit data) line, at 300 baud. So, Final
Storage data are written to the Storage Module
automatically when it is properly configured and

connected to the CR21. Use SCOM to set the
Storage Module baud rate to 300 to collect CR21
data. The Encode/Decode switch should be set to
Encode (default). To backlog CR21 data while it is
temporarily disconnected from the Storage
Module, enter the *9 Mode (in the CR21). When
the Storage Module has been re-connected, re-
enter the *0 Mode. Refer to the CR21 Manual for
details.

3.4 SPECIAL DATA STORAGE

OPERATIONS

3.4.1 DSP4 HEADS UP DISPLAY

In addition to real-time monitoring of datalogger
measurements, the DSP4 Heads Up Display
can be used with the CR10, 21X, and the CR7
dataloggers to store and retrieve data and
programs. With the DSP4 printer function
enabled, datalogger Final Storage data can be
sent to the Storage Module in ASCII at either
300 or 1200 baud or at 9600 baud in Final
Storage Format. Refer to the DSP4 Instruction
Manual for more details regarding the Printer
Options.

3.4.2 STORING BURST MEASUREMENT DATA

FROM THE 21X

The BURST Measurement is a special
datalogger instruction available in an optional
software PROM to make high rate analog
voltage measurements. Two options are
available for data retrieval with this instruction:
1) Data are stored in datalogger Input Storage
Locations or 2) Raw data are sent out the
datalogger serial port. In the second case, the
Storage Module can capture data at 76,800
baud. This can occur in the default baud rate
setting or the Switch settings can be configured
to 76,800 baud (L command, Appendix D).

When the BURST Measurement (Instruction
23) is used with the 21X, select the Destination
(Parameter 04) option as 2 for Serial port output
at 76,800 baud to send data to the Storage
Module. BURST data is output by the
datalogger in a unique format which includes
calibration measurements at the beginning and
end of the series of measurements. SPLIT will
translate this BURST data (Section 4.3.1 in the
PC208 Manual).