Data types

Below are the available basic data types:

BOOL Boolean (bit) - can be FALSE or TRUE - stored on 1 byte
SINT  (*) Small signed integer on 8 bits (from -128 to +127)
USINT (*) Small unsigned integer on 8 bits (from 0 to +255)
BYTE Same as USINT
INT  (*) Signed integer on 16 bits (from -32768 to +32767)
UINT (*) Unsigned integer on 16 bits (from 0 to +65535)
WORD Same as UINT
DINT Signed integer on 32 bits (from -2147483648 to +2147483647)
UDINT (*) Unsigned integer on 32 bits (from 0 to +4294967295)
DWORD Same as UDINT
LINT  (*) Long signed integer on 64 bits
REAL (*) Single precision floating point - stored on 32 bits
LREAL  (*) Double precision floating point - stored on 64 bits
TIME Time of day - less than 24h - accuracy is 1ms
STRING  (*) Variable length string with declared maximum length
The declared maximum length cannot exceed 255 characters

(*) Some of those data types may be not supported by all targets.