# KAMPMANN\_FAN\_COIL

## `KAMPMANN_FAN_COIL` (FB)

FUNCTION\_BLOCK KAMPMANN\_FAN\_COIL

InOut:

| Scope       | Name                    | Type               | Initial              | Comment                                                                                                                                                                   |
| ----------- | ----------------------- | ------------------ | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                   | `BOOL`             | TRUE                 | Enable / disable communication ( TRUE = enabled )                                                                                                                         |
| Input       | `byUnitId`              | `BYTE`             | 0                    | Device address (1 .. 247)                                                                                                                                                 |
| Input       | `xUpdateActual`         | `BOOL`             | FALSE                | <p>Update of actual values (on every rising edge<br>)</p>                                                                                                                 |
| Input       | `xUpdateSetp`           | `BOOL`             | FALSE                | <p>Update of setpoint values (on every rising edge<br>)</p>                                                                                                               |
| Input       | `xResError`             | `BOOL`             | FALSE                | Reinitialization of the outputs 'eErrorCodeCom' and 'xErrorCodeDev' to the error-free state (on each rising edge)                                                         |
| Input       | `xEnDevice`             | `BOOL`             | FALSE                | Enable / lock of the device ( FALSE = Off )                                                                                                                               |
| Input       | `wOperationMode`        | OPERATION\_MODE    | OPERATION\_MODE.AUTO |                                                                                                                                                                           |
| Input       | `wFanSpeed`             | FAN\_MODE          | FAN\_MODE.OFF        | Selection of fan stage ( 0 = Off )                                                                                                                                        |
| Input       | `rSetpTemp`             | `REAL`             | 22.0                 | <p>Setpoint - temperature in degrees Celsius ( integer<br>values only )</p>                                                                                               |
| Input       | `rTemp`                 | `REAL`             | 22.0                 | Actual value - temperature in degrees Celsius ( virtual sensor )                                                                                                          |
| Input       | `xEcoDay`               | `BOOL`             | FALSE                | Switching Eco / day mode ( 0 = day mode )                                                                                                                                 |
| Inout       | `ModbusClient`          | `ModbusClientBase` |                      | Client of the device                                                                                                                                                      |
| Output      | `rTempAI1`              | `REAL`             |                      | Temperature - sensor at input AI1                                                                                                                                         |
| Output      | `rTempRBG`              | `REAL`             |                      | Temperature - sensor at the room control unit                                                                                                                             |
| Output      | `rTempAI2`              | `REAL`             |                      | Temperature - sensor at input AI2                                                                                                                                         |
| Output      | `rTempAI3`              | `REAL`             |                      | Temperature - sensor at input AI3                                                                                                                                         |
| Output      | `xSensorOffsetInDevice` | `BOOL`             |                      | <p>Indicator whether the calibration of the sensors must be<br>performed in the device (TRUE = calibration in device required, FALSE = calibration in<br>FB required)</p> |
| Output      | `rTempControl`          | `REAL`             |                      | Temperature - control sensor in XXX degrees Celsius                                                                                                                       |
| Output      | `rTempFb`               | `REAL`             |                      | Feedback - temperature at input ‘rTemp’                                                                                                                                   |
| Output      | `rFanSpeed`             | `REAL`             |                      | Fan speed in XXX percent                                                                                                                                                  |
| Output      | `wOperationModeFb`      | OPERATION\_MODE    |                      | Feedback - device operating mode ( 0 = Automatic )                                                                                                                        |
| Output      | `wFanSpeedFb`           | FAN\_MODE          |                      | Feedback - selection of fan stage ( 0 = Off )                                                                                                                             |
| Output      | `wDeviceFb`             | DEVICE\_MODE       |                      | Feedback - device operating state ( 0 = Off )                                                                                                                             |
| Output      | `wDeviceState`          | `WORD`             |                      | Digital device messages                                                                                                                                                   |
| Output      | `xHeatRequest`          | `BOOL`             | FALSE                | Request - heating energy ( 1 = request )                                                                                                                                  |
| Output      | `xCoolingRequest`       | `BOOL`             | FALSE                | Request - cooling energy ( 1 = request )                                                                                                                                  |
| Output      | `xAlarm`                | `BOOL`             | FALSE                | General fault ( TRUE = fault )                                                                                                                                            |
| Output      | `xAlarmCom`             | `BOOL`             | FALSE                | General fault - communication ( TRUE = fault )                                                                                                                            |
| Output      | `eErrorCodeCom`         | ModbusErrorCode    |                      | Error code - communication ( 0 = no error )                                                                                                                               |
| Output      | `stErrorCodeDev`        | `STRING`           |                      | String with the numbers of the active device errors                                                                                                                       |
| Output      | `wErrorCodeDev`         | `WORD`             | 0                    | Error code - device (0 = no error)                                                                                                                                        |
| Output      | `xBusy`                 | `BOOL`             |                      | Communication indicator ( TRUE = communication )                                                                                                                          |
| Input Const | `rTempAI3Offset`        | `REAL`             | 0.0                  | <p>Constant measurement offset for the transmitted temperature<br>- actual value at input AI3</p>                                                                         |
| Input Const | `rTempAI2Offset`        | `REAL`             | 0.0                  | <p>Constant measurement offset for the transmitted temperature<br>- actual value at input AI2</p>                                                                         |
| Input Const | `rTempRBGOffset`        | `REAL`             | 0.0                  | <p>Constant measurement offset for the transmitted temperature<br>- actual value at the room control unit</p>                                                             |
| Input Const | `rTempAI1Offset`        | `REAL`             | 0.0                  | <p>Constant measurement offset for the transmitted temperature<br>- actual value at input AI1</p>                                                                         |
| Input Const | `tTimeVirtualSensor`    | `TIME`             | TIME#10m0s0ms        | <p>Update interval for the timer for activating the<br>virtual sensor</p>                                                                                                 |
| Input Const | `xActVirtSensor`        | `BOOL`             | TRUE                 | Enable / lock of the virtual sensor ( 0 = locked )                                                                                                                        |
| Input Const | `rFanSpeedMin`          | `REAL`             | 0.0                  | Minimum value - speed - fan in percent                                                                                                                                    |
| Input Const | `rFanSpeedMax`          | `REAL`             | 100.0                | Maximum value - speed - fan in percent                                                                                                                                    |
| Input Const | `tTimeUpdateSetp`       | `TIME`             | TIME#45s0ms          | <p>Update interval for operations influenced by the input<br>'xUpdateSetp'</p>                                                                                            |
| Input Const | `tTimeUpdateActual`     | `TIME`             | TIME#3s0ms           | <p>Update interval for operations influenced by the input<br>'xUpdateActual'</p>                                                                                          |
