EasyManua.ls Logo

CS RV50 - Controlling Power to the RV50

CS RV50
50 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
A-1
Appendix A. Controlling Power to the
RV50
The RV50 uses considerably more power than the datalogger. Therefore, it
may be necessary to use the datalogger to control power to the RV50. The
following program examples show how to control power to the RV50 using the
switched 12V (SW12V) terminal on the datalogger.
CRBasic Example A-1, created by Short Cut, uses the TimeIsBetween
instruction to turn on SW12 for 15 minutes every 60 minutes between 9:00
a.m. and 5:00 p.m. (Note that the TimeIsBetween instruction requires
operating system version 28 or later in the CR1000, CR3000, or CR800. It is
supported in all CR6 and CR300 operating systems.)
CRBasic Example A-1. Using TimeIsBetween to Turn On and Off SW12
'CR6 Series
'Created by Short Cut (3.1)
'Declare Variables and Units
Public BattV
Public PTemp_C
Public SW12State As Boolean
Units BattV=Volts
Units PTemp_C=Deg C
'Define Data Tables
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)
'SW12 Timed Control
'Turn ON SW12 between 0900 hours and 1700 hours
'for 15 minutes every 60 minutes
If TimeIsBetween(540,1020,1440,Min) And TimeIsBetween(0,15,60,Min) Then
SW12State=True
Else
SW12State=False
EndIf
'Always turn OFF SW12 if battery drops below 11.5 volts
If BattV<11.5 Then SW12State=False
'Set SW12-1 to the state of 'SW12State' variable
SW12(1,SW12State,0)
'Call Data Tables and Store Data
CallTable Table2
NextScan