# SOLVIMUS\_GE20M\_GATEWAY

## `SOLVIMUS_GE20M_GATEWAY` (FB)

FUNCTION\_BLOCK SOLVIMUS\_GE20M\_GATEWAY

InOut:

| Scope       | Name                 | Type               | Initial      | Comment                                                                                                      |
| ----------- | -------------------- | ------------------ | ------------ | ------------------------------------------------------------------------------------------------------------ |
| Input       | `xEn`                | `BOOL`             | TRUE         | Enable / disable communication ( TRUE = enabled )                                                            |
| Input       | `byUnitId`           | `BYTE`             | 255          | Address of the device (set by IP address)                                                                    |
| Input       | `xUpdateActual`      | `BOOL`             | FALSE        | <p>Update of actual values (on every rising edge<br>)</p>                                                    |
| Input       | `wBaseAdressGateway` | `WORD`             | 0            | Modbus - base register for the gateway information                                                           |
| Input       | `xResError`          | `BOOL`             | FALSE        | <p>Reinitialization of the outputs ‘eErrorCodeCom’ to the<br>no-error state (on each rising edge)</p>        |
| Inout       | `ModbusClient`       | `ModbusClientBase` |              | Client of the device                                                                                         |
| Output      | `dwSerialNum`        | `DWORD`            |              | Gateway serial number                                                                                        |
| Output      | `wMBUSProtocolVer`   | `WORD`             |              | Protocol version of the Modbus data                                                                          |
| Output      | `wSoftwareVer`       | `WORD`             |              | Gateway software version                                                                                     |
| Output      | `dtSysTime`          | `DT`               |              | <p>Gateway timestamp (UTC, in Germany UTC +1 / +2 h<br>depending on summer / winter time)</p>                |
| 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      | `xBusy`              | `BOOL`             |              | Communication indicator ( TRUE = communication )                                                             |
| Input Const | `diAdrOffset`        | `DINT`             | 0            | <p>Offset for calculating Modbus addresses (from the Modbus<br>registers) (permissible range: -1, 0, +1)</p> |
| Input Const | `tTimeUpdateActual`  | `TIME`             | TIME#1m0s0ms | <p>Update interval for operations influenced by the input<br>'xUpdateActual'</p>                             |
