Campbell CR300 Series Operator's Manual page 80

Hide thumbs Also See for CR300 Series:
Table of Contents

Advertisement

Appendix B. Introduction to CRBasic Programming
Name
Argument
Description
Campbell Scientific
FP2
FP2
floating point
IEEE4 or
IEEE4
IEEE floating point
Float
IEEE8 or
Double precision
IEEE8
floating point
Double
Long
Long
Signed integer
UINT2
UINT2
Unsigned integer
UINT4
UINT4
Unsigned integer
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
Word Size
(Bytes)
Default final-memory data type. Use
FP2 for stored data requiring 3 or 4
2
significant digits. If more significant
digits are needed, use IEEE4 or an
offset.
4
IEEE Standard 754
IEEE Standard 754
Use to minimize floating point errors
when doing floating point
calculations or to store measurements
8
of high-resolution digital sensors.
Suitable for storing numbers larger
than Longs.
Use to store integer data.
Speed: integer math is faster than
floating point math.
Resolution: 32 bits.
4
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.
Use to store integer data.
Use to store port or flag status.
When Public Floats convert to
2
UINT2 at final data storage, values
outside the range 0 – 65,535 yield
unusable data. INF converts to
65,535. NAN converts to 0.
Use to store positive count data ≤
2,147,483,647.
Other uses include storage of long ID
numbers (such as those read from a
4
bar reader), serial numbers, or
address.
May also be required for use in some
Modbus devices.
Notes
Zero
0.000
Absolute Value
0 – 7.999
8 – 79.99
80 – 799.9
800 – 7999.
±1.4E–45 to ±3.4E38
±4.94065E-324 to ±1.79769E308
–2,147,483,648 to +2,147,483,647
Resolution / Range
Minimum
Maximum
±0.001
±7999.
Decimal Location
X.XXX
XX.XX
XXX.X
XXXX.
0 to 65,535
0 to 4,294,967,295

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr300-rf407Cr300-rf412Cr300-rf422

Table of Contents