Power off, Syntax – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 376

Section 9. Program Control Instructions
Power Off
Used to turn the CR9000X off until a designated time.
Syntax
PowerOff(
StartTime, Interval, Units
)
Remarks
This instruction sets a time to power up and then shuts off CR9000X power.
Only the clock continues running while the CR9000X is powered down.
When the time to power up arrives, the power is restored, the CR9000X
reloads its program from Flash memory and begins running.
The interval allows the CR9000X to periodically power up and execute a
program. StartTime is a time value. If StartTime is in the future when
PowerOff is executed, it is the time the CR9000X will be programmed to power
up. If StartTime is in the past when PowerOff is executed, The CR9000X will
set the time to power up to the next occurrence of the interval (using StartTime
as the start of the first interval)
The units for the interval are days, hours, minutes, or seconds.
Poweroff can also be used in conjunction with the digital inputs on the CR9011
Power Supply Board to set up the CR9000X to power up in response to an external
trigger, make a series of measurements, and then power off.
When the CR9000X is in this power off state the ON/Off switch on the
CR9011 Power Supply Board is in the on position but the internal relay is
open. The power LED is not lit. If the "<0.8 " input is switched to ground or
if the ">2" input has a voltage greater than 2 volts applied, the CR9000X will
awake, load the program in memory and run. If the "< 0.8" input continues to
be held at ground while the CR9000X is powered on and goes through its 2–5
second initialization sequence, the CR9000X will not run the program in
memory. This is extremely useful if the program executes the PowerOff
instruction immediately or after a short measurement period.
Parameter
& Data Type
Enter
POWEROFF PARAMETERS
Start Time
Array
The name of a six element array that contains the start time: Year, month, day, hour, minutes,
and seconds, respectively.
Interval
Constant
Enter the time interval on which the CR9000X is to be powered up.
Units
The units for the time parameters.
Constant
Alpha
Code
Numeric
Code
Units
SEC 2
Seconds
MIN 3
Minutes
HR 4
Hours
DAY 5
Days
9-46