THERMOKON_WRF07_TEMP_HUMIDITY

THERMOKON_WRF07_TEMP_HUMIDITY (FB)

FUNCTION_BLOCK THERMOKON_WRF07_TEMP_HUMIDITY

Representation

General

Notes:

By 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 influenced.

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

* Device configuration *

In registers 0 - 69 or in coils 0 - 5, the current configuration of the device is stored. 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 input xUpdateConfigWrite This write access must not occur cyclically, as the number of write accesses is limited (EEPROM).

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

Setpoint / Parameter rOffsetRange: A change is transmitted immediately without error, but 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

Device address (1 .. 247) (1 .. 63 via DIP switch, 1 .. 247 via Modbus commands)

Input

xUpdateActual

BOOL

FALSE

Updating the actual values (at every rising edge ) (range: operation)

Input

xUpdateSetp

BOOL

FALSE

Update of setpoints (on every rising edge )

Input

xUpdateConfigRead

BOOL

FALSE

Update configuration (read access) (on every rising edge)

Input

xUpdateConfigWrite

BOOL

FALSE

Configuration update (write access) ( with every rising edge)

Input

xUpdateStates

BOOL

FALSE

Update states (registers 256 - 257) (on every rising edge)

Input

xResDefault

BOOL

FALSE

Reset configuration to default state ( registers 0 - 69) (coils 0 - 5) (on every rising edge)

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

xLED6

BOOL

FALSE

Control of LED6 (TRUE = On)

Input

xLED7

BOOL

FALSE

Control of LED7 (TRUE = On)

Input

xLED8

BOOL

FALSE

Control of LED8 (TRUE = On)

Input

xLED9

BOOL

FALSE

Control of LED9 (TRUE = On)

Input

xEnOffset

BOOL

FALSE

Enable / disable the influence of the setpoint adjuster ( rOffset) on the setpoint temperature (rSetpTemp)

Input

rAO1Manual

REAL

0.0

State of analog output 1 (eOutputsMode = THERMOKON_WRF07_TEMP_HUMIDITY_ANALOG_OUTP_MODE.MANUAL_MODE) (0.0 - 100.0% = 0.0 - 10.0 V) (Address 516, FC16)

Input

rAO2Manual

REAL

0.0

State of analog output 2 (eOutputsMode = THERMOKON_WRF07_TEMP_HUMIDITY_ANALOG_OUTP_MODE.MANUAL_MODE) (0.0 - 100.0% = 0.0 - 10.0 V) (Address 517, FC16)

Input

xDO1Manual

BOOL

FALSE

State of digital output 1 (eOutputsMode = THERMOKON_WRF07_TEMP_HUMIDITY_ANALOG_OUTP_MODE.MANUAL_MODE) (0 = open, 1 = closed) (Address 516, FC16)

Input

xDO2Manual

BOOL

FALSE

State of digital output 2 (eOutputsMode = THERMOKON_WRF07_TEMP_HUMIDITY_ANALOG_OUTP_MODE.MANUAL_MODE) (0 = open, 1 = closed) (Address 517, FC16)

Input

xResError

BOOL

FALSE

Reinitialization of the output eErrorCodeCom (with every rising edge)

Inout

ModbusClient

ModbusClientBase

Client of the device

Output

eDeviceType

THERMOKON_WRF07_TEMP_HUMIDITY_DEVICE_TYPE

Device type

Output

eUnitFb

THERMOKON_WRF07_TEMP_HUMIDITY_UNIT

Current unit system of the device — feedback

Output

eRegulationModeFb

THERMOKON_WRF07_TEMP_HUMIDITY_REGULATION_MODE_FEEDBACK

Current controller 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

Indication of whether the sensors must be calibrated in the device (TRUE = calibration in the device required, FALSE = calibration in the FB required)

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

Activation of button 1 (RAW, pulse with duration tTimeButtonPulse)

Output

eFunctionButton1Fb

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

Function of button 1 — feedback

Output

xButton2

BOOL

FALSE

Activation of button 2 (RAW, pulse with duration tTimeButtonPulse)

Output

eFunctionButton2Fb

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

Function of button 2 — feedback

Output

xButton3

BOOL

FALSE

Activation of button 3 (RAW, pulse with duration tTimeButtonPulse)

Output

eFunctionButton3Fb

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

Function of button 3 — feedback

Output

xButton4

BOOL

FALSE

Activation of button 4 (RAW, pulse with duration tTimeButtonPulse)

Output

eFunctionButton4Fb

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

Function of button 4 — feedback

Output

xButton5

BOOL

FALSE

Activation of button 5 (RAW, pulse with duration tTimeButtonPulse)

Output

eFunctionButton5Fb

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

Function of button 5 — feedback

Output

xButton6

BOOL

FALSE

Actuation of button 6 (RAW, pulse with duration tTimeButtonPulse)

Output

