Data Types - Mitsubishi MELSEC-Q Series Programming Manual

Mitsubishi programmable controller
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 and ST languages.
They can be only used for the ladder language.
*2: Can be used for the Universal model QCPU/LCPU only.
*3: The time type is used in time type operation instructions of application function.
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
Double-precision real
String
Character string
*3
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).
For details of the application functions, refer to the following manuals.
MELSEC-Q/L Structured Programming Manual (Application Functions)
FXCPU Structured Programming Manual (Application Functions)
Description
Bool
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
*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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l seriesMelsec-f series

Table of Contents