# checkLicense

## `checkLicense` (FB)

FUNCTION\_BLOCK checkLicense

### Kurzbeschreibung

> Prüfung auf eine gültige Lizenz

### Darstellung

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

### Schnittstellen

#### Eingänge

#### Ausgänge

| Name             | Datentyp | Wertebereich | Initialwert | Funktion                                                                        |
| ---------------- | -------- | ------------ | ----------- | ------------------------------------------------------------------------------- |
| *xLicenseActive* | BOOL     |              |             | Anzeige - Ergbnis - Lizenzprüfung (FALSE = keine Lizenz, TRUE = gültige Lizenz) |

#### Sollwerte / Parameter

### Funktionsbeschreibung

#### Allgemeines

Dieser Funktionsbaustein dient zur Prüfung, ob eine gültige Lizenz für die Bibliothek(en) vorhanden ist.

| Bedingung                                                   | *xLicenseActive* | Hinweise                                                    |
| ----------------------------------------------------------- | ---------------- | ----------------------------------------------------------- |
| Gültige Lizenz vorhanden                                    | TRUE             | Gültige Lizenz vorhanden                                    |
| Demo - Modus aktiv                                          | TRUE             | Demo - Modus aktiv                                          |
| Gültige Lizenz nicht vorhanden UND Demo - Modus nicht aktiv | FALSE            | Gültige Lizenz nicht vorhanden UND Demo - Modus nicht aktiv |

### CODESYS

InOut:

| Scope  | Name             | Type   |
| ------ | ---------------- | ------ |
| Output | `xLicenseActive` | `BOOL` |


---

# 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/generic/checklicense.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.
