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