Common elements

Common elements

The shared foundation that all five IEC 61131-3 languages build on. Covers everything that is independent of the per-language syntax. (Stub — to be written.)

Sub-pages:

  • Lexical elements — whitespace, identifiers, comments, the keyword reserved list. Numeric literals live on the ST side at textual/structured-text/literals/integer-literals/.
  • Data typesBOOL, integer and bit-string families, REAL / LREAL, time / date types, STRING.
  • Generic typesANY, ANY_NUM, ANY_INT, ANY_BIT, ANY_REAL. The type-family markers used in standard-function signatures.
  • Derived typesSTRUCT, ARRAY, enums, type aliases, subranges. User-defined types via TYPE … END_TYPE.
  • Variable declarationsVAR, VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT, VAR_TEMP, VAR_GLOBAL, VAR_EXTERNAL, modifiers.
  • POU modelPROGRAM, FUNCTION_BLOCK, FUNCTION: the three POU kinds and when to pick which.
  • Object-oriented extensionsMETHOD, INTERFACE, EXTENDS, IMPLEMENTS and the rest of the IEC 61131-3 third-edition OOP layer. ForgeIEC parses these constructs, matiec does not.
  • ConfigurationCONFIGURATION, RESOURCE, TASK, PROGRAM-instance binding. The IEC scheduler model.