> 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-library/functionblocks/general/macroinfo.md).

# MacroInfo

## `MacroInfo` (FB)

FUNCTION\_BLOCK MacroInfo IMPLEMENTS IMacroInfo

### Kurzbeschreibung

> Anzeige von Statusinformationen zu einem Makro\
> Anwendung: Visualisierung

### Darstellung

<figure><img src="/files/9CMWD8z1oStwyaVUXqBn" alt=""><figcaption></figcaption></figure>

### Schnittstellen

#### Eingänge

| Name       | Datentyp | Wertebereich | Initialwert | Funktion                                                              |
| ---------- | -------- | ------------ | ----------- | --------------------------------------------------------------------- |
| *sVersion* | STRING   |              |             | Version des Makros                                                    |
| *xAlarm*   | BOOL     |              |             | Sammelstörmeldung                                                     |
| *xHint*    | BOOL     |              |             | Sammelhinweis                                                         |
| *xAuto*    | BOOL     |              |             | Statusmeldung der Betriebsart (0 = Handbetrieb, 1 = Automatikbetrieb) |

#### Ausgänge

| Name            | Datentyp | Wertebereich | Initialwert | Funktion             |
| --------------- | -------- | ------------ | ----------- | -------------------- |
| *sTitle*        | STRING   |              |             | Name des Makros      |
| *sLine1*        | STRING   |              |             | Zeile 1 der Kachel   |
| *sLine2*        | STRING   |              |             | Zeile 2 der Kachel   |
| *sInstanceName* | STRING   |              |             | Name der Instanz     |
| *sInstancePath* | STRING   |              |             | Pfadname der Instanz |

#### Sollwerte / Parameter

| Name           | Datentyp | Wertebereich | Initialwert | Funktion                         |
| -------------- | -------- | ------------ | ----------- | -------------------------------- |
| **sEditLine1** | STRING   |              | ‘Line1’     | Eingabewert - Zeile 1 der Kachel |
| **sEditLine2** | STRING   |              | ‘’          | Eingabewert - Zeile 2 der Kachel |

### Funktionsbeschreibung

#### Allgemeines

Dieser Funktionsbaustein dient zur Anzeige von Statusinformationen zu einem Makro. Hierzu wird der gesamte Instanzpfad je nach gewünschter Funktion zerlegt und angezeigt.

#### Ausgang *sTitle*

Der Ausgang *sTitle* ist mit dem Ausgang *sInstanceName* identisch und enthält den aktuellen Namen des Makros.

#### Ausgang *sLine1*

Der Ausgang *sLine1* wird der Inhalt des Sollwert / Parameters **sEditLine1** angezeigt.

#### Ausgang *sLine2*

Der Ausgang *sLine2* wird der Inhalt des Sollwert / Parameters **sEditLine2** angezeigt.

#### Ausgang *sInstanceName*

Der Ausgang *sInstanceName* ist mit dem Ausgang *sTitle* identisch und enthält den aktuellen Namen des Makros.

#### Ausgang *sInstancePath*

Der Ausgang *sInstancePath* enthält den aktuellen Instanz Pfad des Makros (Device.Application.POU)

### CODESYS

InOut:

| Scope       | Name            | Type       | Initial |
| ----------- | --------------- | ---------- | ------- |
| Input       | `xAlarm`        | `BOOL`     |         |
| Input       | `xHint`         | `BOOL`     |         |
| Input       | `xAuto`         | `BOOL`     |         |
| Input       | `sVersion`      | `STRING`   |         |
| Input Const | `sEditLine2`    | `STRING`   | ‘’      |
| Input Const | `sEditLine1`    | `STRING`   | ‘Line1’ |
| Output      | `itfMacroInfo`  | IMacroInfo | THIS^   |
| Output      | `sTitle`        | `STRING`   |         |
| Output      | `sLine1`        | `STRING`   |         |
| Output      | `sLine2`        | `STRING`   |         |
| Output      | `sInstanceName` | `STRING`   |         |
| Output      | `sInstancePath` | `STRING`   |         |

Properties:

> MacroData

Structure:

* MacroData (Property)


---

# 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-library/functionblocks/general/macroinfo.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.
