# ABB\_TERRA\_AC

## `ABB_TERRA_AC` (FB)

FUNCTION\_BLOCK ABB\_TERRA\_AC

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       | `rCurrentLimit`       | `REAL`                              | 0.0          | <p>Maximum value - charging current in A (only positive,<br>integer multiples of 1.0 A are allowed)</p>          |
| Input       | `xStartStopCharge`    | `BOOL`                              | FALSE        | Enable / disable of the charging process (TRUE = enable)                                                         |
| Input       | `xResError`           | `BOOL`                              | FALSE        | <p>Reinitialization of the outputs ‘eErrorCodeCom’ to the<br>error-free state ( on each rising edge )</p>        |
| Inout       | `ModbusClient`        | `ModbusClientBase`                  |              | Client of the device                                                                                             |
| Output      | `eConnectorTxpe`      | ABB\_TERRA\_AC\_CONNECTOR\_TYPE     |              | Connector type of the device                                                                                     |
| Output      | `rRatedPower`         | `REAL`                              |              | Maximum output power in kW                                                                                       |
| Output      | `rMaxRatedCurrent`    | `REAL`                              |              | Maximum value - hardware charging current in A                                                                   |
| Output      | `rProductionSeq`      | `REAL`                              |              | Production number                                                                                                |
| Output      | `rProductionWeek`     | `REAL`                              |              | Production week                                                                                                  |
| Output      | `rProductionYear`     | `REAL`                              |              | Production year                                                                                                  |
| Output      | `sFirmwareVers`       | `STRING`                            |              | Firmware version of the device                                                                                   |
| Output      | `eSocketLockState`    | ABB\_TERRA\_AC\_SOCKET\_LOCK\_STATE |              | Cable state of the device                                                                                        |
| Output      | `eAvailability`       | ABB\_TERRA\_AC\_AVAILABILITY        |              | Availability of the device                                                                                       |
| Output      | `eChargingState`      | ABB\_TERRA\_AC\_CHARGING\_STATE     |              | Charging state of the device                                                                                     |
| Output      | `xChargeRatedCurrent` | `BOOL`                              |              | <p>Indicates whether currently charging at the maximum charging current<br>(TRUE = yes)</p>                      |
| Output      | `xUnderSetCurrentLim` | `BOOL`                              |              | <p>Indicates whether the maximum charging current is currently<br>being undercut (TRUE = yes)</p>                |
| Output      | `rCurrentLimitFb`     | `REAL`                              |              | Maximum value - charging current in A — feedback                                                                 |
| Output      | `rChargCurrent_L1`    | `REAL`                              |              | Current charging current on phase L1 in A                                                                        |
| Output      | `rChargCurrent_L2`    | `REAL`                              |              | Current charging current on phase L2 in A                                                                        |
| Output      | `rChargCurrent_L3`    | `REAL`                              |              | Current charging current on phase L3 in A                                                                        |
| Output      | `rVoltage_L1_N`       | `REAL`                              |              | <p>Current voltage between phase L1 and the<br>neutral conductor N in V</p>                                      |
| Output      | `rVoltage_L2_N`       | `REAL`                              |              | <p>Current voltage between phase L2 and the<br>neutral conductor N in V</p>                                      |
| Output      | `rVoltage_L3_N`       | `REAL`                              |              | <p>Current voltage between phase L3 and the<br>neutral conductor N in V</p>                                      |
| Output      | `rActivePower`        | `REAL`                              |              | Current charging power in kW                                                                                     |
| Output      | `rEnergy`             | `REAL`                              |              | Current energy amount of the charging process in kWh                                                             |
| Output      | `rErrorCodeDevice`    | `REAL`                              |              | Current error code - 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      | `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 | `tTimeUpdateSetp`     | `TIME`                              | TIME#45s0ms  | <p>Update interval for the processes affected by the input<br>‘xUpdateSetp’</p>                                  |
| Input Const | `tTimeUpdateActual`   | `TIME`                              | TIME#1m0s0ms | <p>Update interval for the processes affected by the input<br>‘xUpdateActual’</p>                                |
