beautypg.com

Campbell Scientific CR23X Micrologger User Manual

Page 66

background image

SECTION 4. EXTERNAL STORAGE PERIPHERALS

4-2

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

TABLE 4.1-1. Output Device and

Baud Rate Codes

Code

Baud Rate

0

300

1

1200

2

9600

3

76800

4

2400

5

4800

6

19200

7

38400

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

2

Option Device

ADDRESSED PRINT DEVICE, y = Baud code
1y

= Printable ASCII

2y

= Comma Separated ASCII

3y

= Binary Final Storage Format

7N

= Storage Module N (N=1-8; Section 4.4.2)

(Stored in Binary Format)

7N-- = Output File Mark to Storage Module N

SERIAL PRINTER, COMPUTER, OR
PIN-ENABLED PRINT DEVICE, y = Baud code
(SDE pulled high)
4y = Printable ASCII (CS I/O)
4y-- = Printable ASCII (RS-232)
5y = Comma Separated ASCII (CS I/O)
5y-- = Comma Separated ASCII (RS-232)
6y = Binary Final Storage Format (CS I/O)
6y-- = Binary Final Storage Format (RS-232)

TRANSFER DATA TO OTHER FINAL
STORAGE AREA
80 = New data only
81 = All data

The source of data for Instruction 96 is the
currently active Final Storage Area as set by
Instruction 80 (the default is Final Storage Area 1
at the beginning of each program table execution).

If the CR23X is using a port (CS I/O or RS-232)
for other I/O tasks when Instruction 96 is
executed, the output request is put in a queue
and program execution continues. As the port
becomes available, each device in the queue
gets its turn.

An output request is not put in the queue if the
same device is already in the queue. The data
contained in the queue (and which determine a
unique entry) are the device, baud rate (if
applicable), and the Final Storage Area.

When an entry reaches the top of the queue, the
CR23X sends all data accumulated since the last
transfer to the device up to the location of the
DSP at the time the device became active.

Printer output can be either pin-enabled or
addressed. However, there is not a pin
specifically dedicated to print enable. When a
pin-enabled print output is specified, the SDE
line, which is normally used in the addressing
sequence, is used as a print enable. This
allows some compatibility with the CR21, 21X,
and CR7 dataloggers which have a Print Enable
line. The pin-enabled print option will result in
garbage being sent to the print peripheral if an
addressed device is also connected to the
CR23X (i.e., SM192 or SM716 etc.). The
SDC99 Synchronous Device Interface can
convert a print device to an Addressed
peripheral (Section 6.2).

The STORAGE MODULE address is important
only when using more than one Storage
Module. The universal address that will find the
Storage Module with lowest number address is
"1". If a Storage Module is not connected, the
CR23X will not advance the SPTR (Section 2.1)
and the Storage Module drops out of the queue
until the next time Instruction 96 is executed.
Section 4.4 contains specifics on the Storage
Modules.