Campbell Scientific CR10 CR10 Measurement and Control - Page 109

ZLocl:Y2, ZLocl:C2, ZLocl:T2

Page 109 highlights

SECTION 7. MEASUREMENT PROGRAMMING EXAMPLES Temperature ('C), pressure (psi), and signature are stored in Locations 17,18, and 19, respectively. Instructions to output the readings to Final Storage are not included in this example. " 1 01: 60 TablelPrograms Sec. Execution lnterval lf the program has just compiled, a 0 is in Loc 20. lf Loc 20 = 0, call subroutine 1 and load the temperature coefficients into Loc 3..16. 01: P89 01: 20 02: 1 03: 0 04: 1 lf XF X Loc COMP CHK F CallSubroutine 1 Measure temperature period in microseconds 02: P27 01: 02: 1 4 03: 12 04: 9000 05: 6 06: 1 O7: 1 08: 1 Period Average (SE) Rep lnput gain=1 lN Chan No. of Cycles Time Out (units=.O1 sec) Loc [:TEMP,us] Mult Offset Measure pressure period in microseconds 03: P27 01: 1 02: 4 03: 1 04: 5000 05: 15 06: 07: 2 1 08: 0 Period Average (SE) Rep Input gain=1 lN Chan No. of Cycles Time Out (units=.01 sec) Loc [:PRESS,us] Mult Otfset 04: P64 01: 1 02: 17 Paro Processing Start Loc: Temp(us), Pressure(us), Uo..Ts Start Loc: Temp("C), Pressure(psi), SIG 05: End Table 1 01: P85 01: 1 Table 3 Subroutines Beginning of Subroutine Subroutine Number 02: P30 01: 5.8603 Q2: 0 03: 3 03: P30 01: -3970.3 02: 03: 0 4 04: P30 01: -7114.3 02: 03: 0 5 Z=F F Exponent of 10 Z Loc [:U0 I Z=F F Exponent of 10 Z Loc [:Y1 I Z=F F Exponent of 10 ZLocl:Y2 ] 05: 01: 02:. 03: P30 102.78 0 6 Z=F F Exponent of 10 Z Loc [:Y3 I 06: 01: o2: 03: P30 70.294 0 7 Z=F F Exponent of 10 Z Loc [:C1 I o7: 01: 02: 03: P30 6.6101 0 I Z=F F Exponent of 10 ZLocl:C2 I 08: 01: 02; 03: P30 -1 19.29 0 9 Z=F F Exponent of 10 Z Loc [:C3 I 09: 01: 02: 03: P30 30.884 0 10 Z=F F Exponent of 10 Z Loc [:D1 1 10: P30 01: 0 02: 0 03: 11 Z=F F Exponent of 10 ZLocl:DZ l 11: P30 0O12: i 03: 26.337 0 '12 Z=F F Exponent of 10 Z Loc [:T1 I 12: P30 Z=F 01: .85170 F 02: 0 Exponent of 10 03: 13 ZLocl:T2 1 7-25

  • 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
Temperature
('C),
pressure
(psi), and signature
are
stored
in
Locations
17,18,
and
19,
respectively.
Instructions to output
the
readings
to
Final Storage
are
not included
in
this
example.
"
1
TablelPrograms
01: 60
Sec.
Execution lnterval
lf
the
program
has
just
compiled,
a
0
is in
Loc
20.
lf Loc
20
=
0,
call
subroutine
1
and load the
temperature coefficients into Loc
3..16.
lf X<=>F
X
Loc COMP
CHK
F
CallSubroutine
1
Measure temperature
period
in microseconds
02:
P27
01:
1
02:
4
03:
12
04:
9000
05:
6
06:
1
O7:
1
08:
1
Period
Average
(SE)
Rep
lnput
gain=1
lN Chan
No. of Cycles
Time Out
(units=.O1
sec)
Loc
[:TEMP,us]
Mult
Offset
Period
Average
(SE)
Rep
Input
gain=1
lN
Chan
No. of Cycles
Time
Out
(units=.01
sec)
Loc
[:PRESS,us]
Mult
Otfset
Paro Processing
Start
Loc:
Temp(us),
Pressure(us),
Uo..Ts
Start
Loc:
Temp("C),
Pressure(psi), SIG
End
Table
1
Table
3 Subroutines
Beginning of Subroutine
Subroutine Number
03:
P30
01:
-3970.3
02:
0
03:
4
04:
P30
01:
-7114.3
02:
0
03:
5
P30
102.78
0
6
P30
70.294
0
7
P30
6.6101
0
I
P30
-1
19.29
0
9
P30
30.884
0
10
P30
0
0
11
11:
P30
01:
26.337
O2i
0
03:
'12
12:
P30
01:
.85170
02:
0
03:
13
Z=F
F
Exponent
of
10
Z
Loc
[:U0
I
Z=F
F
Exponent
of
10
Z
Loc
[:Y1
I
Z=F
F
Exponent
of
10
ZLocl:Y2
]
Z=F
F
Exponent
of
10
Z
Loc
[:Y3
I
Z=F
F
Exponent
of
10
Z
Loc
[:C1
I
Z=F
F
Exponent
of
10
ZLocl:C2
I
Z=F
F
Exponent
of
10
Z
Loc
[:C3
I
Z=F
F
Exponent
of
10
Z
Loc
[:D1
1
Z=F
F
Exponent
of
10
ZLocl:DZ
l
Z=F
F
Exponent
of
10
Z
Loc
[:T1
I
Z=F
F
Exponent
of
10
ZLocl:T2
1
02:
P30
01:
5.8603
Q2:
0
03:
3
01:
P89
01:
20
02:
1
03:
0
04:
1
Measure pressure
period
in microseconds
05:
01:
02:.
03:
06:
01:
o2:
03:
o7:
01:
02:
03:
08:
01:
02;
03:
09:
01:
02:
03:
10:
01:
02:
03:
03:
P27
01:
1
02:
4
03:
1
04:
5000
05:
15
06:
2
07:
1
08:
0
01:
P85
01:
1
04:
P64
01:
1
02:
17
05:
7-25