Campbell Scientific CR10 CR10 Measurement and Control - Page 26

Programming Examples

Page 26 highlights

CRlO OVERVIEW temperature of the thermistor on channel 1 Module. Up to 8 programs can be stored in the would be stored in input location 5, the Storage Module, the programs may be assi temperature from channel 2 in input location 6, any of the numbers 1-8. lf the Storage Module etc. is connected when the CR10 is powered-up the CR10 will automatically load program number Detailed descriptions of the instructions are provided that a program 8 is loaded in the given in Sections 9-12. Entering an instruction Storage Module (Section 1.8). into a program table is described in OV5. OV4.5 ENTERING A PROGRAM Programs are entered into the CR10 in one of OVs. PROGRAMMING EXAMPLES We will start with a simple programming example. There is a brief explanation of each three ways: step to help you follow the logic. When the 1. Keyed in using the CR10 keyboard. 2. Loaded from a pre-recorded listing using the *D Mode. There are 3 types of storage/input: a. Stored on disl

  • 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

CRlO
OVERVIEW
temperature
of
the
thermistor
on
channel
1
would be stored in input location
5,
the
temperature
from
channel
2
in input location
6,
etc.
Detailed descriptions
of
the
instructions are
given in Sections
9-12.
Entering
an
instruction
into a program
table
is
described
in
OV5.
OV4.5
ENTERING
A
PROGRAM
Programs are
entered
into
the
CR10 in one of
three ways:
1.
Keyed in using the CR10 keyboard.
2.
Loaded
from
a pre-recorded listing using
the
*D
Mode.
There are
3
types of
storage/input:
a.
Stored on
disl</sent
from
computer
(PC208 software GraphTerm and
EDLOG).
b.
Stored/loaded
f
rom
SM192n
16
Storage
Module.
3.
Loaded
from
internal PROM (special soft-
ware) or Storage Module upon power-up.
A program
is
created
by keying
it
directly into
the datalogger as described in Section OV5,
or
on
a
PC using
the
PC208 Datalogger Support
Software.
EDLOG and GraphTerm
are
PC208 Software
programs
used to develop and
send
programs
to
Campbell Scientific
dataloggers.
EDLOG
is
an
editor for writing and documenting programs
for
Campbell Scientific
dataloggers.
Program files
developed
with
EDLOG
can
be
downloaded directly
to
the
CR10 using
GraphTerm.
GraphTerm
supports communication via direct wire, telephone,
or
Radio Frequency
(RF).
Programs on disk
can
be
copied
to
a
Storage
Module with
SMCOM.
Using
the
*D
Mode to
save
or
load
a
program
from
a Storage Module
is
described in
Section
1.8.
It is possible (with
specialsoftware)
to create
a
PROM (Programmable Read Only Memory)
that
contains
a
datalogger program.
With this
PROM installed
in
the
datalogger,
the
program
willautomatically
be loaded and
run
when
the
datalogger
is
powered-up, requiring only
that
the
clock
be set.
The
program
on
power
up
function
can
be
achieved by using a
SMl92716
Storage
ov-l2
Module.
Up
to
8
programs can be
stored
in
the
Storage Module,
the
programs may be assi
any
of
the
numbers
1-8.
lf
the
Storage Module
is
connected when
the
CR10 is powered-up the
CR10 will automatically load program number
provided that a program 8 is loaded
in
the
Storage Module (Section
1.8).
OVs.
PROGRAMMING EXAMPLES
We will start with a
simple
programming
example. There
is
a brief explanation of each
step
to
help you follow
the
logic.
When the
example uses an instruction,
find
it
on
the
Prompt Sheet and follow through the descri
of
the parameters.
Using
the
Prompt Sheet
-yvhile
going through
these
examples
will
help
you
become familiar
with
its
format.
Sections
9
12
have more detailed descriptions
of
the
instructions.
Connect
the
CR10 to either a
CR1OKD
Keyboard/Display or
a
terminal
(Section OV2).
With the
Wiring Panelconnected
to
the
CR10,
hook
up
the
power leads as described
in
Section
OV1.2.
lf using
a
terminal,
use
the
7H
command
to
get into
the
Remote Keyboard
State
(Sections
5.2).
The
programming steps
the following
examples
use
the
keystrokes
possible
on
the keyboard/display.
With
a
terminal,
some
responses
will
be slightly
different.
lf
the
CR1OKD is
connected to the CR10 when
it
is
powered
up,
the display
willshow:
Displav
HELLO
after a few seconds
delay
Explanation
On power-up, the CR10
displays "HELLO"
while
it
checks
the
memory (this
display occurs only with the
cRloKD).
The size
of
the
machine's total
memory (RAM plus
32
K
ot
ROM),
in
this case 96K