> 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="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2F7wg1uSdhYHmg6mNq2Bku%2FPOWERIO_T1_R100_UX_XXX.png?alt=media&amp;token=9dc575ef-4119-4acb-9ebc-b45412125fad" 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 control signals

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

### Guidelines - Software creation

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>State update (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> resp.<br>e<code>ErrorCodeDev</code> to the fault-free state (at each<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 of 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` |         | Client of the device |

#### 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`                                  |                                                   | Display whether the sensors must be adjusted in the device ( TRUE = adjustment required in the device, FALSE = adjustment required in the FB ) |
| Output | `wTypeID`             | `WORD`                                  |                                                   | Device identification                                                                                                                          |
| Output | `wFirmwareVer`        | `WORD`                                  |                                                   | Firmware version of the device                                                                                                                 |
| Output | `xAlarm`              | `BOOL`                                  | FALSE                                             | Collective fault (TRUE = fault)                                                                                                                |
| Output | `xAlarmCom`           | `BOOL`                                  | FALSE                                             | Collective 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                                                        | Enable / disable 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                                                        | Enable / disable 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, influence: 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, influence: 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, influence: 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, influence: 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, influence: 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, influence: 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, influence: 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, influence: 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 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 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 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 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 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 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 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 output stIOX\[1].xDI\_Out                                                                                                                                                                                                                                                                            |
| Input Const | rAO8\_SafeState\_Sta  | REAL                                             | 0.0                                                      | State of analog output 8 in Safestate mode, 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 Safestate mode, 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 Safestate mode, 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 Safestate mode, 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 Safestate mode, 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 Safestate mode, 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 Safestate mode, 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 Safestate mode, 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 Safestate mode ( FALSE = Off )                                                                                                                                                                                                                                                            |
| Input Const | xDO1\_SafeState\_Sta  | BOOL                                             | FALSE                                                    | State of digital output 1 in Safestate mode ( FALSE = Off )                                                                                                                                                                                                                                                            |
| Input Const | xAO8\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of analog output 8 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                               |
| Input Const | xAO7\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of analog output 7 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                               |
| Input Const | xAO6\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of analog output 6 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                               |
| Input Const | xAO5\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of analog output 5 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                               |
| Input Const | xAO4\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of analog output 4 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                               |
| Input Const | xAO3\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of analog output 3 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                               |
| Input Const | xAO2\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of analog output 2 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                               |
| Input Const | xAO1\_SfaeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of analog output 1 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                               |
| Input Const | xAO1\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of analog output 1 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                               |
| Input Const | xDO2\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of digital output 2 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                              |
| Input Const | xDO1\_SafeState\_En   | BOOL                                             | FALSE                                                    | Enable / disable of digital output 1 for Safestate mode ( TRUE = enable )                                                                                                                                                                                                                                              |
| Input Const | eDIO8\_Mode           | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE        | POWERIO\_T1\_R100\_UX\_XXX\_CHANNEL\_MODE.UNUSED         | Operating mode of 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 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 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 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 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 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 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 input / output DIO1                                                                                                                                                                                                                                                                                  |
| Input Const | `tTimeSafeState`      | `TIME`                                           | TIME#60s                                                 | Duration for activation of the 'Safestate' state in the event of communication failure ( integer multiples of 1s, Default: 60s, Maximum: 65535s )                                                                                                                                                                      |
| Input Const | `tTimeMinChangeValue` | `TIME`                                           | TIME#0s                                                  | Minimum duration before the transmission of 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 input 'xUpdateSetp'                                                                                                                                                                                                                                                      |
| Input Const | `tTimeUpdateInfo`     | `TIME`                                           | TIME#1h                                                  | Update interval for the processes affected by input 'xUpdateInfo'                                                                                                                                                                                                                                                      |
| Input Const | `tTimeUpdateStates`   | `TIME`                                           | TIME#500ms                                               | Update interval for the processes affected by input 'xUpdateStates'                                                                                                                                                                                                                                                    |
| Input Const | `tTimeUpdateActual`   | `TIME`                                           | TIME#3s                                                  | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateActual</code> influenced</p>                                                                                                                                                                                                    |

### Functional description

#### General

This function block controls two digital outputs DO1 and DO2 ( relays, common root ) 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 each 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\
different 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        | Operating mode of the channel                                                                                    |
| 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 connecting a temperature-dependent resistor in XX.X degrees Celsius                             |
| rAI\_Resistance       | REAL                                             | Actual value of resistance measurement in ohms                                                                   |
| rAI\_Volts            | REAL                                             | Actual value of voltage measurement in XX.XXX volts                                                              |
| rAI\_Milliamperes     | REAL                                             | Actual value of 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    | Reliability status of the channel                                                                                |
| dwCounter             | DWORD                                            | Actual value of the digital input counter                                                                        |

#### Digital outputs DO1 and DO2

The current state of the outputs is determined by the state of the respective inputs xDO1 or xDO2\
The current states of the outputs are displayed at 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 )', safestate mode can be activated (= TRUE ); if communication is interrupted for more than 'tTimeSafeState', the output assumes a state defined in parameter ''xDOX\_SafeState\_Sta ( X = 1 - 2 )'. The transition to normal operation occurs as soon as communication is restored.

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

The outputs can be operated depending on the channel mode as voltage ( 0.0 - +10.0V ) or current output ( 0.0 - +20.0mA ). The respective parameter 'eAOX\_Mode'\
determines 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%.\
In the structure variable, the outputs 'rAO\_Volts\_Fb' or 'rAO\_Milliamperes\_Fb' are available as feedback of the actual state of the analog output.\
With the parameters 'xAOX\_SafeState\_En ( X = 1 - 8 )' safestate mode can be activated (= TRUE ); if communication is interrupted for more than 'tTimeSafeState', the output assumes a state defined in parameter ''rAOX\_SafeState\_Sta ( X = 1 - 8 )'. The transition to normal operation occurs as soon as communication is restored.

#### 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 set in cyclic sampling using 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 an active supply from 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 on every rising edge  | Pulse duration = 'tTimeDI\_Pulse' |
| FALLING\_EDGE         | Pulse on every falling edge | Pulse duration = 'tTimeDI\_Pulse' |
| RISING\_FALLING\_EDGE | Pulse on every edge         | Pulse duration = 'tTimeDI\_Pulse' |

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

The inputs can be used depending on the channel mode as inputs for measuring a resistance, for measuring a temperature by means of 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 measurements, 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 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-modbus-library/functionblocks/powerio/powerio_t1_r100_8di_full-1.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.
