3-6
3.4 Data Types
3.4 Data Types
Data types of labels include the elementary data types and the generic data types.
Generic data type is the data type of labels covering some elementary data types. The data type
name starts with 'ANY'.
The following shows the list of elementary data types and generic data types.
Table 3.4-1 Elementary data types
*1 Can be used for the Universal model QCPU only.
*2 The time type is used in time type operation instructions of application function.
Data type Description Value range Bit length
Bit Bool
0(FALSE), 1(TRUE)
1 bit
Word
(signed)
Integer
-32768 to 32767
16 bits
Double word
(signed)
Double-precision
integer
-2147483648 to 2147483647
32 bits
Word
(unsigned)/
16-bit string
16-bit string
0 to 65535
16 bits
Double word
(unsigned)/
32-bit string
32-bit string
0 to 4294967295
32 bits
Single-
precision
real
Real
-2
128
to -2
-126
, 0, 2
-126
to 2
128
32 bits
Double-
precision
real
*1
Double-precision
real
-2
1024
to -2
-1022
, 0, 2
-1022
to 2
1024
64 bits
String Character string
Maximum 255 characters
Variable
Time
*2
Time value
T#-24d-0h31m23s648ms to T#24d20h31m23s647ms
32 bits