# POWERIO\_T1\_R100\_8DI\_EASY

## `POWERIO_T1_R100_8DI_EASY` (FB)

FUNCTION\_BLOCK POWERIO\_T1\_R100\_8DI\_EASY

InOut:

| Scope       | Name                | Type                                | Initial                                         | Comment                                                                                                                                          |
| ----------- | ------------------- | ----------------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| Input       | `xEn`               | `BOOL`                              | TRUE                                            | Enable / disable of communication ( TRUE = enabled )                                                                                             |
| Input       | `byUnitId`          | `BYTE`                              | 0                                               | Address of the device                                                                                                                            |
| Input       | `xUpdateActual`     | `BOOL`                              | FALSE                                           | <p>Update of actual values ( on each rising edge<br>)</p>                                                                                        |
| Input       | `xUpdateSetp`       | `BOOL`                              | FALSE                                           | <p>Update of setpoints ( on each rising edge<br>)</p>                                                                                            |
| Input       | `xResError`         | `BOOL`                              | FALSE                                           | <p>Reinitialization of the outputs ‘eErrorCodeCom’ and<br>‘xErrorCodeDev’ to the error-free state (on every<br>rising edge)</p>                  |
| Inout       | `ModbusClient`      | `ModbusClientBase`                  |                                                 | Client of the device                                                                                                                             |
| Output      | `xDI1`              | `BOOL`                              |                                                 | <p>State of digital input DI1 (function depending<br>on operating mode ‘eDI1\_Mode’)</p>                                                         |
| Output      | `xDI2`              | `BOOL`                              |                                                 | <p>State of digital input DI2 (function depending<br>on operating mode ‘eDI2\_Mode’)</p>                                                         |
| Output      | `xDI3`              | `BOOL`                              |                                                 | <p>State of digital input DI3 (function depending<br>on operating mode ‘eDI3\_Mode’)</p>                                                         |
| Output      | `xDI4`              | `BOOL`                              |                                                 | <p>State of digital input DI4 (function depending<br>on operating mode ‘eDI4\_Mode’)</p>                                                         |
| Output      | `xDI5`              | `BOOL`                              |                                                 | <p>State of digital input DI5 (function depending<br>on operating mode ‘eDI5\_Mode’)</p>                                                         |
| Output      | `xDI6`              | `BOOL`                              |                                                 | <p>State of digital input DI6 (function depending<br>on operating mode ‘eDI6\_Mode’)</p>                                                         |
| Output      | `xDI7`              | `BOOL`                              |                                                 | <p>State of digital input DI7 (function depending<br>on operating mode ‘eDI7\_Mode’)</p>                                                         |
| Output      | `xDI8`              | `BOOL`                              |                                                 | <p>State of digital input DI8 (function depending<br>on operating mode ‘eDI8\_Mode’)</p>                                                         |
| 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\_8DI\_ERROR\_CODE | POWERIO\_T1\_R100\_8DI\_ERROR\_CODE.NO\_ERROR   | Error code - device (0 = no error)                                                                                                               |
| Output      | `xBusy`             | `BOOL`                              |                                                 | Communication indicator ( TRUE = communication )                                                                                                 |
| Input Const | `wSysCommand`       | `WORD`                              | 0                                               | <p>Value of the system command to be transmitted (FC06 - register 6<br>) (0 = no command, values > 0 see documentation<br>T1\_R100\_8DI)</p>     |
| Input Const | `tTimeDI_Pulse`     | `TIME`                              | TIME#250ms                                      | Common pulse duration for outputs xDI1 - xDI8                                                                                                    |
| Input Const | `eDI8_Mode`         | POWERIO\_T1\_R100\_8DI\_DI\_MODE    | POWERIO\_T1\_R100\_8DI\_DI\_MODE.DIGITAL\_INPUT | Operating mode of output xDI8                                                                                                                    |
| Input Const | `eDI7_Mode`         | POWERIO\_T1\_R100\_8DI\_DI\_MODE    | POWERIO\_T1\_R100\_8DI\_DI\_MODE.DIGITAL\_INPUT | Operating mode of output xDI7                                                                                                                    |
| Input Const | `eDI6_Mode`         | POWERIO\_T1\_R100\_8DI\_DI\_MODE    | POWERIO\_T1\_R100\_8DI\_DI\_MODE.DIGITAL\_INPUT | Operating mode of output xDI6                                                                                                                    |
| Input Const | `eDI5_Mode`         | POWERIO\_T1\_R100\_8DI\_DI\_MODE    | POWERIO\_T1\_R100\_8DI\_DI\_MODE.DIGITAL\_INPUT | Operating mode of output xDI5                                                                                                                    |
| Input Const | `eDI4_Mode`         | POWERIO\_T1\_R100\_8DI\_DI\_MODE    | POWERIO\_T1\_R100\_8DI\_DI\_MODE.DIGITAL\_INPUT | Operating mode of output xDI4                                                                                                                    |
| Input Const | `eDI3_Mode`         | POWERIO\_T1\_R100\_8DI\_DI\_MODE    | POWERIO\_T1\_R100\_8DI\_DI\_MODE.DIGITAL\_INPUT | Operating mode of output xDI3                                                                                                                    |
| Input Const | `eDI2_Mode`         | POWERIO\_T1\_R100\_8DI\_DI\_MODE    | POWERIO\_T1\_R100\_8DI\_DI\_MODE.DIGITAL\_INPUT | Operating mode of output xDI2                                                                                                                    |
| Input Const | `eDI1_Mode`         | POWERIO\_T1\_R100\_8DI\_DI\_MODE    | POWERIO\_T1\_R100\_8DI\_DI\_MODE.DIGITAL\_INPUT | Operating mode of output xDI1                                                                                                                    |
| Input Const | `wDIxInversion`     | `WORD`                              | 0                                               | <p>Inversion of inputs DI1 - DI8 (bitwise, bit 0: DI1,<br>bit 1: DI2, etc.) (0 = no inversion of inputs //<br>255 = inversion of all inputs)</p> |
| Input Const | `tTimeUpdateSetp`   | `TIME`                              | TIME#45s0ms                                     | <p>Update interval for the processes affected by the input<br>‘xUpdateSetp’</p>                                                                  |
| Input Const | `tTimeUpdateActual` | `TIME`                              | TIME#1s0ms                                      | <p>Update interval for the processes affected by the input<br>‘xUpdateActual’</p>                                                                |
