![background image](http://html1.mh-extra.com/html/campbell/lws/lws_instruction-manual_3879544021.webp)
Appendix B. Example Programs
B.1 Example CR1000 Program
The wiring for the example is shown in TABLE
TABLE B-1. CR1000 Example Wiring
Color
Function
CR1000
White
Excitation
EX1 or VX1
Red
Analog Out
SE1
Bare
Analog Ground
⏚
'CR1000
'Declare Variables and Units
Public BattV
Public PTemp_C
Public LWmV
Public LWMDry
Public LWMCon
Public LWMWet
Units BattV=Volts
Units PTemp_C=Deg C
Units LWmV=mV
Units LWMDry=Minutes
Units LWMCon=Minutes
Units LWMWet=Minutes
'Define Data Tables
DataTable(Table1,True,-1)
DataInterval(0,60,Min,10)
Sample(1,BattV,FP2)
Sample(1,PTemp_C,FP2)
Sample(1,LWmV,FP2)
Totalize(1,LWMDry,FP2,False)
Totalize(1,LWMCon,FP2,False)
Totalize(1,LWMWet,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,_60Hz)
'LWS Dielectric Leaf Wetness Sensor measurement 'LWmV'
BrHalf(LWmV,1,mV2500,1,1,1,2500,False,10000,_60Hz,2500,0)
B-1
Содержание LWS
Страница 2: ......
Страница 6: ......
Страница 8: ...Table of Contents Tables B 1 CR1000 Example Wiring B 1 B 2 CR6 Example Wiring B 2 ii...
Страница 18: ...LWS Dielectric Leaf Wetness Sensor 10...
Страница 24: ...Appendix B Example Programs B 4...
Страница 25: ......