Data Types - Mitsubishi Electric MELSEC Q Series Structured Programming Manual

Fundamentals
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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.
• 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).
Elementary data type
Word (signed)
Double word
Word (unsigned)/16-bit string
Double word (unsigned)/32-bit
Single-precision real
Double-precision real
*1: The following data types cannot be used for the structured ladder/FBD/ST language.
They can be only used for the ladder language.
*2: The FX
*3: The Universal model QCPU and the LCPU support this data type.
*4: The FX
*5: This data type is used in time type operation instructions of application function.
For details of the application functions, refer to the following.
4.3 Labels
4-18
4.3.5 Data types
Table 4.3.5-1 Elementary data types
Bit
Double-precision integer
(signed)
string
*2
*3
Double-precision real
*4
Character string
String
*5
Time
• 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).
, FX
, FX
, FX
, and FX
3S
3G
3GC
3U
and FX
support this data type.
3U
3UC
MELSEC-Q/L Structured Programming Manual (Application Functions)
FXCPU Structured Programming Manual [Application Functions]
Description
Boolean
0 (FALSE), 1 (TRUE)
Integer
-32768 to 32767
-2147483648 to 2147483647
16-bit string
0 to 65535
32-bit string
0 to 4294967295
Real
128
-2
to -2
1024
-2
Maximum 255 characters
T#-24d20h31m23s648ms to
Time value
T#24d20h31m23s647ms
support this data type.
3UC
*1
Value range
-126
-126
128
, 0, 2
to 2
-1022
-1022
1024
to -2
, 0, 2
to 2
Bit length
1 bit
16 bits
32 bits
16 bits
32 bits
32 bits
64 bits
Variable
32 bits

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l seriesMelsec-f

Table of Contents