# KAMPMANN\_FAN\_COIL

## `KAMPMANN_FAN_COIL` (FB)

`FUNCTION_BLOCK` KAMPMANN\_FAN\_COIL

### Representation

<figure><img src="/files/5511ffbfaa4b5be7e83f81a03917f08689ff70d2" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                    | Type               | Initial              | Comment                                                                                                                                                             |
| ----------- | ----------------------- | ------------------ | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                   | `BOOL`             | TRUE                 | Enable / disable communication (TRUE = enable)                                                                                                                      |
| 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 setpoints (on every rising edge<br>)</p>                                                                                                               |
| Input       | `xResError`             | `BOOL`             | FALSE                | <p>Reinitialization of the outputs <code>eErrorCodeCom</code> or<br><code>xErrorCodeDev</code> to the fault-free state (on every rising edge)</p>                   |
| Input       | `xEnDevice`             | `BOOL`             | FALSE                | Enable / disable the device (FALSE = Off)                                                                                                                           |
| Input       | `wOperationMode`        | OPERATION\_MODE    | OPERATION\_MODE.AUTO |                                                                                                                                                                     |
| Input       | `wFanSpeed`             | FAN\_MODE          | FAN\_MODE.OFF        | Selection of the fan speed (0 = Off)                                                                                                                                |
| Input       | `rSetpTemp`             | `REAL`             | 22.0                 | Setpoint - temperature in degrees Celsius (integer values only)                                                                                                     |
| 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 operating unit                                                                                                                     |
| Output      | `rTempAI2`              | `REAL`             |                      | Temperature - sensor at input AI2                                                                                                                                   |
| Output      | `rTempAI3`              | `REAL`             |                      | Temperature - sensor at input AI3                                                                                                                                   |
| Output      | `xSensorOffsetInDevice` | `BOOL`             |                      | <p>Indication of whether the sensors must be calibrated in the device<br>(TRUE = calibration in the device required, FALSE = calibration in the<br>FB required)</p> |
| Output      | `rTempControl`          | `REAL`             |                      | Temperature - control sensor in XXX degrees Celsius                                                                                                                 |
| Output      | `rTempFb`               | `REAL`             |                      | Feedback - temperature at the input `rTemp`                                                                                                                         |
| Output      | `rFanSpeed`             | `REAL`             |                      | Fan speed in XXX percent                                                                                                                                            |
| Output      | `wOperationModeFb`      | OPERATION\_MODE    |                      | Feedback - operating mode of the device (0 = Automatic)                                                                                                             |
| Output      | `wFanSpeedFb`           | FAN\_MODE          |                      | Feedback - selection of the fan speed (0 = Off)                                                                                                                     |
| Output      | `wDeviceFb`             | DEVICE\_MODE       |                      | Feedback - operating state of the device (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                | Collective fault (TRUE = fault)                                                                                                                                     |
| Output      | `xAlarmCom`             | `BOOL`             | FALSE                | Collective 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 value offset for the transmitted temperature<br>- actual value at input AI3</p>                                                             |
| Input Const | `rTempAI2Offset`        | `REAL`             | 0.0                  | <p>Constant measurement value offset for the transmitted temperature<br>- actual value at input AI2</p>                                                             |
| Input Const | `rTempRBGOffset`        | `REAL`             | 0.0                  | <p>Constant measurement value offset for the transmitted temperature<br>- actual value at the room operating unit</p>                                               |
| Input Const | `rTempAI1Offset`        | `REAL`             | 0.0                  | <p>Constant measurement value 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 / disable the virtual sensor (0 = disabled)                                                                                                                  |
| 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 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: 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-modbus-library/functionblocks/kampmann/kampmann_fan_coil.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.
