Data Types; Simple Types; Complex Data Types - Mitsubishi Electric FX Series Training Manual

Programmable logic controllers
Hide thumbs Also See for FX Series:
Table of Contents

Advertisement

Programming

Data Types

3.4
GX IEC Developer supports the following data types.
3.4.1

Simple Types

Data type
BOOL
INT
DINT
WORD
DWORD
REAL
STRING
TIME
3.4.2

Complex Data Types

ARRAYS
An array is a field or matrix of variables of a particular type.
For example, an ARRAY [0..2] OF INT is a one dimensional array of three integer elements
(0,1,2). If the start address of the array is D0, then the array consists of D0, D1 and D2.
Identifier
Motor_Volts
In software, program elements can use: Motor_Volts[1] and Motor_Volts[2], as declarations,
which in this example mean that D1 and D2 are addressed.
Arrays can have up to three dimensions, for example: ARRAY [0...2, 0...4] has three elements in
the first dimension and five in the second.
Arrays can provide a convenient way of "indexing" tag names, i.e. one declaration in the Local or
Global Variable Table can access many elements.
The following diagrams illustrate graphical representation of the three array types.
Single Dimensional Array
Identifier
Motor_Speed
Training Manual GX IEC Developer
Value range
Boolean
Bit Device
Integer
Register
Double Integer
K4M0
Bit String
K8M0
Floating point value
7 digits
Character String
20 Characters (default)
-T#24d0h31m23s64800ms to
Time value
T#24d20h31m23s64700 ms
Address
D0
Type
ARRAY [0..3] OF INT
= Motor_Speed [3]
Size
0 (False), 1 (True)
1 bit
-32768 to +32767
16 bit
-2,147,483.648 to
32 bit
2,147,483,647
0 to 65,535
16 bit
0 to 4,294,967,295
32 bit
32 bit
32 bit
32 bit
Type
Length
ARRAY
[0...2] OF INT
Data Types
Applicable Devices / PLCs
X, Y, M, B
D, W, R
X, Y, M. B
FX
, FX
2N
3U
FX
3U
FX
only
3U
3 - 15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents