Data Types - Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

22.4

Data Types

The data types of a label are classified according to the bit length, processing method, and value range.
There are two data types.
• Primitive data type
• Generic data type (ANY type)
Primitive data type
The following table lists the data types included in the primitive data type.
Data type
Bit
Word [unsigned]/bit string [16 bits]
Double word [unsigned]/bit string [32
bits]
Word [signed]
Double word [signed]
Single-precision real number
Double-precision real number
*2
Time
String
String [Unicode]
Timer
Retentive timer
Long timer
Long retentive timer
Counter
Long counter
Pointer
*1 For the number of significant digits and input range of real number data input by the engineering tool, refer to the following.
 MELSEC iQ-R Programming Manual (CPU Module Instructions, Standard Functions/Function Blocks)
*2 The time type is used in a time data type function of standard functions. For standard functions, refer to the following.
 MELSEC iQ-R Programming Manual (CPU Module Instructions, Standard Functions/Function Blocks)
*3 For the notation of time, refer to the following.
Page 404 Notation of time
22 LABELS
374
22.4 Data Types
BOOL
WORD
DWORD
INT
DINT
*1
REAL
*1
LREAL
TIME
STRING
WSTRING
TIMER
RETENTIVETIMER
LTIMER
LRETENTIVETIMER
COUNTER
LCOUNTER
POINTER
Description
Represents the alternative status, such as
on or off.
16-bit array
32-bit array
Positive and negative integer values
Positive and negative double-precision
integer values
Numerical values of decimal places (single-
precision real number values)
Numerical values of decimal places
(double-precision real number values)
Numerical values as day, hour, minute,
second, and millisecond
Characters represented by ASCII code or
Shift JIS code
Characters represented by Unicode
Structure corresponding to the device,
timer (T)
Structure corresponding to the device,
retentive timer (ST)
Structure corresponding to the device, long
timer (LT)
Structure corresponding to the device,
timer (LST)
Structure corresponding to the device,
counter (C)
Structure corresponding to the device,
counter (LC)
Type corresponding to the device, pointer (P) ( Page 361 Pointer (P))
Value range
0 (FALSE), 1 (TRUE)
0 to 65535
0 to 4294967295
-32768 to 32767
-2147483648 to 2147483647
128
-126
-126
128
-2
to -2
, 0, 2
to 2
E-3.402823+38 to E-1.175495-
38, 0, E1.175495-38 to
E3.402823+38
1024
-1022
-1022
1024
-2
to -2
, 0, 2
to 2
E-1.79769313486231+308 to E-
2.22507385850721-308, 0,
E2.22507385850721-308 to
E1.79769313486231+308
T#-24d20h31m23s648ms to
*3
T#24d20h31m23s647ms
255 one-byte characters
maximum
255 characters maximum
Page 375 Timer and counter data types
Bit
length
1 bit
16 bits
32 bits
16 bits
32 bits
32 bits
64 bits
32 bits
Variable
Variable

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents