Skip to main content
Call Eric:863-698-8266
CURRYCONTROLS.COMControls & Automation Knowledge Hub

PLC & Data

PLC Data Type Ranges

Bit width and value range for the IEC 61131-3 elementary data types, with the practical notes that matter in controller programming.

Source of these values

IEC 61131-3 elementary data types. Vendor implementations vary in which types they support and what they call them.

TypeBitsMinimumMaximumNotes
BOOL101A single bit. Stored in a byte or packed into a word depending on platform.
BYTE / USINT80255Unsigned 8-bit.
SINT8-128127Signed 8-bit.
WORD / UINT16065,535Unsigned 16-bit. One Modbus register.
INT16-32,76832,767Signed 16-bit. The most common PLC integer, and the one analog values usually land in.
DWORD / UDINT3204,294,967,295Unsigned 32-bit. Two Modbus registers.
DINT32-2,147,483,6482,147,483,647Signed 32-bit. Used for totalizers and run-hour counters.
LWORD / ULINT64018,446,744,073,709,551,615Unsigned 64-bit.
LINT64-9,223,372,036,854,775,8089,223,372,036,854,775,807Signed 64-bit.
REAL32±1.18e-38±3.40e38IEEE 754 single precision. About 7 significant decimal digits, which is why a large totalizer loses resolution in a REAL.
LREAL64±2.23e-308±1.80e308IEEE 754 double precision. About 15 significant decimal digits.

In short

The IEC 61131-3 integer types are bounded by bit width. An INT is 16-bit signed and holds -32,768 to 32,767. A DINT is 32-bit signed and holds about plus or minus 2.1 billion. A REAL is IEEE 754 single precision with roughly 7 significant decimal digits.

Notes and limits

  • Integer overflow in a PLC usually wraps silently rather than raising an error, which is why a run-hour counter in an INT rolls over at 32,767 and starts from a large negative number.
  • A REAL carries about 7 significant decimal digits. A totalizer above roughly 16.7 million stops resolving single units and appears to stall.
  • A Modbus register is 16 bits. Anything larger spans two registers, and the standard does not define which comes first.

Direct contact

Have a controls question?

Reach Eric Sullivan directly about anything on this site, a controls or automation topic, or one of his personal projects.