beautypg.com

98 send character – Campbell Scientific CR10X Measurement and Control System User Manual

Page 191

background image

SECTION 12. PROGRAM CONTROL INSTRUCTIONS

12-9

complete ID# is not received by the CR10X
within the time allotted in parameter 3, the
datalogger hangs up and waits for the time for
the next attempt or retry.

Additional programming requirements:

Instruction 97 must be followed by at least one
Instruction 63 or 68 which specifies the call’s
modem path and/or phone number. Instruction 63
should be used unless one of the parameters is 3
or 4 digits, then Instruction 68 should be used.

If the first parameter of the first Instruction
63/68 is “X” (88), the second parameter
represents a delay in seconds. This delay is the
amount of time from when the call is answered
to when the ID number is sent. This is useful
when calling pagers.

The RF Station IDs or phone numbers are
entered 1 digit at a time.

Decimal equivalents of specific ASCII
characters (Appendix E) are used to identify
breaks in the dialing string or changing the type
of modem communicating with. Separate RF
station IDs with a space (32). After the last RF
ID (when no other modem is being used), put
an “F” (70). Indicate a switch from RF to phone
with a space (32) followed by a “T” (84).

A comma (44) is used to put in a 1-second
delay (dependent on modem setup) i.e,
between a phone number and an extension. A
Carriage Return (13) is used to end the series
of characters to be used to initiate the call.
Instruction 97 will never make a valid call if a 13
is not the last parameter of the last Instruction
63 or 68. Any unused parameters after the 13
command should be left as 0.

TABLE 12-7. Option Code for Modem Type

and Baud Rate

Baud Rate

Modem

300

1200

9600

RF (RF95)

00

01

02

Direct (Short Haul)

10

11

12

Phone (DC112/COM200) 20

21

22

Voice Call-Back

N/A

31*

N/A

Data Call-Back

40

41

42

*See Voice Modem manual for the description
of voice call-back.

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) to
the printer. The printer may be either a
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
y is baud rate code
(Table 12-6)