# MPulse

## `MPulse` (FB)

FUNCTION\_BLOCK MPulse

### Kurzbeschreibung

> Flankengesteuerte Impulserzeugung mit einstellbarer Mindestzeitdauer.

### Darstellung

<figure><img src="/files/Bcb9qxwHmkw4ZQ9cZesf" alt=""><figcaption></figcaption></figure>

### Schnittstellen

#### Eingänge

| Name  | Datentyp | Wertebereich | Initialwert | Funktion                              |
| ----- | -------- | ------------ | ----------- | ------------------------------------- |
| *xIN* | BOOL     |              |             | Binärer Eingang                       |
| *tPT* | TIME     |              | T#10s       | Mindestzeitdauer des Ausgangsimpulses |

#### Ausgänge

| Name  | Datentyp | Wertebereich | Initialwert | Funktion                                                                   |
| ----- | -------- | ------------ | ----------- | -------------------------------------------------------------------------- |
| *xQ*  | BOOL     |              |             | Impulsausgang                                                              |
| *tET* | TIME     |              |             | Zeitdifferenz zwischen Mindestzeitdauer und Zeitdauer des Impulses an *xQ* |

### Funktionsbeschreibung

#### Allgemeines

Am Impulsausgang *xQ* wird nach einer positiven Flanke am binären Eingang *xIN* ein Impuls mit einer Mindestzeitdauer *tPT* erzeugt.

<figure><img src="/files/wzpNYC2jAWdqK4Qyg0np" alt=""><figcaption></figcaption></figure>

#### Zeitausgang *tET*

Bei aktivem Impulsausgang *xQ* wird die Zeitdifferenz zwischen der Mindestzeitdauer *tPT* und der Zeitdauer des Impulses an *xQ* angezeigt.\
Bei inaktivem Impulsausgang *xQ* wird stets der Wert T#0s angezeigt.

### CODESYS

InOut:

| Scope  | Name  | Type   | Initial     |
| ------ | ----- | ------ | ----------- |
| Input  | `xIN` | `BOOL` |             |
| Input  | `tPT` | `TIME` | TIME#10s0ms |
| Output | `xQ`  | `BOOL` |             |
| Output | `tET` | `TIME` |             |


---

# Agent Instructions: 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:

```
GET https://support.powerio.com/hub/codesys-hvac/hvac-library/functionblocks/time/mpulse.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
