Specifications

Section 9. CR1000 Programming
9-8
'UINT2 Data Storage Example
Sample (1,PosCounter,UINT2)
'LONG Data Storage Example
Sample (1,PosNegCounter,Long)
'STRING Data Storage Example
Sample (1,FirstName,String)
'BOOLEAN Data Storage Example
Sample (8,Switches(),Boolean)
'BOOL8 Data Storage Example
Sample (16,FLAGS(),Bool8)
'NSEC Data Storage Example
Sample (1,CR1000Time,Nsec)
EndTable
TABLE 9.6-1 lists details of available data types.
TABLE 9
.6-1. Data Types
Code Data Format Where Used Word Size Range Resolution
FP2 Campbell
Scientific Floating
Point
Output Data
Storage Only
2 bytes
±7999
13 bits
(about 4 digits)
IEEE4 or
FLOAT
IEEE 4 Byte
Floating Point
Output Data
Storage /
Variables
4 bytes
±1.4 x 10
-45
to
±3.4 x 10
38
24 bits
(about 7 digits)
LONG 4 Byte Signed
Integer
Output Data
Storage /
Variables
4 bytes -2,147,483,648 to
+2,147,483,647
1 bit (1)
UINT2 2 Byte Unsigned
Integer
Output Data
Storage Only
2 bytes 0 to 65535 1 bit (1)
BOOLEAN 4 byte Signed
Integer
Output Data
Storage /
Variables
4 bytes 0, -1 True or False
(-1 or 0)
BOOL8 1 byte Boolean Output Data
Storage Only
1 byte 0, -1 True or False
(-1 or 0)
NSEC Time Stamp Output Data
Storage Only
8 byte seconds since 1990 4 bytes of
nanoseconds
in the second
STRING ASCII String Output Data
Storage /
Variables
Set by
program