Mitsubishi Electric MELSEC Q Series Structured Programming Manual page 43

Fundamentals
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(2) Generic data types
Generic data type is the data type of labels summarizing some elementary data types. Data
type name starts with 'ANY'.
ANY data types are used when multiple data types are allowed for function arguments and
return values.
Labels defined in generic data types can be used in any sub-level data type.
For example, if the argument of a function is ANY_NUM data type, desired data type for an
argument can be specified from word (signed) type, double word (signed) type, single-
precision real type, and double-precision real type.
Arguments of functions and instructions are described using generic data types, in order to
be used for various different data types.
The following figure shows the types of generic data type and their corresponding
elementary data types.
ANY_NUM
ANY_REAL
ANY_INT
Single-
Word
precision
(signed)
real
Double-
Double
precision
word
(signed)
real
ANY16
Word
Word
(unsigned)/
(signed)
16-bit string
*1: For arrays, refer to the following section.
*2: For structures, refer to the following section.
ANY
ANY_SIMPLE
ANY_BIT
Time
Bit
Word
(unsigned)/
16-bit string
Double word
(unsigned)/
32-bit string
ANY32
Double word
Double
(unsigned)/
word
32-bit string
(signed)
*1
Array
String
The higher 'ANY' data types include sub-level data types.
The highest 'ANY' data type includes all data types.
Section 4.4.7 Arrays
Section 4.4.8 Structures
4.3.5 Data types
*2
Structure
4.3 Labels
4-19
4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l seriesMelsec-f

Table of Contents