
Section 12. Program Control Instructions
12-11
ADDRESSED PRINT DEVICE, x = Baud rate code
1x = Printable ASCII
2x = Comma Delineated ASCII
3x = Binary Final Storage Format
7N = Storage Module N (N=1-8, stored in binary format – see Section 4)
7N--= Output File Mark to Storage Module N
SERIAL PRINTER, COMPUTER OR
PIN-ENABLED PRINT DEVICE: x = Baud rate code (SDE pulled high)
4x = Printable ASCII
5x = Comma Delineated ASCII
6x = Binary Final Storage Format
TRANSFER DATA TO OTHER FINAL STORAGE AREA
80 = New data only
81 = All data
Instruction 97: Initiate Telecommunications
Instruction 97 is used to have the CR10X initiate telecommunications in response
to certain conditions. This is commonly referred to as ‘callback’. This instruction
can be used to initiate two different types of calls:
A) to request a modem and computer to answer the call
B) to call a remote datalogger and collect a specified number of input locations.
The rest of this section is mainly concerned with the computer communication
method. See Appendix H for more detailed information on datalogger to
datalogger communications.
Briefly, when the instruction is executed and the interrupt disable flag (Parameter
2) is low, the CR10X initiates a call to a computer. The CR10X starts
communicating with the modem identified in Parameter 1 using the additional
modem ID numbers, phone numbers, or other commands given in the subsequent
Instruction(s) 63 or 68. Once the computer answers the call, the CR10X sends the
ID number (Parameter 8) to identify itself to the computer. When the computer
sends back the same ID number, the CR10X will go into the normal
telecommunications mode (see Section 5) and the computer is now in charge of
the call. The computer uses the ID number to identify which station file/setup to
use to control the calling datalogger. The CR10X will not send any data (or do
anything else) without first receiving a command to do so. Campbell Scientific’s
Datalogger Support Software (PC208W, PC208 or PC200) enables PCs to
automatically answer calls, retrieve data, and instruct the datalogger on what
action to take. See Appendix G for a DC112 Phone Modem callback example
including the computer setup.
If the correct response is not received from the computer within the time allotted in
Parameter 3 the datalogger hangs up and calls back later. The number of unsuccessful
attempts is stored in the Failure Input Location (Parameter 7). Once a successful call
is made, the Failure Input Location is reset to 0.
Care must be exercised when calling Instruction 97 from a conditional
statement or subroutine. Instruction 97 must be run at least twice for each
call; once to initiate the call and a second time after the call was successfully
made (or stopped attempting to connect) to completely reset and clean up the
memory values used to make the call.
CAUTION