Skip to main content

Data Type

Data typeSizeSignValue rangePrecision
BOOL1 bit-0 or 1-
BYTE8 bits (1 byte)-0 to 255-
USINT8 bits (1 byte)-0 to 255-
SINT8 bits (1 byte)Yes-128 to 127-
WORD16 bits (2 bytes)-0 to 65535-
UINT16 bits (2 bytes)-0 to 65535-
INT16 bits (2 bytes)Yes-32768 to 32767-
DWORD32 bits (4 bytes)-0 to (2^32 - 1)-
UDINT32 bits (4 bytes)-0 to (2^32 - 1)-
DINT32 bits (4 bytes)Yes-2^31 to (2^31 - 1)-
LWORD64 bits (8 bytes)-0 to (2^64 - 1)-
ULINT64 bits (8 bytes)-0 to (2^64 - 1)-
LINT64 bits (8 bytes)Yes-2^63 to (2^63 - 1)-
REAL32 bits (4 bytes) - IEEE 559 standard floating pointYes±10^381/2^23
LREAL64 bits (8 bytes) - IEEE 559 standard floating pointYes±10^3081/2^52
STRING8 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.