Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 44

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

Advertisement

Generic data type (ANY type)
The generic data type is the data type of the labels which summarize several primitive data types.
Generic data types are used when multiple data types are allowed for function and function block arguments and return
values.
Labels defined in generic data types can be used in any sub-level data type.
For the types of generic data types and the primitive data types, refer to the following.
 MELSEC iQ-R Programming Manual (Instructions, Standard Functions/Function Blocks)
Definable data types and initial values
The following tables list the definable data types and initial value setting possibilities for each label class.
Global label
Class
VAR_GLOBAL
VAR_GLOBAL_CONSTANT
VAR_GLOBAL_RETAIN
Local label (program block)
Class
VAR
VAR_CONSTANT
VAR_RETAIN
Local label (function)
Class
VAR
VAR_CONSTANT
VAR_INPUT
VAR_OUTPUT
Return value
Local label (function block)
Class
VAR
VAR_CONSTANT
VAR_RETAIN
VAR_INPUT
VAR_OUTPUT
VAR_OUTPUT_RETAIN
VAR_IN_OUT
VAR_PUBLIC
VAR_PUBLIC_RETAIN
*1 The pointer type cannot be defined.
*2 None of the timer, retentive timer, long timer, counter, long timer, long retentive timer, and long counter types can be defined.
• The initial value of the global label where the device has been assigned follows that in the device.
• The initial value of the function block follows the local label setting within the function block.
• The initial value of the structure type follows that of the structure definition.
4 LABELS
42
4.3 Data Types
Definable data type
Primitive data type, array, structure, function block
*1
Primitive data type
*1
Primitive data type
, array, structure
Definable data type
Primitive data type, array, structure, function block
*1
Primitive data type
*1
Primitive data type
, array, structure
Definable data type
*2
Primitive data type
, array, structure
*1
Primitive data type
*1*2
Primitive data type
, array, structure
Definable data type
Primitive data type, array, structure, function block
*1
Primitive data type
*1
Primitive data type
, array, structure
Initial value setting
possibility
Initial value setting
possibility
Initial value setting
possibility
Initial value setting
possibility

Advertisement

Table of Contents
loading

Table of Contents