> 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-modbus-library/functionblocks/helios/helios_kwl_modbus_gateway.md).

# HELIOS\_KWL\_MODBUS\_GATEWAY

## `HELIOS_KWL_MODBUS_GATEWAY` (FB)

`FUNCTION_BLOCK` HELIOS\_KWL\_MODBUS\_GATEWAY

### Representation

<figure><img src="/files/55ce39939980216e154527daecf6bae1f5250f97" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                | Type                                      | Initial                                             | Comment                                                                                                           |
| ----------- | ------------------- | ----------------------------------------- | --------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`               | `BOOL`                                    | TRUE                                                | Enable / disable communication (TRUE = enable)                                                                    |
| Input       | `byUnitId`          | `BYTE`                                    | 180                                                 | Device address                                                                                                    |
| Input       | `rSetpFanStage`     | `REAL`                                    | 0.0                                                 | Setpoint - fan speed (0 - 4, 0 = Off)                                                                             |
| Input       | `rSetpTemp`         | `REAL`                                    | 21.0                                                | Setpoint - comfort temperature                                                                                    |
| Input       | `xResError`         | `BOOL`                                    | FALSE                                               | <p>Reinitialization of the output <code>eErrorCodeCom</code> in the<br>fault-free state (on each rising edge)</p> |
| Input       | `xUpdateActual`     | `BOOL`                                    | FALSE                                               | <p>Update of actual values (on every rising edge<br>)</p>                                                         |
| Input       | `xUpdateSetp`       | `BOOL`                                    | FALSE                                               | <p>Update of setpoints (on every rising edge<br>)</p>                                                             |
| Inout       | `ModbusClient`      | `ModbusClientBase`                        |                                                     | Client of the device                                                                                              |
| Output      | `rErrorCount`       | `REAL`                                    |                                                     | Number of active errors (0 - 32)                                                                                  |
| Output      | `rWarnCount`        | `REAL`                                    |                                                     | Number of active warnings (0 - 8)                                                                                 |
| Output      | `rSetpFanStage_Fb`  | `REAL`                                    |                                                     | Currently active fan speed (0 - 4, 0 = Off)                                                                       |
| Output      | `xChangeFilter`     | `BOOL`                                    |                                                     | 1 = filter maintenance required                                                                                   |
| Output      | `xOP`               | `BOOL`                                    |                                                     | 1 = ventilation operation                                                                                         |
| Output      | `rSetpTemp_Fb`      | `REAL`                                    |                                                     | Feedback - setpoint - comfort temperature                                                                         |
| Output      | `xAlarm`            | `BOOL`                                    | FALSE                                               | Collective fault (TRUE = fault)                                                                                   |
| Output      | `xAlarmCom`         | `BOOL`                                    | FALSE                                               | Collective fault - communication (TRUE = fault)                                                                   |
| Output      | `eErrorCodeCom`     | ModbusErrorCode                           |                                                     | Error code - communication (0 = no error)                                                                         |
| Output      | `xAlarmDevice`      | `BOOL`                                    | FALSE                                               | Collective fault - device (TRUE = fault)                                                                          |
| Output      | `eErrorCodeDev`     | HELIOS\_KWL\_MODBUS\_GATEWAY\_ERROR\_CODE | HELIOS\_KWL\_MODBUS\_GATEWAY\_ERROR\_CODE.NO\_ERROR | Error code - device (0 = no error)                                                                                |
| Output      | `xBusy`             | `BOOL`                                    |                                                     | Communication indicator (TRUE = communication)                                                                    |
| Input Const | `rSetpFanStageMin`  | `REAL`                                    | 0.0                                                 | <p>Currently active minimum fan speed (0 - 1, 0 = switch-off<br>via fan speed possible)</p>                       |
| Input Const | `tTimeUpdateSetp`   | `TIME`                                    | TIME#45s0ms                                         | <p>Update interval for the processes influenced by the input<br><code>xUpdateSetp</code> influenced</p>           |
| Input Const | `tTimeUpdateActual` | `TIME`                                    | TIME#3s0ms                                          | <p>Update interval for the processes influenced by the input<br><code>xUpdateActual</code> influenced</p>         |


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/helios/helios_kwl_modbus_gateway.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
