Campbell Scientific CR10 CR10 Measurement and Control - Page 163

file., NUMBER

Page 163 highlights

SECTION 12. PROGRAM CONTROL INSTRUCTIONS The source of data is the currently active Final Storage Area set by Instruction 80 (default = 0 or 1).NOTE: All memory pointers are positioned 8to the DSP location when the datalogger compiles a program. For this reason, Always retrieve uncollected data before making program changes. For example, assume the TPTR lags the DSP by less than 512 data points when the datalogger program is altered. On compiling, the TPTR is positioned with the DSP, losing reference to the data that was intended to be transferred to tape. The data is not automatically transferred and appears as a discontinuity in the data file. Until the ring memory wraps around and data overwrite occurs, the data may be recovered using the "8 Mode. This scenario is also true for the SPTR and data intended for a Storage Module. PARAM. DATA NUMBER TYPE 01: 2 DESCRIPTION Option Device 00 = Tape 09 = Tape all data to current DSP 80 = To the other Final Storage Area (New data since the last time) 81 = The other Final Storage Area (The entire active Final Storage Area) 0 (x) BAUD RATE CODES 300 baud 1 1200 baud 2 9600 baud 3 76800 baud ADDRESSED PRINT DEVICE, x = Baud code 1x = Printable ASCII 2x = Comma Delineated ASCII 3x = Binary FinalStorage Format 7N = Storage Module N (N=1-8; Section 4.5.1) 7N = Output File Mark to Storage Module N PIN_ENABLED pRtNT DEVICE, x = Baud code (SDE pulled high) 4x = Printable ASCII 5x = Comma Delineated ASCII 6x = Binary FinalStorage Format *** 97 INITIATE *** TELECOMMUNICATIONS lnstruction 97 is used to have the CRl0 initiate telecommunications in response to certain conditions. When the instruction is executed with the Interrupt disable flag set low, the CR10 will make a calland send the lD number specified in I Parameter (in ASCII at the specified baud rate). The lD number will be sent every 4 seconds until the CR10 receives a response or the time specified in Parameter 3 expires. The expected response is to have the lD sent back to the CR10, at which time the CRl0 will go into the normal telecommunications mode (Section 4) and the time limit on the callwill become inactive. In the normal telecornmunications mode, the CR10 waits for commands from the device it called. The CR10 will not send any data without first receiving a command to do so. CSI's TELCOM program (part of the PC208 Datalogger Support Software) enables IBM PCrff/AT/PS-2's or compatibles to automatically answer calls and retrieve data. When the CR10 receives a correct character, it restarts the 4 second timer used to determine when the lD is sent. There is then 4 seconds in which the CR10 waits to receive the next digit of the lD before it again sends the lD. The CR10 must receive the lD in the correct order without mistakes. lf an incorrect character is detected, the CR10 will immediately send the correct lD. lf a correct response is not received within the time allotted in Parameter 3, the CR10 will hang up. When either the RF or Hayes commands (DC112) options are specified, the time limit on the call (without a correct response) specified in Parameter 3 is timed from the start of the instruction and must include the dialing time. lf the correct response is not received, the CR10 willcontinue to make calls. The CR10 will repeat the calls at the fast interval specified by Parameter 4 for the number of retries specified in Parameter 5, after which the.calls will be attempted at the slow interval specified in Parameter 6. The actual delay between retries for both the fast and slow attempts has a random factor built in, which is added as an offset to the delay specified. The random factor prevents calls from different stations from occurring at the same time. This offset will range between 0 and one half of the delay specified. The resolution of the timer for these delays is the execution interval of the table in 12-7

  • 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

