> 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="/files/8e72ac16da59de4aa0abefe89862eddc12e6baf7" 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                                               | Update of the information (on every rising edge)                                                                                                                                                                                                                                                                                                                         |
| 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 (on every rising edge)</p>                                                                                                                                                                                                                        |
| Input       | `rSetpPos`          | `REAL`                                | 0.0                                                 | Setpoint - Position in % (0.0 - 100.0 %) (0.0% = spindle extended)                                                                                                                                                                                                                                                                                                       |
| 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`                                |                                                     | Setpoint - Position in % (0.0 - 100.0 %) (0.0% = spindle extended) — feedback                                                                                                                                                                                                                                                                                            |
| Output      | `rPosition`         | `REAL`                                |                                                     | Current position in % (0.0 - 100.0 %) (0.0% = spindle extended)                                                                                                                                                                                                                                                                                                          |
| 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`                              |                                                     | String with the numbers of the active device errors (Bit 0 = number 1, Bit 1 = number 2, etc.)                                                                                                                                                                                                                                                                           |
| Output      | `xBusy`             | `BOOL`                                |                                                     | Communication indicator (TRUE = communication)                                                                                                                                                                                                                                                                                                                           |
| Input Const | `rMaxPos`           | `REAL`                                | 100.0                                               | Current absolute maximum position in % (0.0 - 100.0 %) (0.0% = spindle extended)                                                                                                                                                                                                                                                                                         |
| Input Const | `rMinPos`           | `REAL`                                | 0.0                                                 | Current absolute minimum position in % (0.0 - 100.0 %) (0.0% = spindle extended)                                                                                                                                                                                                                                                                                         |
| 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                                               | Current position in % (0.0 - 100.0 %) (0.0% = spindle extended) in the event of a bus error (120 s)                                                                                                                                                                                                                                                                      |
| 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 (one-time complete opening)<br>3 = synchronization = manual synchronization of the end position<br>4 = reset errors = reset all errors in register 318<br>5 = baud rate change = transfer the parameters in registers 105 - 107</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 | `tTimeUpdateInfo`   | `TIME`                                | TIME#0ms                                            | <p>Update interval for the processes influenced by the input<br><code>xUpdateInfo</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
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/en/hvac-modbus-library/functionblocks/kieback_und_peter/kp_md15_mod_n_he_full.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.