eFunctionButton6Fb

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

Function of button 6 — feedback

Output

xButton7

BOOL

FALSE

Actuation of button 7 (RAW, pulse with duration tTimeButtonPulse)

Output

eFunctionButton7Fb

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

Function of button 7 — feedback

Output

xButton8

BOOL

FALSE

Actuation of button 8 (RAW, pulse with duration tTimeButtonPulse)

Output

eFunctionButton8Fb

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

Function of button 8 — feedback

Output

xButton9

BOOL

FALSE

Actuation of button 9 (RAW, pulse with duration tTimeButtonPulse)

Output

eFunctionButton9Fb

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

Function of button 9 — feedback

Output

xLED1Fb

BOOL

FALSE

State of LED 1 — feedback (TRUE = On)

Output

eFunctionLED1Fb

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

Function of LED 1 — feedback

Output

xLED2Fb

BOOL

FALSE

State of LED 2 — feedback (TRUE = On)

Output

eFunctionLED2Fb

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

Function of LED 2 — feedback

Output

xLED3Fb

BOOL

FALSE

State of LED 3 — feedback (TRUE = On)

Output

eFunctionLED3Fb

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

Function of LED 3 — feedback

Output

xLED4Fb

BOOL

FALSE

State of LED 4 — feedback (TRUE = On)

Output

eFunctionLED4Fb

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

Function of LED 4 — feedback

Output

xLED5Fb

BOOL

FALSE

State of LED 5 — feedback (TRUE = On)

Output

eFunctionLED5Fb

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

Function of LED 5 — feedback

Output

xLED6Fb

BOOL

FALSE

State of LED 6 — feedback (TRUE = On)

Output

eFunctionLED6Fb

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

Function of LED 6 — feedback

Output

xLED7Fb

BOOL

FALSE

State of LED 7 — feedback (TRUE = On)

Output

eFunctionLED7Fb

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

Function of LED 7 — feedback

Output

xLED8Fb

BOOL

FALSE

State of LED 8 — feedback (TRUE = On)

Output

eFunctionLED8Fb

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

Function of LED 8 — feedback

Output

xLED9Fb

BOOL

FALSE

State of LED 9 — feedback (TRUE = On)

Output

eFunctionLED9Fb

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

Function of LED 9 — feedback

Output

xDI1

BOOL

FALSE

State of digital input 1 (assignment depending on function eFunctionDI1) (FALSE = Open, TRUE = Closed)

Output

eFunctionDI1Fb

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION

Function of digital input 1 — feedback

Output

xDI2

BOOL

FALSE

State of digital input 2 (assignment depending on function eFunctionDI2) (FALSE = Open, TRUE = Closed)

Output

eFunctionDI2Fb

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION

Function of digital input 2 — feedback

Output

xDI3

BOOL

FALSE

State of digital input 3 (assignment depending on function eFunctionDI1) (FALSE = Open, TRUE = Closed)

Output

eFunctionDI3Fb

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION

Function of digital input 3 — feedback

Output

xDI4

BOOL

FALSE

State of digital input 4 (assignment depending on function eFunctionDI2) (FALSE = Open, TRUE = Closed)

Output

eFunctionDI4Fb

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION

Function of digital input 4 — feedback

Output

rAO1

REAL

0.0

Current state at analog output 1 (0.0 - 100.0% = 0.0 - 10.0 V)

Output

rAO2

REAL

0.0

Current state at analog output 2 (0.0 - 100.0% = 0.0 - 10.0 V)

Output

xDO1

BOOL

FALSE

Current state at digital output 1 (0 = Open, 1 = Closed)

Output

xDO2

BOOL

FALSE

Current state at digital output 2 (0 = Open, 1 = Closed)

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

eLEDAssignment

THERMOKON_WRF07_TEMP_HUMIDITY_LED_ASSIGNMENT

THERMOKON_WRF07_TEMP_HUMIDITY_LED_ASSIGNMENT.LEDS_1_TO_5_STD

Specification of the assignment of the light-emitting diodes (1 = LEDs 1 - 5, Standard)

Input Const

eButtonsAssignment

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_ASSIGNMENT

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_ASSIGNMENT.BUTTONS_1_TO_5_STD

Specification of the assignment of the buttons (1 = buttons 1 - 5, Standard)

Input Const

eOutputsMode

THERMOKON_WRF07_TEMP_HUMIDITY_OUTPUTS_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_OUTPUTS_MODE.MANUAL_MODE

Mode for analog / digital outputs AO1, AO2, DO1, DO2 (MANUAL_MODE: <br/>*<br/> rAO1Manual,rAO2Manual, xDO1Manual and xDO2Manual define the current states of the outputs)

Input Const

eUnit

THERMOKON_WRF07_TEMP_HUMIDITY_UNIT

THERMOKON_WRF07_TEMP_HUMIDITY_UNIT.SI

Current unit system of the device

