# CoolOutProtection

## `CoolOutProtection` (FB)

FUNCTION\_BLOCK CoolOutProtection

### Short description

> Activation of a cool-out protection mode with adjustable minimum running time (controlled variable: room temperature)\
> \
> Typical application: Activation of the cool-out protection mode during standby of a ventilation system

### Representation

<figure><img src="/files/836e74f04f22fc66deaad26bf2c05fb38092a99d" alt=""><figcaption></figcaption></figure>

### Function description

#### General

This function block controls the activation of the cool-out protection mode (*xEn* = TRUE) with an adjustable minimum running time **udiMinTime**\
by comparing the room temperature *rRoomTemp* with the threshold for the cool-out protection mode *rSetPtTempCoolOut*.\
The minimum running time is always activated if the room temperature *rRoomTemp* falls below the threshold *rSetPtTempCoolOut* by at least 0.4K.\
At the output *tOffDelay\** the elapsed portion of the minimum running time in the range 0 - *udiMinTime* is indicated.

#### Enable / disable of the cool-out protection mode *xEn*

| *xReqAHU* | *rRoomTemp*                 | Minimum running time active | *xEn* | Notes                                                                         |
| --------- | --------------------------- | --------------------------- | ----- | ----------------------------------------------------------------------------- |
| TRUE      | X                           | X                           | FALSE | Cool-out protection mode disabled by ventilation system                       |
| FALSE     | > *rSetPtTempCoolOut* + 0.4 | FALSE                       | FALSE | Cool-out protection mode disabled by room temperature                         |
| FALSE     | < *rSetPtTempCoolOut* - 0.4 | FALSE                       | TRUE  | Cool-out protection mode enabled by room temperature                          |
| FALSE     | X                           | TRUE                        | TRUE  | Cool-out protection mode enabled by minimum running time                      |
| FALSE     | < *rSetPtTempCoolOut* - 0.4 | TRUE                        | TRUE  | Cool-out protection mode enabled by room temperature and minimum running time |

Legend: X = any

### CODESYS

InOut:

| Scope       | Name                | Type    | Initial      |
| ----------- | ------------------- | ------- | ------------ |
| Input       | `rSetPtTempCoolOut` | `REAL`  |              |
| Input       | `rRoomTemp`         | `REAL`  |              |
| Input       | `xReqAHU`           | `BOOL`  |              |
| Output      | `xEn`               | `BOOL`  |              |
| Output      | `tOffDelay`         | `TIME`  |              |
| Input Const | `eMinTimeBase`      | eTime   | eTime.Minute |
| Input Const | `udiMinTime`        | `UDINT` | 30           |


---

# 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/en/hvac-library/functionblocks/components/cooloutprotection.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.
