# OPPERMANN\_KRM\_2\_DZ\_MOD

## `OPPERMANN_KRM_2_DZ_MOD` (FB)

`FUNCTION_BLOCK` OPPERMANN\_KRM\_2\_DZ\_MOD

### Representation

<figure><img src="/files/e9a8c141b69b9781aac1ba26d27cc70e9c9abcc4" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                  | Type                   | Initial    | Comment                                                                                                                                          |
| ----------- | --------------------- | ---------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| Input       | `xEn`                 | `BOOL`                 | TRUE       | Enable / disable communication (TRUE = enable)                                                                                                   |
| Input       | `byUnitId`            | `BYTE`                 | 0          | Device address (1 - 99)                                                                                                                          |
| Input       | `xUpdateActual`       | `BOOL`                 | FALSE      | <p>Update of actual values (on every rising edge<br>)</p>                                                                                        |
| Input       | `xResError`           | `BOOL`                 | FALSE      | <p>Reinitialization of the outputs <code>eErrorCodeCom</code> and<br><code>xSmokeAlarm</code> to the fault-free state (on every rising edge)</p> |
| Inout       | `ModbusClient`        | `ModbusClientBase`     |            | Client of the device                                                                                                                             |
| Output      | `eState`              | OPPERMANN\_STATE\_CODE |            | <p>Current state of the channel smoke detector (1 = normal<br>operation)</p>                                                                     |
| Output      | `wSensor`             | `WORD`                 |            | Internal measured value of the smoke detector (< 255 = no alarm)                                                                                 |
| Output      | `wPollution`          | `WORD`                 |            | Current contamination level of the sensor in XXX percent                                                                                         |
| Output      | `xAirflow`            | `BOOL`                 |            | Current display of the air flow (0 = no air flow)                                                                                                |
| Output      | `xSmokeAlarm`         | `BOOL`                 | FALSE      | Smoke alarm - device (TRUE = alarm)                                                                                                              |
| Output      | `xPollutionAlarm`     | `BOOL`                 | FALSE      | Alarm - contamination > wSetpPollutionAlarm (TRUE = alarm)                                                                                       |
| 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      | `wErrorCodeDev`       | `WORD`                 | 0          | Error code - device (0 = no error)                                                                                                               |
| Output      | `xBusy`               | `BOOL`                 |            | Communication indicator (TRUE = communication)                                                                                                   |
| Input Const | `wSetpPollutionAlarm` | `WORD`                 | 50         | Threshold - contamination level in percent                                                                                                       |
| 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/oppermann/oppermann_krm_2_dz_mod.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.
