Campbell Scientific CR10 CR10 Measurement and Control - Page 116
speeds., below., 5-1. Connections, RealTime
View all Campbell Scientific CR10 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 116 highlights
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES would be used for 2 wind speeds.) ln Program Table 1, the 2 normal pulse inputs are read and the hourly totals output to Final Storage with lnstruction 72. The rain gage is connected as diagrammed below. When the switch closes, 5 volts is applied to port 8 which causes the subroutine to be executed. RAINGAGE FIGURE 8.5-1. Connections for Rain Gage I nput location Assignments: 10:Rain #1 11:Rain #2 12:Rain #3 13:Rain alt (from Pulse count) (from Pulse count) (from subroutine 98 while Output Flag is low) (from subroutine 98 while Output Flag is high) 1 01: 10 Table 1 Programs Sec. Execution Interval 01: 01: o2: 03: o4: 05: 06: P3 Pulse 2 Reps 1 Pulse Input Chan 2 Switch Closure 10 .254 Loc [:Rain #1 ] Mult 0 Offset 02"" 01: 02; 03: P92 o 60 10 03: P77 01: 1 10 04: P 01: 2 02: 10 05: 0A12:: P91 10 30 ll time is minutes into a minute interval Set high Flag 0 (output) RealTime Day,Hour-Minute 72 Tolalize Reps Loc Rain #1 lf Flag/Port Do il flag 0 (output) is high Then Do 06: P70 0012:: 1 12 O7: P30 01: 0 Q2: 0 03: 12 08: P86 01: 20 09: P33 01: 13 0032:: 12 12 10: 01: P30 0 02: 0 03: 13 P95 12: P 3 01: P85 01: 98 02: P91 01: 10 02: 30 03: 01: 02: 03: P34 13 o.254 13 o4: P94 05: P34 01: 12 O2: .254 03: 12 07: P22 01: 02: 1 0 03: 20 04: 0 08: P95 09: P Sample Reps Loc Rain #3 Z=F F Exponent of 10 Z Loc [:Rain #3 ] Do Set low Flag 0 (output) Z=X+Y X Loc Rain alt Y Loc Rain #3 Z Loc [:Rain #3 ] Z=F F Exponent of 10 Z Loc [:Rain alt ] End End Table 1 Table 3 Subroutines Beginning of Subroutine Subroutine Number lf Flag/Port Do if flag 0 (output) is high Then Do Z=X+F X Loc Rain alt F Z Loc [:Rain alt ] Else Z=X+F X Loc Rain #3 F Z Loc [:Rain #3 ] End Excitation with Delay EX Chan Delay wiEX (units=.01 sec) Delay after EX (units=.O1 mV Excitation End End Table 3 8-6