B&R – PLC – Basic Data Types

TypeChannel width
(bytes)
Value range
BOOL1TRUE (1) and FALSE (0)
SINT1-128 ... +127
INT2-32768 ... +32767
DINT4-2147483648 ... +2147483647
USINT10 ... 255
UINT20 ... 65535
UDINT40 ... 4294967295
REAL4-3.4E38 ... +3.4E38
LREAL8-1.79769313486231E308 ... +1.79769313486231E308
TIME4T#-24d_20h_31m_23s_648ms ... T#24d_20h_31m_23s_647ms
DATE4D#1970-01-01 ... D#2106-02-07
TIME_OF_DAY or TOD4TOD#00:00:00.000 ... TOD#23:59:59.999
DATE_AND_TIME or DT4DT#1970-01-01-00:00:00 ... DT#2106-02-07-06:28:15
STRING1 per character
BYTE1Bit sequence with a length of 8
WORD2Bit sequence with a length of 16
DWORD4Bit sequence with a length of 32
WSTRING2 per character