CRBasic Example 1: Turn CELL200 series ON and OFF under data logger control
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 CELL200 series
'on for 15 minutes at the start of every hour
If TimeIsBetween
(9,17,24,Hr)
AND TimeIsBetween
(0,15,60,Min)
Then
ModuleState=True
Else
ModuleState=False
EndIf
'Always turn OFF CELL200 series if battery drops below 11.5 volts
If
BattV<11.5
Then
ModuleState=False
'Set CELL200 series power to the state of 'ModuleState' variable
IPNETPower
(5,ModuleState)
'Call Data Tables and Store Data
CallTable
Daily
NextScan
EndProg
CELL200-Series 4G LTE Cellular Module
59