> 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/damping/ramp.md).

# Ramp

## `Ramp` (FB)

FUNCTION\_BLOCK Ramp

### Kurzbeschreibung

> Begrenzung der Signaländerung eins analogen Eingangssignals\
> Typische Anwendung: Dämpfung / Filterung

### Darstellung

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

### Schnittstellen

#### Eingänge

| Name  | Datentyp | Wertebereich | Initialwert | Funktion          |
| ----- | -------- | ------------ | ----------- | ----------------- |
| *rIn* | REAL     |              |             | Analogwerteingang |

#### Ausgänge

| Name          | Datentyp | Wertebereich | Initialwert | Funktion          |
| ------------- | -------- | ------------ | ----------- | ----------------- |
| *rOut*        | REAL     |              |             | Analogwertausgang |
| *xRampActive* | BOOL     |              |             | Status - Rampe    |

#### Sollwerte / Parameter

| Name           | Datentyp | Wertebereich | Initialwert      | Funktion                          |
| -------------- | -------- | ------------ | ---------------- | --------------------------------- |
| **rVariation** | REAL     | 0 …          | 100              | Maximale Änderung pro Zeiteinheit |
| **tTime**      | TIME     |              | T#10s            | Zeiteinheit                       |
| **rInitValue** | REAL     |              | 0                | Initialwert                       |
| **eInitial**   | eInit    |              | eInit.InputValue | Auswahl des Initialwerts          |
| **tInitDelay** | TIME     |              | T#5s             | Startverzögerung                  |

### Funktionsbeschreibung

#### Allgemeines

Das analoge Eingangssignal *rIn* wird permanent auf seine Wertänderungen hin untersucht.\
Weicht das Signal am Analogwertausgang *rOut* vom Eingangssignal ab, so folgt es dem Eingangssignal mit der maximalen Signaländerungsgeschwindigkeit.

> **Einstellung der Zeiteinheit tTime**
>
> Dieser Sollwert / Parameter darf nur Werte >= 0 annehmen.\
> Die maximale Signaländerungsgeschwindigkeit wird durch den Quotienten aus den Sollwerten / Parametern **rVariation** und **tTime** gebildet (**tTime** > 0s).

Die maximale Signaländerungsgeschwindigkeit wird durch den Quotienten aus den Sollwerten / Parametern **rVariation** und Taskzykluszeit gebildet (**tTime** = 0s).\
Die maximale Signaländerungsgeschwindigkeit ist sowohl bei positiven als auch bei negativen Wertänderungen am Eingang *rIn* wirksam.

#### Art der Initialisierung **eInitial**

Mit diesem Sollwert / Parameter wird die Art der Initialisierung des Analogwerteingangs *rIn* festgelegt.\
Die Initialisierung wird einmalig nach jedem CPU-Neustart ausgeführt.\
\
Folgende Optionen sind möglich:

| Art                     | Wert der Initialierung | Hinweis                   |
| ----------------------- | ---------------------- | ------------------------- |
| eInit.InitValue         | **rInitValue**         | Einstellbarer Initialwert |
| eInit.InputValue        | *rIn*                  | Eingangswert              |
| eInit.InputValueDelayed | *rIn*                  | Verzögerter Eingangswert  |

Die Initialisierung wird unabhängig davon permanent ausgeführt, wenn der Sollwert / Parameter **tTime** den Wert T#0s hat.

### CODESYS

InOut:

| Scope       | Name          | Type   | Initial          |
| ----------- | ------------- | ------ | ---------------- |
| Input       | `rIn`         | `REAL` |                  |
| Input Const | `rVariation`  | `REAL` | 100              |
| Input Const | `tTime`       | `TIME` | TIME#10s0ms      |
| Input Const | `rInitValue`  | `REAL` | 0                |
| Input Const | `eInitial`    | eInit  | eInit.InputValue |
| Input Const | `tInitDelay`  | `TIME` | TIME#5s0ms       |
| Output      | `rOut`        | `REAL` |                  |
| Output      | `xRampActive` | `BOOL` |                  |


---

# 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/damping/ramp.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.
