→Generic data type
according to →IEC-standard: →data type which represents more than one type of data
logi.CAD 3 is using generic data types for certain inputs/outputs resp. return values in some system blocks for the application. Compare: →Overloading and →Typed
Here the hierarchy of the generic data types and the appropriate elementary data types:
generic data types |
|
|
|
|
|
appropriate 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, LTIME(Currently, LTIME is not supported in logi.CAD 3.) |
|
|
ANY_BIT |
|
|
|
BOOL, BYTE, WORD, DWORD, LWORD |
|
|
ANY_CHARS |
|
|
|
|
|
|
|
ANY_STRING |
|
|
STRING, WSTRING(Currently, WSTRING is not supported in logi.CAD 3.) |
|
|
|
ANY_CHAR |
|
|
CHAR, WCHAR(Currently, WCHAR is not supported in logi.CAD 3.) |
|
|
ANY_DATE |
|
|
|
DATE_AND_TIME, LDATE_AND_TIME, DATE, TIME_OF_DAY, LTIME_OF_DAY, LDATE(Currently, LDATE_AND_TIME, LTIME_OF_DAY und LDATE are not supported in logi.CAD 3.) |
Note on how to interpret the table: If the last column does not list elementary data types for a generic data types, this generic data type includes the elementary data types of those generic data types that are subordinated.
Example 1: The generic data type ANY is the highest possible generalization of the data types. Hence, ANY includes all elementary data types (ANY_ELEMENTARY) and all derived data types (ANY_DERIVED).
Example 2: The generic data type ANY_INT includes the elementary data types of the subordinated generic data types ANY_UNSIGNED and ANY_SIGNED. Hence, ANY_INT includes: USINT, UINT, UDINT, ULINT, SINT, INT, DINT, LINT