Generic Data Types

Generic data types comprise a group of data types. They have the prefix ANY_ … . Generic data types can be grouped again, for example, ANY_INT covers ANY_SIGNED and ANY_UNSIGNED. The generic data type names staring with ANY_ are not keywords according to IEC, they just describe groups of types with the same properties. The types with SUBRANGE property are part of generic data type ANY_INT. The hierarchy of generic data types id in the following table:

Generic data type Group of elementary data types
ANY
ANY_DERIVED
ANY_ELEMENTARY
ANY_MAGNITUDE ANY_NUM ANY_REAL REAL, LREAL
ANY_INT ANY_UNSIGNED USINT, UINT, UDINT, ULINT
ANY_SIGNED SINT, INT, DINT, LINT
ANY_DURATION TIME
ANY_BIT BOOL, BYTE, WORD, DWORD, LWORD
ANY_CHARS ANY_STRING STRING
ANY_DATE DATE_AND_TIME, DT, DATE, TIME_OF_DAY, TOD