PLC Data Types and Ranges

The size and range of the data types you meet in PLC programming, and the overflow traps to watch for.

Integer and bit types

TypeSizeRange
BOOL1 bit0 or 1 (FALSE or TRUE)
SINT8 bit−128 to 127
USINT / BYTE8 bit0 to 255
INT16 bit−32,768 to 32,767
UINT / WORD16 bit0 to 65,535
DINT32 bit−2,147,483,648 to 2,147,483,647
UDINT / DWORD32 bit0 to 4,294,967,295
LINT64 bit−9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Floating-point types

TypeSizeRange (approx.)Precision
REAL32 bit±1.18×10−38 to ±3.40×1038About 7 decimal digits
LREAL64 bit±2.23×10−308 to ±1.80×10308About 15-16 decimal digits

Traps to watch for

Type names and which types are available differ between platforms, and some platforms lack unsigned types or 64-bit types. Check the manual for the PLC you are using. The data converter shows how one register reads as signed, unsigned, hex and BCD.

Reference summary based on IEC 61131-3 and IEEE 754. Verify against your PLC platform's documentation.