# KP\_MD15\_MOD\_N\_HE\_EASY

## `KP_MD15_MOD_N_HE_EASY` (FB)

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

### Representation

<figure><img src="/files/31555b48d442e735d6b571cc96be09bc87ed26a6" 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       | `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      | `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      | `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 | `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 | `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/kieback_und_peter/kp_md15_mod_n_he_easy.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.
