Specifications

4-18
4.3 Labels
4.3.5 Data types
4.3.5 Data types
Labels are classified into several data types according to the bit length, processing method, or
value range.
(1) Elementary data types
The following data types are available as the elementary data type.
*1
Boolean type (bit): Represents the alternative status, such as ON or OFF.
Bit string type (word (unsigned)/16-bit string, double word (unsigned)/32-bit string):
Represents bit arrays.
Integer type (word (signed), double word (signed)): Handles positive and negative integer
values.
Real type (single-precision real, double-precision real): Handles floating-point values.
String type (character string): Handles character strings.
Time type (time): Handles numeric values as day, hour, minute, and second (in
millisecond).
Table 4.3.5-1 Elementary data types
*1: The following data types cannot be used for the structured ladder/FBD/ST language.
They can be only used for the ladder language.
Timer data type: Handles programmable controller CPU timer devices (T).
Retentive timer data type: Handles programmable controller CPU retentive timer devices (ST).
Counter data type: Handles programmable controller CPU counter devices (C).
Pointer data type: Handles programmable controller CPU pointer devices (P).
*2: The FX
3S, FX3G, FX3GC, FX3U, and FX3UC support this data type.
*3: The Universal model QCPU and the LCPU support this data type.
*4: The FX
3U and FX3UC support this data type.
*5: This data type is used in time type operation instructions of application function.
For details of the application functions, refer to the following.
MELSEC-Q/L Structured Programming Manual (Application Functions)
FXCPU Structured Programming Manual [Application Functions]
Elementary data type Description Value range Bit length
Bit Boolean
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
*2
Real
-2
128
to -2
-126
, 0, 2
-126
to 2
128
32 bits
Double-precision real
*3
Double-precision real
-2
1024
to -2
-1022
, 0, 2
-1022
to 2
1024
64 bits
String
*4
Character string
Maximum 255 characters
Variable
Time
*5
Time value
T#-24d20h31m23s648ms to
T#24d20h31m23s647ms
32 bits