Data Types - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured. fundamentals
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

Data types

Labels are classified into several data types according to the bit length, processing method, or value range.
The following data types are available.
• Elementary data types
• Generic data types
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
Bit
Word (signed)
Double word [signed]
Word (unsigned)/16-bit string
Double word (unsigned)/32-bit
string
*2
Single-precision real
*3
Double-precision real
*4
String
*5
Time
*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
, FX
, FX
3S
3G
*3 The Universal model QCPU and the LCPU support this data type.
*4 The FX
and FX
3U
*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]
4 PROGRAM CONFIGURATION
32
4.3 Labels
Description
Boolean
Integer
Double-precision integer
16-bit string
32-bit string
Real
Double-precision real
Character string
Time value
, FX
, and FX
support this data type.
3GC
3U
3UC
support this data type.
3UC
*1
Value range
0 (FALSE), 1 (TRUE)
-32768 to 32767
-2147483648 to 2147483647
0 to 65535
0 to 4294967295
128
-126
-126
128
-2
to -2
, 0, 2
to 2
1024
-1022
-1022
1024
-2
to -2
, 0, 2
to 2
Maximum 255 characters
T#-24d20h31m23s648ms to T#24d20h31m23s647ms
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 f seriesMelsec l series

Table of Contents