# THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H

## `THERMOKON_WRF07_TEMP_HUM_AO2V_REV_A_H` (FB)

`FUNCTION_BLOCK` THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H

### Representation

<figure><img src="/files/64ed5cb50cb7d3106c83d81983578b79ec1d256b" alt=""><figcaption></figcaption></figure>

### General

> By the setpoint / parameter `eDeviceMode` currently only the formation of the room setpoint temperature (29.10.2024) `rSetpTemp` as well as the setpoint temperature offset `rOffset` is influenced.

> The configuration registers (R2 - R46) or coils (C0 - C6) are always set for operation of the WRF07 as a pure room operating device (i.e. without its own internal control).

> Setpoint / Parameter `rOffsetRange`: A change is transmitted immediately without error, but the new offset is only used after a cold start of the WRF07.

> This function block can be used for all device types except the variant `4DI` .

> Depending on the function code, only a certain maximum number of resources may be read/written:

> Read registers: <= 20 registers Write registers: <= 20 registers Read coils: <= 16 coils Write coils: <= 8 coils

> There is only one temperature sensor !!!

> **\* Device configuration \***

> **\* Thermokon - Configuration Software \***

> The configuration can be read and written independently of this function block using Thermokon's software ‘WRF07-RS485-MODBUS Version 1.7’. The recorded configuration data can be stored in a readable file and transferred to a new device.

> **\* Function block \***

> In this function block, the configuration is read (see function 1) and, if necessary, the parameters defined here are written again (function 2). Parameters not defined here remain unchanged. The default values according to the documentation can be restored by function 3.

> **\* Function 1 \***

> The current configuration of the device is stored in registers 0 - 46 or in coils 0 - 6.

> This is read a) once at restart b) once on each rising edge at the input `xUpdateConfigRead` c) cyclically (time interval `tTimeUpdateConfigRead`) d) before each write operation (see function 2)

> read (FC03, FC01) and stored in the arrays `_arwKonfiguration_0`, `_arwKonfiguration_1`, `_arwKonfiguration_2` and `arbyKonfiguration_3` stored. In addition, the selected outputs are updated.

> **\* Function 2 \***

> During operation, registers 2 - 46 or coils 0 - 6 are written a) once at restart b) on each change in value of the relevant parameters c) once on each rising edge at the input `xUpdateConfigWrite`

> written (FC16, FC15)(arrays `_arwKonfiguration_4`, `_arwKonfiguration_5`, `_arwKonfiguration_6` and `arbyKonfiguration_7`).

> This write access must not be cyclical, as the number of write accesses is limited (EEPROM).

> **\* Function 3 \***

> The device configuration cannot be reset to the factory state; in the arrays `_arwKonfiguration_8`, `_arwKonfiguration_9`, `_arwKonfiguration_10` and `_arbyKonfiguration_11` the default values are stored and can be loaded / written into the device via input `xResDefault` (rising edge) can be loaded into / written to the device.

> **\* Setpoints of the device \***

> **\* Thermokon - Configuration Software \***

> The setpoints can be read and written independently of this function block using Thermokon's software ‘WRF07-RS485-MODBUS Version 1.7’. The recorded setpoints can be stored in a readable file and transferred to a new device.

> **\* Function block \***

> In this function block, the setpoints are read (see function 1) and, if necessary, the setpoints defined here are written again (function 2). Setpoints not defined here remain unchanged.

> **\* Function 1 \***

> The current setpoints of the device are stored in registers 512 - 517 or in coils 256 - 264.

> These are a) once at restart b) once on each rising edge at the input `xUpdateActual` c) cyclically (time interval `tTimeUpdateActual`) d) before each write operation (see function 2)

> read (FC03, FC01) and stored in the arrays `_arwIstwerte_1`, `arbyIstwerte_2` and `arbyIstwerte_3` stored. In addition, the selected outputs are updated.

> **\* Function 2 \***

> During operation, registers 512 - 517 or coils 256+ - 264 are a) once at restart b) once on each rising edge at the input `xUpdateSetp` c) cyclically (time interval `tTimeUpdateSetp`) d) on each change in value of the relevant setpoints

> written (FC16, FC15)(arrays `_arwSollwerte_0`, `arbySollwerte_1` and `arbySollwerte_2`).

InOut:

