# HELIOS\_KWL\_MODBUS\_GATEWAY

## `HELIOS_KWL_MODBUS_GATEWAY` (FB)

`FUNCTION_BLOCK` HELIOS\_KWL\_MODBUS\_GATEWAY

### Representation

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2FoRnucx3386udK2Qt6kMh%2FHELIOS_KWL_MODBUS_GATEWAY.png?alt=media&#x26;token=86fe14a1-b0f2-4b5c-9f3c-1b52d9778718" 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>         |
