Mitsubishi Electric MELSEC Q Series Programming Manual page 35

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

Advertisement

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 Arrays ( Page 48 Arrays)
*2 Structures ( Page 51 Structures)
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.
4 PROGRAM CONFIGURATION
*2
Structure
33
4.3 Labels
4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec f seriesMelsec l series

Table of Contents