Input Const

rRoomHumidityOffset

REAL

0.0

Offset of the room humidity (for calibration of the humidity sensor ) in percent

Input Const

eFunctionLED9

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION.EXTERNAL_CONTROL

Function of LED 9

Input Const

eFunctionLED8

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION.EXTERNAL_CONTROL

Function of LED 8

Input Const

eFunctionLED7

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION.EXTERNAL_CONTROL

Function of LED 7

Input Const

eFunctionLED6

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION.EXTERNAL_CONTROL

Function of LED 6

Input Const

eFunctionLED5

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION.EXTERNAL_CONTROL

Function of LED 5

Input Const

eFunctionLED4

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION.EXTERNAL_CONTROL

Function of LED 4

Input Const

eFunctionLED3

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION.EXTERNAL_CONTROL

Function of LED 3

Input Const

eFunctionLED2

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION.EXTERNAL_CONTROL

Function of LED 2

Input Const

eFunctionLED1

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_LED_FUNCTION.EXTERNAL_CONTROL

Function of LED 1

Input Const

eFunctionDI4

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION.NORMALLY_OPEN_CONTACT

Function of digital input 4

Input Const

eFunctionDI3

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION.NORMALLY_OPEN_CONTACT

Function of digital input 3

Input Const

eFunctionDI2

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION.NORMALLY_OPEN_CONTACT

Function of digital input 2

Input Const

eFunctionDI1

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_DIGITAL_INPUT_FUNCTION.NORMALLY_OPEN_CONTACT

Function of digital input 1

Input Const

eFunctionButton9

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION.NO_SPECIAL_FUNCTION

Function of button 9

Input Const

eFunctionButton8

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION.NO_SPECIAL_FUNCTION

Function of button 8

Input Const

eFunctionButton7

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION.NO_SPECIAL_FUNCTION

Function of button 7

Input Const

eFunctionButton6

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION.NO_SPECIAL_FUNCTION

Function of button 6

Input Const

eFunctionButton5

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION.NO_SPECIAL_FUNCTION

Function of button 5

Input Const

eFunctionButton4

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION.NO_SPECIAL_FUNCTION

Function of button 4

Input Const

eFunctionButton3

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION.NO_SPECIAL_FUNCTION

Function of button 3

Input Const

eFunctionButton2

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION.NO_SPECIAL_FUNCTION

Function of button 2

Input Const

eFunctionButton1

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_FUNCTION.NO_SPECIAL_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

Adjustment range of the setpoint potentiometer (symmetrical, 3.0 = +/. 3.0K)

Input Const

rRoomTempOffset

REAL

0.0

Offset of the room temperature (for calibration of the temperature sensor) in K

Input Const

eButton9OutpMode

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE.RAW

Operating mode of the output xButton9 (RAW, PULSE)

Input Const

eButton8OutpMode

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE.RAW

Operating mode of the output xButton8 (RAW, PULSE)

Input Const

eButton7OutpMode

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE.RAW

Operating mode of the output xButton7 (RAW, PULSE)

Input Const

eButton6OutpMode

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE.RAW

Operating mode of the output xButton6 (RAW, PULSE)

Input Const

eButton5OutpMode

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE.RAW

Operating mode of the output xButton5 (RAW, PULSE)

Input Const

eButton4OutpMode

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE.RAW

Operating mode of the output xButton4 (RAW, PULSE)

Input Const

eButton3OutpMode

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE.RAW

Operating mode of the output xButton3 (RAW, PULSE)

Input Const

eButton2OutpMode

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE.RAW

Operating mode of the output xButton2 (RAW, PULSE)

Input Const

eButton1OutpMode

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_BUTTON_OUTP_MODE.RAW

Operating mode of the output xButton1 (RAW, PULSE)

Input Const

eMode

THERMOKON_WRF07_TEMP_HUMIDITY_MODE

THERMOKON_WRF07_TEMP_HUMIDITY_MODE.ROOM_CONTROL_UNIT

General operating mode of the device (ROOM_CONTROL_UNIT: device serves as RBG, INTERNAL_REGULATION: setpoint formation / temperature control in the device)

Input Const

tTimeButtonPulse

TIME

TIME#1s0ms

Duration of the pulse at the output, if the assigned button was pressed

Input Const

tTimeUpdateStates

TIME

TIME#500ms

Update interval for the processes influenced by the input xUpdateStates influenced

Input Const

tTimeUpdateConfigRead

TIME

TIME#0ms

Update interval for the processes influenced by the input xUpdateConfigRead influenced

Input Const

tTimeUpdateSetp

TIME

TIME#45s0ms

Update interval for the processes influenced by the input xUpdateSetp influenced

Input Const

tTimeUpdateActual

TIME

TIME#3s0ms

Update interval for the processes influenced by the input xUpdateActual influenced

Last updated