> 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-modbus-library/functionblocks/powerio/powerio_t1_r100_8di_full-1.md).

# POWERIO\_T1\_R100\_UX\_XXX

## `POWERIO_T1_R100_UX_XXX` (FB)

`FUNCTION_BLOCK` POWERIO\_T1\_R100\_UX\_XXX

### Representation

<figure><img src="/files/759b91fb9c86c03051138df0bc0ce7fe8550e9a6" alt=""><figcaption></figcaption></figure>

### Short description

> Control of the device series T1\_R100\_UX\_XXX ( 24V, 230V ) from powerIO.
>
> Typical application: Collection of sensor data, control with analog actuating signals

> Control of the device series T1\_R100\_UX\_XXX ( 24V, 230V ) from powerIO.
>
> Typical application: Collection of sensor data, control with analog actuating signals

### Guidelines - Software development

Parameters 'tTimeUpdateStates' and 'tTimeDI\_Pulse':\
Reliable detection of rising / falling edges at the digital inputs\
DI1 - DI8 is only guaranteed if the following condition is met::\
'tTimeUpdateStates' > 'tTimeDI\_Pulse'

Measured values - adjustment: Class 4

### Interfaces

#### Inputs

| Scope | Name            | Type   | Initial | Comment                                                                                                                                              |
| ----- | --------------- | ------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input | `xEn`           | `BOOL` | TRUE    | Enable / disable communication (TRUE = enable)                                                                                                       |
| Input | `byUnitId`      | `BYTE` | 0       | Address of the device                                                                                                                                |
| Input | `xUpdateActual` | `BOOL` | FALSE   | <p>Update of actual values (on every rising edge<br>)</p>                                                                                            |
| Input | `xUpdateStates` | `BOOL` | FALSE   | <p>Update of states (on every rising edge<br>)</p>                                                                                                   |
| Input | `xUpdateInfo`   | `BOOL` | FALSE   | <p>Update of information (on every rising edge<br>)</p>                                                                                              |
| Input | `xUpdateSetp`   | `BOOL` | FALSE   | <p>Update of setpoints (on every rising edge<br>)</p>                                                                                                |
| Input | `xResError`     | `BOOL` | FALSE   | <p>Reinitialization of the outputs <code>eErrorCodeCom</code> or<br>e<code>ErrorCodeDev</code> to the fault-free state (on every<br>rising edge)</p> |
| Input | rAO1            | REAL   | 0.0     | Control signal for analog output 1 ( 0.0 - 100.0% = 0.0 - 10.000 V or 0.0 - 20.000 mA depending on operating mode )                                  |
| Input | rAO2            | REAL   | 0.0     | Control signal for analog output 2 ( 0.0 - 100.0% = 0.0 - 10.000 V or 0.0 - 20.000 mA depending on operating mode )                                  |
| Input | rAO3            | REAL   | 0.0     | Control signal for analog output 3 ( 0.0 - 100.0% = 0.0 - 10.000 V or 0.0 - 20.000 mA depending on operating mode )                                  |
| Input | rAO4            | REAL   | 0.0     | Control signal for analog output 4 ( 0.0 - 100.0% = 0.0 - 10.000 V or 0.0 - 20.000 mA depending on operating mode )                                  |
| Input | rAO5            | REAL   | 0.0     | Control signal for analog output 5 ( 0.0 - 100.0% = 0.0 - 10.000 V or 0.0 - 20.000 mA depending on operating mode )                                  |
| Input | rAO6            | REAL   | 0.0     | Control signal for analog output 6 ( 0.0 - 100.0% = 0.0 - 10.000 V or 0.0 - 20.000 mA depending on operating mode )                                  |
| Input | rAO7            | REAL   | 0.0     | Control signal for analog output 7 ( 0.0 - 100.0% = 0.0 - 10.000 V or 0.0 - 20.000 mA depending on operating mode )                                  |
| Input | rAO8            | REAL   | 0.0     | Control signal for analog output 8 ( 0.0 - 100.0% = 0.0 - 10.000 V or 0.0 - 20.000 mA depending on operating mode )                                  |
| Input | xDO1            | BOOL   | FALSE   | Definition of the state of digital output 1 (relay) ( FALSE = Off )                                                                                  |
| Input | xDO2            | BOOL   | FALSE   | Definition of the state of the digital output (relay) ( FALSE = Off )                                                                                |
| Input | xEnLedTest      | BOOL   | FALSE   | Enable / disable the LED test ( TRUE = enable )                                                                                                      |
| Input | xSendSysCommand | BOOL   | FALSE   | Activation of the transmission of the system command ( Register 5656 ) ( on every rising edge AND wSysCommand > 0 )                                  |

