PLC

Special data types XINT, UXINT, XWORD and PVOID

TwinCAT supports systems with address register widths between 32 and 64 bits. To make the IEC code as independent as possible from the target system, you can use the "pseudo" data type described below. The compiler checks which target system type is currently used and converts these data types to the respective standard data types.

The following "pseudo" data types are available:

XINT or __XINT
is converted to LINT on 64-bit platforms.
is converted to DINT on 32-bit platforms.
UXINT or. __UXINT
is converted to ULINT on 64-bit platforms.
is converted to UDINT on 32-bit platforms.
XWORD or. __XWORD
is converted to LWORD on 64-bit platforms.
is converted to DWORD on 32-bit platforms.
PVOID
corresponds to the data type UXINT.