# H1\_16DI

## `H1_16DI` (FB)

FUNCTION\_BLOCK H1\_16DI EXTENDS SlaveModuleSoftOverwrite IMPLEMENTS ISlaveModule

InOut:

| Scope       | Name                       | Type             | Initial      | Comment                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Inherited from           |
| ----------- | -------------------------- | ---------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| Input       | `itfModbusConnector`       | IModbusConnector |              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | BaseSlave                |
| Output      | `xInitRunning`             | `BOOL`           |              | <p><code>xInitRunning</code> ist <code>TRUE</code>, solange die Initialisierung<br>beim Ersten Start durchgeühr wird.</p>                                                                                                                                                                                                                                                                                                                                            | BaseSlave                |
| Output      | `xInitFinished`            | `BOOL`           |              | <p><code>xInitFinished</code> ist <code>TRUE</code>, sobald beim Ersten Start<br>alle Parameter an das Modul gesendet sind.</p>                                                                                                                                                                                                                                                                                                                                      | BaseSlave                |
| Output      | `xAlarmCom`                | `BOOL`           |              | <p><code>xAlarmCom</code> ist <code>TRUE</code>, wenn es einen<br>Kommunikationsfehler gibt.</p>                                                                                                                                                                                                                                                                                                                                                                     | BaseSlave                |
| Output      | `xBusy`                    | `BOOL`           |              | <p><code>xBusy</code> ist <code>TRUE</code>, wenn ein Modbus Request ausgeführt<br>wird.</p>                                                                                                                                                                                                                                                                                                                                                                         | BaseSlave                |
| Output      | `usiConfiguredSlaveID`     | `USINT`          |              | Zeigt die aktuell eingestellte Slave-ID an                                                                                                                                                                                                                                                                                                                                                                                                                           | BaseSlave                |
| Output      | `eError`                   | ERROR            |              | Kein Fehler = `ERROR.No_Error`                                                                                                                                                                                                                                                                                                                                                                                                                                       | BaseSlave                |
| Output      | `stDebugOutput`            | DebugOutput      |              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | BaseSlave                |
| Input       | `xEnable`                  | `BOOL`           | TRUE         | <p>Deaktiviert das Modul und setzt alle Ausgänge auf den<br>Standard Initialisierungswert zurück</p>                                                                                                                                                                                                                                                                                                                                                                 | BaseSlaveModule          |
| Input       | `xReinitModule`            | `BOOL`           |              | <p>Reinitialisiert das Modul und sendet alle Parameter an das<br>Modul</p>                                                                                                                                                                                                                                                                                                                                                                                           | BaseSlaveModule          |
| Input       | `xResetModule`             | `BOOL`           |              | <p>Setzt das Modul zurück, löscht den EEPROM Speichert, führt<br>einen Lampentest durch und startet das Modul neu (Achtung:<br>Danach ist Autobauding wieder aktiviert)</p>                                                                                                                                                                                                                                                                                          | BaseSlaveModule          |
| Output      | `wFirmware`                | `WORD`           |              | Zeigt die aktuelle Firmware des Modules an                                                                                                                                                                                                                                                                                                                                                                                                                           | BaseSlaveModule          |
| Output      | `xAuto`                    | `BOOL`           |              | <p><code>FALSE</code> = Mindestens ein Eingang und/oder ein Ausgang sind<br>im Zustand <code>eManBin <> eManBin.Auto</code>. <code>TRUE</code> = Alle<br>Eingänge und Ausgänge haben den Zustand eManBin =<br>eManBin.Auto (Hinweis: Falls das Übersteuern mittels Dip-<br>Schalter (Hardware) deaktiviert ist und der Ausgang im<br>Zustand <code>eManBin <> eManBin.Auto</code>, bleibt xAuto weiterhin<br><code>TRUE</code>. Auswertung erfolgt je Ausgang. )</p> | BaseSlaveModule          |
| Output      | `xAutoSoftware`            | `BOOL`           |              | <p><code>FALSE</code> = Mindestens ein Eingang und/oder Ausgang sind<br>mittels Parameter (Software) im Zustand <code>eManBin <>\<br/>eManBin.Auto</code>. <code>TRUE</code> = Alle Eingänge und Ausgänge sind<br>mittels Parameter (Software) im Zustand <code>eManBin =\<br/>eManBin.Auto</code>.</p>                                                                                                                                                              | SlaveModuleSoftOverwrite |
| Input Const | `eDI16_ManBin`             | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI16Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI16_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI15_ManBin`             | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI15Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI15_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI14_ManBin`             | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI14Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI14_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI13_ManBin`             | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI13Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI13_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI12_ManBin`             | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI12Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI12_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI11_ManBin`             | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI11Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI11_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI10_ManBin`             | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI10Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI10_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI9_ManBin`              | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI9Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI9_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI8_ManBin`              | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI8Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI8_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI7_ManBin`              | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI7Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI7_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI6_ManBin`              | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI6Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI6_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI5_ManBin`              | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI5Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI5_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI4_ManBin`              | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI4Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI4_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI3_ManBin`              | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI3Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI3_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI2_ManBin`              | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI2Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI2_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `eDI1_ManBin`              | eManBin          | eManBin.Auto | Manuelle Übersteuerung des digitalen Eingangs                                                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI1Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `xDI1_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Aktiviert eine Verzögerung des Eingangs mit dem<br>definierten Wert von <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= Keine Verzögerung</p>                                                                                                                                                                                                                                                                                  |                          |
| Input Const | `tACModeInputVoltageDelay` | `TIME`           | TIME#100ms   | <p>Eine Änderung des Signals, das an einem DI anliegt, wird<br>erst nach Ablauf dieser Zeit erkannt. (Wird nur verwendet<br>wenn <code>xDI\<n>\_ACVoltageMode</code> <code>TRUE</code> ist)</p>                                                                                                                                                                                                                                                                      |                          |
| Input Const | `tReadInputs`              | `TIME`           | TIME#1s0ms   | <p>Abfragezeit für digitale Eingänge (Hinweis: Die Abfragezeit<br>darf nicht größer als die Zeit von <code>tBusTimeout</code> sein.)</p>                                                                                                                                                                                                                                                                                                                             |                          |
| Input Const | `tBusTimeout`              | `TIME`           | TIME#20s0ms  | `T#0s` = Kein Bus-Timeout = Kein SafeState Modus                                                                                                                                                                                                                                                                                                                                                                                                                     |                          |
| Input Const | `usiSlaveID`               | `USINT`          | 10           | Die Slave-Adresse für das Modul                                                                                                                                                                                                                                                                                                                                                                                                                                      |                          |
| Output      | `xDI1`                     | `BOOL`           |              | digital input 1                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                          |
| Output      | `xDI2`                     | `BOOL`           |              | digital input 2                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                          |
| Output      | `xDI3`                     | `BOOL`           |              | digital input 3                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                          |
| Output      | `xDI4`                     | `BOOL`           |              | digital input 4                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                          |
| Output      | `xDI5`                     | `BOOL`           |              | digital input 5                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                          |
| Output      | `xDI6`                     | `BOOL`           |              | digital input 6                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                          |
| Output      | `xDI7`                     | `BOOL`           |              | digital input 7                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                          |
| Output      | `xDI8`                     | `BOOL`           |              | digital input 8                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                          |
| Output      | `xDI9`                     | `BOOL`           |              | digital input 9                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                          |
| Output      | `xDI10`                    | `BOOL`           |              | digital input 10                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                          |
| Output      | `xDI11`                    | `BOOL`           |              | digital input 11                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                          |
| Output      | `xDI12`                    | `BOOL`           |              | digital input 12                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                          |
| Output      | `xDI13`                    | `BOOL`           |              | digital input 13                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                          |
| Output      | `xDI14`                    | `BOOL`           |              | digital input 14                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                          |
| Output      | `xDI15`                    | `BOOL`           |              | digital input 15                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                          |
| Output      | `xDI16`                    | `BOOL`           |              | digital input 16                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                          |


---

# 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/hvac-modbusio2-lib/funktionsbausteine/h1_16di.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.
