Data Type
| Data type | Size | Sign | Value range | Precision |
|---|---|---|---|---|
| BOOL | 1 bit | - | 0 or 1 | - |
| BYTE | 8 bits (1 byte) | - | 0 to 255 | - |
| USINT | 8 bits (1 byte) | - | 0 to 255 | - |
| SINT | 8 bits (1 byte) | Yes | -128 to 127 | - |
| WORD | 16 bits (2 bytes) | - | 0 to 65535 | - |
| UINT | 16 bits (2 bytes) | - | 0 to 65535 | - |
| INT | 16 bits (2 bytes) | Yes | -32768 to 32767 | - |
| DWORD | 32 bits (4 bytes) | - | 0 to (2^32 - 1) | - |
| UDINT | 32 bits (4 bytes) | - | 0 to (2^32 - 1) | - |
| DINT | 32 bits (4 bytes) | Yes | -2^31 to (2^31 - 1) | - |
| LWORD | 64 bits (8 bytes) | - | 0 to (2^64 - 1) | - |
| ULINT | 64 bits (8 bytes) | - | 0 to (2^64 - 1) | - |
| LINT | 64 bits (8 bytes) | Yes | -2^63 to (2^63 - 1) | - |
| REAL | 32 bits (4 bytes) - IEEE 559 standard floating point | Yes | ±10^38 | 1/2^23 |
| LREAL | 64 bits (8 bytes) - IEEE 559 standard floating point | Yes | ±10^308 | 1/2^52 |
| STRING | 8 bits (1 byte) per position + 8 bits (1 byte) for the terminating null character | - | 1 to 254 ASCII characters | - |
NOTE 1: Consider only the number of characters when setting the variable size. The byte occupied by the null terminator is not added to the size. If the STRING size is not defined by the user, 128 characters will be allocated by default.
NOTE 2: Data types valid only for SCA06.