> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/hvac-modbus-library/functionblocks/klingenburg/klingenburg_oj_drhx.md).

# KLINGENBURG\_OJ\_DRHX

## `KLINGENBURG_OJ_DRHX` (FB)

`FUNCTION_BLOCK` KLINGENBURG\_OJ\_DRHX

### Darstellung

<figure><img src="https://879424349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2FEMHuGlrDxJb03IuxUJPD%2FKLINGENBURG_OJ_DRHX.png?alt=media&amp;token=ea9df297-e12a-4f44-9ae2-9b38861e633f" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                  | Type                       | Initial                                         | Comment                                                                                                                                                             |
| ----------- | --------------------- | -------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                 | `BOOL`                     | TRUE                                            | Freigabe / Sperrung der Kommunikation (TRUE = Freigabe)                                                                                                             |
| Input       | `byUnitId`            | `BYTE`                     | 1                                               | <p>Adresse des Geräts (1… 247, Voreinstellung =<br>Werkseinstellung)</p>                                                                                            |
| Input       | `xUpdateActual`       | `BOOL`                     | FALSE                                           | <p>Aktualisierung der Istwerte (bei jeder ansteigenden Flanke<br>)</p>                                                                                              |
| Input       | `xUpdateSetp`         | `BOOL`                     | FALSE                                           | <p>Aktualisierung der Sollwerte (bei jeder ansteigenden Flanke<br>)</p>                                                                                             |
| Input       | `xResError`           | `BOOL`                     | FALSE                                           | <p>Reinitialisierung der Ausgänge <code>eErrorCodeCom</code> bzw.<br><code>stErrorCodeDv</code> auf dem fehlerfreien Zustand (bei jeder<br>ansteigenden Flanke)</p> |
| Input       | `xEnMotor`            | `BOOL`                     | FALSE                                           | Freigabe / Sperrung des Motors (TRUE = Freigabe)                                                                                                                    |
| Input       | `rSetpRotSpeed`       | `REAL`                     | 0.0                                             | <p>Sollwert - Rotationsgeschwindigkeit in % (0.0 - 100.0 %) (<br>rMotorSpMin - rMotorSpMax)</p>                                                                     |
| Input       | `xResAlarmsDev`       | `BOOL`                     | FALSE                                           | <p>Rücksetzung aller Alarme des Geräts (bei jeder ansteigenden<br>Flanke)</p>                                                                                       |
| Inout       | `ModbusClient`        | `ModbusClientBase`         |                                                 | Client des Geräts                                                                                                                                                   |
| Output      | `xEnMotorFb`          | `BOOL`                     |                                                 | <p>Rückmeldung - Freigabe / Sperrung des Motors (TRUE =<br>Freigabe)</p>                                                                                            |
| Output      | `rSetpRotSpeedFb`     | `REAL`                     |                                                 | <p>Rückmeldung - Sollwert - Rotationsgeschwindigkeit in % (0.0<br>- 100.0 %) (rMotorSpeed\_Min - rMotorSpeed\_Max)</p>                                              |
| Output      | `rPercentOut`         | `REAL`                     |                                                 | Stellsignal für den Schrittmotor in %                                                                                                                               |
| Output      | `xRotation`           | `BOOL`                     |                                                 | Anzeige der Rotation (TRUE = Rotation)                                                                                                                              |
| Output      | `rMotorSpeed`         | `REAL`                     |                                                 | Rotationsgeschwindigkeit des Motors in 1/min                                                                                                                        |
| Output      | `rRotorSpeed`         | `REAL`                     |                                                 | Rotationsgeschwindigkeit des Rotors in 1/min                                                                                                                        |
| Output      | `rMotorSpMin_Fb`      | `REAL`                     |                                                 | <p>Rückmeldung - Minimalwert - Rotationsgeschwindigkeit des<br>Motors in 1/min</p>                                                                                  |
| Output      | `rMotorSpMax_Fb`      | `REAL`                     |                                                 | <p>Rückmeldung - Maximalwert - Rotationsgeschwindigkeit des<br>Motors in 1/min</p>                                                                                  |
| Output      | `rTorque`             | `REAL`                     |                                                 | Drehmoment des Motors in Nm                                                                                                                                         |
| Output      | `rIntTemp`            | `REAL`                     |                                                 | Interne Temperatur                                                                                                                                                  |
| Output      | `eControlModeFb`      | OJ\_DRHX\_CONTROL\_MODE    |                                                 | Rückmeldung - Art der Steuerung (0 = MODBUS, 1 = 0-10V)                                                                                                             |
| Output      | `eRotDirectFb`        | OJ\_DRHX\_ROTATION\_DIRECT |                                                 | <p>Rückmeldung - Drehrichtung des Rotors (0 = im<br>Uhrzeigersinn, 1 = entgegen dem Uhrzeigersinn)</p>                                                              |
| Output      | `eAltCommSetFb`       | OJ\_DRHX\_ALT\_COMM\_SET   |                                                 | <p>Rückmeldung - Status der alternativen Modbus-Verbindung (<br>FALSE = Voreinstellung Fabrik, TRUE = Alternative Verbindung<br>(Holding Register 13 - 16))</p>     |
| Output      | `xDI1`                | `BOOL`                     |                                                 | Zustand des digitalen Eingangs 1 (FALSE = LOW)                                                                                                                      |
| Output      | `xDI2`                | `BOOL`                     |                                                 | Zustand des digitalen Eingangs 2 (FALSE = LOW)                                                                                                                      |
| Output      | `xDI3`                | `BOOL`                     |                                                 | Zustand des digitalen Eingangs 3 (FALSE = LOW)                                                                                                                      |
| Output      | `xDI4`                | `BOOL`                     |                                                 | Zustand des digitalen Eingangs 4 (FALSE = LOW)                                                                                                                      |
| Output      | `eDI1Config_Fb`       | OJ\_DRHX\_DIX\_CONFIG      |                                                 | Rückmeldung - Konfiguration des digitalen Eingangs 1                                                                                                                |
| Output      | `eDI2Config_Fb`       | OJ\_DRHX\_DIX\_CONFIG      |                                                 | Rückmeldung - Konfiguration des digitalen Eingangs 2                                                                                                                |
| Output      | `eDI3Config_Fb`       | OJ\_DRHX\_DIX\_CONFIG      |                                                 | Rückmeldung - Konfiguration des digitalen Eingangs 3                                                                                                                |
| Output      | `eDI4Config_Fb`       | OJ\_DRHX\_DIX\_CONFIG      |                                                 | Rückmeldung - Konfiguration des digitalen Eingangs 4                                                                                                                |
| Output      | `rInputPower`         | `REAL`                     |                                                 | Leistungsaufnahme \[ W ]                                                                                                                                            |
| Output      | `rExtSetp`            | `REAL`                     |                                                 | <p>Spannung am Analogeingang 1 - Sollwert<br>Rotationsgeschwindigkeit (0.0 - 10000 mV)</p>                                                                          |
| Output      | `eType`               | OJ\_DRHX\_TYPE             |                                                 | Typ der Steuerung                                                                                                                                                   |
| Output      | `eRelay1Config_Fb`    | OJ\_DRHX\_RELAYX\_CONFIG   |                                                 | Rückmeldung - Konfiguration des Relais 1                                                                                                                            |
| Output      | `eRelay2Config_Fb`    | OJ\_DRHX\_RELAYX\_CONFIG   |                                                 | Rückmeldung - Konfiguration des Relais 2                                                                                                                            |
| Output      | `xAlarm`              | `BOOL`                     | FALSE                                           | Sammelstörung (TRUE = Störung)                                                                                                                                      |
| Output      | `xAlarmCom`           | `BOOL`                     | FALSE                                           | Sammelstörung - Kommunikation (TRUE = Störung)                                                                                                                      |
| Output      | `eErrorCodeCom`       | ModbusErrorCode            |                                                 | Fehlercode - Kommunikation (0 = kein Fehler)                                                                                                                        |
| Output      | `stErrorCodeDev`      | `STRING`                   |                                                 | String mir den Nummern der aktiven Gerätefehler                                                                                                                     |
| Output      | `xBusy`               | `BOOL`                     |                                                 | Kommunikationsanzeige (TRUE = Kommunikation)                                                                                                                        |
| Input Const | `rPercentOutMult`     | `REAL`                     | 1.0                                             | <p>Multiplikator für den Ausgang <code>rPercentOut</code> (rPercentOut =<br>Übertragener Wert \* 0.01 \* rPercentOutMult)</p>                                       |
| Input Const | `rSetpRotSpeedMult`   | `REAL`                     | 1.0                                             | <p>Multiplikator für den Eingang <code>rSetpRotSpeed</code> (Übertragener<br>Wert = 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 | Konfiguration des digitalen Eingangs 4                                                                                                                              |
| Input Const | `eDI2Config`          | OJ\_DRHX\_DIX\_CONFIG      | OJ\_DRHX\_DIX\_CONFIG.ENABLE\_EXT\_ROTOR\_GUARD | Konfiguration des digitalen Eingangs 3                                                                                                                              |
| Input Const | `eDI1Config`          | OJ\_DRHX\_DIX\_CONFIG      | OJ\_DRHX\_DIX\_CONFIG.ALARM\_RESET              | Konfiguration des digitalen Eingangs 2                                                                                                                              |
| Input Const | `rKFactor`            | `REAL`                     | 100.0                                           | <p>Faktor zur Beeinflussung der Stellsignalkennlinie beim<br>0-10V-Betrieb, k = 10000: lineare Kennlinie 1.1V - 9.5V =<br>rMotorSpMin - rMotorSpMax)</p>            |
| Input Const | `rRotorSize`          | `REAL`                     | 0.0                                             | <p>Durchmesser der des Rotors in mm (relevant für die Variable<br><code>rRotorSpeed</code>, 0 mm = rRotorSpeed = rMotorSpeed)</p>                                   |
| Input Const | `rPulleySize`         | `REAL`                     | 0.0                                             | <p>Durchmesser der Scheibe des Motors in mm (relevant für die<br>Variable <code>rRotorSpeed</code>, 0 mm = rRotorSpeed = rMotorSpeed)</p>                           |
| Input Const | `rPurgeCtrlSignal`    | `REAL`                     | 10.0                                            | Spülbetrieb: Stellsignal während des Spülbetriebs in %                                                                                                              |
| Input Const | `tPurgeTime`          | `TIME`                     | TIME#10s0ms                                     | Spülbetrieb: Zeitdauer des Spülbetriebs                                                                                                                             |
| Input Const | `tPurgeIntervall`     | `TIME`                     | TIME#10m0s0ms                                   | <p>Spülbetrieb: Zeitintervall zwischen zwei Spülvorgängen (<br>T#0s: Abschaltung des zyklischen Spülbetriebs)</p>                                                   |
| Input Const | `tPurgeDetect`        | `TIME`                     | TIME#10m0s0ms                                   | <p>Spülbetrieb: Mindestzeitdauer des inaktiven Wärmerads vor<br>der Auslösung des Spülbetriebs</p>                                                                  |
| Input Const | `rMotorSpMax`         | `REAL`                     | 250.0                                           | Maximalwert - Rotationsgeschwindigkeit des Motors in 1/min                                                                                                          |
| Input Const | `rMotorSpMin`         | `REAL`                     | 1.0                                             | Minimalwert - Rotationsgeschwindigkeit des Motors in 1/min                                                                                                          |
| Input Const | `xAutoDetectCtrlMode` | `BOOL`                     | TRUE                                            | <p>Freigabe / Sperrung der automatischen Erkennung der<br>Betriebsart (FALSE = keine automatische Erkennung)</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          | Art der Steuerung (0 = MODBUS, 1 = 0-10V)                                                                                                                           |
| Input Const | `tTimeUpdateSetp`     | `TIME`                     | TIME#45s0ms                                     | <p>Updateintervall für die Vorgänge, die durch den Eingang<br><code>xUpdateSetp</code> beeinflusst werden</p>                                                       |
| Input Const | `tTimeUpdateActual`   | `TIME`                     | TIME#3s0ms                                      | <p>Updateintervall für die Vorgänge, die durch den Eingang<br><code>xUpdateActual</code> beeinflusst werden</p>                                                     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

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

```
GET https://support.powerio.com/hub/codesys-hvac/hvac-modbus-library/functionblocks/klingenburg/klingenburg_oj_drhx.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
