> For the complete documentation index, see [llms.txt](https://infosys.selmotech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infosys.selmotech.com/selmo-how-it-works/selmo-training/kapitel-1-der-theoretische-hintergrund/1.3-der-deterministische-endliche-automat.md).

# 1.3 Der deterministische endliche Automat

Mathematisch gesehen ist die Selmo-SEQ ein **deterministischer endlicher Automat (DFA)**.\
Ein DFA ist ein Konzept aus der Informatik, das schon seit Jahrzehnten in der formalen Sprachanalyse, der Compiler-Technik und der Ablaufsteuerung verwendet wird.

Er besteht aus:

* einer **endlichen Menge von Zuständen**,
* einem **Startzustand**,
* **Übergangsregeln**, die definieren, wann von einem Zustand in den nächsten gewechselt wird,
* und einer **Übergangsfunktion**, die beschreibt, welche Signale oder Eingaben diesen Wechsel auslösen.

Selmo überträgt dieses Prinzip auf die Steuerungstechnik.\
Das Schaltwerk (die „Sequence Engine“) spielt die Rolle des Automaten.\
Die Eingaben stammen aus Sensoren, Tastern oder berechneten Signalen.\
Die Ausgänge steuern Aktoren, Ventile, Motoren oder logische Funktionen.

Das Besondere an Selmo ist, dass diese Übergangsregeln nicht beliebig, sondern **standardisiert** sind.\
Sie lauten:

**IF (AR = 1 AND ¬I AND ΣS = 0) THEN Next State**

Diese Bedingung ist universell.\
Sie bedeutet:

* **AR = 1:** Die Automatikfreigabe ist aktiv.
* **¬I:** Es liegt kein Interlock (kein Sicherheitsfehler) vor.
* **ΣS = 0:** Alle laufenden Aktionen (Sequence Checks) sind erfüllt.

Nur wenn diese drei Bedingungen gleichzeitig gelten, schaltet das Schaltwerk weiter.\
Dadurch ist der Ablauf berechenbar, sicher und reproduzierbar – die Maschine folgt einer exakt definierten Logik.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://infosys.selmotech.com/selmo-how-it-works/selmo-training/kapitel-1-der-theoretische-hintergrund/1.3-der-deterministische-endliche-automat.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
