SystemInfo

SystemInfo (FB)

FUNCTION_BLOCK SystemInfo

Short description

Collection of system information / Entry of individual project information.

Representation

Function description

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

Input xGetNetworkInfo

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

Input xGetRTUpTime

On each rising edge the current uptime of the system is read. The value is returned 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 which network information is 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

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

Last updated