# 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> is <code>TRUE</code>, while initialization<br>is performed on the first start.</p>                                                                                                                                                                                                                                                                                                             | BaseSlave                |
| Output      | `xInitFinished`            | `BOOL`           |              | <p><code>xInitFinished</code> is <code>TRUE</code>, as soon as on the first start<br>all parameters have been sent to the module.</p>                                                                                                                                                                                                                                                                                       | BaseSlave                |
| Output      | `xAlarmCom`                | `BOOL`           |              | <p><code>xAlarmCom</code> is <code>TRUE</code>, when there is a<br>communication error.</p>                                                                                                                                                                                                                                                                                                                                 | BaseSlave                |
| Output      | `xBusy`                    | `BOOL`           |              | <p><code>xBusy</code> is <code>TRUE</code>, when a Modbus request is being<br>executed.</p>                                                                                                                                                                                                                                                                                                                                 | BaseSlave                |
| Output      | `usiConfiguredSlaveID`     | `USINT`          |              | Shows the currently configured slave ID                                                                                                                                                                                                                                                                                                                                                                                     | BaseSlave                |
| Output      | `eError`                   | ERROR            |              | No error = `ERROR.No_Error`                                                                                                                                                                                                                                                                                                                                                                                                 | BaseSlave                |
| Output      | `stDebugOutput`            | DebugOutput      |              |                                                                                                                                                                                                                                                                                                                                                                                                                             | BaseSlave                |
| Input       | `xEnable`                  | `BOOL`           | TRUE         | <p>Deactivates the module and resets all outputs to the<br>default initialization value</p>                                                                                                                                                                                                                                                                                                                                 | BaseSlaveModule          |
| Input       | `xReinitModule`            | `BOOL`           |              | <p>Reinitializes the module and sends all parameters to the<br>module</p>                                                                                                                                                                                                                                                                                                                                                   | BaseSlaveModule          |
| Input       | `xResetModule`             | `BOOL`           |              | <p>Resets the module, clears the EEPROM memory, performs<br>a lamp test and restarts the module (Warning:<br>Afterwards autobauding is enabled again)</p>                                                                                                                                                                                                                                                                   | BaseSlaveModule          |
| Output      | `wFirmware`                | `WORD`           |              | Shows the current firmware of the module                                                                                                                                                                                                                                                                                                                                                                                    | BaseSlaveModule          |
| Output      | `xAuto`                    | `BOOL`           |              | <p><code>FALSE</code> = At least one input and/or one output are<br>in the state <code>eManBin <> eManBin.Auto</code>. <code>TRUE</code> = All<br>inputs and outputs have the state eManBin =<br>eManBin.Auto (Note: If overriding via DIP<br>switch (hardware) is disabled and the output is in the<br>state <code>eManBin <> eManBin.Auto</code>, xAuto remains<br><code>TRUE</code>. Evaluation is done per output.)</p> | BaseSlaveModule          |
| Output      | `xAutoSoftware`            | `BOOL`           |              | <p><code>FALSE</code> = At least one input and/or output are<br>set to the state by parameter (software) <code>eManBin <>\<br/>eManBin.Auto</code>. <code>TRUE</code> = All inputs and outputs are<br>set to the state by parameter (software) <code>eManBin =\<br/>eManBin.Auto</code>.</p>                                                                                                                                | SlaveModuleSoftOverwrite |
| Input Const | `eDI16_ManBin`             | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI16Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI16_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI15_ManBin`             | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI15Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI15_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI14_ManBin`             | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI14Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI14_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI13_ManBin`             | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI13Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI13_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI12_ManBin`             | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI12Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI12_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI11_ManBin`             | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI11Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI11_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI10_ManBin`             | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI10Negation`            | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI10_ACVoltageMode`      | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI9_ManBin`              | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI9Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI9_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI8_ManBin`              | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI8Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI8_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI7_ManBin`              | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI7Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI7_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI6_ManBin`              | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI6Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI6_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI5_ManBin`              | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI5Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI5_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI4_ManBin`              | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI4Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI4_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI3_ManBin`              | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI3Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI3_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI2_ManBin`              | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI2Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI2_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `eDI1_ManBin`              | eManBin          | eManBin.Auto | Manual override of the digital input                                                                                                                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `xDI1Negation`             | `BOOL`           | FALSE        | Negation                                                                                                                                                                                                                                                                                                                                                                                                                    |                          |
| Input Const | `xDI1_ACVoltageMode`       | `BOOL`           |              | <p><code>TRUE</code> = Activates a delay of the input with the<br>defined value of <code>tACModeInputVoltageDelay</code>. <code>FALSE</code><br>= No delay</p>                                                                                                                                                                                                                                                              |                          |
| Input Const | `tACModeInputVoltageDelay` | `TIME`           | TIME#100ms   | <p>A change of the signal present on a DI is only<br>recognized after this time has elapsed. (Used only<br>when <code>xDI\<n>\_ACVoltageMode</code> <code>TRUE</code> is)</p>                                                                                                                                                                                                                                               |                          |
| Input Const | `tReadInputs`              | `TIME`           | TIME#1s0ms   | <p>Polling time for digital inputs (Note: The polling time<br>must not be greater than the time of <code>tBusTimeout</code> be.)</p>                                                                                                                                                                                                                                                                                        |                          |
| Input Const | `tBusTimeout`              | `TIME`           | TIME#20s0ms  | `T#0s` = No bus timeout = No SafeState mode                                                                                                                                                                                                                                                                                                                                                                                 |                          |
| Input Const | `usiSlaveID`               | `USINT`          | 10           | The slave address for the module                                                                                                                                                                                                                                                                                                                                                                                            |                          |
| 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/en/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.
