Campbell Scientific CR10 CR10 Measurement and Control - Page 108

Peripherals, Paroscientific, Transducer

Page 108 highlights

SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES 23: P30 01: 0 02: 0 03: 40 24: P30 01: 0 02: 0 03: 41 25: 01: 02: 03: P30 0 0 42 27: P85 01: 2 28: P 01: 15 02: I 03: 40 29: P33 01: 16 02: 40 03: 40 30: P87 01: 0 02: 3 Z=F F Exponent of 10 Z Loc [:SCRATCH 1] Z=F F Exponent of 10 Z Loc [:SCRATCH 2] Z=F F Exponent of 10 Z Loc [:CMPILE CK] End Beginning of Subroutine Subroutine Number 36 Z=X"Y X Loc POLLY M4 YLocU Z Loc [:SCRATCH 1] Z=X+Y X Loc POLY M3 Y Loc SCRATCH 1 Z Loc [:SCRATCH 1] Beginning of Loop Delay Loop Count 31: P36 01: 8 02: 40 03: 40 32; 01: 02: 03: P33 17- 40 40 33: P95 Z=X*Y XLocU Y Loc SCRATCH 1 Z Loc [:SCRATCH 1] Z=X+Y X Loc POLY M2 Y Loc SCRATCH 1 Z Loc [:SCRATCH 1] End 34: P9s End 35: P End Table 3 *A O012:: 50 64 03: 0.0000 Mode 10 Memory Allocation lnput locations Intermediate locations Finaf Storage Area2 7-24 7.18 SDM PERIPHERALS The SDM peripherals are measurement and controlmodules which are controlled by the CR10 through control ports 1 ,2, and 3. The instructions for these peripherals are: 101 SDM-|NT8I channel interval timer, 102 SDMSW8 8 channel switch closure multiplexer, 103 SDM-A04 4 channelanalog output multiplexer, and 104 SDM-CD16 16 channelcontrol port expansion. Please consult the SDM peripheral manual for programming examples. 7.1 9 PAROSCIENTIFIC PRESSURE TRANSDUCER PROCESSING This example demonstrates the use of Instruction 64 and 65 for calculating the pressure measured with a Paroscientific "T" Series transducer. Figure 7.17-l details the components required for connecting the transducer to the CR10. The user-supplied components are commonly available at commercial electronic stores. Example: The 14 coefficients shown below are for Paroscientific "T" Series transducer Serial Number 30135. Your coefficients will be ditferent. Coeff. Value Entry uo 5.860253 Y1 -3970.348 -3970.3 Y*Y2 3 -7114.265 102779.1 -7114.3 102.78 c1 70.29398 70.294 c2 6.610141 6.6101 ca -119.2867 -1 19.29 *D1 0.0308837 30.884 D2 0.0 0.0 T1 26.33703 26.337 T2 0.8516985 0.851 T3 21.80118 21.801 T4 0.0 0.0 T5 0.0 0.0 " Y3 and D1 coefficients are entered as Y3/1000 and D,.1000. The following example reads the coefficients from a subroutine only when the datalogger program is compiled. The coefficients are stored in Input Locations 3 through 16. The temperature frequency is read on single-ended Channel 12 and stored in Input Location 1. Pressure is measured on single-ended Channel 1 and stored in Location 2. Instruction 64 converts the readings to engineering units.

  • 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
7.
MEASUREMENT
PROGRAMMING
EXAMPLES
23:
01:
02:
03:
24:
01:
02:
03:
27:
P85
01:
2
28:
P
01:
15
02:
I
03:
40
29:
01:
02:
03:
30:
01:
02:
31:
01:
02:
03:
Z=F
F
Exponent
of
10
Z
Loc
[:SCRATCH
1]
Z=F
F
Exponent
of
10
Z
Loc
[:SCRATCH
2]
Z=F
F
Exponent
of
10
Z
Loc
[:CMPILE
CK]
End
Beginning of Subroutine
Subroutine Number
36
Z=X"Y
X
Loc POLLY M4
YLocU
Z
Loc
[:SCRATCH
1]
Z=X+Y
X
Loc POLY M3
Y
Loc
SCRATCH
1
Z
Loc
[:SCRATCH
1]
Beginning of Loop
Delay
Loop Count
Z=X*Y
XLocU
Y
Loc SCRATCH
1
Z
Loc
[:SCRATCH
1]
Z=X+Y
X Loc POLY M2
Y
Loc SCRATCH
1
Z
Loc
[:SCRATCH
1]
End
End
End
Table
3
Mode
10
Memory
Allocation
lnput locations
Intermediate locations
Finaf
Storage
Area2
Value
5.860253
-3970.348
-7114.265
102779.1
70.29398
6.610141
-119.2867
0.0308837
0.0
26.33703
0.8516985
21.80118
0.0
0.0
P30
0
0
40
P30
0
0
41
7.18
SDM
PERIPHERALS
The SDM peripherals
are
measurement and
controlmodules
which are controlled by
the
CR10 through
control ports
1
,2,
and
3.
The
instructions for
these
peripherals
are:
101
SDM-|NT8I
channel
interval
timer,
102 SDM-
SW8
8
channel switch
closure
multiplexer,
103
SDM-A04
4
channelanalog
output multiplexer,
and
104 SDM-CD16
16
channelcontrol
port
expansion.
Please consult
the
SDM peripheral
manual
for
programming examples.
7.1
9
PAROSCIENTIFIC
PRESSURE
TRANSDUCER
PROCESSING
This example demonstrates
the
use
of
Instruction 64 and
65
for calculating
the
pressure measured with
a
Paroscientific
"T"
Series
transducer.
Figure
7.17-l
details
the
components
required for connecting
the
transducer to
the
CR10.
The
user-supplied
components are commonly available at
commercial electronic stores.
Example: The
14
coefficients shown below are
for
Paroscientific "T" Series transducer Serial
Number
30135.
Your coefficients
will
be
ditferent.
25:
P30
01:
0
02:
0
03:
42
P33
16
40
40
P87
0
3
P36
8
40
40
P33
17-
40
40
P95
P9s
P
32;
01:
02:
03:
33:
34:
35:
Coeff.
uo
Y1
Y2
*Y3
c1
c2
ca
*D1
D2
T1
T2
T3
T4
T5
*A
01:
50
O2:
64
03:
0.0000
" Y3
and
D1
coefficients are entered as Y3/1000
and D,.1000.
The following
example
reads the coefficients
from
a
subroutine only when
the
datalogger
program
is
compiled.
The
coefficients are
stored
in
Input Locations
3
through
16.
The
temperature
frequency
is read on single-ended
Channel
12
and stored
in
Input Location
1.
Pressure is measured on single-ended Channel
1
and stored in Location
2.
Instruction 64
converts
the
readings to engineering units.
7-24
Entry
-3970.3
-7114.3
102.78
70.294
6.6101
-1
19.29
30.884
0.0
26.337
0.851
21.801
0.0
0.0