Integer Data Types
The following integer data types are available in TwinCAT.
Data type | Lower bound | Upper bound | Memory space |
---|---|---|---|
BYTE | 0 | 255 | 8 bit |
WORD | 0 | 65535 | 16 bit |
DWORD | 0 | 4294967295 | 32 bit |
LWORD | 0 | 264-1 | 64 bit |
SINT | -128 | 127 | 8 bit |
USINT | 0 | 255 | 8 bit |
INT | -32768 | 32767 | 16 bit |
UINT | 0 | 65535 | 16 bit |
DINT | -2147483648 | 2147483647 | 32 bit |
UDINT | 0 | 4294967295 | 32 bit |
LINT | -263 | 263-1 | 64 bit |
ULINT | 0 | 264-1 | 64 bit |
When converting types from larger to smaller types, information may be lost. |
See also: