> 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/thermokon/thermokon_wrf07.md).

# THERMOKON\_WRF07

## `THERMOKON_WRF07` (FB)

`FUNCTION_BLOCK` THERMOKON\_WRF07

### Representation

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fim8QX7wUXfxvvjjVIfxF%2FHVACModbus.THERMOKON_WRF07.png?alt=media&amp;token=b85df1aa-14b2-436f-818c-ecb21137d147" alt=""><figcaption></figcaption></figure>

### General

> Notes:

> Via the setpoint / parameter `eMode` currently (16.05.2022) only the formation of the room setpoint temperature `rSetpTemp` as well as the setpoint temperature offset `rOffset` is affected.

> The configuration registers (R0 - R69) or coils (C0 - C5) are always set for operation of the WRF07 as a pure room operating unit (i.e. without its own internal control).

> **\* Device configuration \***

> The current device configuration is stored in the registers 0 - 69 or coils 0 - 5. This is read once at restart / once on every rising edge (xUpdateConfigRead) / cyclically (tTimeUpdateConfigRead) and stored in the arrays `_arwKonfiguration_0` or `arbyKonfiguration_1` stored.

> During operation, registers 2 - 69 or coils 0 - 3 are rewritten once at restart / when values change (`_arwKonfiguration_2` or `arbyKonfiguration_3`). In addition, this write access can be triggered by a rising edge at the input `xUpdateConfigWrite` be triggered. This write access must not be cyclic, as the number of write accesses is limited (EEPROM).

> The device configuration cannot be reset to the factory state; in the arrays `_arwKonfiguration_4` as well as `_arbyKonfiguration_5` the default values are stored and can be loaded / written into the device via the input `xResDefault` into the device.

> Setpoint / parameter `rOffsetRange`: A change is transmitted immediately without errors; however, the new offset is only used after a cold start of the WRF07.

InOut:

