Programming Changes
If enabling power control through SW12 using MultiLogger, the functionality can be edited in the output
device’s gage file.
CR300 Program
The following code is the “Turn on Cell Modem” gage file for the CR300 output device. By default, it turns on
the device for 1 hour a day from 12pm-1pm.
This program turns SW12 ON to power the connected device using the PortSet function.
The PortSet function takes two parameters. The first is the Port and the second is the state.
In the code below PortSet(SW12,1) is used to turn on SW12 and PortSet (SW12,0) is used to turn off SW12.
The if TIME_HHMM statement is checking whether the current time is between 12pm and 1pm.
(Figure 34)