Glossary Updates12 new terms added to the glossaries · October 2, 2026, 22:44 CEST
AI TechDocKnowledge

Glossary · PLC and control programming

Finite-state machine (FSM)

Also known as: State machine, Finite automaton

German: Endlicher Automat

In software and control engineering, a finite-state machine (FSM) is a model of behavior with a finite number of states, in which the system is in exactly one state at a time and changes state through defined transitions triggered by inputs or events.

  • PLC programming

In one sentence

A finite-state machine has a finite set of states and defined transitions; in PLC code it structures sequences and machine modes.

Example

A pick-and-place unit is programmed as an FSM with the states WAIT_PART, PICK, MOVE, PLACE and RETURN, implemented with a CASE statement over an enumeration.

How it applies

  • Engineering: FSMs are the most common way to structure sequential machine logic. In Structured text (ST), a CASE statement over an Enumeration implements the states; in Sequential function chart (SFC), steps and transitions express the same idea graphically. The ISA-88 and PackML state models are standardized state machines for batch and packaging equipment.
  • Commissioning: A clear FSM makes testing systematic: each state and each transition becomes a test case, including faults and aborts.
  • Operation: Showing the current state on the HMI tells operators what the machine is waiting for.
  • Documentation: A state diagram with a table of states, transition conditions and actions is the best bridge between specification, code and manual. Reuse the state names from the program in the operating manual and in alarm texts.

Finite-state machine vs. state model

In this glossary, the State model is the systems engineering description of a system's states and permitted transitions. The FSM is the concrete computational form, usually implemented in software. A state model can be realized as one or several FSMs.

By knowledge.aitechdoc.world · Published September 26, 2026 · Last reviewed

Source: AI TechDoc Blog editorial definition, based on automata theory and PLC programming practice

Definitions follow the cited standards and specifications. Where a source is a copyrighted publication, such as an ISO, IEC or EN standard, the definition is a close paraphrase, not a verbatim quotation, so as not to infringe copyright. We recommend reading the original publication. The sections “How it applies” are editorial commentary by AI TechDoc Blog and are not part of any standard.

Seen a mistake? Send us a note!