1 OVERVIEW
1.2 Data Specification Method
39
1
■Generic data 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 arguments and return values of functions or function
blocks.
Labels defined in generic data types can be used in any sub-level data type.
*1 Can also be used as an array.
■Generic data type (array)
For the following generic data type, define the number of array elements.
Data type (label) Specifiable label
ANY
*1
ANY_SIMPLE ANY_ELEMENTARY ANY_BIT ANY_BOOL Bit
ANY_BITADDR
*1
Bit
ANY16_U Word [unsigned]/bit
string [16 bits]
ANY32_U Double word
[unsigned]/bit string [32
bits]
ANY_WORDADDR ANY_NUM ANY_INT ANY16 ANY16_S Word [signed]
ANY16_U Word [unsigned]/bit
string [16 bits]
ANY32 ANY32_S Double word [signed],
time
ANY32_U Double word
[unsigned]/bit string [32
bits]
ANY_REAL ANYREAL_32 Single-precision real
number
ANYREAL_64 Double-precision real
number
ANY_STRING ANYSTRING_SINGLE String
ANYSTRING_DOUBLE Character string
[Unicode]
ANY16_OR_STRING_SINGLE ANY16_S Word [signed]
ANY16_U Word [unsigned]/bit
string [16 bits]
ANYSTRING_SINGLE String
ANY_DT Word [signed], word
[unsigned]/bit string [16
bits]
ANY_TM Word [signed], word
[unsigned]/bit string [16
bits]
ANY_STRUCT
*1
Structures
STRUCT Structures
Data type (label) Specifiable label
ANYBIT_ARRAY Bit
ANYWORD_ARRAY ANY16_ARRAY ANY16_S_ARRAY Word [signed]
ANY16_U_ARRAY Word [unsigned]/bit string [16
bits]
ANY32_ARRAY ANY32_S_ARRAY Double word [signed], time
ANY32_U_ARRAY Double word [unsigned]/bit
string [32 bits]
ANY_REAL_ARRAY ANY_REAL_32_ARRAY Single-precision real number
ANY_REAL_64_ARRAY Double-precision real number
ANY_STRING_ARRAY ANY_STRING_SINGLE_ARRAY Character string
ANY_STRING_DOUBLE_ARRAY Character string [Unicode]
STRUCT_ARRAY Structures