Elementary IEC 61131-3 Types

Program objects using these elementary IEC 61131-3 types:
  • BOOL: logic (true or false) value
  • SINT: short integer value (8 bit)
  • USINT: unsigned short integer value (8 bit)
  • BYTE: byte value (8 bit)
  • INT: single integer value (16 bit)
  • UINT: unsigned single integer value (16 bit)
  • WORD: word value (16 bit)
  • DINT: double integer value (32 bit)
  • UDINT: unsigned double integer value (32 bit)
  • DWORD: double word value (32 bit)
  • LINT: long integer value (64 bit)
  • ULINT: unsigned long integer value (64 bit)
  • LWORD: long word value (64 bit)
  • REAL: real (floating) value (32 bit)
  • LREAL: long real (floating) value (64 bit)
  • TIME: time values less than 49d17h2m47s295ms; these value types cannot store dates (32 bit)
  • DATE: date values (32 bit)
  • STRING: character string having a defined size, representing the maximum number of characters the string can contain.
Define new user types based on these elementary IEC 61131-3 types. Define arrays or structures using elementary IEC 61131-3 types, arrays, or other user types.
Assign a dimension to define an array when creating a variable. Example: the MyVar variable of type BOOL with a defined dimension:
[1..10] FOR i = 1 TO 10 DO MyVar[i] := FALSE; END_FOR;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal