Campbell Scientific CR10 CR10 Measurement and Control - Page 44

&2

Page 44 highlights

SECTION 1. FUNCTIONAL MODES Commands 1 and 2 (when entered from the Keyboard/Display) and 7 have an additional2 digit option parameters (7 is entered with the Storage Module address, e.9., 71). The CR10 willdisplay the command number and prompt for the option. lf the keyboard display is not being used, the CR10 will have already set the baud rate to that of the'device it is communicating with and will be ready to send or receive the file as soon as command 1 or 2 is entered. TABLE 1.8-2. ASClland Storage Module Gommand Options Command 1&2 1x 4x Option Code Description Synchronously addressed Hardware enabled 1.8.1 PROGRAM TRANSFER WITH COMPUTEH/PRINTER This section describes commands 1 and 2. SENDING ASCII PROGRAM INFORMATION Program listings are sent in ASCll. At the end of the listing, the CR10 sends control E (5 hex or decimal) twice. Table 1.8-4 is an example of the program listing sent in response to command 1 (the actual listing is in one column but is printed in two columns to save space). Note that the listing uses numbers for each mode: The numbers f *A, *8, and *C modes are 10, 11, and 12, respectively. 7N:00 x = Baud Rate Codes 0-300 1 - 1200 2 - 9600 3 - 76,800 (N is Storage Module address) 1x Save Program x to Storage Module (x = 1-8) 2x Load Program x from Storage Module (x = 1-8) 3x Erase Program x in Storage Module (x = 1-8) TABLE 1.8-4. Example Program Listing From'D Command 1 MODE 1 SCAN RATE 5 1:P17 1:1 2:P86 1:10 3:P70 1:1 2:1 After the option code is keyed in, key "A" to execute the command. Command 2 will be aborted if no data is received within 40 seconds. 4:P0 MODE 2 SCAN RATE O WHEN COMMAND 2 IS EXECUTED ALL DATA IN INPUT AND INTERMEDIATE STORAGE ARE ERASED. lf the CR10 program has not been compiled when the command to save a program (1, 3 or 7) is entered, it will be compiled before the program is saved. After a command is executed, "13:0000" is displayed; *D must be entered again before another command can be given. TABLE 1.8-3. Program Load Error Codes E96 E97 E98 E99 Storage Module not connected or wrong address Data not encountered within 30 sec. Uncorrectable errors detected Wrong type of file, or Editor Error (Section 3.10) MODE 3 1:P0 MODE 10 1:28 2:64 3:0 4:5332 5:1971 MODE 12 1:0 2:O MODE 11 1:6597 2:30351 3:48 4:O 5:0 ^E ^E 1-8

  • 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
1.
FUNCTIONAL
MODES
Commands
1
and
2
(when entered from
the
Keyboard/Display) and
7
have an
additional2
digit
option parameters (7 is entered with the Storage
Module address, e.9.,
71).
The CR10
willdisplay
the
command
number and prompt for
the
option.
lf
the
keyboard display
is
not being used,
the
CR10
will
have already set
the
baud
rate
to that of
the'device
it
is
communicating with and
will
be
ready to send
or
receive the file as soon as
command
1
or
2
is
entered.
TABLE 1.8-2.
ASClland
Storage
Module
Gommand
Options
Command
1&2
1x
4x
7N:00
Option
Code
Description
Synchronously addressed
Hardware enabled
x
=
Baud Rate Codes
0-300
1
-
1200
2
-
9600
3
-
76,800
(N
is
Storage Module address)
Save Program x to Storage
Module
(x
=
1-8)
Load Program x
from
Storage
Module (x
=
1-8)
Erase Program
x
in Storage
Module
(x
=
1-8)
1x
2x
3x
After the option
code
is keyed in, key "A" to
execute the
command.
Command 2 will
be
aborted if
no
data
is received within 40 seconds.
WHEN
COMMAND
2
IS EXECUTED ALL
DATA IN INPUT
AND
INTERMEDIATE
STORAGE
ARE
ERASED.
lf
the CR10 program has not been compiled when
the command to save
a
program (1,
3
or
7)
is
entered,
it
will
be
compiled before
the
program
is
saved.
After a
command
is
executed, "13:0000"
is
displayed;
*D
must
be
entered again before
another command
can
be given.
TABLE 1.8-3. Program
Load
Error
Codes
E96
E97
E98
E99
Storage Module
not
connected
or
wrong address
Data not encountered within 30 sec.
Uncorrectable errors detected
Wrong type
of
file, or
Editor Error
(Section
3.10)
1-8
1.8.1
PROGRAM
TRANSFER
WITH
COMPUTEH/PRINTER
This section describes
commands 1
and 2.
SENDING
ASCII
PROGRAM INFORMATION
Program listings are
sent
in
ASCll.
At
the
end
of
the
listing,
the
CR10 sends
control
E
(5 hex
or decimal) twice.
Table
1.8-4 is an example
of
the program
listing
sent
in response to
command
1
(the actual
listing is in one column but
is
printed
in
two
columns to save
space).
Note that
the
listing
uses numbers for
each
mode:
The
numbers
f
*A,
*8,
and
*C
modes
are
10,
11,
and
12,
respectively.
TABLE 1.8-4.
Example
Program Listing
From'D
Command
1
MODE
1
SCAN
RATE
5
1:P17
1:1
2:P86
1:10
3:P70
1:1
2:1
4:P0
MODE
2
SCAN RATE
O
MODE
3
1:P0
MODE
10
1:28
2:64
3:0
4:5332
5:1971
MODE
12
1:0
2:O
MODE
11
1:6597
2:30351
3:48
4:O
5:0
^E ^E