98 send character, 111 run program from flash – Campbell Scientific CR23X Micrologger User Manual
Page 198

SECTION 12. PROGRAM CONTROL INSTRUCTIONS
12-10
TABLE 12-8. Instruction P68 Parameters
Specific to Generic Modem Applications
Parameter Description
Tn
Transmit n bytes (n = ASCII digit,
bytes = ASCII decimal equivalent)
En
Transmit n bytes, wait for echo (n =
ASCII digit, bytes = ASCII decimal
equivalent)
Rn
Receive n bytes (n = ASCII digit)
Dnn
Delay (nn = 1/10ths of seconds)
Wnn
Wait before retry (nn = 1/10ths of
seconds)
Retries = the last byte sent from the
E command or,
Retries = the last sequence sent
with the T command
Lnn
Transmit the data value at Input
Location nn
Inn
Transmit the data value at Input
Location nn and wait for an echo of
each character
CAUTION: Instruction 97 with the voice
option and the SDI-12 instructions may not
be in same table. Instruction 97 must be in
Table 1 and the SDI-12 instructions must be
in Table 2.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Modem option and baud rate
code. Left digit specifies the
modem being used and the
right, the baud rate.
02:
2
Interrupt disable flag
03:
4
Time limit on call, 1 sec. units
04:
4
Delay between fast retries, 1
sec. units
05:
2
No. of retries at fast rate
06:
4
Delay between slow retries, 1
min. units
07:
4
Input location to store no. of
tries
08:
4
ID to send
*** 98 SEND CHARACTER ***
Instruction 98 is used with Instruction 63 to send
a character or string of characters (up to 15) out
a serial port to a device. The Computer RS232
port can be configured to stay on continuously
in the
D
mode as described in Section
1.8.7.
The device may be either addressed or pin-
enabled (Section 6.2). Instruction 63 must
immediately follow 98. The character or
characters to send are entered in Instruction 63
as the decimal equivalents (99 is the maximum
number allowed) of the 7 bit ASCII character
(sent as 8 bits, no parity). For example, to send
the ASCII character control R, 18 would be
entered. Enter a null (0) to terminate the string.
Appendix E contains a listing of the ASCII
characters.
If the 9 pin connector is already active when
Instruction 98 is executed, the output request is
put in a queue (see Instruction 96).
This instruction can be used to send a control
character to activate some listing device. The
specified character(s) is sent at the time
Instruction 98 and 63 are executed.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
1y
Addressed Print Device
4y
Pin-enabled Print
Device (CS I/O)
4y-- Pin-enabled Print
Device (RS-232)
y is baud rate code (Table
12-6)
*** 111 RUN PROGRAM FROM FLASH ***
FUNCTION
This instruction is used to load a program
stored in FLASH into RAM. The program in
RAM is replaced by the Flash program specified
in Parameter 1. If Parameter 1 is indexed, the
CR23X will compile the program like the
6
mode. Use this instruction with caution.