Baud Rate Codes - Campbell CR510 Operator's Manual

Datalogger
Hide thumbs Also See for CR510:
Table of Contents

Advertisement

*** 95 END ***
FUNCTION
Instruction 95 is used to indicate the end/return
of a subroutine (Instruction 85), the end of a
loop (Instruction 87), the end of an If Then/Else
sequence (Instructions 88-92 when used with
command 30), or the end of a Case sequence
(Instruction 93). The End Instruction has no
parameters.
*** 96 ACTIVATE SERIAL DATA OUTPUT ***
FUNCTION
Instruction 96 is used to activate Storage
Module (SM192/SM716 or Card Storage
Module) or serial data (printer) output. Normally
Instruction 96 is placed in the program table
after all Output Instructions have been entered
and is executed each time the Table is
executed. In this situation any data sent to Final
Storage is output as soon as possible.
However, by using Program Control Instructions
to allow execution of Instruction 96 only at
certain times, the user can control when the
output device(s) are active. Instruction 96
allows a choice of serial data format and the
selection of Addressed or Pin Enabled device
for the serial print output.
A single parameter is used to select whether the
instruction is to control the "printer", Storage
Module, or Card Storage Module output, and if
the printer is selected, the format and baud rate.
The Instruction must be entered separately for
each device that is to receive output.
If both Final Storage areas are in use,
Instruction 96 will send data from the area
which is currently active. Final Storage Area 1
is active at the start of each Table. Instruction
80 can be used to change the active area. The
Area set by Instruction 80 remains active until
changed by another Instruction 80 or the Table
ends (at which time Area 1 becomes the active
Area 1). Instruction 80 can also direct output to
Input Storage, in which case Instruction 96
assumes Final Storage Area 1.
If the CR510 is already communicating on the
9-pin connector when Instruction 96 is
executed, the output request is put in a queue
and program execution continues. As the 9-pin
connector becomes available, each device in
the queue will get its turn.
SECTION 12. PROGRAM CONTROL INSTRUCTIONS
The 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 baud rate (if applicable), and
the Final Storage Area. Instruction 98 to send
characters also uses this queue.
When an entry reaches the top of the queue,
the CR510 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).
When the baud rate code specifying a checksum is
used, the checksum of the data is sent as the last
piece of data in the data array. This only works
when sending out comma separated data. See
Section 5.1 to learn about the checksum.
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.
TABLE 12-4. Baud Rate Codes
Code
0
1
2
3
4
5
6
7
PARAM.
DATA
NUMBER
TYPE
01:
2
Baud Rate
300
1200
9600
76800
300 with checksum
1200 with checksum
9600 with checksum
76800 with checksum
DESCRIPTION
Option Device
12-5

Advertisement

Table of Contents
loading

Table of Contents