Data Types & Variables
Data structures, variable types, and memory organization
A
3 terms
Alias
Alternative name for variable providing meaningful description of purpose.
ANY
Generic data type parameter allowing functions to accept multiple data types.
Array
Indexed collection of same data type elements, accessed by numerical index.
B
4 terms
BCD
Binary Coded Decimal format representing decimal digits in 4-bit groups.
Bit Field
Data structure packing multiple boolean flags into single memory word.
BOOL
BOOL means Boolean — a single-bit data type holding TRUE (1) or FALSE (0). The most-used data type in PLC programming: every contact, coil, digital I/O point, and comparison result is internally a BOOL.
BYTE
BYTE means an 8-bit unsigned data type in PLC programming, range 0 to 255. Used for status registers, packed I/O modules, and as a building block for larger data types.
C
2 terms
D
5 terms
Data Block
DB
Siemens-specific memory area for storing structured data and function block instances.
DATE
Calendar date representation without time component.
DATE_AND_TIME
DT
Combined date and time stamp for event logging and scheduling.
DINT
DINT means Double Integer — a 32-bit signed integer in PLC programming, range −2,147,483,648 to +2,147,483,647. Default integer type for counters, encoder positions, and most modern PLC arithmetic.
DWORD
DWORD means Double Word — a 32-bit unsigned data type in PLC programming, range 0 to 4,294,967,295. Used for bit-packed flag registers, IPv4 addresses, and large positive integers.
F
2 terms
L
3 terms
LINT
LINT means Long Integer — a 64-bit signed integer, range ±9.2 × 10¹⁸. Used for nanosecond timestamps and very large cumulative counters.
LREAL
LREAL means Long Real — a 64-bit IEEE 754 double-precision floating-point data type with about 15-16 decimal digits of precision. Used when REAL's 7-digit precision is insufficient.
LWORD
LWORD means Long Word — a 64-bit unsigned data type, range 0 to 18,446,744,073,709,551,615. Used for nanosecond-resolution timestamps and very large bit-packed registers.
S
5 terms
Signed
Data type capable of storing both positive and negative values.
SINT
SINT means Short Integer — an 8-bit signed integer in PLC programming, range −128 to +127. Used for small signed counts and Allen-Bradley boolean memory.
STRING
Variable-length character array for text data, typically with defined maximum length.
Structure
STRUCT
User-defined data type grouping different data types into single unit.
Subrange
User-defined data type limiting variable to specific range of values.
T
3 terms
U
6 terms
UDINT
UDINT means Unsigned Double Integer — a 32-bit unsigned integer, range 0 to 4,294,967,295. Used for IPv4 addresses, large positive counts, and millisecond timestamps.
UINT
UINT means Unsigned Integer — a 16-bit unsigned integer in PLC programming, range 0 to 65,535. The explicitly-unsigned counterpart to INT in IEC 61131-3.
ULINT
64-bit unsigned long integer with maximum range for whole numbers.
Union
Data type allowing same memory location to be accessed as different types.
Unsigned
Data type storing only positive values, doubling positive range.
USINT
USINT means Unsigned Short Integer — an 8-bit unsigned integer, range 0 to 255. The IEC 61131-3 explicitly-unsigned 8-bit type, equivalent to BYTE on most platforms.
W
2 terms
WORD
WORD means a 16-bit unsigned data type in PLC programming, range 0 to 65,535. Used for Modbus holding registers, status words, and bit-packed flags (16 BOOLs in one variable).
WSTRING
Wide character string supporting Unicode for international character sets.