# SystemInfo

## `SystemInfo` (FB)

FUNCTION\_BLOCK SystemInfo

### Short description

> Collection of system information / Input of individual project information.

### Representation

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

### Function description

\
This function block allows reading out the system information.\
The static values that are written to the controller when an application is downloaded are displayed.\
In addition, values that can change at runtime of the runtime are also displayed.\
These values can be queried at a definable interval and, if necessary, also read out.

#### Input *xGetNetworkInfo*

\
On each rising edge (FALSE > TRUE) the current network information of the system is read out.\
The return of the values is done via the outputs **sEthernetAdapterIPAddress**, **sEthernetAdapterSubnetMask**, **sEthernetAdapterGateway** and **sEthernetAdapterMACAddress**.

#### Input *xGetRTUpTime*

\
On each rising edge the current uptime of the system is read out.\
The return of the value is done via the output **tRuntimeUptime**.

#### Setpoints / parameters

| Name                           | Data type   | Value range | Initial value | Function                                                                                       |
| ------------------------------ | ----------- | ----------- | ------------- | ---------------------------------------------------------------------------------------------- |
| **sProjectNumber**             | STRING      |             | 0000          | Individual project number for display in the visualization                                     |
| **sProjectName**               | STRING(255) |             | HVAC Example  | Individual project name for display in the visualization                                       |
| **sProjectVersion**            | STRING      |             | 1             | Individual project version for display in the visualization                                    |
| **sConfigEthernetAdapterName** | STRING      |             | eth0          | Name of the network adapter for the network information to be queried                          |
| **tRefreshIntervall**          | TIME        |             | T#15S         | Refresh interval for querying the network information and the system uptime (T#0s => disabled) |

### Visualization

Matching visualization element from the HVACV Visu Library: **SystemInfo**

#### Representation

<figure><img src="/files/c809b8ae2efbb3ad53871151daf721ad553a3ad0" 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/en/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.
