Data type |
Size |
Signal |
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 (232 - 1) |
|
UDINT |
32 bits (4 bytes) |
|
0 to (232 - 1) |
|
DINT |
32 bits (4 bytes) |
Yes |
- 231 to (231 - 1) |
|
LWORD2 |
64 bits (8 bytes) |
|
0 to (264 - 1) |
|
ULINT2 |
64 bits (8 bytes) |
|
0 to (264 - 1) |
|
LINT2 |
64 bits (8 bytes) |
Yes |
- 263 to (263 - 1) |
|
REAL |
32 bits (4 bytes) Floating point - IEEE 559 standard |
Yes |
±10±38 |
1 / 223 |
LREAL2 |
64 bits (8 bytes) Floating point - IEEE 559 standard |
Yes |
±10±308 |
1 / 252 |
STRING1 |
8 bits (1 byte) for each position + 8 bits (1 byte) for the null character |
|
1 to 254 ASCII characters |
|
|
NOTE! 1 Considers only the number of characters in the size of the variable. 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.
2 Data types valid only for SCA06. |