# OPPERMANN\_KRM\_2\_DZ\_MOD

## `OPPERMANN_KRM_2_DZ_MOD` (FB)

FUNCTION\_BLOCK OPPERMANN\_KRM\_2\_DZ\_MOD

InOut:

| Scope       | Name                  | Type                   | Initial    | Comment                                                                                                                       |
| ----------- | --------------------- | ---------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                 | `BOOL`                 | TRUE       | Enable / disable communication ( TRUE = enabled )                                                                             |
| 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 ‘eErrorCodeCom’ and<br>‘xSmokeAlarm’ to the fault-free state (on every<br>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 indication of the airflow (0 = no airflow)                                                                            |
| Output      | `xSmokeAlarm`         | `BOOL`                 | FALSE      | Smoke alarm - device (TRUE = alarm)                                                                                           |
| Output      | `xPollutionAlarm`     | `BOOL`                 | FALSE      | Alarm - contamination > wSetpPollutionAlarm (TRUE = alarm)                                                                    |
| Output      | `xAlarm`              | `BOOL`                 | FALSE      | General fault ( TRUE = fault )                                                                                                |
| Output      | `xAlarmCom`           | `BOOL`                 | FALSE      | General 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 operations influenced by the input<br>'xUpdateActual'</p>                                              |
