Appendix B. Example Programs
'Determine Minutes Dry, LWMDry, Minutes Wet or Contaminated, ‘LWMCon, and
Minutes Wet, LWMWet for this Scan
LWMDry=0
LWMCon=0
LWMWet=0
If LWmV<274 Then
LWMDry=0.08333333
Else
If LWmV>=284 Then
LWMWet=0.08333333
Else
LWMCon=0.08333333
EndIf
EndIf
'Call Data Tables and Store Data
CallTable(Table1)
CallTable(Table2)
NextScan
EndProg
B.2 Example CR6 Program
The wiring for the example is shown in TABLE
TABLE B-2. CR6 Example Wiring
Color
Function
CR6
White
Excitation
U1
Red
Analog Out
U2
Bare
Analog Ground
⏚
'CR6 Series
'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,LWmV,FP2)
Totalize(1,LWMDry,FP2,False)
Totalize(1,LWMCon,FP2,False)
Totalize(1,LWMWet,FP2,False)
EndTable
B-2
Содержание 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: ......