Section 9. Programming
77
TABLE. Predefined Constants and Reserved Words
(p. 77) lists predefined
constants.
Table 7.
Predefined Constants and Reserved Words
Case
Day DO
FOR
FALSE Hr
If
Msec
min
mv2500 mv5000
PROG
SCAN Select SUB Sec
TABLE TRUE Usec Until
EX1 EX2 While
9.6.3
Alias and Unit Declarations
A variable can be assigned a second name, or alias, by which it can be called
throughout the program. Aliasing is particularly useful when using arrays.
Arrays are powerful features in complex programs, but place the same
appellation on a number of variables. The use of an alias allows the power of the
array to be used with the clarity of unique names.
Each variable can be assigned units to clarify the meaning. Units are not used
elsewhere in programming, but rather add meaning to resultant data table
headers.
CRBASIC EXAMPLE 7.
Alias and Unit Declaration
Public TempC(2)
Alias TempC(1)=AirTempC
Alias TempC(2)=SoilTempC
Units TempC()=Deg_C
BeginProg
Scan (1,Sec)
Therm109 (TempC(),2,1,Ex1,1.0,0)
NextScan
EndProg
9.7 Declarations II - Declared Sequences
9.7.1
Data Tables
Data are stored in tables as directed by the CRBASIC program. A data table is
created by a series of CRBASIC instructions entered after variable declarations
but before the BeginProg instruction. These instructions include:
Summary of Contents for CR200
Page 32: ...Section 2 Quickstart Tutorial 22 ...
Page 45: ...Section 3 Overview 35 3 3 Specifications ...
Page 46: ...Section 3 Overview 36 ...
Page 58: ...Section 4 Sensor Support 48 ...
Page 62: ...Section 5 Measurement and Control Peripherals 52 ...
Page 78: ...Section 8 CR200 X Configuration 68 ...
Page 102: ...Section 9 Programming 92 ...
Page 138: ...Section 11 Programming Resource Library 128 ...
Page 156: ...Section 16 Support Software 146 ...
Page 160: ...Section 17 Care and Maintenance 150 ...
Page 167: ...Section 18 Troubleshooting 157 18 3 3 2 Charging Circuit Test Solar Panel ...
Page 168: ...Section 18 Troubleshooting 158 18 3 3 3 Charging Circuit Test Transformer ...
Page 169: ...Section 18 Troubleshooting 159 18 3 3 4 Adjusting Charging Circuit Voltage ...
Page 170: ...Section 18 Troubleshooting 160 ...
Page 184: ...Appendix A Glossary 14 ...
Page 190: ...Appendix B Status Table and Settings 20 ...
Page 192: ...Appendix C Serial Port Pin Outs 22 ...
Page 211: ......