#### Inputs/Outputs

| Scope | Name           | Type               | Initial | Comment       |
| ----- | -------------- | ------------------ | ------- | ------------- |
| Inout | `ModbusClient` | `ModbusClientBase` |         | Device client |

#### Outputs

| Scope  | Name                  | Type                                    | Initial                                           | Comment                                                                                                                                                         |
| ------ | --------------------- | --------------------------------------- | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Output | stIOX                 | POWERIO\_T1\_R100\_UX\_XXX\_IO          |                                                   | Structure variable with the data of the 8 inputs/outputs                                                                                                        |
| Output | `xDO1_Fb`             | `BOOL`                                  |                                                   | State of digital output DO1 ( FALSE = Off )                                                                                                                     |
| Output | `xDO2_Fb`             | `BOOL`                                  |                                                   | State of digital output DO2 ( FALSE = Off )                                                                                                                     |
| Output | xSensorOffsetInDevice | `BOOL`                                  |                                                   | Indication whether the sensor calibration must be performed in the device ( TRUE = calibration required in the device, FALSE = calibration required in the FB ) |
| Output | `wTypeID`             | `WORD`                                  |                                                   | Device identification                                                                                                                                           |
| Output | `wFirmwareVer`        | `WORD`                                  |                                                   | Firmware version of the device                                                                                                                                  |
| Output | `xAlarm`              | `BOOL`                                  | FALSE                                             | General fault (TRUE = fault)                                                                                                                                    |
| Output | `xAlarmCom`           | `BOOL`                                  | FALSE                                             | General fault - communication (TRUE = fault)                                                                                                                    |
| Output | `eErrorCodeCom`       | ModbusErrorCode                         |                                                   | Error code - communication (0 = no error)                                                                                                                       |
| Output | `eErrorCodeDev`       | POWERIO\_T1\_R100\_UX\_XXX\_ERROR\_CODE | POWERIO\_T1\_R100\_UX\_XXX\_ERROR\_CODE.NO\_ERROR | Error code - device (0 = no error)                                                                                                                              |
| Output | `xBusy`               | `BOOL`                                  |                                                   | Communication indicator (TRUE = communication)                                                                                                                  |

#### Parameter

