> 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/alarming/alarminghint.md).

# AlarmingHint

## `AlarmingHint` (FB)

FUNCTION\_BLOCK AlarmingHint EXTENDS AlarmingBase

### Kurzbeschreibung

> Einzelmeldung der Meldeklasse Hinweis / Info. Meldet den Zustand von *xActive* über den internen Baustein `HVACAlarming.AlarmingHint` am Alarmmanager an; der Alarmtext wird sprachabhängig aus einer Textliste gelesen.

### Schnittstellen

#### Eingänge

| Name      | Datentyp | Wertebereich | Initialwert | Funktion                                                                      |
| --------- | -------- | ------------ | ----------- | ----------------------------------------------------------------------------- |
| *xActive* | `BOOL`   |              |             | Anstehendes Hinweis-Signal: TRUE aktiviert den Hinweis, FALSE deaktiviert ihn |

#### Geerbte Eingänge

| Name                  | Datentyp     | Wertebereich | Initialwert | Funktion                                                                                                   |
| --------------------- | ------------ | ------------ | ----------- | ---------------------------------------------------------------------------------------------------------- |
| *itfMacroInfo*        | `IMacroInfo` |              |             | Optionale Makro-Info-Quelle: Anlagenbezeichnung als Prefix1, Sammel-Abschaltung über *xAlarmOff*; 0 = ohne |
| *sTextIndexDeviceTag* | `STRING(16)` |              | `''`        | Text-Index des DeviceTag-Textes (Prefix2); leer = kein DeviceTag-Prefix                                    |
| *sTextListDeviceTag*  | `STRING(64)` |              | `''`        | Textliste des DeviceTag-Textes; leer = `GV_Alarming.sTextList`                                             |
| *sTextIndex*          | `STRING(16)` |              | `'0'`       | Text-Index des Alarmtextes                                                                                 |
| *sTextList*           | `STRING(64)` |              | `''`        | Textliste des Alarmtextes; leer = `GV_Alarming.sTextList`                                                  |
| *xTextUpdate*         | `BOOL`       |              | FALSE       | Aktualisierung des Alarmtextes anstoßen; wird automatisch zurückgesetzt                                    |
| *xAlarmEn*            | `BOOL`       |              | TRUE        | Alarm freigeben                                                                                            |

#### Geerbte Ausgänge

| Name            | Datentyp | Funktion                                                                                   |
| --------------- | -------- | ------------------------------------------------------------------------------------------ |
| *xDefaultText1* | `BOOL`   | TRUE, wenn für den Alarmtext der Defaulttext geliefert wurde (Sprache nicht gefunden)      |
| *xDefaultText2* | `BOOL`   | TRUE, wenn für den DeviceTag-Text der Defaulttext geliefert wurde (Sprache nicht gefunden) |

#### Eigenschaften

| Eigenschaft | Datentyp | Zugriff | Funktion                                        |
| ----------- | -------- | ------- | ----------------------------------------------- |
| *Hint*      | `BOOL`   | GET     | Aktueller Hinweiszustand (entspricht *xActive*) |

### Funktionsbeschreibung

#### Allgemeines

Der Baustein ruft zuerst den Basisbaustein `AlarmingBase` auf (`SUPER^()`), der die Lizenz prüft, den Alarmtext und den DeviceTag-Text aus den Textlisten liest, die Makro-Info anbindet und die wirksame Alarmfreigabe bildet. Anschließend wird der interne Baustein `HVACAlarming.AlarmingHint` mit dem Alarmtext, den beiden Präfixen, der Freigabe und *xActive* aufgerufen. Das An- und Abmelden am Alarmmanager übernimmt der interne Baustein nur bei einer Änderung von *xActive*.

#### Alarmtext

Der angezeigte Text wird aus Prefix1 (Anlagenbezeichnung der Makro-Info), Prefix2 (DeviceTag-Text, optional mit Erweiterungstext) und dem Alarmtext zusammengesetzt. Details siehe Alarming → Funktionsweise.

Eine Neuberechnung des Textes wird ausgelöst durch *xTextUpdate*, `GV_Alarming.xTextUpdate`, eine Textänderung in der Makro-Info (Methode `UpdateAlarmText`) oder einen Aufruf von `mPrefix2Ex`.

#### Instanzpfad

Der Instanzpfad des internen Alarmbausteins wird vor jedem Aufruf um eine Ebene gekürzt (`DelLastInstanceName(iDelLastCount := 1)`). Bei aktivierter Instanzpfad-Anzeige (`HVACAlarming.GV_Alarming.xInstNameOn`) erscheint dadurch der Pfad dieser Instanz und nicht der des internen `_FbAlarm`.

#### Makro-Info

Ist *itfMacroInfo* angebunden, meldet sich der Baustein automatisch als Slave an der Makro-Info an. Die Makro-Info liest die Eigenschaft *Hint* zyklisch aus und bildet daraus ihren Sammel-Hinweisstatus (*xHintOut*); über ihren Parameter *xAlarmOff* kann sie alle angebundenen Alarmbausteine gemeinsam abschalten.

#### Beispiel

{% code overflow="wrap" %}

```pascal
VAR
    fbHintFilter : AlarmingHint := (sTextIndex := '401');
END_VAR

fbHintFilter(itfMacroInfo := fbMacroInfo.itfMacroInfo, xActive := xFilterWechsel);
```

{% endcode %}

### CODESYS

InOut:

| Scope    | Name      | Type   | Initial |
| -------- | --------- | ------ | ------- |
| Input    | `xActive` | `BOOL` |         |
| Property | `Hint`    | `BOOL` |         |

Geerbt von `AlarmingBase`:

| Scope          | Name                  | Type         | Initial |
| -------------- | --------------------- | ------------ | ------- |
| Input          | `itfMacroInfo`        | `IMacroInfo` |         |
| Input CONSTANT | `sTextIndexDeviceTag` | `STRING(16)` | `''`    |
| Input CONSTANT | `sTextListDeviceTag`  | `STRING(64)` | `''`    |
| Input CONSTANT | `sTextIndex`          | `STRING(16)` | `'0'`   |
| Input CONSTANT | `sTextList`           | `STRING(64)` | `''`    |
| Input CONSTANT | `xTextUpdate`         | `BOOL`       | FALSE   |
| Input CONSTANT | `xAlarmEn`            | `BOOL`       | TRUE    |
| Output         | `xDefaultText1`       | `BOOL`       |         |
| Output         | `xDefaultText2`       | `BOOL`       |         |


---

# 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/hvac-library/functionblocks/alarming/alarminghint.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.
