# StartDelay

## `StartDelay` (FB)

FUNCTION\_BLOCK StartDelay

### Kurzbeschreibung

> Erzeugung von Signalen nach jedem CPU-Neustart.\
> Einsatz: Verzögerte Freigabe von Aktionen nach dem CPU-Neustart.

### Darstellung

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

### Schnittstellen

#### Ausgänge

| Name   | Datentyp | Wertebereich | Initialwert | Funktion        |
| ------ | -------- | ------------ | ----------- | --------------- |
| *xQ1*  | BOOL     |              |             | Ausgang 1       |
| *xQ1p* | BOOL     |              |             | Impulsausgang 1 |
| *xQ2*  | BOOL     |              |             | Ausgang 2       |
| *xQ2p* | BOOL     |              |             | Impulsausgang 2 |

#### Sollwerte / Parameter

| Name           | Datentyp | Wertebereich | Initialwert | Funktion                          |
| -------------- | -------- | ------------ | ----------- | --------------------------------- |
| **TimeQ2Puls** | TIME     |              | T#1s        | Impulszeitdauer - Impulsausgang 2 |
| **TimeQ2**     | TIME     |              | T#20s       | Zeitverzögerung - Ausgang 2       |
| **TimeQ1Puls** | TIME     |              | T#1s        | Impulszeitdauer - Impulsausgang 1 |
| **TimeQ1**     | TIME     |              | T#5s        | Zeitverzögerung - Ausgang 1       |
| **xTest**      | BOOL     |              | FALSE       | Simulation des CPU-Neustart       |

### Funktionsbeschreibung

#### Allgemeines

Dieser Funktionsbaustein dient zur Erzeugung von Signalen nach jedem CPU-Neustart.\
Der CPU-Neustart kann durch den Simulationseingang **xTest** (= TRUE) unabhängig von einem tatsächlichen CPU-Neustart ausgelöst werden.\
\
Der Ausgang *xQ1* wechselt nach jedem CPU-Neustart mit einer Zeitverzögerung **TimeQ1** vom Zustand FALSE dauerhaft in den Zustand TRUE.\
Am Impulsausgang 1 *xQ1p* wird bei diesem Zustandswechsel ein einmaliger Impuls mit der Impulslänge **TimeQ1Puls** erzeugt.\
\
Der Ausgang *xQ2* wechselt nach jedem CPU-Neustart mit einer Zeitverzögerung **TimeQ2** vom Zustand FALSE dauerhaft in den Zustand TRUE.\
Am Impulsausgang 2 *xQ2p* wird bei diesem Zustandswechsel ein einmaliger Impuls mit der Impulslänge **TimeQ2Puls** erzeugt.

<figure><img src="/files/19JoTYrloah6vvo22Qmp" alt=""><figcaption></figcaption></figure>

### CODESYS

InOut:

| Scope       | Name         | Type   | Initial     |
| ----------- | ------------ | ------ | ----------- |
| Input Const | `TimeQ2Puls` | `TIME` | TIME#1s0ms  |
| Input Const | `TimeQ2`     | `TIME` | TIME#20s0ms |
| Input Const | `TimeQ1Puls` | `TIME` | TIME#1s0ms  |
| Input Const | `TimeQ1`     | `TIME` | TIME#5s0ms  |
| Input Const | `xTest`      | `BOOL` | FALSE       |
| Output      | `xQ1`        | `BOOL` |             |
| Output      | `xQ1p`       | `BOOL` |             |
| Output      | `xQ2`        | `BOOL` |             |
| Output      | `xQ2p`       | `BOOL` |             |


---

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