Campbell Scientific CR10 CR10 Measurement and Control - Page 64

lnstruction, Tape., CR21,z'lx

Page 64 highlights

SECTION 4. EXTERNAL STORAGE PERIPHERALS Instruction 96 has a single parameter which specifies the peripheral to send output to. Table 4.1-1 lists the output device codes. TABLE 4.1-1. Output Device Codes for lnstruction 96 and *8 Mode Code Device 00 Tape. Data transferred in blocks of 512 Final Storage locations 09 Tape. All data since last output. flnst. 96 onlyl ADDRESSED PRINTER 1x Printable ASCII 2x Comma delineated ASCII 3x Binary PIN ENABLED PRINTER 4x Printable ASCII 5x Comma delineated ASCII 6x Binary 7N 78N0 -81 x = BAUD RATE CODES 0 300 1 1200 2 9600 3 76,900 Storage Module N (N=address, 1...8) Output File Mark to Storage Module N To the other Final Storage Area [nst. 96 only], new data since last output To the other FinalStorage Area [nst. 96 only], entire active Final Storage Area The source of data for lnstruction 96 is the currently active FinalStorage Area as set by Instruction 80 (the default is Final Storage Area 1 at the beginning of each program table execution). lf the CR10 is using the 9 pin connector for other l/O tasks when lnstruction 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 gets its turn. An output 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 4-2 unique entry) are the device, baud rate (if applicable), and the Final Storage Area. When an entry reaches the top of the queue, the CR10 sends alldata accumulated since the last transfer to the device up to the location of the DSP at the time the device became active. The most efficient use of cassette tape and power is made with the CASSETTE TAPE option to transfer data in blocks ol 512 Final Storage locations. (Data is always written in equivalent of 512locations. lf code 09 was used, and there are only 10 new values, sending this data would include 502 null characters.) Option 09, transfer any new data, is used if it is desired to run the tape only at particular times or under certain conditions (the program is written so that 96 only gets executed when these conditions are met). When 96 finally does get executed, alldata between the TPTR and DSP, including a final block less than 512 locations, are written to tape. Section 4.3 contains specifics on the cassette recorder. Note that tape operation is for above f reezing temperatures only. Printer output can be either pin-enabled or addressed. However, there is not a pin specifically dedicated to print enable. When a pin-enabled print output is specified, the SDE line, which is normally used in the addressing sequence, is used as a print enable. This allows some compatibility with the CR21,z'lx, and CR7 dataloggers which have a Print Enable line. The pin-enabled print option will result in garbage being sent to the print peripheral if an addressed device is also connected to the CR10 (i.e., CR10KD, SM192 or SM716 etc.). The SDC99 Synchronous Device Interface can convert a print device to an Addressed peripheral (Section 6.2). The STORAGE MODULE address is important only when using more than one Storage Module, 1 is a universaladdress which willfind the Storage Module with lowest number address that is connected. lf a Storage Module is not connected, the CRlO will not advance the SPTR (Section 2.1) and the Storage Module drops out of the queue until the next time lnstruction 96 is executed. Section 4.5 contains specifics on the SM192 and SM716.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238

Code
00
09
SECTION
4.
EXTERNAL STORAGE PERIPHERALS
Instruction
96
has
a
single parameter which
specifies
the
peripheral
to
send output
to.
Table
4.1-1 lists the output device codes.
TABLE
4.1-1. Output
Device Codes
for
lnstruction
96
and
*8
Mode
Device
Tape.
Data
transferred
in blocks of
512 Final Storage locations
Tape.
All
data since last output.
flnst.
96 onlyl
ADDRESSED
PRINTER
Printable ASCII
Comma delineated ASCII
Binary
PIN ENABLED PRINTER
Printable ASCII
Comma delineated ASCII
Binary
x
=
BAUD RATE CODES
0
300
1
1200
2
9600
3
76,900
7N
Storage Module N (N=address, 1...8)
7N--
Output
File Mark
to
Storage Module
N
80
To the
other
Final Storage Area
[nst.
96 only], new data since last
output
81
To
the other FinalStorage
Area
[nst.
96 only], entire active Final
Storage Area
The source of data
for
lnstruction
96
is
the
currently
active FinalStorage
Area as set by
Instruction
80
(the default is Final Storage Area
1
at
the
beginning of each program table
execution).
lf
the CR10 is using
the
9 pin connector
for
other
l/O tasks
when
lnstruction
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 gets
its
turn.
An
output
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 the device, baud rate
(if
applicable), and
the
Final Storage Area.
When an
entry
reaches the top
of
the queue,
the
CR10 sends
alldata
accumulated since the
last
transfer to the device
up
to
the
location
of
the
DSP
at
the time the device became active.
The
most
efficient
use of cassette
tape
and
power is made with the CASSETTE TAPE
option to transfer
data
in blocks
ol 512
Final
Storage
locations.
(Data
is
always
written
in
equivalent
of
512locations.
lf
code 09 was
used, and there are
only
10
new values,
sending
this
data would include 502
null
characters.)
Option 09, transfer
any
new data, is used if
it
is
desired
to
run
the tape only at particular times
or
under certain
conditions
(the program
is
written so that 96 only gets executed when
these conditions
are
met).
When
96
finally
does get executed,
alldata
between the
TPTR
and DSP, including
a
final
block less than 512
locations, are written to tape.
Section 4.3 contains specifics
on
the cassette
recorder.
Note that tape operation
is
for
above
f
reezing temperatures only.
Printer output can be either pin-enabled
or
addressed.
However,
there is
not
a pin
specifically dedicated
to
print
enable.
When
a
pin-enabled print output
is
specified,
the
SDE
line,
which
is normally used
in
the addressing
sequence, is used as a print
enable.
This
allows some compatibility with
the
CR21,z'lx,
and CR7 dataloggers which have
a
Print Enable
line.
The pin-enabled print option
will
result
in
garbage being sent to
the
print peripheral if
an
addressed device
is
also connected to
the
CR10 (i.e., CR10KD, SM192 or SM716 etc.).
The
SDC99
Synchronous
Device Interface can
convert
a
print device to an Addressed
peripheral (Section 6.2).
The STORAGE MODULE
address
is important
only when using more than one Storage
Module,
1
is
a universaladdress
which
willfind
the
Storage Module
with
lowest number
address
that
is
connected.
lf a Storage Module
is not connected, the
CRlO will
not advance the
SPTR (Section 2.1) and
the
Storage Module
drops out
of
the
queue
until
the
next time
lnstruction
96
is
executed.
Section 4.5 contains
specifics
on
the
SM192 and SM716.
1x
2x
3x
4x
5x
6x
4-2