Integer data types
Important
Information can be lost when converting from larger data types to smaller data types.
CODESYS provides the following integer data types.
Type | Lower limit | Upper Limit | Memory |
---|---|---|---|
| 0 | 255 | 8 bits |
| 0 | 65535 | 16 bits |
| 0 | 4294967295 | 32-bit |
| 0 | 264-1 | 64 bits |
| -128 | 127 | 8 bits |
| 0 | 255 | 8 bits |
| -32768 | 32767 | 16 bits |
| 0 | 65535 | 16 bits |
| -2147483648 | 2147483647 | 32-bit |
| 0 | 4294967295 | 32-bit |
| -263 | 263-1 | 64 bits |
| 0 | 264-1 | 64 bits |
For more information, see: Constant: Numeric