beautypg.com

97 initiate telecommunications – Campbell Scientific CR23X Micrologger User Manual

Page 195

background image

SECTION 12. PROGRAM CONTROL INSTRUCTIONS

12-7

the Final Storage Area. Instruction 98 to send
characters also uses this queue.

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 (this allows everything in the queue to get
a turn even if data is being stored faster than it
can be transferred to a particular device).

The "other Final Storage Area" device option (the
non-active area) allows a "fast" Final Storage area to
be transferred to the main area on some trigger
condition so there is some history recorded prior to
the trigger condition (Section 8.8). The source of
data is the currently active Final Storage Area set by
Instruction 80 (default = 0 or 1).

NOTE: All memory pointers are positioned
to the DSP location when the datalogger
compiles a program. For this reason,
always retrieve uncollected data before
making program changes.

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

2

Option Device

TABLE 12-6. 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

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

*** 97 INITIATE ***

TELECOMMUNICATIONS

Instruction P97 enables the CR23X to initiate
telecommunications with

1) a PC via telephone, radio, or generic

modem (“Callback”)

2) a pager system
3) a human via synthesized voice
4) another

datalogger

Several documents supplement information in
this section.

1) Appendix G of the CR23X manual covers

telephone and generic modem applications

2) Appendix G of the CR23X manual covers

pager applications

3) COM300 Voice Modem Manual covers

voice applications

4) Appendix H of the CR23X Manual covers

calling applications wherein another
datalogger is called

Telephone support is also available from
Campbell Scientific.

Theory of Operation

When the CR23X executes P97, it looks to see
if the interrupt disable flag is low. The interrupt
disable flag is one of User Flags 1-8 dedicated
in P97 for this use. If the interrupt disable flag is
low, the CR23X initiates a call according to
protocols programmed into P97. If a computer
is answering the call, the CR23X sends a
unique 3 digit code. If the computer returns the
same 3 digit code, the CR23X keeps the link
open and waits for subsequent commands from
the computer. If the code is not returned, the
datalogger hangs up. P97 can be programmed
to try the call again later. The number of failed
calls is recorded in a CR23X input location. The
failure counter is reset to zero when P97 is
executed if the prior call was successful on its
first try. The value in the failure input location