EasyManuals Logo

Campbell CR850 User Manual

Campbell CR850
566 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #123 background imageLoading...
Page #123 background image
Section 7. Installation
123
CRBasicExample12. UsingtheConstDeclaration
Public PTempC, PTempF
Const CtoF_Mult = 1.8
Const CtoF_Offset = 32
BeginProg
Scan(1,Sec,0,0)
PanelTemp(PTempC,250)
PTempF = PTempC * CtoF_Mult + CtoF_Offset
NextScan
EndProg
Predefined Contants
Several words are reserved for use by CRBasic. These words cannot be used as
variable or table names in a program. Predefined constants include some
instruction names, as well as valid alphanumeric names for instruction
parameters. In general, instruction names should not be used as variable, constant,
or table names in a datalogger program, even if they are not specifically listed as a
predefined constant. If a predefined constant, such as "SubScan" is used as a
variable in a program, an error similar to the following may be, but is not always,
displayed at CRBasic pre-compile.
Compile Failed!
line 8: SubScan is already is use as a predefined CONST.
Table Predefined Constants and Reserved Words (p. 123) lists predefined constants.
Table 11. Predefined Constants and Reserved Words
_50hz _60hz Auto Autoc
AutoRange AutoRangec BOOL8 BOOLEAN
CAO1 CAO2 Case Com1
Com2 Com3 Com310 Com4
ComME ComRS232 ComSDC10 ComSDC11
ComSDC7 ComSDC8 CR1000 CR3000
CR5000 CR800 CR9000X day
DO EVENT FLOAT FOR
hr FALSE If IX1
IX2 IEEE4 IX4 LoggerType
LONG IX3 msec mv1000
mv1000C min mv1000R mv2_5
mv2_5c mv1000cR mv200 mv200c
mv200cR mv20 mv20c mv25
mv250 mv200R mv2500c mv250c
mv25c mv2500 mv500 mv5000
mv5000 mv50 mv5000C mv5000cR
mv5000R mv5000c mv50c mv50c

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Campbell CR850 and is the answer not in the manual?

Campbell CR850 Specifications

General IconGeneral
BrandCampbell
ModelCR850
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals