
Section 7. Installation
112
Public
PTemp, batt_volt
DataTable
(Test,1,-1)
DataInterval
(0,15,Sec,10)
Minimum
(1,batt_volt,FP2,0,False)
Sample
(1,PTemp,FP2)
EndTable
BeginProg
Scan
(1,Sec,0,0)
PanelTemp
(PTemp,250)
Battery
(Batt_volt)
CallTable
Test
NextScan
Include
"CPU:IncludeFile.CR1"
'<<<<<<<<<<<<<<<'include' file code executed here
EndProg
'Include' File to Control SW12 Terminal.
'This program example demonstrates the use of an 'include' file. See the documentation in
CRBasic example
'Using an Include File
(p. 111)
'
'<<<<<<<<<<<<<<<<<<<<<<<NOTE: No BeginProg instruction
SlowSequence
'<<<<<<<<<<NOTE: Begins with SlowSequence
Scan
(1,Sec,0,0)
If TimeIntoInterval
(9,24,Hr)
Then SW12
(1)
'Modem on at 9:00 AM (900 hours)
If TimeIntoInterval
(17,24,Hr)
Then SW12
(0)
'Modem off at 5:00 PM (1700 hours)
NextScan
'
'<<<<<<<<<<<<<<<<<<<<<<<NOTE: No EndProg instruction
7.5.1.5.3 Executable File Run Priorities
1. When the CR800 powers up, it executes commands in the powerup.ini file (on
Campbell Scientific mass storage device including commands to set the
CRBasic program file attributes to
Run Now
or
Run On Power-up
.
2. When the CR800 powers up, a program file marked as
Run On Power-up
will be the current program.
3. If there is a file specified in the
Include File Name
setting, it is compiled at
the end of the program selected in step.
4. If there is no file selected in step 1, or if the selected file cannot be compiled,
the CR800 will attempt to run the program listed in the
Include File Name
setting. The CR800 allows a
SlowSequence
statement to take the place of
the
BeginProg
statement. This allows the "Include File" to act as the default
program.
5. If the program listed in the
Include File Name
setting cannot be run or if no
program is specified, the CR800 will attempt to run the program named
default.cr8 on its CPU: drive.
Summary of Contents for CR800 Series
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 34: ......
Page 54: ......
Page 92: ......
Page 310: ......
Page 446: ...Section 8 Operation 446 8 11 2 Data Display FIGURE 100 CR1000KD Displaying Data ...
Page 448: ...Section 8 Operation 448 FIGURE 102 CR1000KD Real Time Custom ...
Page 449: ...Section 8 Operation 449 8 11 2 3 Final Storage Data FIGURE 103 CR1000KD Final Storage Data ...
Page 450: ...Section 8 Operation 450 8 11 3 Run Stop Program FIGURE 104 CR1000KD Run Stop Program ...
Page 452: ...Section 8 Operation 452 FIGURE 106 CR1000KD File Edit ...
Page 456: ......
Page 462: ......
Page 523: ...Section 11 Glossary 523 FIGURE 116 Relationships of Accuracy Precision and Resolution ...
Page 524: ......
Page 526: ......
Page 556: ......
Page 558: ......
Page 560: ......
Page 597: ......