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

# KP\_MD15\_MOD\_N\_HE\_FULL

## `KP_MD15_MOD_N_HE_FULL` (FB)

`FUNCTION_BLOCK` KP\_MD15\_MOD\_N\_HE\_FULL

### Representation

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fg33d9iokb2U30K1omSMa%2FKP_MD15_MOD_N_HE_FULL.png?alt=media&amp;token=9c0379ae-928c-4dd0-bc44-d2d77dd016f1" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                | Type                                  | Initial                                             | Comment                                                                                                                                                                                                                                                                                                                                                                     |
| ----------- | ------------------- | ------------------------------------- | --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`               | `BOOL`                                | TRUE                                                | Enable / disable communication (TRUE = enable)                                                                                                                                                                                                                                                                                                                              |
| Input       | `byUnitId`          | `BYTE`                                | 0                                                   | <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       | `xUpdateInfo`       | `BOOL`                                | FALSE                                               | <p>Information update (on every rising<br>edge)</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>sErrorCodeDev</code> to the fault-free state (at each<br>rising edge)</p>                                                                                                                                                                                                                         |
| Input       | `rSetpPos`          | `REAL`                                | 0.0                                                 | <p>Setpoint - Position in % (0.0 - 100.0 %) (0.0% = spindle<br>extended)</p>                                                                                                                                                                                                                                                                                                |
| Inout       | `ModbusClient`      | `ModbusClientBase`                    |                                                     | Client of the device                                                                                                                                                                                                                                                                                                                                                        |
| Output      | `sSerialNumber`     | `STRING`                              |                                                     | Device serial number                                                                                                                                                                                                                                                                                                                                                        |
| Output      | `wFirmwareVer`      | `WORD`                                |                                                     | Firmware version of the device                                                                                                                                                                                                                                                                                                                                              |
| Output      | `wHardwareVer`      | `WORD`                                |                                                     | Hardware version of the device                                                                                                                                                                                                                                                                                                                                              |
| Output      | `rSetpPositionFb`   | `REAL`                                |                                                     | <p>Setpoint - Position in % (0.0 - 100.0 %) (0.0% = spindle<br>extended) — feedback</p>                                                                                                                                                                                                                                                                                     |
| Output      | `rPosition`         | `REAL`                                |                                                     | <p>Current position in % (0.0 - 100.0 %) (0.0% = spindle<br>extended)</p>                                                                                                                                                                                                                                                                                                   |
| Output      | `eCommandFb`        | KP\_MD15\_MOD\_N\_HE\_COMMAND\_MODE   |                                                     | Current status of the drive — feedback                                                                                                                                                                                                                                                                                                                                      |
| Output      | `eOpModeFb`         | KP\_MD15\_MOD\_N\_HE\_OP\_MODE        |                                                     | Current operating mode of the drive — feedback                                                                                                                                                                                                                                                                                                                              |
| Output      | `xAlarm`            | `BOOL`                                | FALSE                                               | Collective fault (TRUE = fault)                                                                                                                                                                                                                                                                                                                                             |
| Output      | `xAlarmCom`         | `BOOL`                                | FALSE                                               | Collective fault - communication (TRUE = fault)                                                                                                                                                                                                                                                                                                                             |
| Output      | `eErrorCodeCom`     | ModbusErrorCode                       |                                                     | Error code - communication (0 = no error)                                                                                                                                                                                                                                                                                                                                   |
| Output      | `sErrorCodeDev`     | `STRING`                              |                                                     | <p>String with the numbers of the active device errors (Bit 0 =<br>Number 1, Bit 1 = Number 2, etc.)</p>                                                                                                                                                                                                                                                                    |
| Output      | `xBusy`             | `BOOL`                                |                                                     | Communication indicator (TRUE = communication)                                                                                                                                                                                                                                                                                                                              |
| Input Const | `rMaxPos`           | `REAL`                                | 100.0                                               | <p>Current absolute maximum position in % (0.0 - 100.0 %) (<br>0.0% = spindle extended)</p>                                                                                                                                                                                                                                                                                 |
| Input Const | `rMinPos`           | `REAL`                                | 0.0                                                 | <p>Current absolute minimum position in % (0.0 - 100.0 %) (<br>0.0% = spindle extended)</p>                                                                                                                                                                                                                                                                                 |
| Input Const | `eOpMode`           | KP\_MD15\_MOD\_N\_HE\_OP\_MODE        | KP\_MD15\_MOD\_N\_HE\_OP\_MODE.SETPOINT             | <p>Current operating mode<br>0 = Control via setpoint<br>1 = Open<br>2 = Close<br>3 = Parameter <code>rMinPos</code><br>5 = Parameter <code>rMaxPos</code><br>6 = Room temperature control loop</p>                                                                                                                                                                         |
| Input Const | `rBusFailPos`       | `REAL`                                | 100.0                                               | <p>Current position in % (0.0 - 100.0 %) (0.0% = spindle<br>extended) in the event of a bus error (120 s)</p>                                                                                                                                                                                                                                                               |
| Input Const | `eBusFailMode`      | KP\_MD15\_MOD\_N\_HE\_BUS\_FAIL\_MODE | KP\_MD15\_MOD\_N\_HE\_BUS\_FAIL\_MODE.NO\_DETECTION | <p>Current operating mode in the event of a bus error<br>0 = no monitoring<br>1 = Close after 120s without communication<br>2 = Open after 120s without communication<br>3 = Parameter <code>rBusFailPos</code> after 120s without communication</p>                                                                                                                        |
| Input Const | `eCommand`          | KP\_MD15\_MOD\_N\_HE\_COMMAND\_MODE   | KP\_MD15\_MOD\_N\_HE\_COMMAND\_MODE.NORMAL\_MODE    | <p>Current status of the drive<br>0 = Normal operation<br>1 = Adaptation / initialization<br>2 = Test run = manual flushing function (single complete opening)<br>3 = Synchronization = manual synchronization of the end position<br>4 = Fault reset = reset of all faults in register 318<br>5 = Baud rate change = transfer of the parameters in registers 105 - 107</p> |
| Input Const | `tTimeUpdateSetp`   | `TIME`                                | TIME#45s0ms                                         | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateSetp</code> influenced</p>                                                                                                                                                                                                                                                           |
| Input Const | `tTimeUpdateInfo`   | `TIME`                                | TIME#0ms                                            | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateInfo</code> influenced</p>                                                                                                                                                                                                                                                           |
| Input Const | `tTimeUpdateActual` | `TIME`                                | TIME#3s0ms                                          | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateActual</code> influenced</p>                                                                                                                                                                                                                                                         |


---

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

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

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

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

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

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
