> 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-struktur-und-standard/selmo-technischer-standard-und-struktur/parameterarten/parameterarten.md).

# Parameterarten

### 📘 Parameterarten im Selmo-Modell

Im Selmo-System dienen Parameter dazu, **nicht-binäre Werte im Modell** zu verwalten – zum Beispiel Zeiten, Zähler, Positionen oder konfigurierbare Schwellenwerte.

Sie ermöglichen eine **flexible, wiederverwendbare und dokumentierbare Prozesslogik**, unabhängig vom konkreten Signalverhalten.

***

#### 🔷 Wo werden Parameter verwendet?

Parameter können in verschiedenen Kontexten innerhalb einer SEQ genutzt werden:

* zur **Steuerung von Zuständen** (z. B. `Timer`-Dauer)
* als **Wertvergleiche in `Decision`-Elementen**
* zur **Anzeige und Eingabe im HMI**
* als **Schnittstelle zur Leittechnik** (z. B. OPC UA)

***

#### 🧩 Parameterarten

Jeder Parameter hat eine **Richtung**, die seine Verwendung definiert:

| Typ     | Bedeutung                                              | Verwendung                      |
| ------- | ------------------------------------------------------ | ------------------------------- |
| `IN`    | vom Bediener / HMI / System **einstellbar**            | z. B. Sollzeit, Wiederholanzahl |
| `OUT`   | vom Modell **ermittelt / berechnet**                   | z. B. Ist-Zeit, letzter Status  |
| `INOUT` | Kombination aus beidem – **einstellbar + speicherbar** | z. B. teachbare Positionen      |

***

#### 🔢 Datentypen

Parameter unterstützen gängige IEC-Datentypen:

| Typ    | Beschreibung                           | Beispiel                |
| ------ | -------------------------------------- | ----------------------- |
| `INT`  | Ganzzahl                               | `iRetryCount = 3`       |
| `REAL` | Gleitkommazahl                         | `rSetSpeed = 12.5`      |
| `BOOL` | Wahr/Falsch-Flag                       | `bCheckActive = TRUE`   |
| `TIME` | Zeitangabe (IEC-konform, z. B. `t#5s`) | `tClampTime = t#2000ms` |

***

#### 🧠 Typische Beispiele

| Name           | Typ  | Richtung | Verwendung                            |
| -------------- | ---- | -------- | ------------------------------------- |
| `tClampTime`   | TIME | `IN`     | Dauer, wie lange gespannt werden soll |
| `iRetryCount`  | INT  | `INOUT`  | Anzahl der erlaubten Wiederholungen   |
| `bPartPresent` | BOOL | `OUT`    | Wurde ein Teil erkannt? (Ergebnis)    |
| `rPosition`    | REAL | `INOUT`  | Zielposition für Verfahreinheit       |

***

#### 📄 Dokumentation & Export

Alle Parameter werden:

* im **Parameter-Layer** modelliert und gepflegt
* automatisch dokumentiert in der Datei `Parameter.csv`
* mit Einheit, Beschreibung, Default-Wert und Sichtbarkeit exportiert
* in **OPC UA / HMI automatisch verfügbar**, wenn aktiviert

***

#### 📌 Best Practices

* Gib Parametern **sprechende Namen** mit Vorsilbe (`t`, `i`, `b`, `r`)
* Nutze `INOUT` für teachbare Werte mit Rückmeldung
* Verwende Parameter nur, wenn **keine einfache Zone reicht**
* Dokumentiere **Einheit, Mindest-/Maxwert und Bedeutung** im Modell

***

#### ✅ Fazit

Parameter machen Selmo-Modelle **flexibel und konfigurierbar** – ohne die Logikstruktur zu verändern.

Sie verbinden:

* Modelllogik mit realer Prozessdatenführung
* Bedienereingabe mit Steuerungsverhalten
* Automatisierung mit Schnittstellentechnik


---

# 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-struktur-und-standard/selmo-technischer-standard-und-struktur/parameterarten/parameterarten.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.
