> 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/hvac-modbus-library/functionblocks/abb/abb_terra_ac.md).

# ABB\_TERRA\_AC

## `ABB_TERRA_AC` (FB)

`FUNCTION_BLOCK` ABB\_TERRA\_AC

### **Darstellung**

<figure><img src="/files/oz6c5arIUnmIcFaAs9O1" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                  | Type                                | Initial      | Comment                                                                                                                          |
| ----------- | --------------------- | ----------------------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                 | `BOOL`                              | TRUE         | Freigabe / Sperrung der Kommunikation (TRUE = Freigabe)                                                                          |
| Input       | `byUnitId`            | `BYTE`                              | 0            | Adresse des Geräts                                                                                                               |
| Input       | `xUpdateActual`       | `BOOL`                              | FALSE        | <p>Aktualisierung der Istwerte (bei jeder ansteigenden Flanke<br>)</p>                                                           |
| Input       | `xUpdateSetp`         | `BOOL`                              | FALSE        | <p>Aktualisierung der Sollwerte (bei jeder ansteigenden Flanke<br>)</p>                                                          |
| Input       | `rCurrentLimit`       | `REAL`                              | 0.0          | <p>Maximalwert - Ladestrom in A (es sind nur positive,<br>ganzzahlige Vielfache von 1.0 A zulässig)</p>                          |
| Input       | `xStartStopCharge`    | `BOOL`                              | FALSE        | Freigabe / Sperrung des Ladevorgangs (TRUE = Freigabe)                                                                           |
| Input       | `xResError`           | `BOOL`                              | FALSE        | <p>Reinitialisierung der Ausgänge <code>eErrorCodeCom</code> auf dem<br>fehlerfreien Zustand (bei jeder ansteigenden Flanke)</p> |
| Inout       | `ModbusClient`        | `ModbusClientBase`                  |              | Client des Geräts                                                                                                                |
| Output      | `eConnectorTxpe`      | ABB\_TERRA\_AC\_CONNECTOR\_TYPE     |              | Anschlusstyp des Geräts                                                                                                          |
| Output      | `rRatedPower`         | `REAL`                              |              | Maximale Abgabeleistung in kW                                                                                                    |
| Output      | `rMaxRatedCurrent`    | `REAL`                              |              | Maximalwert - Ladestrom der Hardware in A                                                                                        |
| Output      | `rProductionSeq`      | `REAL`                              |              | Produktions-Nummer                                                                                                               |
| Output      | `rProductionWeek`     | `REAL`                              |              | Produktions-Woche                                                                                                                |
| Output      | `rProductionYear`     | `REAL`                              |              | Produktions-Jahr                                                                                                                 |
| Output      | `sFirmwareVers`       | `STRING`                            |              | Firmware-Version des Geräts                                                                                                      |
| Output      | `eSocketLockState`    | ABB\_TERRA\_AC\_SOCKET\_LOCK\_STATE |              | Kabel-Zustand des Geräts                                                                                                         |
| Output      | `eAvailability`       | ABB\_TERRA\_AC\_AVAILABILITY        |              | Verfügbarkeit des Geräts                                                                                                         |
| Output      | `eChargingState`      | ABB\_TERRA\_AC\_CHARGING\_STATE     |              | Ladezustand des Geräts                                                                                                           |
| Output      | `xChargeRatedCurrent` | `BOOL`                              |              | <p>Anzeige, ob aktuell mit dem maximalen Ladestrom geladen wird<br>(TRUE = Ja)</p>                                               |
| Output      | `xUnderSetCurrentLim` | `BOOL`                              |              | <p>Anzeige, ob aktuell der maximalen Ladestrom unterschritten<br>wird (TRUE = Ja)</p>                                            |
| Output      | `rCurrentLimitFb`     | `REAL`                              |              | Maximalwert - Ladestrom in A — Rückmeldung                                                                                       |
| Output      | `rChargCurrent_L1`    | `REAL`                              |              | Aktueller Ladestrom in der Phase L1 in A                                                                                         |
| Output      | `rChargCurrent_L2`    | `REAL`                              |              | Aktueller Ladestrom in der Phase L2 in A                                                                                         |
| Output      | `rChargCurrent_L3`    | `REAL`                              |              | Aktueller Ladestrom in der Phase L3 in A                                                                                         |
| Output      | `rVoltage_L1_N`       | `REAL`                              |              | <p>Aktuelle Spannung zwischen der Phase L1 und dem<br>Neutralleiter N in V</p>                                                   |
| Output      | `rVoltage_L2_N`       | `REAL`                              |              | <p>Aktuelle Spannung zwischen der Phase L2 und dem<br>Neutralleiter N in V</p>                                                   |
| Output      | `rVoltage_L3_N`       | `REAL`                              |              | <p>Aktuelle Spannung zwischen der Phase L3 und dem<br>Neutralleiter N in V</p>                                                   |
| Output      | `rActivePower`        | `REAL`                              |              | Aktuelle Ladeleistung in kW                                                                                                      |
| Output      | `rEnergy`             | `REAL`                              |              | Aktuelle Energiemenge des Ladevorgangs in kWh                                                                                    |
| Output      | `rErrorCodeDevice`    | `REAL`                              |              | Aktueller Fehlercode - Gerät                                                                                                     |
| Output      | `xAlarm`              | `BOOL`                              | FALSE        | Sammelstörung (TRUE = Störung)                                                                                                   |
| Output      | `xAlarmCom`           | `BOOL`                              | FALSE        | Sammelstörung - Kommunikation (TRUE = Störung)                                                                                   |
| Output      | `eErrorCodeCom`       | ModbusErrorCode                     |              | Fehlercode - Kommunikation (0 = kein Fehler)                                                                                     |
| Output      | `xBusy`               | `BOOL`                              |              | Kommunikationsanzeige (TRUE = Kommunikation)                                                                                     |
| Input Const | `diAdrOffset`         | `DINT`                              | 0            | <p>Offset zur Berechnung der Modbus-Adressen (aus den Modbus-<br>Registern) (Zulässiger Bereich: -1, 0, +1)</p>                  |
| Input Const | `tTimeUpdateSetp`     | `TIME`                              | TIME#45s0ms  | <p>Updateintervall für die Vorgänge, die durch den Eingang<br><code>xUpdateSetp</code> beeinflusst werden</p>                    |
| Input Const | `tTimeUpdateActual`   | `TIME`                              | TIME#1m0s0ms | <p>Updateintervall für die Vorgänge, die durch den Eingang<br><code>xUpdateActual</code> beeinflusst werden</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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
