# SystemInfo

## `SystemInfo` (FB)

FUNCTION\_BLOCK SystemInfo

### Kurzbeschreibung

> Erfassung von Systeminformationen / Eingabe von individuellen Projektinformationen.

### Darstellung

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

### Funktionsbeschreibung

\
Dieser Funktionsbaustein ermöglicht es, die Systeminformationen auszulesen.\
Hierbei werden die statischen Werte, welche beim Download einer Applikation auf die Steuerung geschrieben werden, angezeigt.\
Außerdem werden auch Werte angezeigt, welche sich zur Laufzeit der Runtime ändern können.\
Diese Werte können innerhalb eines definierbaren Intervalls abgefragt werden sowie bei Bedarf auch ausgelesen werden.

#### Eingang *xGetNetworkInfo*

\
Bei jeder ansteigendenden Flanke (FALSE > TRUE) werden die aktuellen Netzwerkinformationen des Sytems ausgelesen.\
Die Rückgabe der Werte erfolgt über die Ausgänge **sEthernetAdapterIPAddress**, **sEthernetAdapterSubnetMask**, **sEthernetAdapterGateway** und **sEthernetAdapterMACAddress**.

#### Eingang *xGetRTUpTime*

\
Bei jeder ansteigendenden Flanke wird die aktuelle Laufzeit des Systems ausgelesen.\
Die Rückgabe des Werts erfolgt über den Ausgang **tRuntimeUptime**.

#### Sollwerte / Parameter

| Name                           | Datentyp    | Wertebereich | Initialwert  | Funktion                                                                                                              |
| ------------------------------ | ----------- | ------------ | ------------ | --------------------------------------------------------------------------------------------------------------------- |
| **sProjectNumber**             | STRING      |              | 0000         | Individuelle Projektnummer zur Anzeige in der Visualisierung                                                          |
| **sProjectName**               | STRING(255) |              | HVAC Example | Individueller Projektname zur Anzeige in der Visualisierung                                                           |
| **sProjectVersion**            | STRING      |              | 1            | Individuelle Projektversion zur Anzeige in der Visualisierung                                                         |
| **sConfigEthernetAdapterName** | STRING      |              | eth0         | Name des Netzwerkadapters für die abzufragenden Netzwerkinformationen                                                 |
| **tRefreshIntervall**          | TIME        |              | T#15S        | Aktualisierungsintervall für die Abfrage der Netzwerkinformationen und der Laufzeit des Systems (T#0s => Deaktiviert) |

### Visualisierung

Passendes Visualisierungselement aus der HVACV Visu Library: **SystemInfo**

#### Darstellung

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

### Codesys

InOut:

| Scope       | Name                         | Type                  | Initial        |
| ----------- | ---------------------------- | --------------------- | -------------- |
| Input       | `xGetNetworkInfo`            | `BOOL`                |                |
| Input       | `xGetRTUptime`               | `BOOL`                |                |
| Input Const | `sProjectNumber`             | `STRING`              | ‘0000’         |
| Input Const | `sProjectName`               | `STRING(255)`         | ‘HVAC Example’ |
| Input Const | `sProjectVersion`            | `STRING`              | ‘1’            |
| Input Const | `sConfigEthernetAdapterName` | `STRING`              | ‘eth0’         |
| Input Const | `tRefreshIntervall`          | `TIME`                | TIME#15s0ms    |
| Output      | `sProjectInfoTitle`          | `STRING(diMaxStrLen)` |                |
| Output      | `sProjectInfoVersion`        | `STRING(diMaxStrLen)` |                |
| Output      | `sProjectInfoAuthor`         | `STRING(diMaxStrLen)` |                |
| Output      | `sProjectInfoDescription`    | `STRING(255)`         |                |
| Output      | `sProfileVersion`            | `STRING(diMaxStrLen)` |                |
| Output      | `dtLastAppChange`            | `DT`                  |                |
| Output      | `sCompilerVersion`           | `STRING(diMaxStrLen)` |                |
| Output      | `sDeviceName`                | `STRING(diMaxStrLen)` |                |
| Output      | `sDeviceVersion`             | `STRING(diMaxStrLen)` |                |
| Output      | `sDeviceSerialNumber`        | `STRING(diMaxStrLen)` |                |
| Output      | `sDeviceHostName`            | `STRING(diMaxStrLen)` |                |
| Output      | `sDeviceNodeName`            | `STRING(diMaxStrLen)` |                |
| Output      | `sRuntimeVersion`            | `STRING(diMaxStrLen)` |                |
| Output      | `tRuntimeUptime`             | `TIME`                |                |
| Output      | `wProcessorType`             | `WORD`                |                |
| Output      | `sEthernetAdapterIPAddress`  | `STRING(diMaxStrLen)` |                |
| Output      | `sEthernetAdapterSubnetMask` | `STRING(diMaxStrLen)` |                |
| Output      | `sEthernetAdapterGateway`    | `STRING(diMaxStrLen)` |                |
| Output      | `sEthernetAdapterMACAddress` | `STRING(diMaxStrLen)` |                |
| Output      | `diStringMaxLen`             | `DINT`                |                |


---

# 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/system-info/systeminfo.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.
