> 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/abb/abb_terra_ac.md).

# ABB\_TERRA\_AC

## `ABB_TERRA_AC` (FB)

`FUNCTION_BLOCK` ABB\_TERRA\_AC

### **Representation**

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2F6xsnzdCDo2jBuSAolkGp%2FABB_TERRA_AC.png?alt=media&amp;token=5f2d3d39-5828-41cc-ad89-ffd940cf208d" alt=""><figcaption></figcaption></figure>

InOut:

| 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       | `xUpdateSetp`         | `BOOL`                              | FALSE        | <p>Update of setpoints (on every 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 permitted)</p>           |
| Input       | `xStartStopCharge`    | `BOOL`                              | FALSE        | Enable / disable charging process (TRUE = enable)                                                                   |
| Input       | `xResError`           | `BOOL`                              | FALSE        | <p>Reinitialization of the outputs <code>eErrorCodeCom</code> on the<br>error-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 - 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        |              | Device availability                                                                                                 |
| Output      | `eChargingState`      | ABB\_TERRA\_AC\_CHARGING\_STATE     |              | Charging state of the device                                                                                        |
| Output      | `xChargeRatedCurrent` | `BOOL`                              |              | <p>Indicates whether charging is currently taking place with the maximum charging current<br>(TRUE = Yes)</p>       |
| Output      | `xUnderSetCurrentLim` | `BOOL`                              |              | <p>Indicates whether the maximum charging current is currently being underrun<br>(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 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 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 operations that are influenced by the input<br><code>xUpdateSetp</code> influenced</p>   |
| Input Const | `tTimeUpdateActual`   | `TIME`                              | TIME#1m0s0ms | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateActual</code> influenced</p> |


---

# 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/abb/abb_terra_ac.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.
