Elementary data types

Keyword

Data type

Range

Reserved memory

Initial value

BOOL

Boolean

0 (FALSE)

1 (TRUE)

1 bit

0

WORD

Bit string of length 16

0–65535

16 bits

0

DWORD

Bit string of length 32

0–4294967295

32 bits

0

INT

Integer

-32768–32767

16 bits

0

DINT

Double integer

-2147483648–2147483647

32 bits

0

UINT

Unsigned integer

0–65535

16 bits

0

UDINT

Unsigned double integer

0–4294967295

32 bits

0

REAL

Real number

-3.402823466*E38 to -1.175494351*E-38

0.0

+1.175494351*E-38 to +3.402823466*E38

32 bits

0.0

LREAL2)

Long real number

-1.7976931348623158e+308 to -2.2250738585072014e-308

0.0

+2.2250738585072014e-308 to +1.7976931348623158e+308

64 bits

0.0

TIME

Duration

T#0sT#327.67s

16 bits1)

T#0s

T#0sT#21474836.47s

32 bits1)

DATE_AND_TIME

Date and time

DT#2001-01-01-00:00:00– DT#2099-12-31-23:59:59

32 bits

 

DATE

Date

D#2001-01-01D#2099-12-31

32 bits

D#2001-01-01

TIME_OF_DAY

Time of day

TOD#00:00:00TOD#23:59:59

32 bits

TOD#00:00:00

STRING

Variable-length character string

1–32767 bytes (ASCII) depending on PLC memory size

2 words for the head + (n+1)/2 words for the characters

''

1)Depending on PLC type

2)LREAL is supported for 32-bit PLCs, e.g. FP7 only.

Related topics:

Modified on: 2024-03-05Feedback on this pagePanasonic hotline