Function Block GETSTATUS

The Function Block GETSTATUS reads a global status.

Tip: To list all used elements, you can right-click on the Function Block. If the database was used in another element, these will be displayed under Used By. The list is divided by NS namespaces.

Database

The database DB is used to define the global namespace. For example: Licht.EIN or Lüftung.Störung etc.

Input LF

The input Line Feed defines the text between the status texts of the output TEXT. If LF equals NULL, a new line is taken as default.

Input NS

With the input NS, a dynamic namespace can be added. This corresponds to a subordinate variable. This simplifies handling with Range Templates significantly. For the value to be evaluated with the Function Block STATUS, it must be identical to the input NS.

Note: Since the name is extended with DB.NS, a conflict with other status function blocks can occur. If NS is not defined, the internal variable has a dot at the end.

Output ON

The output ON is true if one or more inputs of a Function Block STATUS with the same database variable are true.

Output NUM

The output NUM is the sum of all NUM inputs.

Output NUM_MIN

The output NUM_MIN is the smallest value of a NUM input.

Output NUM_MAX

The output NUM_MAX is the largest value of a NUM input.

Output NUM_AVG

The output NUM_AVG is the average value of all active NUM inputs.

Output COUNT

The output COUNT is the sum of all active STATUS Function Blocks with the same database variable.

Output TOTAL

The output TOTAL is the sum of all active and inactive STATUS Function Blocks with the same database variable.

Output TEXT

The output TEXT returns all texts of the active STATUS Function Blocks. These are connected and sorted together using the string LF. Duplicate entries are ignored.