EasyManua.ls Logo

Campbell CR300 series - Page 80

Campbell CR300 series
86 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
Loading...
Appendix B. Introduction to CRBasic Programming
B-10
true. When it is false, DisableVar is false. When False is entered as
the argument for DisableVar, all readings are included in the average.
The average of variable Oscillator does not include samples occurring
when Flag1 is true, which results in an average of 2; when Flag1 is
false (all samples used), the average is 1.5.
TABLE B-3. Data Types in Final-Data Memory
Name Argument Description
Word Size
(Bytes)
Notes Resolution / Range
FP2
FP2
Campbell Scientific
floating point
2
Default final-memory data type. Use
FP2 for stored data requiring 3 or 4
significant digits. If more significant
digits are needed, use IEEE4 or an
offset.
Zero Minimum Maximum
0.000 ±0.001 ±7999.
Absolute Value Decimal Location
0 – 7.999 X.XXX
8 – 79.99 XX.XX
80 – 799.9 XXX.X
800 – 7999. XXXX.
IEEE4
IEEE4 or
Float
IEEE floating point 4 IEEE Standard 754
±1.4E45 to ±3.4E38
IEEE8
IEEE8 or
Double
Double precision
floating point
8
IEEE Standard 754
Use to minimize floating point errors
when doing floating point
calculations or to store measurements
of high-resolution digital sensors.
Suitable for storing numbers larger
than Longs.
±4.94065E-324 to ±1.79769E308
Long
Long
Signed integer 4
Use to store integer data.
Speed: integer math is faster than
floating point math.
Resolution: 32 bits.
Suitable for storing whole numbers,
counting numbers, and integers in
final-data memory. If storing non-
integers, the fractional portion of the
value is lost.
2,147,483,648 to +2,147,483,647
UINT2
UINT2
Unsigned integer 2
Use to store integer data.
Use to store port or flag status.
When Public Floats convert to
UINT2 at final data storage, values
outside the range 0 65,535 yield
unusable data. INF converts to
65,535. NAN converts to 0.
0 to 65,535
UINT4
UINT4
Unsigned integer 4
Use to store positive count data ≤
2,147,483,647.
Other uses include storage of long ID
numbers (such as those read from a
bar reader), serial numbers, or
address.
May also be required for use in some
Modbus devices.
0 to 4,294,967,295

Table of Contents

Other manuals for Campbell CR300 series

Related product manuals