4 LABELS
4.3 Data Type
35
4
Generic data type (ANY)
The generic data type indicates data type of a label which combines several basic data types. The data type name begins with
"ANY".
The generic data type is used when multiple data types are available in arguments or return values etc. of a function of a
function block.
Labels defined as generic data types can be used for any sub-level data type.
For the types of generic data types and the primitive data types, refer to the following.
MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks)
Definable data types
The following tables list the definable data types possibilities for each label class.
*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.
Global label
Class Definable data type
VAR_GLOBAL Primitive data type, array, structure, function block
VAR_GLOBAL_CONSTANT Primitive data type
*1
VAR_GLOBAL_RETAIN Primitive data type
*1
, array, structure
Local label (program block)
Class Definable data type
VAR Primitive data type, array, structure, function block
VAR_CONSTANT Primitive data type
*1
VAR_RETAIN Primitive data type
*1
, array, structure
Local label (function)
Class Definable data type
VAR Primitive data type
*2
, array, structure
VAR_CONSTANT Primitive data type
*1
VAR_INPUT Primitive data type
*1*2
, array, structure
VAR_OUTPUT
Return value
Local label (function block)
Class Definable data type
VAR Primitive data type, array, structure, function block
VAR_CONSTANT Primitive data type
*1
VAR_RETAIN Primitive data type
*1
, array, structure
VAR_INPUT
VAR_OUTPUT
VAR_OUTPUT_RETAIN
VAR_IN_OUT
VAR_PUBLIC
VAR_PUBLIC_RETAIN