Section 7. Installation
139
Data Types in Final-Storage Memory
Name
Argument
Description
Word
Size
(Bytes)
Notes
Resolution / Range
Long
Long
Signed integer
4
Use to store count data in the
range of
±
2,147,483,648
Speed: integer math is faster than
floating point math.
Resolution: 32 bits. Compare to 24
bits in IEEE4.
Suitable for storing whole
numbers, counting number, and
integers in final-storage 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 positive count data ≤
+65535.
Use to store port or flag status. See
CRBasic example Load binary
information into a variable
(p. 149).
When Public FLOATs convert to
UINT2 at final data storage, values
outside the range 0 – 65535 yield
unusable data. INF converts to
65535. NAN converts to 0.
0 to 65535
UINT4
UINT4
Unsigned
integer
4
Use to store positive count data ≤
2147483647.
Other uses include storage of long
ID numbers (such as are 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 (2
32
)
Boolean
Boolean
Signed integer
4
Use to store true or false states,
such as states of flags and control
ports. 0 is always false. –1 is
always true. Depending on the
application, any other number may
be interpreted as true or false. See
the section True = -1, False = 0
(p.
To save memory, consider
using UINT2 or BOOL8.
True =
–
1 or any number ≥ 1
False = any number ≥ 0 and < 1
Bool8
Bool8
Integer
1
8 bits (0 or 1) of information. Uses
less space than 32-bit BOOLEAN.
Holding the same information in
BOOLEAN will require 256 bits.
See Bool8 Data Type
(p. 203).
True = 1, False
= 0
Summary of Contents for CR3000 Micrologger
Page 2: ......
Page 3: ......
Page 4: ......
Page 6: ......
Page 30: ......
Page 34: ......
Page 36: ......
Page 96: ......
Page 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Page 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Page 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Page 496: ......
Page 502: ......
Page 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Page 566: ......
Page 594: ......
Page 598: ......
Page 600: ......
Page 602: ......
Page 624: ......
Page 642: ......
Page 643: ......