> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/en/hvac-modbusio2-lib/funktionsbausteine/h1_4dior.md).

# H1\_4DIOR

## `H1_4DIOR` (FB)

FUNCTION\_BLOCK H1\_4DIOR EXTENDS SlaveModuleDipSwitchOverwrite 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>, as long as initialization<br>is performed during the first start.</p>                                                                                                                                                                                                                                                                                                                                                                                 | BaseSlave                                                                         |
| Output      | `xInitFinished`                | `BOOL`           |                     | `xInitFinished` is `TRUE`, as soon as all parameters have been sent to the module during the first start.                                                                                                                                                                                                                                                                                                                                                                                                | BaseSlave                                                                         |
| Output      | `xAlarmCom`                    | `BOOL`           |                     | <p><code>xAlarmCom</code> is <code>TRUE</code>, if there is a<br>communication error.</p>                                                                                                                                                                                                                                                                                                                                                                                                                | BaseSlave                                                                         |
| Output      | `xBusy`                        | `BOOL`           |                     | `xBusy` is `TRUE`, when a Modbus request is executed.                                                                                                                                                                                                                                                                                                                                                                                                                                                    | BaseSlave                                                                         |
| Output      | `usiConfiguredSlaveID`         | `USINT`          |                     | Displays the currently set 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>standard 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 (Caution:<br>Autobauding is then enabled again)</p>                                                                                                                                                                                                                                                                                                                                                      | BaseSlaveModule                                                                   |
| Output      | `wFirmware`                    | `WORD`           |                     | Displays the module's current firmware                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | BaseSlaveModule                                                                   |
| Output      | `xAuto`                        | `BOOL`           |                     | <p><code>FALSE</code> = At least one input and/or one output is<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 for each output. )</p>                                                                        | BaseSlaveModule                                                                   |
| Output      | `xAutoSoftware`                | `BOOL`           |                     | <p><code>FALSE</code> = At least one input and/or output is<br>in the state via parameter (software) <code>eManBin <>\<br/>eManBin.Auto</code>. <code>TRUE</code> = All inputs and outputs are<br>in the state via parameter (software) <code>eManBin =\<br/>eManBin.Auto</code>.</p>                                                                                                                                                                                                                    | SlaveModuleSoftOverwrite                                                          |
| Output      | `xAutoHardware`                | `BOOL`           |                     | <p><code>FALSE</code> = At least one input and/or output is<br>in the state via DIP switch (hardware) <code>eManBin <>\<br/>eManBin.Auto</code>. <code>TRUE</code> = All inputs and outputs are<br>in the state via DIP switch (hardware) <code>eManBin =\<br/>eManBin.Auto</code>. (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 for each output. )</p> | SlaveModuleDipSwitchOverwrite                                                     |
| Input       | `xDO1`                         | `BOOL`           |                     | Digital output DO1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                   |
| Input       | `xDO2`                         | `BOOL`           |                     | Digital output DO2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                   |
| Input       | `xDO3`                         | `BOOL`           |                     | Digital output DO3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                   |
| Input       | `xDO4`                         | `BOOL`           |                     | Digital output DO4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                   |
| Input Const | `eDO4_ManBin`                  | eManBin          | eManBin.Auto        | Manual override of the digital output                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                   |
| Input Const | `eDO4_SafeState`               | DOSafeStateMode  | DOSafeStateMode.OFF | State of the output in the event of bus failure                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                   |
| Input Const | `xDO4_DeactivateDipSwitch`     | `BOOL`           | FALSE               | <p><code>TRUE</code> = Hardware manual override of the DIP switch<br>disabled</p>                                                                                                                                                                                                                                                                                                                                                                                                                        | <p><code>FALSE</code> = Hardware manual override of the DIP<br>switch enabled</p> |
| Input Const | `eDO3_ManBin`                  | eManBin          | eManBin.Auto        | Manual override of the digital output                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                   |
| Input Const | `eDO3_SafeState`               | DOSafeStateMode  | DOSafeStateMode.OFF | State of the output in the event of bus failure                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                   |
| Input Const | `xDO3_DeactivateDipSwitch`     | `BOOL`           | FALSE               | <p><code>TRUE</code> = Hardware manual override of the DIP switch<br>disabled</p>                                                                                                                                                                                                                                                                                                                                                                                                                        | <p><code>FALSE</code> = Hardware manual override of the DIP<br>switch enabled</p> |
| Input Const | `eDO2_ManBin`                  | eManBin          | eManBin.Auto        | Manual override of the digital output                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                   |
| Input Const | `eDO2_SafeState`               | DOSafeStateMode  | DOSafeStateMode.OFF | State of the output in the event of bus failure                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                   |
| Input Const | `xDO2_DeactivateDipSwitch`     | `BOOL`           | FALSE               | <p><code>TRUE</code> = Hardware manual override of the DIP switch<br>disabled</p>                                                                                                                                                                                                                                                                                                                                                                                                                        | <p><code>FALSE</code> = Hardware manual override of the DIP<br>switch enabled</p> |
| Input Const | `eDO1_ManBin`                  | eManBin          | eManBin.Auto        | Manual override of the digital output                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                   |
| Input Const | `eDO1_SafeState`               | DOSafeStateMode  | DOSafeStateMode.OFF | State of the output in the event of bus failure                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                   |
| Input Const | `xDO1_DeactivateDipSwitch`     | `BOOL`           | FALSE               | <p><code>TRUE</code> = Hardware manual override of the DIP switch<br>disabled</p>                                                                                                                                                                                                                                                                                                                                                                                                                        | <p><code>FALSE</code> = Hardware manual override of the DIP<br>switch enabled</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 | `xUseSafeStateValueBeforeInit` | `BOOL`           | TRUE                |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                   |
| Input Const | `tACModeInputVoltageDelay`     | `TIME`           | TIME#100ms          | <p>A change in the signal applied to a DI is only<br>recognized after this time has elapsed. (Only used<br>when <code>xDI1\_ACVoltageMode</code> <code>TRUE</code> is,<br><code>xDI2\_ACVoltageMode</code> <code>TRUE</code> is, <code>xDI3\_ACVoltageMode</code><br><code>TRUE</code> is or <code>xDI4\_ACVoltageMode</code> <code>TRUE</code> )</p>                                                                                                                                                    |                                                                                   |
| Input Const | `tReadFeedback`                | `TIME`           | TIME#5s0ms          | <p>Polling time for feedback from the digital inputs and the<br>manual override. (Note: The polling time must not<br>be greater than the time of <code>tBusTimeout</code> be.)</p>                                                                                                                                                                                                                                                                                                                       |                                                                                   |
| Input Const | `tSendDelayAfterInit`          | `TIME`           | TIME#0ms            | Delay for sending the outputs                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |                                                                                   |
| 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 safe state mode                                                                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                   |
| Input Const | `usiSlaveID`                   | `USINT`          | 10                  | The slave address for the module                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |                                                                                   |
| Output      | `xDI1`                         | `BOOL`           |                     | <p>Digital input (polling takes place at the interval of the specified<br>time of <code>tReadInputs</code>)</p>                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                   |
| Output      | `xDI2`                         | `BOOL`           |                     | <p>Digital input (polling takes place at the interval of the specified<br>time of <code>tReadInputs</code>)</p>                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                   |
| Output      | `xDI3`                         | `BOOL`           |                     | <p>Digital input (polling takes place at the interval of the specified<br>time of <code>tReadInputs</code>)</p>                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                   |
| Output      | `xDI4`                         | `BOOL`           |                     | <p>Digital input (polling takes place at the interval of the specified<br>time of <code>tReadInputs</code>)</p>                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                   |
| Output      | `xDO1_Fb`                      | `BOOL`           |                     | <p>Feedback of the digital output DO1. Takes into account the<br>evaluation of the manual override. Actual value - LED<br>active = <code>TRUE</code>, LED inactive = <code>FALSE</code> (Polling takes place<br>at the interval of the specified time of <code>tReadFeedback</code>)</p>                                                                                                                                                                                                                 |                                                                                   |
| Output      | `xDO2_Fb`                      | `BOOL`           |                     | <p>Feedback of the digital output DO2. Takes into account the<br>evaluation of the manual override. Actual value - LED<br>active = <code>TRUE</code>, LED inactive = <code>FALSE</code> (Polling takes place<br>at the interval of the specified time of <code>tReadFeedback</code>)</p>                                                                                                                                                                                                                 |                                                                                   |
| Output      | `xDO3_Fb`                      | `BOOL`           |                     | <p>Feedback of the digital output DO3. Takes into account the<br>evaluation of the manual override. Actual value - LED<br>active = <code>TRUE</code>, LED inactive = <code>FALSE</code> (Polling takes place<br>at the interval of the specified time of <code>tReadFeedback</code>)</p>                                                                                                                                                                                                                 |                                                                                   |
| Output      | `xDO4_Fb`                      | `BOOL`           |                     | <p>Feedback of the digital output DO4. Takes into account the<br>evaluation of the manual override. Actual value - LED<br>active = <code>TRUE</code>, LED inactive = <code>FALSE</code> (Polling takes place<br>at the interval of the specified time of <code>tReadFeedback</code>)</p>                                                                                                                                                                                                                 |                                                                                   |
| Output      | `eAOO1`                        | eManBin          |                     | <p>Manual - switch position (A)uto (O)ff (O)n (Polling takes place<br>at the interval of the specified time of <code>tReadFeedback</code>)</p>                                                                                                                                                                                                                                                                                                                                                           |                                                                                   |
| Output      | `eAOO2`                        | eManBin          |                     | <p>Manual - switch position (A)uto (O)ff (O)n (Polling takes place<br>at the interval of the specified time of <code>tReadFeedback</code>)</p>                                                                                                                                                                                                                                                                                                                                                           |                                                                                   |
| Output      | `eAOO3`                        | eManBin          |                     | <p>Manual - switch position (A)uto (O)ff (O)n (Polling takes place<br>at the interval of the specified time of <code>tReadFeedback</code>)</p>                                                                                                                                                                                                                                                                                                                                                           |                                                                                   |
| Output      | `eAOO4`                        | eManBin          |                     | <p>Manual - switch position (A)uto (O)ff (O)n (Polling takes place<br>at the interval of the specified time of <code>tReadFeedback</code>)</p>                                                                                                                                                                                                                                                                                                                                                           |                                                                                   |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-modbusio2-lib/funktionsbausteine/h1_4dior.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
