> 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/en/hvac-library/functionblocks/setpoint/editpoti.md).

# EditPoti

## `EditPoti` (FB)

FUNCTION\_BLOCK EditPoti

### Short description

> Setpoint generator with edge-triggered increase / reduction of the setpoint.\
> The step size and the absolute minimum/maximum limits are adjustable.\
> Typical application: individual adjustment of a base temperature.

### Representation

<figure><img src="https://2592874069-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>

### Interfaces

#### Outputs

| Name   | Data type | Value range | Initial value | Function        |
| ------ | --------- | ----------- | ------------- | --------------- |
| *rOut* | REAL      |             |               | Analog - output |

#### Setpoints / Parameters

| Name             | Data type | Value range | Initial value | Function                  |
| ---------------- | --------- | ----------- | ------------- | ------------------------- |
| **xButtonUp**    | BOOL      |             | FALSE         | Increase of the setpoint  |
| **xButtonDown**  | BOOL      |             | FALSE         | Reduction of the setpoint |
| **rJumpValue**   | REAL      | > 0         | 0.2           | Step size                 |
| **rSetPointMin** | REAL      |             | -3.0          | Absolute minimum value    |
| **rSetPointMax** | REAL      |             | 3.0           | Absolute maximum value    |

### Functional description

#### General

This function block is used to generate a setpoint at the output *rOut*.\
Each rising edge on the setpoint / parameter **xButtonUp** increases the output *rOut* by the step size **rJumpValue**.\
Each rising edge on the setpoint / parameter **xButtonDown** reduces the output *rOut* by the step size **rJumpValue**.\
The output *rOut* is limited to a value range between the absolute minimum value **rSetPointMin** and the absolute maximum value **rSetPointMax** limited.

> **Setting the step size rJumpValue**
>
> The step size **rJumpValue** may only take values greater than 0.\
> Values less than 0 are automatically reset to 0.
>
> **Setting the value range rSetPointMin and rSetPointMax**
>
> The following applies: **rSetPointMin** <= **rSetPointMax**\
> The following applies: **rSetPointMin** = **rSetPointMax** = **rOut**\
> If an input is made that does not comply with the above rules, then automatically **rSetPointMin** = **rSetPointMax** set.

### 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/en/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.