| Scope       | Name                  | Type                                             | Initial                                                  | Comment                                                                                                                                                                                                                                                                                                                      |
| ----------- | --------------------- | ------------------------------------------------ | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input Const | `wSysCommand`         | `WORD`                                           | 0                                                        | <p>Value of the system command to be transmitted (Register 5656<br>) (0 = no command, values > 0 see documentation<br>T1\_R100\_UX\_XXX)</p>                                                                                                                                                                                 |
| Input Const | wAIX\_LoopPowered     | `WORD`                                           | 0                                                        | Activation / deactivation of the supply for analog inputs, eDIOX\_Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_INPUT\_MILLIAMPERES, Bit 0 = DI1, Bit 7 = DI8, FALSE = OFF, TRUE = ON                                                                                                                             |
| Input Const | wDIX\_LoopPowered     | `WORD`                                           | 0                                                        | Activation / deactivation of the supply for digital inputs, eDIOX\_Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.BINARY\_INPUT, eDIOX\_Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.BINARY\_INPUT\_COUNTER, Bit 0 = DI1, Bit 7 = DI8, FALSE = OFF, TRUE = ON                                                          |
| Input Const | rAI8\_Offset          | REAL                                             | 0.0                                                      | Constant measured value offset for the transmitted analog actual value 8, effect: outputs 'stIOX\[8].rAITemp', 'stIOX\[8].rAIResistance', 'stIOX\[8].rAIVolts' and 'stIOX\[8].rAIMilliamperes'                                                                                                                               |
| Input Const | rAI7\_Offset          | REAL                                             | 0.0                                                      | Constant measured value offset for the transmitted analog actual value 7, effect: outputs 'stIOX\[7].rAITemp', 'stIOX\[7].rAIResistance', 'stIOX\[7].rAIVolts' and 'stIOX\[7].rAIMilliamperes'                                                                                                                               |
| Input Const | rAI6\_Offset          | REAL                                             | 0.0                                                      | Constant measured value offset for the transmitted analog actual value 6, effect: outputs 'stIOX\[6].rAITemp', 'stIOX\[6].rAIResistance', 'stIOX\[6].rAIVolts' and 'stIOX\[6].rAIMilliamperes'                                                                                                                               |
| Input Const | rAI5\_Offset          | REAL                                             | 0.0                                                      | Constant measured value offset for the transmitted analog actual value 5, effect: outputs 'stIOX\[5].rAITemp', 'stIOX\[5].rAIResistance', 'stIOX\[5].rAIVolts' and 'stIOX\[5].rAIMilliamperes'                                                                                                                               |
| Input Const | rAI4\_Offset          | REAL                                             | 0.0                                                      | Constant measured value offset for the transmitted analog actual value 4, effect: outputs 'stIOX\[4].rAITemp', 'stIOX\[4].rAIResistance', 'stIOX\[4].rAIVolts' and 'stIOX\[4].rAIMilliamperes'                                                                                                                               |
| Input Const | rAI3\_Offset          | REAL                                             | 0.0                                                      | Constant measured value offset for the transmitted analog actual value 3, effect: outputs 'stIOX\[3].rAITemp', 'stIOX\[3].rAIResistance', 'stIOX\[3].rAIVolts' and 'stIOX\[3].rAIMilliamperes'                                                                                                                               |
| Input Const | rAI2\_Offset          | REAL                                             | 0.0                                                      | Constant measured value offset for the transmitted analog actual value 2, effect: outputs 'stIOX\[2].rAITemp', 'stIOX\[2].rAIResistance', 'stIOX\[2].rAIVolts' and 'stIOX\[2].rAIMilliamperes'                                                                                                                               |
| Input Const | rAI1\_Offset          | REAL                                             | 0.0                                                      | Constant measured value offset for the transmitted analog actual value 1, effect: outputs 'stIOX\[1].rAITemp', 'stIOX\[1].rAIResistance', 'stIOX\[1].rAIVolts' and 'stIOX\[8].rAIMilliamperes'                                                                                                                               |
| Input Const | `tTimeDI_Pulse`       | `TIME`                                           | TIME#250ms                                               | Common pulse duration for the outputs stIOX\[X].xDI\_Out                                                                                                                                                                                                                                                                     |
| Input Const | aAO8\_Mode            | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE.PERCENT | Interpretation of the input signal at input rAO8                                                                                                                                                                                                                                                                             |
| Input Const | aAO7\_Mode            | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE.PERCENT | Interpretation of the input signal at input rAO7                                                                                                                                                                                                                                                                             |
| Input Const | aAO6\_Mode            | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE.PERCENT | Interpretation of the input signal at input rAO6                                                                                                                                                                                                                                                                             |
| Input Const | aAO5\_Mode            | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE.PERCENT | Interpretation of the input signal at input rAO5                                                                                                                                                                                                                                                                             |
| Input Const | aAO4\_Mode            | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE.PERCENT | Interpretation of the input signal at input rAO4                                                                                                                                                                                                                                                                             |
| Input Const | aAO3\_Mode            | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE.PERCENT | Interpretation of the input signal at input rAO3                                                                                                                                                                                                                                                                             |
| Input Const | aAO2\_Mode            | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE.PERCENT | Interpretation of the input signal at input rAO2                                                                                                                                                                                                                                                                             |
| Input Const | aAO1\_Mode            | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE.PERCENT | Interpretation of the input signal at input rAO1                                                                                                                                                                                                                                                                             |
| Input Const | `eDI8_Mode`           | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE             | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE.DIGITAL\_INPUT      | Operating mode of the output stIOX\[8].xDI\_Out                                                                                                                                                                                                                                                                              |
| Input Const | `eDI7_Mode`           | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE             | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE.DIGITAL\_INPUT      | Operating mode of the output stIOX\[7].xDI\_Out                                                                                                                                                                                                                                                                              |
| Input Const | `eDI6_Mode`           | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE             | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE.DIGITAL\_INPUT      | Operating mode of the output stIOX\[6].xDI\_Out                                                                                                                                                                                                                                                                              |
| Input Const | `eDI5_Mode`           | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE             | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE.DIGITAL\_INPUT      | Operating mode of the output stIOX\[5].xDI\_Out                                                                                                                                                                                                                                                                              |
| Input Const | `eDI4_Mode`           | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE             | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE.DIGITAL\_INPUT      | Operating mode of the output stIOX\[4].xDI\_Out                                                                                                                                                                                                                                                                              |
| Input Const | `eDI3_Mode`           | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE             | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE.DIGITAL\_INPUT      | Operating mode of the output stIOX\[3].xDI\_Out                                                                                                                                                                                                                                                                              |
| Input Const | `eDI2_Mode`           | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE             | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE.DIGITAL\_INPUT      | Operating mode of the output stIOX\[2].xDI\_Out                                                                                                                                                                                                                                                                              |
| Input Const | `eDI1_Mode`           | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE             | POWERIO\_T1\_R100\_UX\_XXX\_DI\_MODE.DIGITAL\_INPUT      | Operating mode of the output stIOX\[1].xDI\_Out                                                                                                                                                                                                                                                                              |
| Input Const | rAO8\_SafeState\_Sta  | REAL                                             | 0.0                                                      | State of analog output 8 in safe-state operation, eAO8\_Mode = PERCENT: 0.0 - 100.0%, eAO8\_Mode = RAW: 0.0 - 10.000V (eDIO8.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_VOLTS), eAO8\_Mode = RAW: 0.0 - 20.000mA (eDIO8.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_MILLIAMPERES) |
| Input Const | rAO7\_SafeState\_Sta  | REAL                                             | 0.0                                                      | State of analog output 7 in safe-state operation, eAO7\_Mode = PERCENT: 0.0 - 100.0%, eAO7\_Mode = RAW: 0.0 - 10.000V (eDIO7.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_VOLTS), eAO7\_Mode = RAW: 0.0 - 20.000mA (eDIO7.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_MILLIAMPERES) |
| Input Const | rAO6\_SafeState\_Sta  | REAL                                             | 0.0                                                      | State of analog output 6 in safe-state operation, eAO6\_Mode = PERCENT: 0.0 - 100.0%, eAO6\_Mode = RAW: 0.0 - 10.000V (eDIO6.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_VOLTS), eAO6\_Mode = RAW: 0.0 - 20.000mA (eDIO6.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_MILLIAMPERES) |
| Input Const | rAO5\_SafeState\_Sta  | REAL                                             | 0.0                                                      | State of analog output 5 in safe-state operation, eAO5\_Mode = PERCENT: 0.0 - 100.0%, eAO5\_Mode = RAW: 0.0 - 10.000V (eDIO5.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_VOLTS), eAO5\_Mode = RAW: 0.0 - 20.000mA (eDIO5.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_MILLIAMPERES) |
| Input Const | rAO4\_SafeState\_Sta  | REAL                                             | 0.0                                                      | State of analog output 4 in safe-state operation, eAO4\_Mode = PERCENT: 0.0 - 100.0%, eAO4\_Mode = RAW: 0.0 - 10.000V (eDIO4.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_VOLTS), eAO4\_Mode = RAW: 0.0 - 20.000mA (eDIO4.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_MILLIAMPERES) |
| Input Const | rAO3\_SafeState\_Sta  | REAL                                             | 0.0                                                      | State of analog output 3 in safe-state operation, eAO3\_Mode = PERCENT: 0.0 - 100.0%, eAO3\_Mode = RAW: 0.0 - 10.000V (eDIO3.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_VOLTS), eAO3\_Mode = RAW: 0.0 - 20.000mA (eDIO3.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_MILLIAMPERES) |
| Input Const | rAO2\_SafeState\_Sta  | REAL                                             | 0.0                                                      | State of analog output 2 in safe-state operation, eAO2\_Mode = PERCENT: 0.0 - 100.0%, eAO2\_Mode = RAW: 0.0 - 10.000V (eDIO2.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_VOLTS), eAO2\_Mode = RAW: 0.0 - 20.000mA (eDIO2.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_MILLIAMPERES) |
| Input Const | rAO1\_SafeState\_Sta  | REAL                                             | 0.0                                                      | State of analog output 1 in safe-state operation, eAO1\_Mode = PERCENT: 0.0 - 100.0%, eAO1\_Mode = RAW: 0.0 - 10.000V (eDIO1.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_VOLTS), eAO1\_Mode = RAW: 0.0 - 20.000mA (eDIO1.Mode = POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.ANALOG\_OUTPUT\_MILLIAMPERES) |
| Input Const | xDO2\_SafeState\_Sta  | BOOL                                             | FALSE                                                    | State of digital output 2 in safe-state operation ( FALSE = Off )                                                                                                                                                                                                                                                            |
| Input Const | xDO1\_SafeState\_Sta  | BOOL                                             | FALSE                                                    | State of digital output 1 in safe-state operation ( FALSE = Off )                                                                                                                                                                                                                                                            |
| Input Const | xAO8\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable analog output 8 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                  |
| Input Const | xAO7\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable analog output 7 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                  |
| Input Const | xAO6\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable analog output 6 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                  |
| Input Const | xAO5\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable analog output 5 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                  |
| Input Const | xAO4\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable analog output 4 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                  |
| Input Const | xAO3\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable analog output 3 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                  |
| Input Const | xAO2\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable analog output 2 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                  |
| Input Const | xAO1\_SfaeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable analog output 1 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                  |
| Input Const | xAO1\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable analog output 1 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                  |
| Input Const | xDO2\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable digital output 2 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                 |
| Input Const | xDO1\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable digital output 1 for safe-state operation ( TRUE = enable )                                                                                                                                                                                                                                                 |
| Input Const | eDIO8\_Mode           | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE        | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.UNUSED         | Operating mode of the input/output DIO8                                                                                                                                                                                                                                                                                      |
| Input Const | eDIO7\_Mode           | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE        | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.UNUSED         | Operating mode of the input/output DIO7                                                                                                                                                                                                                                                                                      |
| Input Const | eDIO6\_Mode           | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE        | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.UNUSED         | Operating mode of the input/output DIO6                                                                                                                                                                                                                                                                                      |
| Input Const | eDIO5\_Mode           | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE        | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.UNUSED         | Operating mode of the input/output DIO5                                                                                                                                                                                                                                                                                      |
| Input Const | eDIO4\_Mode           | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE        | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.UNUSED         | Operating mode of the input/output DIO4                                                                                                                                                                                                                                                                                      |
| Input Const | eDIO3\_Mode           | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE        | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.UNUSED         | Operating mode of the input/output DIO3                                                                                                                                                                                                                                                                                      |
| Input Const | eDIO2\_Mode           | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE        | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.UNUSED         | Operating mode of the input/output DIO2                                                                                                                                                                                                                                                                                      |
| Input Const | eDIO1\_Mode           | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE        | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.UNUSED         | Operating mode of the input/output DIO1                                                                                                                                                                                                                                                                                      |
| Input Const | `tTimeSafeState`      | `TIME`                                           | TIME#60s                                                 | Duration for activating the 'Safe state' condition in case of communication failure ( integer multiples of 1s, default: 60s, maximum: 65535s )                                                                                                                                                                               |
| Input Const | `tTimeMinChangeValue` | `TIME`                                           | TIME#0s                                                  | Minimum duration before transmitting a setpoint due to a detected value change 0 = no minimum duration, > 0 = minimum duration active                                                                                                                                                                                        |
| Input Const | `tTimeUpdateSetp`     | `TIME`                                           | TIME#45s                                                 | Update interval for the processes affected by the input 'xUpdateSetp'                                                                                                                                                                                                                                                        |
| Input Const | `tTimeUpdateInfo`     | `TIME`                                           | TIME#1h                                                  | Update interval for the processes affected by the input 'xUpdateInfo'                                                                                                                                                                                                                                                        |
| Input Const | `tTimeUpdateStates`   | `TIME`                                           | TIME#500ms                                               | Update interval for the processes affected by the input 'xUpdateStates'                                                                                                                                                                                                                                                      |
| Input Const | `tTimeUpdateActual`   | `TIME`                                           | TIME#3s                                                  | <p>Update interval for the processes affected by the input<br><code>xUpdateActual</code> affected by</p>                                                                                                                                                                                                                     |

### Function description

#### General

This function block controls two digital outputs DO1 and DO2 ( relay, common terminal ) and 8 combined inputs/outputs. The general operating mode of the 8 inputs/outputs is defined with the respective assigned parameter 'eDIOX\_Mode' ( X = 1 - 8 ). They can be operated independently of one another as analog outputs ( 0 - 10.0V, 0 - 20.0mA ), as analog inputs ( 0 - 10.0V, 0 - 20.0mA ), as inputs for resistance measurement and as inputs for temperature measurement with various stored characteristic curves.\
\
The structure variable 'stIOX'' provides a large number of outputs for operation for each of these 8 inputs/outputs:

#### Table

| Name                  | Data type                                        | Function                                                                                                         |
| --------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
| eChannelMode          | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE        | Channel operating mode                                                                                           |
| xChannelModeValid     | BOOL                                             | Validity of the channel operating mode, i.e. it was read correctly from the device                               |
| eAnalogOutputMode     | POWERIO\_T1\_R100\_UX\_XXX\_ANALOG\_OUTPUT\_MODE | Selection of the input signal for the analog output                                                              |
| rAI\_Offset           | REAL                                             | Constant measured value offset for the transmitted analog actual value                                           |
| rAI\_Temp             | REAL                                             | Temperature when a temperature-dependent resistor is connected in XX.X degrees Celsius                           |
| rAI\_Resistance       | REAL                                             | Actual value of the resistance measurement in ohms                                                               |
| rAI\_Volts            | REAL                                             | Actual value of the voltage measurement in XX.XXX volts                                                          |
| rAI\_Milliamperes     | REAL                                             | Actual value of the current measurement in XX.XXX milliamperes                                                   |
| rAO\_Volts\_Fb        | REAL                                             | Feedback of the actual value of the analog output in XX.XXX volts                                                |
| rAO\_Milliamperes\_Fb | REAL                                             | Feedback of the actual value of the analog output in XX.XXX milliamperes                                         |
| xDI                   | BOOL                                             | Actual state value of the digital input                                                                          |
| xDI\_Out              | BOOL                                             | Output for the digital input, function depending on parameter 'eDIX\_Mode'                                       |
| xXI\_Change           | BOOL                                             | Flag indicating value changes at input XI ( DI, AI ) ( TRUE = change ), reset to FALSE after each read operation |
| eReliability          | POWERIO\_T1\_R100\_UX\_XXX\_RELIABILITY\_CODE    | Channel reliability status                                                                                       |
| dwCounter             | DWORD                                            | Actual value of the counter reading of the digital input                                                         |

#### Digital outputs DO1 and DO2

The current state of the outputs is defined by the state of the respective inputs xDO1 or xDO2.\
The current states of the outputs are shown at the outputs xDO1\_Fb or xDO2\_Fb.\
Manual override is not possible. In the TRUE state, the respective relay is energized (= pulled in). With the parameters 'xDOX\_SafeState\_En ( X = 1 - 2 ) the Safe-State mode can be activated (= TRUE ); if communication is interrupted for more than 'tTimeSafeState', the output assumes a state defined in the parameter ''xDOX\_SafeState\_Sta ( X = 1 - 2 ). The transition to normal operation occurs as soon as communication is uninterrupted again.

#### Analog outputs `AOX ( X = 1 - 8 )`

Depending on the channel operating mode, the outputs can be operated as voltage output ( 0.0 - +10.0V ) or current output ( 0.0 - +20.0mA ). The respective parameter 'eAOX\_Mode'\
defines whether the input 'rAOX' is interpreted as a raw value ( = RAW ) in the respective range ( 0.0 - +10.0V ) or\
( 0.0 - +20.0mA ) or as a percentage value ( = PERCENT ) in the range 0.0 - 100.0%.\
The structure variable provides the outputs 'rAO\_Volts\_Fb' and 'rAO\_Milliamperes\_Fb' as feedback of the actual state of the analog output.\
With the parameters 'xAOX\_SafeState\_En ( X = 1 - 8 ) the Safe-State mode can be activated ( = TRUE ); if communication is interrupted for more than 'tTimeSafeState', the output assumes a state defined in the parameter ''rAOX\_SafeState\_Sta ( X = 1 - 8 ). The transition to normal operation occurs as soon as communication is uninterrupted again.

#### Digital inputs `DIX ( X = 1 - 8 )`

The current states of the digital inputs are available in the respective structure variable 'xDI'. The sampling rate is defined for cyclic sampling by means of the parameter 'tTimeUpdateStates'. Depending on the selected operating mode, rising edges can increase the respective counter value 'dwCounter'; resetting the counters is currently not provided. The digital inputs can be operated with active supply by the device ( 'wDIX\_LoopPowered', Bit 0 for DI1, Bit 1 for DI2, ... , Bit 7 for DI8, TRUE = supply active ). The operating mode of the structure variable 'xDI\_Out' is defined by the parameter 'eDIX\_Mode':

| Name                  | Function                    | Comment                           |
| --------------------- | --------------------------- | --------------------------------- |
| DIGITAL\_INPUT        | xDI\_Out = xDI              |                                   |
| RISING\_EDGE          | Pulse at every rising edge  | Pulse duration = 'tTimeDI\_Pulse' |
| FALLING\_EDGE         | Pulse at every falling edge | Pulse duration = 'tTimeDI\_Pulse' |
| RISING\_FALLING\_EDGE | Pulse at every edge         | Pulse duration = 'tTimeDI\_Pulse' |

#### Analog inputs `AIX ( X = 1 - 8 )`

Depending on the channel operating mode, the inputs can be used as inputs for resistance measurement, for temperature measurement using a temperature-dependent resistor in combination with a stored characteristic curve, as an analog current input ( 0.0 - +20.0mA ) or as an analog voltage input ( 0.0 - + 10.0V ). The actual values are then available in the structure variables 'rAI\_Resistance' , 'rAI\_Temp' , 'rAI\_Milliamperes's' or 'rAI\_Volts'. For temperature measurements, a constant measured value offset ( 'rAI\_Offset' ) can be added. The reliability of the measurements is indicated by the variable 'eReliability'.\
For current measurement, active supply can be provided by the device) ( 'wAIX\_LoopPowered', Bit 0 for AI1, Bit 1 for AI2, ... , Bit 7 for AI8, TRUE = supply active ).


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/powerio/powerio_t1_r100_8di_full-1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
