Instruction manual

CC5MPX Digital Camera
72
‘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
If TimeIntoInterval (0,5,Min) Then
SendVariables
(SendVarResult,Com1,0,55,0000,400,"Public","CC5MPXStillBanner2",BannerString,1) EndIf
If TurnDefrosterOn = true Then
TurnDefrosterVal = 1
SendVariables
(SendVarResult,Com1,0,55,0000,200,"Public","CC5MPXDefroster",TurnDefrosterVal,1) TurnDefrosterOn
= false
EndIf
CallTable Test
NextScan
EndProg
11.4 PakBus Neighbouring Address
The PakBus protocol allows devices to relay data in a network. The CC5MPX now
has the ability to communicate with devices that are several hops away on the
PakBus network. To configure this new feature, a setting has been added to the
PakBus configuration screen on the webpage.
Entering the address of the PakBus device physically connected to the CC5MPX
PakBus communication lines, allows the neighbor to relay communication between
the CC5MPX and the final destination for data. Leave PakBus set to zero (0) if
device is directly connected to the final destination.
12. Device Configuration Utility
The Device Configuration Utility can be used to change settings in the CC5MPX.
The Device Configuration Utility software can be downloaded at no charge from
the Campbell Scientific website.
Using the Device Configuration Utility: