> For the complete documentation index, see [llms.txt](https://infosys.selmotech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infosys.selmotech.com/selmo-struktur-und-standard/selmo-technischer-standard-und-struktur/beschreibung-selmo-plc-code/plant/global/licensing.md).

# Licensing

Dieses Programmmodul überprüft ständig die Lizenz. Wenn Sie noch keine Lizenz erworben haben, können Sie dies per E-Mail an <license@selmo.at> oder online über Selmo Studio tun. Für die Lizenzierung benötigen Sie eine Request-ID mit dem Namen "GVL\_Global.strRequestID", die vom Programmmodul automatisch ausgelesen wird. Der erworbene Lizenzschlüssel muss dann unter "GVL\_Global.strLicenseKey" eingetragen werden. Wenn keine Lizenzierung durchgeführt wurde, befindet sich das gesamte SPS-Programm im Demo-Modus. In diesem Modus wird die 'Automatische Betriebsfreigabe' nach 30 Minuten zurückgesetzt. Bitte beachten Sie, dass dieser Programmbaustein nur einmal pro SPS aufgerufen wird! Die Prüfsumme dient zur Konsistenzprüfung und setzt bei Inkonsistenz die 'Automatische Betriebsfreigabe' nach 30 Minuten zurück, auch wenn ein Lizenzschlüssel vorhanden ist. Bei Bedarf kann dies mit den beiden booleschen Variablen "GVL\_Global.xLicenseValid" und "GVL\_Global.xChecksumValid" überprüft werden.

```
// ###################### LICENSING ###########################################
   {region "Description Licensing"}
   (*
   This program module is used to constantly check the license. If a license has not yet been purchased,
   this can be done by sending an e-mail to support@selmo.at or online via SelmoStudio.
   A request ID "GVL_Global.strRequestID" is required for licensing.
   This ID is read automatically by the program block.
   The purchased license key must then be entered at "GVL_Global.strLicenseKey".
   If no licensing has been carried out, the entire PLC program is in demo mode.
   In this mode the 'Automatic operation release' is reset after 30 minutes.
   Please note that this program block is only called once per PLC!
   *)
   {endregion}
         
      SelmoLicenseInfo(
         strLicenseKey := GVL_Global.strLicenseKey,
         dwChecksum := 16#DEBB20E3,
         strRequestID => GVL_Global.strRequestID,
         xLicenseValid => GVL_Global.xLicenseValid,
         xChecksumValid => GVL_Global.xChecksumValid);
```

<\*\*\*>Variablen Name, Kommentar und Datentyp werden aus dem Studio automatisch übernommen


---

# 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://infosys.selmotech.com/selmo-struktur-und-standard/selmo-technischer-standard-und-struktur/beschreibung-selmo-plc-code/plant/global/licensing.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.