| Scope       | Name                    | Type                                         | Initial                                                            | Comment                                                                                                                                                                                      |
| ----------- | ----------------------- | -------------------------------------------- | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                   | `BOOL`                                       | TRUE                                                               | Enable / disable communication (TRUE = enable)                                                                                                                                               |
| Input       | `byUnitId`              | `BYTE`                                       | 0                                                                  | <p>Device address (1 .. 247) (1 .. 63 via DIP-<br>switch, 1 .. 247 via Modbus commands)</p>                                                                                                  |
| Input       | `xUpdateActual`         | `BOOL`                                       | FALSE                                                              | <p>Updating the actual values (on each rising edge<br>) (Range: Operation)</p>                                                                                                               |
| Input       | `xUpdateSetp`           | `BOOL`                                       | FALSE                                                              | <p>Update of setpoints (on every rising edge<br>)</p>                                                                                                                                        |
| Input       | `xUpdateConfigRead`     | `BOOL`                                       | FALSE                                                              | Update of the configuration (read access) (on every rising edge)                                                                                                                             |
| Input       | `xUpdateConfigWrite`    | `BOOL`                                       | FALSE                                                              | <p>Configuration update (write access) (<br>with every rising edge)</p>                                                                                                                      |
| Input       | `xUpdateStates`         | `BOOL`                                       | FALSE                                                              | Update of the states (registers 256 - 257) (on every rising edge)                                                                                                                            |
| Input       | `xResDefault`           | `BOOL`                                       | FALSE                                                              | Reset of the configuration to the default state (register 0 - 69) (coils 0 - 5) (on every rising edge)                                                                                       |
| Input       | `rSetpTempBase`         | `REAL`                                       | 22.0                                                               | Base setpoint temperature (degrees Celsius)                                                                                                                                                  |
| Input       | `xLED9`                 | `BOOL`                                       | FALSE                                                              | Control of LED9 (TRUE = On)                                                                                                                                                                  |
| Input       | `xEnOffset`             | `BOOL`                                       | FALSE                                                              | <p>Enable / disable the influence of the setpoint potentiometer (<br><code>rOffset</code>) on the setpoint temperature (<code>rSetpTemp</code>)</p>                                          |
| Input       | `xResError`             | `BOOL`                                       | FALSE                                                              | <p>Reinitialization of the output <code>eErrorCodeCom</code> (with every<br>rising edge)</p>                                                                                                 |
| Inout       | `ModbusClient`          | `ModbusClientBase`                           |                                                                    | Client of the device                                                                                                                                                                         |
| Output      | `eDeviceType`           | THERMOKON\_WRF07\_DEVICE\_TYPE               |                                                                    | Device type                                                                                                                                                                                  |
| Output      | `eUnitFb`               | THERMOKON\_WRF07\_UNIT                       |                                                                    | Current unit system of the device — feedback                                                                                                                                                 |
| Output      | `eRegulationModeFb`     | THERMOKON\_WRF07\_REGULATION\_MODE\_FEEDBACK |                                                                    | Current control mode of the device                                                                                                                                                           |
| Output      | `rRoomTemp`             | `REAL`                                       |                                                                    | Current room temperature in degrees Celsius                                                                                                                                                  |
| Output      | `rSetpTempBaseFb`       | `REAL`                                       |                                                                    | Base setpoint temperature (degrees Celsius) — feedback                                                                                                                                       |
| Output      | `rOffset`               | `REAL`                                       |                                                                    | Current offset of the room setpoint temperature in K                                                                                                                                         |
| Output      | `rSetpTemp`             | `REAL`                                       |                                                                    | Current setpoint temperature in degrees Celsius                                                                                                                                              |
| Output      | `rRelHumidity`          | `REAL`                                       |                                                                    | Relative room humidity in percent                                                                                                                                                            |
| Output      | `xSensorOffsetInDevice` | `BOOL`                                       |                                                                    | <p>Indication whether the sensors must be calibrated in the device<br>(TRUE = calibration in the device required, FALSE = calibration in<br>the FB required)</p>                             |
| Output      | `rDewPointTemp`         | `REAL`                                       |                                                                    | Dew point temperature in degrees Celsius or Fahrenheit                                                                                                                                       |
| Output      | `rAbsHumidity`          | `REAL`                                       |                                                                    | Absolute room humidity in g/m3 or grain/ft3                                                                                                                                                  |
| Output      | `rEnthalpy`             | `REAL`                                       |                                                                    | Enthalpy in kJ/kg or BTU/lb3                                                                                                                                                                 |
| Output      | `xButton1`              | `BOOL`                                       | FALSE                                                              | <p>Activation of button 1 (RAW, pulse with duration<br><code>tTimeButtonPulse</code>)</p>                                                                                                    |
| Output      | `eFunctionButton1Fb`    | THERMOKON\_WRF07\_BUTTON\_FUNCTION           |                                                                    | Button 1 function — feedback                                                                                                                                                                 |
| Output      | `xLED9Fb`               | `BOOL`                                       | FALSE                                                              | State of LED 9 — feedback (TRUE = On)                                                                                                                                                        |
| Output      | `eFunctionLED9Fb`       | THERMOKON\_WRF07\_LED\_FUNCTION              |                                                                    | LED 9 function — feedback                                                                                                                                                                    |
| Output      | `xDI1`                  | `BOOL`                                       | FALSE                                                              | <p>Status of digital input 1 (assignment depending on<br>function <code>eFunctionDI1</code>) (FALSE = Open, TRUE = Closed)</p>                                                               |
| Output      | `eFunctionDI1Fb`        | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION   |                                                                    | Digital input 1 function — feedback                                                                                                                                                          |
| Output      | `xDI2`                  | `BOOL`                                       | FALSE                                                              | <p>Status of digital input 2 (assignment depending on<br>function <code>eFunctionDI2</code>) (FALSE = Open, TRUE = Closed)</p>                                                               |
| Output      | `eFunctionDI2Fb`        | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION   |                                                                    | Digital input 2 function — feedback                                                                                                                                                          |
| Output      | `xDI3`                  | `BOOL`                                       | FALSE                                                              | State of digital input 3 (assignment depending on function `eFunctionDI1`) (FALSE = Open, TRUE = Closed)                                                                                     |
| Output      | `eFunctionDI3Fb`        | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION   |                                                                    | Digital input 3 function — feedback                                                                                                                                                          |
| Output      | `xDI4`                  | `BOOL`                                       | FALSE                                                              | State of digital input 4 (assignment depending on function `eFunctionDI2`) (FALSE = Open, TRUE = Closed)                                                                                     |
| Output      | `eFunctionDI4Fb`        | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION   |                                                                    | Digital input 4 function — feedback                                                                                                                                                          |
| 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      | `xBusy`                 | `BOOL`                                       |                                                                    | Communication indicator (TRUE = communication)                                                                                                                                               |
| Input Const | `eUnit`                 | THERMOKON\_WRF07\_UNIT                       | THERMOKON\_WRF07\_UNIT.SI                                          | Current unit system of the device                                                                                                                                                            |
| Input Const | `rRoomHumityOffset`     | `REAL`                                       | 0.0                                                                | <p>Offset of room humidity (for calibration of the humidity sensor<br>) in percent</p>                                                                                                       |
| Input Const | `eFunctionLED9`         | THERMOKON\_WRF07\_LED\_FUNCTION              | THERMOKON\_WRF07\_LED\_FUNCTION.EXTERNAL\_CONTROL                  | Function of LED 9                                                                                                                                                                            |
| Input Const | `eFunctionDI4`          | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION   | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION.NORMALLY\_OPEN\_CONTACT | Function of digital input 4                                                                                                                                                                  |
| Input Const | `eFunctionDI3`          | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION   | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION.NORMALLY\_OPEN\_CONTACT | Function of digital input 3                                                                                                                                                                  |
| Input Const | `eFunctionDI2`          | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION   | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION.NORMALLY\_OPEN\_CONTACT | Function of digital input 2                                                                                                                                                                  |
| Input Const | `eFunctionDI1`          | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION   | THERMOKON\_WRF07\_DIGITAL\_INPUT\_FUNCTION.NORMALLY\_OPEN\_CONTACT | Function of digital input 1                                                                                                                                                                  |
| Input Const | `eFunctionButton1`      | THERMOKON\_WRF07\_BUTTON\_FUNCTION           |                                                                    | Function of button 1                                                                                                                                                                         |
| Input Const | `rSetpTempMax`          | `REAL`                                       | 26.0                                                               | Absolute maximum value - setpoint temperature (degrees Celsius)                                                                                                                              |
| Input Const | `rSetpTempMin`          | `REAL`                                       | 18.0                                                               | Absolute minimum value - setpoint temperature (degrees Celsius)                                                                                                                              |
| Input Const | `rSetpTempBaseReset`    | `REAL`                                       | 22.0                                                               | Base setpoint temperature in degrees Celsius after a reset                                                                                                                                   |
| Input Const | `rOffsetRange`          | `REAL`                                       | 3.0                                                                | <p>Adjustment range of the setpoint potentiometer (symmetrical,<br>3.0 = +/- 3.0 K)</p>                                                                                                      |
| Input Const | `rRoomTempOffset`       | `REAL`                                       | 0.0                                                                | <p>Offset of room temperature (for calibration of the<br>temperature sensor) in K</p>                                                                                                        |
| Input Const | `eButton1OutpMode`      | THERMOKON\_WRF07\_BUTTON\_OUTP\_MODE         | THERMOKON\_WRF07\_BUTTON\_OUTP\_MODE.RAW                           | Operating mode of the output `xButton1` (RAW, PULSE)                                                                                                                                         |
| Input Const | `eMode`                 | THERMOKON\_WRF07\_MODE                       | THERMOKON\_WRF07\_MODE.ROOM\_CONTROL\_UNIT                         | <p>General operating mode of the device (ROOM\_CONTROL\_UNIT: device<br>ares as a room operating unit, INTERNAL\_REGULATION: setpoint generation /<br>temperature control in the device)</p> |
| Input Const | `tTimeButtonPulse`      | `TIME`                                       | TIME#1s0ms                                                         | <p>Duration of the pulse at the output if the assigned<br>button was pressed</p>                                                                                                             |
| Input Const | `tTimeUpdateStates`     | `TIME`                                       | TIME#500ms                                                         | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateStates</code> influenced</p>                                                                          |
| Input Const | `tTimeUpdateConfig`     | `TIME`                                       | TIME#0ms                                                           | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateConfig</code> influenced</p>                                                                          |
| Input Const | `tTimeUpdateSetp`       | `TIME`                                       | TIME#45s0ms                                                        | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateSetp</code> influenced</p>                                                                            |
| Input Const | `tTimeUpdateActual`     | `TIME`                                       | TIME#3s0ms                                                         | <p>Update interval for the operations that are 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
