Appendix B. Controlling power
to the RV50(X)
The RV50 uses considerably more power than the data logger. Therefore, it may be necessary to
use the data logger 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 data logger.
This example shows how to control power to the RV50 by using the CRBasic TimeIsBetween()
instruction to turn on SW12 for 15 minutes every 60 minutes between 9:00 a.m. and 5:00 p.m.
NOTE:
TimeIsBetween() requires operating system version 28.00 or greater in the CR1000,
CR3000, or CR800. It is supported in all CR1000X, CR6, and CR300 operating systems.
CRBasic Example 1: Turn RV50(X) ON and OFF under data logger control
'CR300 Series
'Declare Variables and Units
Public BattV
Public PTemp_C
Public ModuleState As Boolean
Units BattV=Volts
Units PTemp_C=Deg C
'Define Data Tables
DataTable(Daily,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 Data Logger Battery Voltage measurement 'BattV'
Battery(BattV)
'Default Wiring Panel Temperature measurement 'PTemp_C'
PanelTemp(PTemp_C,60)
'Between the hours of 9:00 and 17:00, turn the RV50(X)
'on for 15 minutes at the start of every hour
RV50(X) Sierra Wireless AirLink® 4G LTE Cellular Modem 43