Campbell CCFC Instruction Manual - page 89
CCFC Field Camera
79
The defroster commands should be sent to the camera every 60 seconds or less
to ensure continuous operation.
The defroster will not be allowed to turn on at internal temperatures about
+25°C.
15.3.2 PakBus Control of CCFC Power
The ability to shut the camera down safely using a PakBus command is
available in the CCFC. By writing a value of 1 (or any value not equaling zero)
to the public Boolean variable CCFCShutdown the camera initiates a shutdown
and power down cleanly. The shutdown process can take up to 30 seconds. The
camera will turn back on after 10 minutes or can be externally triggered.
Following is an example of the CRBasic command that will shut down a
camera with PakBus address 55:
SendVariables (SendVarResult,Com1,0,55,0000,400, “Public”, “CCFCShutdown”,1,1)
15.3.3 Example Program
– SendVariable Instruction – CR1000
The following example illustrates the use of the SendVariable instruction to
alter Still Photo Banner #2, as well as toggle the camera window defroster.
Please download the program directly from:
http://www.campbellsci.ca/ccfc
.
'CR1000 Series Datalogger
'Declare Public Variables
Public PTemp, batt_volt
Public TurnDefrosterOn As Boolean
Public TurnDefrosterVal As Long
Public SendVarResult As Long
Public BannerString As String * 60
Public tempstring As String * 60
'Define Data Tables
DataTable (Test,1,-1)
DataInterval (0,60,Sec,10)
Minimum (1,batt_volt,FP2,0,False)
Sample (1,PTemp,FP2)
EndTable
'Main Program
BeginProg
SerialOpen (Com1,115200,4,0,2000)
Scan (10,Sec,0,0)
PanelTemp (PTemp,250)
Battery (batt_volt)
'Enter other measurement instructions
tempstring = FormatFloat(PTemp,"%2.2f")
BannerString = "Panel Temp " + tempstring
Note