Campbell Scientific CR10 CR10 Measurement and Control - Page 117
Analog, Multiplexer To, Chart
View all Campbell Scientific CR10 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 117 highlights
SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES 8.6 SDM-AO4 ANALOG OUTPUT MULTIPLEXER TO STRIP CHART This example illustrates the use of the SDMA04 4 Channel Analog Output Multiplexer to output 4 analog voltages to a strip chart. While of questionable value because of current requirements and strip chart reliability, some archaic regulations require strip chart backup on weather data. The SDM-AO4 may be used with the CR10 to provide analog outputs to strip charts. The output values in this example are wind speed, wind direction, air temperature, and solar radiation. lnstruction 103 is used to activate the SDMA04. The (4) millivolt values to output must be stored in adjacent Input Storage locations, the first of which is referenced in Instruction 103. The following program measures the sensors every 5 seconds. The readings are.moved to another 4 locations and scaled to a 0 to 1000 millivolt output for the SDM-AO4. Wind direction is changed trom a 0-360 degree input to output representing 0 to 540 degrees. This conversion is done in a subroutine which is described in the next example. The example also includes instructions to output wind vector and average temperature and solar radiation every hour. lnput Location Labels: 1:WS 2:0-360 WD 3:Ta 4:SR S:WS output 6:0-540 out 7:Ta output 8:SR output 10:0-540 WD * 1 01: 5 01: P3 01: 02: 1 1 03: 22 04: O5: 1 1.789 06: 1 TablelPrograms Sec. Execution Interval Pulse Rep Pulse Input Chan Switch Closure Loc [:WS ] Mult Offset 02: P4 Excite, Delay,Volt(SE) 01: 1 02: 14 Rep 250 mV fast Range 03: 1 04: 1 05: 5 lN Chan Excite all reps w/EXchan 1 Delay (units.01sec) 06: 1000 mV Excitation 07: 2 Loc [:0-360 WD ] 08: .7273 Mult 09: 0 Offset 03: P11 01: 1 02: 2 03: 2 04: 3 05: 1.8 06: 32 Temp 107 Probe Rep lN Chan Excite all reps w/EXchan 2 Loc [:Ta I Mult Offset 04: Pl Volt (SE) 01: 1 Rep 02: 2 7.5 mV slow Range 03: 3 lN Chan O4: 4 Loc [:SR 05: .14493 Mult 06: 0 Otfset 05: P92 01: 0 02; 60 03: 10 lf time is minutes into a minute interual Set high Flag 0 (output) P54 Block Move 4 No. of Values 1 First Source Loc WS 1 Source Step 5 First Dest. Loc [:WS output] 1 Destination Step P86 Do 1 CallSubroutine 1 P53 Scaling Array (A.loc +B) 5 Start Loc [:WS output] 10 A1 SCALE WS, 0-100 MPH = 0-1000 MV 0 B1 1.8519 A2 SCALE WD. 0-540 DEG = 0-1000 MV 82 5.7143 A3 SCALE TEMP, O7: 25 -25 - 100 F =0-1000 MV B3 08: 1000 A4 SCALE RADIATION, 0-1KWM^2 = 0-1000 MV B4 8-7