The source of
data
is
the currently active
Final Storage Area set
by
Instruction 80
(default
=
0
or
1).NOTE:
All
memory
pointers
are
positioned 8to
the
DSP location
when the datalogger compiles
a
program.
For
this
reason,
Always
retrieve uncollected
data before
making program changes.
For example, assume
the TPTR
lags
the
DSP
by less
than
512 data points when
the
datalogger
program is
altered.
On compiling,
the
TPTR
is positioned with
the
DSP, losing
reference to the data that
was
intended
to
be
transferred to
tape.
The data
is not
automatically transferred and appears as
a
discontinuity
in
the data
file.
Until
the
ring
memory wraps around and data overwrite
occurs, the
data
may
be
recovered using the
"8
Mode.
This scenario
is
also true for
the
SPTR
and data intended for
a
Storage Module.
PARAM.
DATA
NUMBER
TYPE
DESCRIPTION
01:
2
Option Device
00
=
Tape
09
=
Tape all data
to
current
DSP
80
=
To the
other
Final
Storage Area
(New data since the
last time)
81
=
The
other
Final
Storage Area
(The entire
active
Final
Storage Area)
(x) BAUD RATE CODES
0
300 baud
1
1200 baud
2
9600 baud
3
76800 baud
ADDRESSED
PRINT DEVICE, x
=
Baud code
1x
=
Printable ASCII
2x
=
Comma
Delineated ASCII
3x
=
Binary
FinalStorage
Format
7N
=
Storage Module N (N=1-8; Section 4.5.1)
7N
=
Output
File Mark
to
Storage
Module
N
PIN_ENABLED
pRtNT
DEVICE, x
=
Baud
code
(SDE pulled
high)
4x
=
Printable ASCII
5x
=
Comma
Delineated ASCII
6x
=
Binary
FinalStorage
Format
SECTION
12.
PROGRAM CONTROL
INSTRUCTIONS
***
97
INITIATE
***
TELECOMMUNICATIONS
lnstruction 97 is used
to
have
the
CRl0
initiate
telecommunications in
response to certain
conditions.
When
the
instruction
is
executed with
the
Interrupt disable flag set low,
the
CR10 will
make
a
calland
send
the lD
number specified
in
Parameter
I
(in ASCII
at
the
specified baud rate).
The lD
number
will
be
sent
every 4
seconds
until
the CR10
receives
a
response or the time
specified
in
Parameter
3
expires.
The
expected
response
is
to
have
the
lD
sent
back
to
the
CR10,
at which time the
CRl0
will
go
into
the
normal
telecommunications
mode (Section 4) and
the
time
limit on the
callwill
become
inactive.
In
the
normal
telecornmunications
mode,
the
CR10
waits for commands from
the device
it
called.
The
CR10
will
not send any data without first
receiving
a
command
to
do
so.
CSI's TELCOM
program (part
of
the
PC208 Datalogger Support
Software)
enables
IBM
PCrff/AT/PS-2's or
compatibles
to
automatically answer calls and
retrieve data.
When the CR10 receives
a
correct character,
it
restarts
the
4
second
timer
used to determine
when
the lD
is
sent.
There
is
then
4 seconds
in
which the CR10 waits
to
receive
the
next digit of
the lD
before
it
again sends
the
lD.
The
CR10
must
receive
the lD
in
the
correct
order
without
mistakes.
lf
an
incorrect
character
is detected,
the
CR10
will
immediately send the
correct
lD.
lf
a
correct
response is not received within the
time
allotted in
Parameter
3,
the CR10 will hang
up.
When
either
the
RF
or
Hayes commands
(DC112) options are specified, the
time
limit on
the
call
(without
a
correct
response) specified
in
Parameter 3
is
timed from
the
start of
the
instruction and must include the dialing time.
lf
the
correct
response is not received,
the
CR10
willcontinue to
make
calls.
The
CR10
will
repeat
the
calls
at
the
fast
interval specified
by
Parameter
4
for
the
number
of
retries
specified
in Parameter
5, after which
the.calls
will be attempted
at
the
slow
interval specified
in
Parameter
6.
The
actual
delay between retries
for
both the fast and slow
attempts
has
a
random
factor built
in,
which
is
added as an offset to the delay
specified.
The
random
factor
prevents calls
from
different stations
from
occurring at
the
same
time.
This
offset will
range between 0 and one half
of
the
delay
specified.
The
resolution of the timer for
these
delays
is
the
execution
interval
of
the
table
in
12-7