# KLINGENBURG\_OJ\_DRHX

## `KLINGENBURG_OJ_DRHX` (FB)

`FUNCTION_BLOCK` KLINGENBURG\_OJ\_DRHX

### Representation

<figure><img src="/files/2572095a544055dd1a4c934f1eee60f75ff4231a" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                  | Type                       | Initial                                         | Comment                                                                                                                                                               |
| ----------- | --------------------- | -------------------------- | ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                 | `BOOL`                     | TRUE                                            | Enable / disable communication (TRUE = enable)                                                                                                                        |
| Input       | `byUnitId`            | `BYTE`                     | 1                                               | <p>Device address (1… 247, default =<br>factory setting)</p>                                                                                                          |
| Input       | `xUpdateActual`       | `BOOL`                     | FALSE                                           | <p>Update of actual values (on every rising edge<br>)</p>                                                                                                             |
| Input       | `xUpdateSetp`         | `BOOL`                     | FALSE                                           | <p>Update of setpoints (on every rising edge<br>)</p>                                                                                                                 |
| Input       | `xResError`           | `BOOL`                     | FALSE                                           | <p>Reinitialization of the outputs <code>eErrorCodeCom</code> or<br><code>stErrorCodeDv</code> to the fault-free state (on every rising edge)</p>                     |
| Input       | `xEnMotor`            | `BOOL`                     | FALSE                                           | Enable / lock the motor (TRUE = enable)                                                                                                                               |
| Input       | `rSetpRotSpeed`       | `REAL`                     | 0.0                                             | <p>Setpoint - rotational speed in % (0.0 - 100.0 %) (<br>rMotorSpMin - rMotorSpMax)</p>                                                                               |
| Input       | `xResAlarmsDev`       | `BOOL`                     | FALSE                                           | <p>Reset all device alarms (on every rising<br>edge)</p>                                                                                                              |
| Inout       | `ModbusClient`        | `ModbusClientBase`         |                                                 | Client of the device                                                                                                                                                  |
| Output      | `xEnMotorFb`          | `BOOL`                     |                                                 | <p>Feedback - enable / lock the motor (TRUE =<br>enable)</p>                                                                                                          |
| Output      | `rSetpRotSpeedFb`     | `REAL`                     |                                                 | <p>Feedback - setpoint - rotational speed in % (0.0<br>- 100.0 %) (rMotorSpeed\_Min - rMotorSpeed\_Max)</p>                                                           |
| Output      | `rPercentOut`         | `REAL`                     |                                                 | Actuating signal for the stepper motor in %                                                                                                                           |
| Output      | `xRotation`           | `BOOL`                     |                                                 | Display of rotation (TRUE = rotation)                                                                                                                                 |
| Output      | `rMotorSpeed`         | `REAL`                     |                                                 | Motor rotational speed in 1/min                                                                                                                                       |
| Output      | `rRotorSpeed`         | `REAL`                     |                                                 | Rotor rotational speed in 1/min                                                                                                                                       |
| Output      | `rMotorSpMin_Fb`      | `REAL`                     |                                                 | Feedback - minimum value - motor rotational speed in 1/min                                                                                                            |
| Output      | `rMotorSpMax_Fb`      | `REAL`                     |                                                 | Feedback - maximum value - motor rotational speed in 1/min                                                                                                            |
| Output      | `rTorque`             | `REAL`                     |                                                 | Motor torque in Nm                                                                                                                                                    |
| Output      | `rIntTemp`            | `REAL`                     |                                                 | Internal temperature                                                                                                                                                  |
| Output      | `eControlModeFb`      | OJ\_DRHX\_CONTROL\_MODE    |                                                 | Feedback - type of control (0 = MODBUS, 1 = 0-10V)                                                                                                                    |
| Output      | `eRotDirectFb`        | OJ\_DRHX\_ROTATION\_DIRECT |                                                 | Feedback - rotor direction of rotation (0 = clockwise, 1 = counterclockwise)                                                                                          |
| Output      | `eAltCommSetFb`       | OJ\_DRHX\_ALT\_COMM\_SET   |                                                 | <p>Feedback - status of the alternative Modbus connection (<br>FALSE = factory default, TRUE = alternative connection<br>(Holding Register 13 - 16))</p>              |
| Output      | `xDI1`                | `BOOL`                     |                                                 | State of digital input 1 (FALSE = LOW)                                                                                                                                |
| Output      | `xDI2`                | `BOOL`                     |                                                 | State of digital input 2 (FALSE = LOW)                                                                                                                                |
| Output      | `xDI3`                | `BOOL`                     |                                                 | State of digital input 3 (FALSE = LOW)                                                                                                                                |
| Output      | `xDI4`                | `BOOL`                     |                                                 | State of digital input 4 (FALSE = LOW)                                                                                                                                |
| Output      | `eDI1Config_Fb`       | OJ\_DRHX\_DIX\_CONFIG      |                                                 | Feedback - configuration of digital input 1                                                                                                                           |
| Output      | `eDI2Config_Fb`       | OJ\_DRHX\_DIX\_CONFIG      |                                                 | Feedback - configuration of digital input 2                                                                                                                           |
| Output      | `eDI3Config_Fb`       | OJ\_DRHX\_DIX\_CONFIG      |                                                 | Feedback - configuration of digital input 3                                                                                                                           |
| Output      | `eDI4Config_Fb`       | OJ\_DRHX\_DIX\_CONFIG      |                                                 | Feedback - configuration of digital input 4                                                                                                                           |
| Output      | `rInputPower`         | `REAL`                     |                                                 | Power consumption \[ W ]                                                                                                                                              |
| Output      | `rExtSetp`            | `REAL`                     |                                                 | <p>Voltage at analog input 1 - setpoint<br>rotational speed (0.0 - 10000 mV)</p>                                                                                      |
| Output      | `eType`               | OJ\_DRHX\_TYPE             |                                                 | Type of control                                                                                                                                                       |
| Output      | `eRelay1Config_Fb`    | OJ\_DRHX\_RELAYX\_CONFIG   |                                                 | Feedback - configuration of relay 1                                                                                                                                   |
| Output      | `eRelay2Config_Fb`    | OJ\_DRHX\_RELAYX\_CONFIG   |                                                 | Feedback - configuration of relay 2                                                                                                                                   |
| Output      | `xAlarm`              | `BOOL`                     | FALSE                                           | Collective fault (TRUE = fault)                                                                                                                                       |
| Output      | `xAlarmCom`           | `BOOL`                     | FALSE                                           | Collective fault - communication (TRUE = fault)                                                                                                                       |
| Output      | `eErrorCodeCom`       | ModbusErrorCode            |                                                 | Error code - communication (0 = no error)                                                                                                                             |
| Output      | `stErrorCodeDev`      | `STRING`                   |                                                 | String with the numbers of the active device errors                                                                                                                   |
| Output      | `xBusy`               | `BOOL`                     |                                                 | Communication indicator (TRUE = communication)                                                                                                                        |
| Input Const | `rPercentOutMult`     | `REAL`                     | 1.0                                             | <p>Multiplier for the output <code>rPercentOut</code> (rPercentOut =<br>transmitted value \* 0.01 \* rPercentOutMult)</p>                                             |
| Input Const | `rSetpRotSpeedMult`   | `REAL`                     | 1.0                                             | <p>Multiplier for the input <code>rSetpRotSpeed</code> (transmitted<br>value = rSetpRotSpeed \* 100 \* rSetpRotSpeedMult)</p>                                         |
| Input Const | `eDI4Config`          | OJ\_DRHX\_DIX\_CONFIG      | OJ\_DRHX\_DIX\_CONFIG.DISABLED                  |                                                                                                                                                                       |
| Input Const | `eDI3Config`          | OJ\_DRHX\_DIX\_CONFIG      | OJ\_DRHX\_DIX\_CONFIG.EXT\_ROTOR\_GUARD\_SIGNAL | Configuration of digital input 4                                                                                                                                      |
| Input Const | `eDI2Config`          | OJ\_DRHX\_DIX\_CONFIG      | OJ\_DRHX\_DIX\_CONFIG.ENABLE\_EXT\_ROTOR\_GUARD | Configuration of digital input 3                                                                                                                                      |
| Input Const | `eDI1Config`          | OJ\_DRHX\_DIX\_CONFIG      | OJ\_DRHX\_DIX\_CONFIG.ALARM\_RESET              | Configuration of digital input 2                                                                                                                                      |
| Input Const | `rKFactor`            | `REAL`                     | 100.0                                           | <p>Factor for influencing the actuating signal characteristic in<br>0-10V operation, k = 10000: linear characteristic 1.1V - 9.5V =<br>rMotorSpMin - rMotorSpMax)</p> |
| Input Const | `rRotorSize`          | `REAL`                     | 0.0                                             | <p>Diameter of the rotor in mm (relevant for the variable<br><code>rRotorSpeed</code>, 0 mm = rRotorSpeed = rMotorSpeed)</p>                                          |
| Input Const | `rPulleySize`         | `REAL`                     | 0.0                                             | <p>Diameter of the motor pulley in mm (relevant for the<br>variable <code>rRotorSpeed</code>, 0 mm = rRotorSpeed = rMotorSpeed)</p>                                   |
| Input Const | `rPurgeCtrlSignal`    | `REAL`                     | 10.0                                            | Purge operation: actuating signal during purge operation in %                                                                                                         |
| Input Const | `tPurgeTime`          | `TIME`                     | TIME#10s0ms                                     | Purge operation: duration of the purge operation                                                                                                                      |
| Input Const | `tPurgeIntervall`     | `TIME`                     | TIME#10m0s0ms                                   | <p>Purge operation: time interval between two purge operations (<br>T#0s: deactivation of cyclic purge operation)</p>                                                 |
| Input Const | `tPurgeDetect`        | `TIME`                     | TIME#10m0s0ms                                   | <p>Purge operation: minimum duration of the inactive heat wheel before<br>the purge operation is triggered</p>                                                        |
| Input Const | `rMotorSpMax`         | `REAL`                     | 250.0                                           | Maximum value - motor rotational speed in 1/min                                                                                                                       |
| Input Const | `rMotorSpMin`         | `REAL`                     | 1.0                                             | Minimum value - motor rotational speed in 1/min                                                                                                                       |
| Input Const | `xAutoDetectCtrlMode` | `BOOL`                     | TRUE                                            | <p>Enable / lock automatic detection of the<br>operating mode (FALSE = no automatic detection)</p>                                                                    |
| Input Const | `eControlMode`        | OJ\_DRHX\_CONTROL\_MODE    | OJ\_DRHX\_CONTROL\_MODE.MODBUS                  |                                                                                                                                                                       |
| Input Const | `eRotDirect`          | OJ\_DRHX\_ROTATION\_DIRECT | OJ\_DRHX\_ROTATION\_DIRECT.CLOCK\_WISE          | Type of control (0 = MODBUS, 1 = 0-10V)                                                                                                                               |
| Input Const | `tTimeUpdateSetp`     | `TIME`                     | TIME#45s0ms                                     | <p>Update interval for the processes influenced by the input<br><code>xUpdateSetp</code> influenced</p>                                                               |
| Input Const | `tTimeUpdateActual`   | `TIME`                     | TIME#3s0ms                                      | <p>Update interval for the processes influenced by the input<br><code>xUpdateActual</code> influenced</p>                                                             |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/klingenburg/klingenburg_oj_drhx.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.
