Generic data types are used internally by system functions and system function blocks and cannot be selected in user-defined POUs. Generic data types are identified by the prefix ANY.
Generic data types are not available in user-defined POUs.
Hierarchy of generic data types:
ANY16 (WX, WY, WR, DT...) |
ANY32 (DWX, DWY, DWR, DDT...) |
ANY64 (LWX, LWY, LWR, LDT...) |
||||||
---|---|---|---|---|---|---|---|---|
ANY |
BOOL |
INT, UINT, WORD |
DINT, UDINT, DWORD, REAL, DATE, TOD, DT |
LREAL |
STRING |
|||
ANY_NUM |
INT, UINT |
DINT, UDINT, REAL |
LREAL |
|||||
ANY_REAL |
REAL |
LREAL |
||||||
ANY_INT |
INT, UINT |
DINT, UDINT |
||||||
ANY_SIGNED_INT |
INT |
DINT |
LINT1) |
|||||
ANY_UNSIGNED_INT |
UINT |
UDINT |
ULINT1) |
|||||
ANY_BIT |
BOOL |
WORD |
DWORD |
|||||
ANY_WORD |
WORD |
DWORD |
LWORD1) |
|||||
ANY_DATE |
DATE, TOD, DT |
1) if supported by PLC