Appendix B. Example Programs
B.1.3 CR6 Program
'CR6 Series
'Declare Variables and Units
Public BattV
Public PTemp_C
Public Rain_mm
Units BattV=Volts
Units PTemp_C=Deg C
Units Rain_mm=mm
'Define Data Tables
DataTable(Table1,True,-1)
DataInterval(0,60,Min,10)
Totalize(1,Rain_mm,FP2,False)
EndTable
DataTable(Table2,True,-1)
DataInterval(0,1440,Min,10)
Minimum(1,BattV,FP2,False,False)
EndTable
'Main Program
BeginProg
'Main Scan
Scan(5,Sec,1,0)
'Default Datalogger Battery Voltage measurement 'BattV'
Battery(BattV)
'Default Wiring Panel Temperature measurement 'PTemp_C'
PanelTemp(PTemp_C,60)
'52202 Rain Gauge measurement 'Rain_mm'
PulseCount(Rain_mm,1,U1,1,0,0.1,0)
'Call Data Tables and Store Data
CallTable Table1
CallTable Table2
NextScan
EndProg
B-3