> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/hvac-library/functionblocks/setpoint/editpoti.md).

# EditPoti

## `EditPoti` (FB)

FUNCTION\_BLOCK EditPoti

### Kurzbeschreibung

> Sollwertgeber mit flankengesteuerter Erhöhung / Reduktion des Sollwerts.\
> Die Schrittweite und die absoluten Minimal-/Maximalgrenzwerte sind einstellbar.\
> Typische Anwendung: Individuelle Anpassung einer Basistemperatur.

### Darstellung

<figure><img src="https://879424349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fgit-blob-67b121ab6ca8a7f2de7c9ecf6ed6a7a72c14d2a6%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### Schnittstellen

#### Ausgänge

| Name   | Datentyp | Wertebereich | Initialwert | Funktion         |
| ------ | -------- | ------------ | ----------- | ---------------- |
| *rOut* | REAL     |              |             | Analog - Ausgang |

#### Sollwerte / Parameter

| Name             | Datentyp | Wertebereich | Initialwert | Funktion                |
| ---------------- | -------- | ------------ | ----------- | ----------------------- |
| **xButtonUp**    | BOOL     |              | FALSE       | Erhöhung des Sollwerts  |
| **xButtonDown**  | BOOL     |              | FALSE       | Reduktion des Sollwerts |
| **rJumpValue**   | REAL     | > 0          | 0.2         | Schrittweite            |
| **rSetPointMin** | REAL     |              | -3.0        | Absoluter Minimalwert   |
| **rSetPointMax** | REAL     |              | 3.0         | Absoluter Maximalwert   |

### Funktionsbeschreibung

#### Allgemeines

Dieser Funktionsbaustein dient zur Erzeugung eines Sollwertes am Ausgang *rOut*.\
Jede ansteigende Flanke am Sollwert / Parameter **xButtonUp** erhöht den Ausgang *rOut* um die Schrittweite **rJumpValue**.\
Jede ansteigende Flanke am Sollwert / Parameter **xButtonDown** reduziert den Ausgang *rOut* um die Schrittweite **rJumpValue**.\
Der Ausgang *rOut* ist auf einen Wertebereich zwischen dem absoluten Minimalwert **rSetPointMin** und dem absoluten Maximalwert **rSetPointMax** begrenzt.

> **Einstellung der Schrittweite rJumpValue**
>
> Die Schrittweite **rJumpValue** darf nur Werte größer als 0 annehmen.\
> Werte kleiner 0 werden automatisch auf 0 zurück gesetzt.
>
> **Einstellung des Wertebreichs rSetPointMin und rSetPointMax**
>
> Es gilt: **rSetPointMin** <= **rSetPointMax**\
> Es gilt: **rSetPointMin** = **rSetPointMax** = **rOut**\
> Wird eine Eingabe gemacht, bei der obere Regeln nicht beachtet werden, so wird automatisch **rSetPointMin** = **rSetPointMax** gesetzt.

### CODESYS

InOut:

| Scope       | Name           | Type   | Initial |
| ----------- | -------------- | ------ | ------- |
| Input Const | `rSetPointMax` | `REAL` | 3.0     |
| Input Const | `rSetPointMin` | `REAL` | -3.0    |
| Input Const | `rJumpValue`   | `REAL` | 0.2     |
| Input Const | `xButtonDown`  | `BOOL` | FALSE   |
| Input Const | `xButtonUp`    | `BOOL` | FALSE   |
| Output      | `rOut`         | `REAL` |         |


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.powerio.com/hub/codesys-hvac/hvac-library/functionblocks/setpoint/editpoti.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
