Appendix A. Controlling power
to the CELL200 series
This example shows how to control power to the CELL200 series by using the CRBasic
IPNetPower()
instruction. The program uses the
TimeIsBetween()
instruction to power
the CELL200 series for 15 minutes every 60 minutes between 9:00 a.m. and 5:00 p.m.
NOTE:
The
IPNetPower()
functionality shown in this example is available in the CR300 series
with operating system 08.00 or greater, the CR6 series with operating system 09.00 or greater,
and the CR1000X with operating system 03.00 or greater. To control power in these data
loggers with older operating systems or any CR1000, CR800 series, or CR3000, you will need to
use a SW12V port on the data logger and communicate over RS-232. When using a SW12V
port, we recommend using a
PPPClose()
instruction to shut down the network prior to
powering down the CELL200 series.
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 CELL200 series 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
CELL200-Series 4G LTE Cellular Module
58