Special data types XINT, UXINT, XWORD and PVOID
Variables with these data types are converted to a platform-compliant data type, depending on the target system.
TwinCAT supports systems with address register widths between 32 and 64 bits. In order to make the IEC code as independent as possible from the target system, you can use the "pseudo" data types UXINT
, XINT
, XWORD
and PVOID
listed below. The compiler checks which target system type is currently used and converts these data types to the respective standard data types. In addition, type conversion operators are available for variables of this data type.
The following "pseudo" data types are available:
| Type conversion on 64-bit platforms | Type conversion on 32-bit platforms |
---|---|---|
XINT or __XINT | LINT | DINT |
UXINT or __UXINT | ULINT | UDINT |
XWORD or __XWORD | LWORD | DWORD |
PVOID | UXINT |