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

Process cpu module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

28.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
BOOL
Word [unsigned]/bit
WORD
string [16 bits]
Double word
DWORD
[unsigned]/bit string
[32 bits]
Word [signed]
INT
Double word [signed]
DINT
Single-precision real
REAL
*1
number
Double-precision real
LREAL
*1
number
*2
Time
TIME
String
STRING
String [Unicode]
WSTRING
Timer
TIMER
Retentive timer
RETENTIVETIMER
Long timer
LTIMER
Long retentive timer
LRETENTIVETIMER
Counter
COUNTER
Long counter
LCOUNTER
Pointer
POINTER
Description
Value range
Represents the
0 (FALSE), 1 (TRUE)
alternative status,
such as on or off.
16-bit array
0 to 65535
32-bit array
0 to 4294967295
Positive and negative
-32768 to 32767
integer values
Positive and negative
-2147483648 to 2147483647
double-precision
integer values
128
-126
Numerical values of
-2
to -2
decimal places
E-3.402823+38 to E-1.175495-38, 0, E1.175495-38 to E3.402823+38
(single-precision real
number values)
1024
Numerical values of
-2
to -2
decimal places
E-1.79769313486231+308 to E-2.22507385850721-308, 0,
(double-precision real
E2.22507385850721-308 to E1.79769313486231+308
number values)
Numerical values as
T#-24d20h31m23s648ms to T#24d20h31m23s647ms
day, hour, minute,
second, and
millisecond
Characters
255 one-byte characters maximum
represented by ASCII
code or Shift JIS code
Characters
255 characters maximum
represented by
Unicode
Page 498 Timer and counter data types
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 484 Pointer (P))
-126
128
, 0, 2
to 2
-1022
-1022
1024
, 0, 2
to 2
Bit length
1 bit
16 bits
32 bits
16 bits
32 bits
32 bits
64 bits
*3
32 bits
Variable
Variable
28 LABELS
497
28.4 Data Types
28

Advertisement

Table of Contents
loading

Table of Contents