Section 7. Installation
PanelTemp
is the keyword. Two parameters follow:
Dest
, a destination variable
name in which the temperature value is stored; and
Integ
,
a length of time to
integrate the measurement. To place the panel temperature measurement in the
variable
RefTemp
, using a 250 µs integration time, the syntax is as shown in
CRBasic example
Measurement Instruction Syntax
(p. 159).
CRBasic Example 15.
Measurement Instruction Syntax
'This program example demonstrates the use of a single measurement instruction. In this
'case, the program measures the temperature of the CR1000 wiring panel.
Public RefTemp
'Declare variable to receive instruction
BeginProg
Scan
(1,Sec,3,0)
PanelTemp
(RefTemp, 250)
'<<<<<<Instruction to make measurement
NextScan
EndProg
7.8.4.13.2 Argument Types
Most CRBasic commands or instructions, have sub-commands or parameters.
Parameters are populated by the programmer with arguments. Many instructions
have parameters that allow different types of arguments. Common argument types
are listed below. Allowed argument types are specifically identified in the
description of each instruction in
CRBasic Editor Help
.
•
Constant, or Expression that evaluates as a constant
•
Variable
•
Variable or Array
•
Constant, Variable, or Expression
•
Constant, Variable, Array, or Expression
•
Name
•
Name or list of Names
•
Variable, or Expression
•
Variable, Array, or Expression
7.8.4.13.3 Names in Arguments
Table
Rules for Names
(p. 159)
lists the maximum length and allowed characters for
the names for variables, arrays, constants, etc. The
CRBasic Editor
pre-compiler
will identify names that are too long or improperly formatted.
Caution
Concerning characters allowed in names, characters not listed in in the
table,
Rules for Names
, may appear to be supported in a specific operating system.
However, they may not be supported in future operating systems.
Table 20.
Rules for Names
Name
Category
1
Maximum Length
(number of
characters)
Allowed characters
Variable or array
39
Letters A to Z, a to z, _ (underscore), and
numbers 0 to 9. Names must start with a letter
Constant
38
159
Summary of Contents for CR1000
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 36: ......
Page 38: ......
Page 40: ......
Page 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Page 96: ......
Page 98: ...98 ...
Page 302: ......
Page 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Page 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Page 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Page 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Page 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Page 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Page 478: ......
Page 506: ......
Page 536: ......
Page 636: ......
Page 642: ......
Page 644: ......
Page 676: ......
Page 677: ......