Campbell Scientific CR10 CR10 Measurement and Control - Page 48

data., allot

Page 48 highlights

SECTION 2. INTERNAL DATA STORAGE Output Processing Instructions store data into Final Storage only when the Output Flag is set. The string of data stored each time the Output Flag is set is called an OUTPUT ARRAY. The first data point in the output array is a 3 digit OUTPUT ARRAY lD. This lD number is set in one of two ways: 1. In the default condition, the lD consists of the program table number and the Instruction Location Number of the instruction which set the Output Flag for that particular array of data. For example, the lD of 1 18 in Figure 2.1-2 indicates that the 18th instruction in Table 1 set the Output Flag. 2. The output array lD can be set by the user with the second parameter of Instruction 80 (Section 1 1). The lD can be set to any positive integer up to 511. This option allows the user to make the output array lD independent of the programming. The program can be changed (instructions added or deleted) without changing the output array lD. This avoids confusion during data reduction, especially on long term projects where program changes or updates are likely. TABLE NUMBER [-PROGRAM I f- LOCATION NUMBER 0F THE INSTRUCTION WHICH SET THE OUTPUT FIAG FOR THIS ARRAY I I L] 01+0118 lT- | DATA PoINT - DATA POINT ID FIGURE 2.1-2. Output Array lD NOTE: lf Instruction 80 is used to designate the active Final Storage Area and parameter 2 is 0, the output array lD is determined by the position of lnstruction 80 or by the position of the instruction setting the Output Flag, whichever occurs last. A start-of-array marker ($ in Figure 2.1-1) is written into Final Storage with the Output Array lD. This marker is used as a reference point from which to number the data points of the output array. The start ol array marker occupies the same Final Storage location as the Array lD and is transparent for all user operations. 2-2 Data are stored in Final Storage before being transmitted to an externaldevice. There are 5 pointers for each Final Storage Area which are used to keep track of data transmission. These pointers are: 1. Display Pointer (DPTR) 2.. Tape Pointer (TPTR) 3. Printer Pointer (PPTR) 4. Telecommunications (Modem) Pointer ( 5. Storage Module Pointer (SPTR) The DPTR is used to recall data to the keyboa display. The positioning of this pointer and data recallare controlled from the keyboard (.7 The TPTR is used to control data transmission to'a cassette tape recorder. When on-line tape transfer is activated (lnstruction 96, option 00), data is transmitted to tape whenever the DSP is a minimum ol512 memory locations ahead of the TPTR. The TPTR may also be positioned via the keyboard for manually initiated data transfer to tape (.8 Mode). The PPTR is used to controldata transmission to a printer or other serial device. Whenever on-line printer transfer is activated (lnstruction 96), data between the PPTR and DSP are transmitted. The PPTR may also be positioned via the keyboard for manually initiated data transmission (*8 Mode). The MPTR is used in transmitting data over a telecommunications interface. When telecommunications is first entered, the MPTR set to the same location as the DSP. of the MPTR is then controlled by commands the externalcalling device (Section 5.1). The SPTR is used to control data transmission Storage Module. When on-line transfer is by Instruction 96, data is transmitted each time output array is stored in Final Storage lF THE STORAGE MODULE IS CONNECTED TO THE CR10. lf the Storage Module is not connected, CRlO does not transmit the data nor does it the SPTR to the new DSP location. lt saves the untilthe Storage Module is connected. Then, d the next execution of lnstruction 96, the CR10 outputs allot the data between the SPTR and DSP and updates the SPTR to the DSP location (Section 4.1) The SPTR may also be positioned via the keyboard for manually initiated data transfer to the Storage Module (*8 Mode, Section 3.2.3).

  • 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

SECTION
2.
INTERNAL DATA
STORAGE
Output Processing Instructions store
data
into
Final Storage only when the
Output
Flag
is
set.
The string of data stored each time the Output
Flag
is
set
is
called
an OUTPUT
ARRAY.
The
first data point
in
the
output array
is
a
3
digit
OUTPUT
ARRAY
lD.
This lD
number is set
in
one
of
two ways:
1.
In
the default condition,
the
lD consists
of
the
program
table
number and
the
Instruction Location Number
of
the
instruction which set the
Output
Flag
for
that
particular
array
of
data.
For example,
the
lD
of
1
18
in
Figure 2.1-2 indicates
that
the
18th instruction
in
Table
1
set
the
Output Flag.
2.
The output
array
lD
can
be set
by
the
user
with
the
second parameter
of
Instruction 80
(Section
1
1).
The
lD
can
be set to any
positive integer
up
to
511.
This
option
allows
the
user
to
make
the
output
array
lD
independent of
the programming. The
program
can
be
changed
(instructions
added
or
deleted) without changing
the
output
array
lD.
This avoids confusion
during
data
reduction, especially
on
long
term
projects
where
program changes or
updates are likely.
[-PROGRAM
TABLE
NUMBER
I f-
LOCATION NUMBER
0F
THE
INSTRUCTION
WHICH
I I
SET THE
OUTPUT
FIAG
FOR THIS
ARRAY
L]
01+0118
lT-
|
-
DATA
PoINT
DATA
POINT
ID
FIGURE
2.1-2. Output Array
lD
NOTE:
lf
Instruction
80
is used
to
designate the active Final Storage
Area
and
parameter
2
is
0, the output
array lD
is
determined by the position
of
lnstruction 80
or by the position
of
the
instruction setting
the
Output
Flag, whichever occurs
last.
A start-of-array marker ($
in
Figure
2.1-1)
is
written into Final Storage with the Output
Array
lD.
This
marker is used as
a
reference point
from which
to
number the data points
of
the
output
array.
The
start
ol
array marker occupies
the
same
Final Storage location as the
Array
lD
and
is
transparent for all user operations.
2-2
Data are stored in Final Storage before being
transmitted to an
externaldevice.
There are
5
pointers for
each
Final Storage Area which are
used
to
keep
track
of data
transmission.
These
pointers
are:
1.
Display Pointer (DPTR)
2..
Tape
Pointer (TPTR)
3.
Printer Pointer (PPTR)
4.
Telecommunications
(Modem) Pointer
(
5.
Storage Module Pointer (SPTR)
The
DPTR is used
to
recall data to
the
keyboa
display.
The positioning
of
this
pointer and data
recallare
controlled from
the
keyboard
(.7
The
TPTR
is used to control data transmission
to'a
cassette
tape recorder.
When on-line tape
transfer
is
activated (lnstruction 96, option
00),
data
is
transmitted to tape whenever
the
DSP
is
a
minimum
ol512
memory locations ahead of
the
TPTR.
The
TPTR
may also be positioned
via
the
keyboard
for
manually initiated data
transfer to
tape
(.8
Mode).
The
PPTR is used to
controldata
transmission
to
a
printer or other serial
device.
Whenever
on-line printer
transfer
is activated (lnstruction
96), data between
the
PPTR and DSP are
transmitted. The
PPTR may also be positioned
via
the
keyboard
for
manually initiated data
transmission
(*8 Mode).
The
MPTR is used
in
transmitting
data over
a
telecommunications
interface.
When
telecommunications
is
first
entered,
the
MPTR
set to
the
same location as
the
DSP.
of
the
MPTR
is
then
controlled
by
commands
the
externalcalling
device (Section 5.1).
The
SPTR is used to
control
data transmission
Storage
Module.
When on-line
transfer
is
by Instruction 96,
data
is
transmitted each time
output array
is
stored in Final
Storage
lF THE
STORAGE MODULE
IS
CONNECTED TO THE
CR10.
lf
the Storage Module is
not
connected,
CRlO does
not
transmit the
data
nor
does
it
the SPTR to
the
new DSP
location.
lt saves the
untilthe
Storage Module
is
connected.
Then,
d
the
next execution
of
lnstruction 96,
the
CR10
outputs
allot
the data between the SPTR and
DSP and updates the SPTR to
the
DSP location
(Section 4.1)
The
SPTR may also be positioned via the
keyboard
for
manually initiated data transfer
to
the Storage Module (*8 Mode, Section 3.2.3).