My WebLink
|
Help
|
About
|
Sign Out
Home
Browse
Search
C150227 Final Report
CWCB
>
Grants
>
DayForward
>
C150227 Final Report
Metadata
Thumbnails
Annotations
Entry Properties
Last modified
3/27/2013 7:43:05 AM
Creation date
3/26/2013 1:12:58 PM
Metadata
Fields
Template:
Grants
Applicant
South Platte Ditch Company
Grant Type
Non-Reimbursable
Fiscal Year (i.e. 2008)
2006
Project Name
Canal Modernization and Radio Telemetry Demonstration Project
CWCB Section
Finance
Contract/PO #
C150227
Grants - Doc Type
Final Deliverables
There are no annotations on this page.
Document management portal powered by Laserfiche WebLink 9 © 1998-2015
Laserfiche.
All rights reserved.
/
70
PDF
Print
Pages to print
Enter page numbers and/or page ranges separated by commas. For example, 1,3,5-12.
After downloading, print the document using a PDF reader (e.g. Adobe Reader).
Show annotations
View images
View plain text
5020 X =X +1 <br />REM read analog flow depth signal <br />REM register 2 is the first analog input, register 3 <br />REM is the 2nd ai, etc... <br />5030 AII= REGREAD(2) <br />5035 AI2= REGREAD(3) <br />REM add current signal reading to previous sum <br />5040 IF AI1<4096 THEN DPTHSUMI = DPTHSUMI +AI1 <br />5045 IF A22<4096 THEN DPTHSUM2 = DPTHSUM2 +AI2 <br />REM continue until x readings have been taken <br />5050 UNTIL X =100 <br />REM calculate average of readings <br />5060 SIGAVGI = DPTHSUMI /X <br />5065 SIGAVG2= DPTHSUM2 /X <br />REM calculate flow depth <br />REM get slope and offset values from modbus registers <br />5070 SLPI= REGREAD(7033) : SLP2= REGREAD(7034) <br />5075 OFFI= REGREAD(7037) : OFF2= REGREAD(7038) <br />5076 CAL1= REGREAD(7039) : CAL2= REGREAD(7040) <br />REM calculate flow depth using slope, offset and <br />REM a sensor calibration factor <br />5080 Y1= (SIGAVGI *(SLP1 *CAL1)) +OFF1 <br />5085 Y2= (SIGAVG2 *(SLP2 *CAL2)) +OFF2 <br />REM if ereg =7061, skip to flow discharge calcs <br />5090 IF EREG =7061 GOTO 5200 <br />REM 1 <br />5100 PRINT <br />5110 PRINT <br />5120 PRINT <br />5130 PRINT <br />5140 PRINT <br />)rint depth to lcd <br />#2,CHR(12), <br />#2, "Calculated Depth:" <br />#2," Depth 1 > ",Y1 <br />#2," Depth 2 > ",Y2 <br />#2, "Press F3 to Exit" <br />REM if ereg =7062, skip flow disch. calcs <br />5150 IF EREG =7062 GOTO 5300 <br />REM calculate flow discharge <br />REM get multipliers, constants & exponents from <br />REM modbus registers <br />5200 K1= REGREAD(7041) : K2= REGREAD(7042) <br />5205 K3= REGREAD(7043) : K4= REGREAD(7044) <br />5210 U1= REGREAD(7045) : U2= REGREAD(7046) <br />REM calculate flow rate (if Y >0) <br />REM power equation formula <br />5220 IF Y1 >0 THEN Q1= K1 *Y1 * *U1 <br />5225 IF Y2 >0 THEN Q2= K2 *Y2 * *U2 <br />REM set q =0 when sensor output < =0 <br />5230 IF Yl< =0 THEN Q1 =0 <br />5235 IF Y2< =0 THEN Q2 =0 <br />REM print flow discharge to lcd <br />5250 PRINT #2,CHR(12), <br />5260 PRINT #2, "Calculated Flow(s):" <br />31 <br />
The URL can be used to link to this page
Your browser does not support the video tag.