Section 4. external storage peripherals, 1 on-line data transfer - instruction 96, *4 mode, 1 instruction 96 – Campbell Scientific CR7 Measurement and Control System User Manual

Page 53

Advertising
background image

4-1

SECTION 4. EXTERNAL STORAGE PERIPHERALS

External data storage devices are used to provide a data transfer medium that the user can carry from
the test site to the lab and to supplement the internal storage capacity of the CR7, allowing longer
periods between visits to the site. The standard data storage peripherals for the CR7 are the Storage
Modules (Section 4.4). Output to a printer or related device is also possible (Section 4.5). These
peripherals are connected to the CR7 through the 9 pin serial connector.

Data output to a peripheral device can take place ON-LINE (automatically, as part of the CR7's routine
operation) or it can be MANUALLY INITIATED. On-line data transfer is accomplished with Instruction 96
or with the *4 Mode (Section 4.1). Manual initiation is done in the *8 or *9 Modes (Section 4.2).
Regardless of the method, the source of any data transferred is Final Storage.

A modem is another type of peripheral that can be connected to the CR7. Communication via a modem
(Telecommunications) is discussed in Section 5.

The CR7 can output data to multiple peripherals (i.e., a modem and Storage Module could be connected
at the same time). However, only one modem may be connected to the CR7 at any one time. It is
possible to connect two Storage Modules, although it is seldom necessary.

The CR7 can tell whether or not a SM192 or SM716 Storage Module is present. When Instruction 96 or
*9 is used to send data to one of these Storage Modules, the CR7 will not send data if the Storage
Module is not connected (Section 4.4.2).

4.1 ON-LINE DATA TRANSFER -

INSTRUCTION 96, *4 MODE

On-line data transfer is accomplished with
Instruction 96 entered in the datalogger
program. The *4 Mode is retained from earlier
software to maintain compatibility with existing
programs. Use only one method to enable
output. If using Instruction 96, do not enable
output in the *4 Mode.

4.1.1 INSTRUCTION 96

Instruction 96 enables output to external
storage peripherals under program control.
This instruction must be included in the
datalogger program for on-line data transfer to
take place. Instruction 96 needs to be included
only once in the program tables and should
follow the Output Processing Instructions. The
suggested programming sequence is:

1.

Set the Output Flag.

2.

If you wish to set the output array ID, enter
Instruction 80 (Section 11).

3.

Enter the appropriate Output Processing
Instructions.

4.

Enter Instruction 96 to enable the on-line
transfer of Final Storage data to the
specified device. If outputting to both tape
and a Storage Module or printer option,
Instruction 96 must be entered twice.

Instruction 96 has a single parameter which
specifies the peripheral to enable. Table 4.1-1
lists the output device codes.

TABLE 4.1-1. Output Device Codes for

Instruction 96

CODE DEVICE

1x

Printer, Printable ASCII

2x

Printer, Binary

30

SM192/716 Storage Module

31

Send filemark to SM192/716

x = BAUD RATE CODE

0

300

1

1200

2

9600

3 76,800

Advertising