# HELIOS\_KWL\_MODBUS\_GATEWAY

## `HELIOS_KWL_MODBUS_GATEWAY` (FB)

FUNCTION\_BLOCK HELIOS\_KWL\_MODBUS\_GATEWAY

InOut:

| Scope       | Name                | Type                                      | Initial                                             | Comment                                                                                                |
| ----------- | ------------------- | ----------------------------------------- | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| Input       | `xEn`               | `BOOL`                                    | TRUE                                                | Enable / disable of communication ( TRUE = enabled )                                                   |
| Input       | `byUnitId`          | `BYTE`                                    | 180                                                 | Address of the device                                                                                  |
| Input       | `rSetpFanStage`     | `REAL`                                    | 0.0                                                 | Setpoint - fan stage (0 - 4, 0 = Off)                                                                  |
| Input       | `rSetpTemp`         | `REAL`                                    | 21.0                                                | Setpoint - comfort temperature                                                                         |
| Input       | `xResError`         | `BOOL`                                    | FALSE                                               | <p>Reinitialization of the output 'eErrorCodeCom' to the<br>error-free state (on each rising edge)</p> |
| Input       | `xUpdateActual`     | `BOOL`                                    | FALSE                                               | <p>Update of actual values ( on each rising edge<br>)</p>                                              |
| Input       | `xUpdateSetp`       | `BOOL`                                    | FALSE                                               | <p>Update of setpoints ( on each 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 stage (0 - 4, 0 = Off)                                                            |
| Output      | `xChangeFilter`     | `BOOL`                                    |                                                     | 1 = Filter maintenance required                                                                        |
| Output      | `xOP`               | `BOOL`                                    |                                                     | 1 = Ventilation in 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 stage (0 - 1, 0 = Switching off<br>via fan stage possible)</p>         |
| Input Const | `tTimeUpdateSetp`   | `TIME`                                    | TIME#45s0ms                                         | <p>Update interval for the processes affected by the input<br>‘xUpdateSetp’</p>                        |
| Input Const | `tTimeUpdateActual` | `TIME`                                    | TIME#3s0ms                                          | <p>Update interval for the processes affected by the input<br>‘xUpdateActual’</p>                      |