| Scope       | Name                    | Type                                                                      | Initial                                                                                        | Comment                                                                                                                                                                                                                                                                                                                                        |
| ----------- | ----------------------- | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                   | `BOOL`                                                                    | TRUE                                                                                           | Enable / disable communication (TRUE = enable)                                                                                                                                                                                                                                                                                                 |
| Input       | `byUnitId`              | `BYTE`                                                                    | 0                                                                                              | Device address (1 .. 247) (1 .. 31 via DIP switch, 1 .. 247 via Modbus commands)                                                                                                                                                                                                                                                               |
| Input       | `xUpdateActual`         | `BOOL`                                                                    | FALSE                                                                                          | <p>Updating the actual values (at every rising edge<br>) (range: operation)</p>                                                                                                                                                                                                                                                                |
| Input       | `xUpdateSetp`           | `BOOL`                                                                    | FALSE                                                                                          | <p>Update of setpoints (on every rising edge<br>)</p>                                                                                                                                                                                                                                                                                          |
| Input       | `xUpdateConfigRead`     | `BOOL`                                                                    | FALSE                                                                                          | <p>Update configuration (read access) (on<br>every rising edge)</p>                                                                                                                                                                                                                                                                            |
| Input       | `xUpdateConfigWrite`    | `BOOL`                                                                    | FALSE                                                                                          | <p>Configuration update (write access) (<br>with every rising edge)</p>                                                                                                                                                                                                                                                                        |
| Input       | `xUpdateStates`         | `BOOL`                                                                    | FALSE                                                                                          | <p>Update states (registers 256 - 257) (on<br>every rising edge)</p>                                                                                                                                                                                                                                                                           |
| Input       | `xResDefault`           | `BOOL`                                                                    | FALSE                                                                                          | <p>Reset of the configuration to the default state (<br>Register 2 - 45) (Coils 0 - 5) (on each rising<br>edge)</p>                                                                                                                                                                                                                            |
| Input       | `eMode`                 | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_MODE                        | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_MODE.NO\_OCCUPANCY                               | Definition of the room occupancy state                                                                                                                                                                                                                                                                                                         |
| Input       | `rSetpTempBase`         | `REAL`                                                                    | 22.0                                                                                           | Base setpoint temperature (degrees Celsius)                                                                                                                                                                                                                                                                                                    |
| Input       | `xLED1`                 | `BOOL`                                                                    | FALSE                                                                                          | Control of LED1 (TRUE = On)                                                                                                                                                                                                                                                                                                                    |
| Input       | `xLED2`                 | `BOOL`                                                                    | FALSE                                                                                          | Control of LED2 (TRUE = On)                                                                                                                                                                                                                                                                                                                    |
| Input       | `xLED3`                 | `BOOL`                                                                    | FALSE                                                                                          | Control of LED3 (TRUE = On)                                                                                                                                                                                                                                                                                                                    |
| Input       | `xLED4`                 | `BOOL`                                                                    | FALSE                                                                                          | Control of LED4 (TRUE = On)                                                                                                                                                                                                                                                                                                                    |
| Input       | `xLED5`                 | `BOOL`                                                                    | FALSE                                                                                          | Control of LED5 (TRUE = On)                                                                                                                                                                                                                                                                                                                    |
| Input       | `xEnOffset`             | `BOOL`                                                                    | FALSE                                                                                          | <p>Enable / disable the influence of the setpoint adjuster (<br><code>rOffset</code>) on the setpoint temperature (<code>rSetpTemp</code>)</p>                                                                                                                                                                                                 |
| Input       | `rAO1Manual`            | `REAL`                                                                    | 0.0                                                                                            | <p>State of analog output 1 (<code>eOutputsMode</code> =<br>THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_ANALOG\_OUTP\_MODE.MANUAL\_MODE<br>) (0.0 - 100.0% = 0.0 - 10.0 V) (Address 516, FC16)</p>                                                                                                                                           |
| Input       | `rAO2Manual`            | `REAL`                                                                    | 0.0                                                                                            | <p>State of analog output 2 (<code>eOutputsMode</code> =<br>THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_ANALOG\_OUTP\_MODE.MANUAL\_MODE<br>) (0.0 - 100.0% = 0.0 - 10.0 V) (Address 517, FC16)</p>                                                                                                                                           |
| Input       | `xDO1Manual`            | `BOOL`                                                                    | FALSE                                                                                          | <p>State of digital output 1 (<code>eOutputsMode</code> =<br>THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_ANALOG\_OUTP\_MODE.MANUAL\_MODE<br>) (0 = open, 1 = closed) (Address 516, FC16)</p>                                                                                                                                                 |
| Input       | `xDO2Manual`            | `BOOL`                                                                    | FALSE                                                                                          | <p>State of digital output 2 (<code>eOutputsMode</code> =<br>THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_ANALOG\_OUTP\_MODE.MANUAL\_MODE<br>) (0 = open, 1 = closed) (Address 517, FC16)</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\_TEMP\_HUM\_AO2V\_REV\_A\_H\_DEVICE\_TYPE                |                                                                                                | Device type                                                                                                                                                                                                                                                                                                                                    |
| Output      | `wFirmwareVersion`      | `WORD`                                                                    |                                                                                                | Firmware version of the device (101 = 1.01)                                                                                                                                                                                                                                                                                                    |
| Output      | `eTemperatureUnitFb`    | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_TEMPERATURE\_UNIT           |                                                                                                | <p>Current unit system of the device for temperature —<br>feedback</p>                                                                                                                                                                                                                                                                         |
| Output      | `eControlMode`          | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_CONTROL\_MODE\_FEEDBACK     |                                                                                                | Current mode of the device's internal controller                                                                                                                                                                                                                                                                                               |
| Output      | `xMode`                 | `BOOL`                                                                    |                                                                                                | <p>Current operating mode of the RBG (FALSE = unoccupied, TRUE =<br>occupied)</p>                                                                                                                                                                                                                                                              |
| 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      | `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      | `xButton1`              | `BOOL`                                                                    |                                                                                                | <p>Activation of button 1 (RAW, pulse with duration<br><code>tTimeButtonPulse</code>)</p>                                                                                                                                                                                                                                                      |
| Output      | `eFunctionButton1Fb`    | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION            |                                                                                                | Function of button 1 — feedback                                                                                                                                                                                                                                                                                                                |
| Output      | `xButton2`              | `BOOL`                                                                    |                                                                                                | <p>Activation of button 2 (RAW, pulse with duration<br><code>tTimeButtonPulse</code>)</p>                                                                                                                                                                                                                                                      |
| Output      | `eFunctionButton2Fb`    | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION            |                                                                                                | Function of button 2 — feedback                                                                                                                                                                                                                                                                                                                |
| Output      | `xButton3`              | `BOOL`                                                                    |                                                                                                | <p>Activation of button 3 (RAW, pulse with duration<br><code>tTimeButtonPulse</code>)</p>                                                                                                                                                                                                                                                      |
| Output      | `eFunctionButton3Fb`    | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION            |                                                                                                | Function of button 3 — feedback                                                                                                                                                                                                                                                                                                                |
| Output      | `xButton4`              | `BOOL`                                                                    |                                                                                                | <p>Activation of button 4 (RAW, pulse with duration<br><code>tTimeButtonPulse</code>)</p>                                                                                                                                                                                                                                                      |
| Output      | `eFunctionButton4Fb`    | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION            |                                                                                                | Function of button 4 — feedback                                                                                                                                                                                                                                                                                                                |
| Output      | `xButton5`              | `BOOL`                                                                    |                                                                                                | <p>Activation of button 5 (RAW, pulse with duration<br><code>tTimeButtonPulse</code>)</p>                                                                                                                                                                                                                                                      |
| Output      | `eFunctionButton5Fb`    | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION            |                                                                                                | Function of button 5 — feedback                                                                                                                                                                                                                                                                                                                |
| Output      | `xLED1Fb`               | `BOOL`                                                                    |                                                                                                | State of LED 1 — feedback (TRUE = On)                                                                                                                                                                                                                                                                                                          |
| Output      | `eFunctionLED1Fb`       | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION               |                                                                                                | Function of LED 1 — feedback                                                                                                                                                                                                                                                                                                                   |
| Output      | `xLED2Fb`               | `BOOL`                                                                    |                                                                                                | State of LED 2 — feedback (TRUE = On)                                                                                                                                                                                                                                                                                                          |
| Output      | `eFunctionLED2Fb`       | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION               |                                                                                                | Function of LED 2 — feedback                                                                                                                                                                                                                                                                                                                   |
| Output      | `xLED3Fb`               | `BOOL`                                                                    |                                                                                                | State of LED 3 — feedback (TRUE = On)                                                                                                                                                                                                                                                                                                          |
| Output      | `eFunctionLED3Fb`       | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION               |                                                                                                | Function of LED 3 — feedback                                                                                                                                                                                                                                                                                                                   |
| Output      | `xLED4Fb`               | `BOOL`                                                                    |                                                                                                | State of LED 4 — feedback (TRUE = On)                                                                                                                                                                                                                                                                                                          |
| Output      | `eFunctionLED4Fb`       | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION               |                                                                                                | Function of LED 4 — feedback                                                                                                                                                                                                                                                                                                                   |
| Output      | `xLED5Fb`               | `BOOL`                                                                    |                                                                                                | State of LED 5 — feedback (TRUE = On)                                                                                                                                                                                                                                                                                                          |
| Output      | `eFunctionLED5Fb`       | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION               |                                                                                                | Function of LED 5 — feedback                                                                                                                                                                                                                                                                                                                   |
| Output      | `xDI1`                  | `BOOL`                                                                    |                                                                                                | <p>State of digital input 1 (assignment depending on<br>function <code>eFunctionDI1</code>) (FALSE = Open, TRUE =<br>Closed)</p>                                                                                                                                                                                                               |
| Output      | `eFunctionDI1Fb`        | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_DIGITAL\_INPUT\_FUNCTION    |                                                                                                | Function of digital input 1 — feedback                                                                                                                                                                                                                                                                                                         |
| Output      | `xDI2`                  | `BOOL`                                                                    |                                                                                                | <p>State of digital input 2 (assignment depending on<br>function <code>eFunctionDI2</code>) (FALSE = Open, TRUE =<br>Closed)</p>                                                                                                                                                                                                               |
| Output      | `eFunctionDI2Fb`        | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_DIGITAL\_INPUT\_FUNCTION    |                                                                                                | Function of digital input 2 — feedback                                                                                                                                                                                                                                                                                                         |
| Output      | `rAO1`                  | `REAL`                                                                    |                                                                                                | <p>Current state at analog output 1 (0.0 - 100.0% = 0.0<br>- 10.0 V)</p>                                                                                                                                                                                                                                                                       |
| Output      | `rAO2`                  | `REAL`                                                                    |                                                                                                | <p>Current state at analog output 2 (0.0 - 100.0% = 0.0<br>- 10.0 V)</p>                                                                                                                                                                                                                                                                       |
| Output      | `xDO1`                  | `BOOL`                                                                    |                                                                                                | <p>Current state at digital output 1 (0 = Open, 1 =<br>Closed)</p>                                                                                                                                                                                                                                                                             |
| Output      | `xDO2`                  | `BOOL`                                                                    |                                                                                                | <p>Current state at digital output 2 (0 = Open, 1 =<br>Closed)</p>                                                                                                                                                                                                                                                                             |
| Output      | `xAlarm`                | `BOOL`                                                                    |                                                                                                | Collective fault (TRUE = fault)                                                                                                                                                                                                                                                                                                                |
| Output      | `xAlarmCom`             | `BOOL`                                                                    |                                                                                                | Collective fault - communication (TRUE = fault)                                                                                                                                                                                                                                                                                                |
| Output      | `eErrorCodeCom`         | ModbusErrorCode                                                           |                                                                                                | Error code - communication (0 = no error)                                                                                                                                                                                                                                                                                                      |
| Output      | `xBusy`                 | `BOOL`                                                                    |                                                                                                | Communication indicator (TRUE = communication)                                                                                                                                                                                                                                                                                                 |
| Input Const | `rAO2_DO2_AfterReset`   | `REAL`                                                                    | 0.0                                                                                            | <p>State of the analog/digital outputs AO2 or DO2 after<br>a reset on the WRF07</p>                                                                                                                                                                                                                                                            |
| Input Const | `rAO1_DO1_AfterReset`   | `REAL`                                                                    | 0.0                                                                                            | <p>State of the analog/digital outputs AO1 or DO1 after<br>a reset on the WRF07</p>                                                                                                                                                                                                                                                            |
| Input Const | `eOutputsMode`          | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_OUTPUTS\_MODE               | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_OUTPUTS\_MODE.MANUAL\_MODE                       | <p>Analog output: 0.0 - 100.0 = 0.0 - 10.0V<br>Digital output: 0 = open, >=1 = closed<br>Mode for the analog/digital outputs AO1, AO2, DO1, DO2 (MANUAL\_MODE:<br><br><code>\<br/>\*\<br/></code><br><br>rAO1Manual,<code>rAO2Manual</code>, <code>xDO1Manual</code> and <code>xDO2Manual</code> define the current states of the outputs)</p> |
| Input Const | `eFunctionLED5`         | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION               | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION.EXTERNAL\_CONTROL                  | Function of LED 5                                                                                                                                                                                                                                                                                                                              |
| Input Const | `eFunctionLED4`         | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION               | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION.EXTERNAL\_CONTROL                  | Function of LED 4                                                                                                                                                                                                                                                                                                                              |
| Input Const | `eFunctionLED3`         | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION               | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION.EXTERNAL\_CONTROL                  | Function of LED 3                                                                                                                                                                                                                                                                                                                              |
| Input Const | `eFunctionLED2`         | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION               | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION.EXTERNAL\_CONTROL                  | Function of LED 2                                                                                                                                                                                                                                                                                                                              |
| Input Const | `eFunctionLED1`         | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION               | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_LED\_FUNCTION.EXTERNAL\_CONTROL                  | Function of LED 1                                                                                                                                                                                                                                                                                                                              |
| Input Const | `eFunctionDI2`          | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_DIGITAL\_INPUT\_FUNCTION    | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_DIGITAL\_INPUT\_FUNCTION.NORMALLY\_OPEN\_CONTACT | Function of digital input 2                                                                                                                                                                                                                                                                                                                    |
| Input Const | `eFunctionDI1`          | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_DIGITAL\_INPUT\_FUNCTION    | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_DIGITAL\_INPUT\_FUNCTION.NORMALLY\_OPEN\_CONTACT | Function of digital input 1                                                                                                                                                                                                                                                                                                                    |
| Input Const | `eFunctionButton5`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION            | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION.NO\_SPECIAL\_FUNCTION           | Function of button 5                                                                                                                                                                                                                                                                                                                           |
| Input Const | `eFunctionButton4`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION            | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION.NO\_SPECIAL\_FUNCTION           | Function of button 4                                                                                                                                                                                                                                                                                                                           |
| Input Const | `eFunctionButton3`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION            | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION.NO\_SPECIAL\_FUNCTION           | Function of button 3                                                                                                                                                                                                                                                                                                                           |
| Input Const | `eFunctionButton2`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION            | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION.NO\_SPECIAL\_FUNCTION           | Function of button 2                                                                                                                                                                                                                                                                                                                           |
| Input Const | `eFunctionButton1`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION            | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_FUNCTION.NO\_SPECIAL\_FUNCTION           | Function of button 1                                                                                                                                                                                                                                                                                                                           |
| Input Const | `eButton5OutpMode`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_OUTP\_MODE          | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_OUTP\_MODE.PULSE                         | Operating mode of the output `xButton5` (RAW, PULSE)                                                                                                                                                                                                                                                                                           |
| Input Const | `eButton4OutpMode`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_OUTP\_MODE          | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_OUTP\_MODE.PULSE                         | Operating mode of the output `xButton4` (RAW, PULSE)                                                                                                                                                                                                                                                                                           |
| Input Const | `eButton3OutpMode`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_OUTP\_MODE          | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_OUTP\_MODE.PULSE                         | Operating mode of the output `xButton3` (RAW, PULSE)                                                                                                                                                                                                                                                                                           |
| Input Const | `eButton2OutpMode`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_OUTP\_MODE          | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_OUTP\_MODE.PULSE                         | Operating mode of the output `xButton2` (RAW, PULSE)                                                                                                                                                                                                                                                                                           |
| Input Const | `eButton1OutpMode`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_OUTP\_MODE          | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_BUTTON\_OUTP\_MODE.PULSE                         | Operating mode of the output `xButton1` (RAW, PULSE)                                                                                                                                                                                                                                                                                           |
| Input Const | `tTimeButtonPulse`      | `TIME`                                                                    | TIME#1s0ms                                                                                     | <p>Duration of the pulse at the output, if the assigned<br>button was pressed</p>                                                                                                                                                                                                                                                              |
| Input Const | `eContrModeAfterReset`  | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_CONTROL\_MODE\_AFTER\_RESET | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_CONTROL\_MODE\_AFTER\_RESET.OFF                  | <p>Mode of the internal controller after a reset / restart<br>(0 = control off)</p>                                                                                                                                                                                                                                                            |
| Input Const | `eContrMode`            | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_CONTROL\_MODE               | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_CONTROL\_MODE.OFF                                | Mode of the internal controller (0 = control off)                                                                                                                                                                                                                                                                                              |
| Input Const | `xEnContr`              | `BOOL`                                                                    | FALSE                                                                                          | <p>Enable / disable the internal controller (FALSE = internal<br>controller disabled)</p>                                                                                                                                                                                                                                                      |
| Input Const | `xModeAfterReset`       | `BOOL`                                                                    | FALSE                                                                                          | Room occupancy state after a reset                                                                                                                                                                                                                                                                                                             |
| Input Const | `tTimeBypass`           | `TIME`                                                                    | TIME#120m0s0ms                                                                                 | <p>Duration of the occupied period extension in minutes (1 minute <=<br>tTimeBypass <= 1440 minutes)</p>                                                                                                                                                                                                                                       |
| Input Const | `rNightShiftSetpTemp`   | `REAL`                                                                    | 5.0                                                                                            | <p>Setpoint temperature - night setback (relative) (Address 19) (<br>important for forming the effective setpoint temperature<br><code>rSetpTemp</code> at <code>eDeviceMode</code> = INTERNAL\_REGULATIOM)</p>                                                                                                                                |
| Input Const | `rDeadBandSetpTemp`     | `REAL`                                                                    | 2.0                                                                                            | <p>Setpoint temperature - deadband between heating and cooling<br>operation (Address 20) (important for forming the effective<br>setpoint temperature <code>rSetpTemp</code> at <code>eDeviceMode</code> =<br>INTERNAL\_REGULATIOM)</p>                                                                                                        |
| Input Const | `rOffsetSetpTemp`       | `REAL`                                                                    | 0.0                                                                                            | <p>Setpoint temperature - offset (Address 512) (important for the<br>formation of the effective setpoint temperature <code>rSetpTemp</code> at<br><code>eDeviceMode</code> = INTERNAL\_REGULATIOM)</p>                                                                                                                                         |
| Input Const | `rAntifreezeTemp`       | `REAL`                                                                    | 0.0                                                                                            | <p>Limit temperature - frost protection (degrees Celsius), 0.0<br>disables the frost protection function</p>                                                                                                                                                                                                                                   |
| Input Const | `eTemperatureUnit`      | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_TEMPERATURE\_UNIT           | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_TEMPERATURE\_UNIT.DEGREE\_CELSIUS                | Current unit system of the device for temperature                                                                                                                                                                                                                                                                                              |
| 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.0K)</p>                                                                                                                                                                                                                                                         |
| Input Const | `rRoomTempOffset`       | `REAL`                                                                    | 0.0                                                                                            | <p>Offset of the room temperature (for calibration of the<br>temperature sensor) in K</p>                                                                                                                                                                                                                                                      |
| Input Const | `eDeviceMode`           | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_DEVICE\_MODE                | THERMOKON\_WRF07\_TEMP\_HUM\_AO2V\_REV\_A\_H\_DEVICE\_MODE.ROOM\_CONTROL\_UNIT                 | <p>General operating mode of the device (ROOM\_CONTROL\_UNIT: device<br>serves as RBG, INTERNAL\_REGULATION: setpoint formation /<br>temperature control in the device)</p>                                                                                                                                                                    |
| Input Const | `tTimeUpdateStates`     | `TIME`                                                                    | TIME#1s0ms                                                                                     | <p>Update interval for the processes influenced by the input<br><code>xUpdateStates</code> influenced</p>                                                                                                                                                                                                                                      |
| Input Const | `tTimeUpdateConfigRead` | `TIME`                                                                    | TIME#0ms                                                                                       | <p>Update interval for the processes influenced by the input<br><code>xUpdateConfigRead</code> influenced</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#5s0ms                                                                                     | <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/thermokon/thermokon_wrf07_temp_hum_ao2v_rev_a_h.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.
