# ABB\_TERRA\_AC

## `ABB_TERRA_AC` (FB)

`FUNCTION_BLOCK` ABB\_TERRA\_AC

### **Representation**

<figure><img src="/files/328cf193344bdef1918bad69ed6861236f1b5d8a" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                  | Type                                | Initial      | Comment                                                                                                                |
| ----------- | --------------------- | ----------------------------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                 | `BOOL`                              | TRUE         | Enable / disable communication (TRUE = enable)                                                                         |
| Input       | `byUnitId`            | `BYTE`                              | 0            | Device address                                                                                                         |
| Input       | `xUpdateActual`       | `BOOL`                              | FALSE        | <p>Update of actual values (on every rising edge<br>)</p>                                                              |
| Input       | `xUpdateSetp`         | `BOOL`                              | FALSE        | <p>Update of setpoints (on every rising edge<br>)</p>                                                                  |
| Input       | `rCurrentLimit`       | `REAL`                              | 0.0          | Maximum value - charging current in A (only positive, integer multiples of 1.0 A are permitted)                        |
| Input       | `xStartStopCharge`    | `BOOL`                              | FALSE        | Enable / disable of the charging process (TRUE = enable)                                                               |
| Input       | `xResError`           | `BOOL`                              | FALSE        | <p>Reinitialization of the outputs <code>eErrorCodeCom</code> in the<br>fault-free state (on each rising edge)</p>     |
| Inout       | `ModbusClient`        | `ModbusClientBase`                  |              | Client of the device                                                                                                   |
| Output      | `eConnectorTxpe`      | ABB\_TERRA\_AC\_CONNECTOR\_TYPE     |              | Device connection type                                                                                                 |
| Output      | `rRatedPower`         | `REAL`                              |              | Maximum output power in kW                                                                                             |
| Output      | `rMaxRatedCurrent`    | `REAL`                              |              | Maximum value - charging current of the hardware 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 status of the device                                                                                             |
| Output      | `eAvailability`       | ABB\_TERRA\_AC\_AVAILABILITY        |              | Device availability                                                                                                    |
| Output      | `eChargingState`      | ABB\_TERRA\_AC\_CHARGING\_STATE     |              | Charging state of the device                                                                                           |
| Output      | `xChargeRatedCurrent` | `BOOL`                              |              | <p>Indication whether the device is currently charging with the maximum charging current<br>(TRUE = Yes)</p>           |
| Output      | `xUnderSetCurrentLim` | `BOOL`                              |              | <p>Indication whether the current charging current is currently below<br>the maximum charging current (TRUE = Yes)</p> |
| Output      | `rCurrentLimitFb`     | `REAL`                              |              | Maximum value - charging current in A — feedback                                                                       |
| Output      | `rChargCurrent_L1`    | `REAL`                              |              | Current charging current in phase L1 in A                                                                              |
| Output      | `rChargCurrent_L2`    | `REAL`                              |              | Current charging current in phase L2 in A                                                                              |
| Output      | `rChargCurrent_L3`    | `REAL`                              |              | Current charging current in phase L3 in A                                                                              |
| Output      | `rVoltage_L1_N`       | `REAL`                              |              | <p>Current voltage between phase L1 and<br>neutral conductor N in V</p>                                                |
| Output      | `rVoltage_L2_N`       | `REAL`                              |              | <p>Current voltage between phase L2 and<br>neutral conductor N in V</p>                                                |
| Output      | `rVoltage_L3_N`       | `REAL`                              |              | <p>Current voltage between phase L3 and<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 the Modbus addresses (from the Modbus<br>registers) (permitted range: -1, 0, +1)</p>         |
| Input Const | `tTimeUpdateSetp`     | `TIME`                              | TIME#45s0ms  | <p>Update interval for the processes influenced by the input<br><code>xUpdateSetp</code> influenced</p>                |
| Input Const | `tTimeUpdateActual`   | `TIME`                              | TIME#1m0s0ms | <p>Update interval for the processes influenced by the input<br><code>xUpdateActual</code> influenced</p>              |


---

# Agent Instructions: 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:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/abb/abb_terra_ac.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
