
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.
The database DB is used to define the global namespace. For example: Licht.EIN or Lüftung.Störung etc.
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.
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.
The output ON is true if one or more inputs of a Function Block STATUS with the same database variable are true.
The output NUM is the sum of all NUM inputs.
The output NUM_MIN is the smallest value of a NUM input.
The output NUM_MAX is the largest value of a NUM input.
The output NUM_AVG is the average value of all active NUM inputs.
The output COUNT is the sum of all active STATUS Function Blocks with the same database variable.
The output TOTAL is the sum of all active and inactive STATUS Function Blocks with the same database variable.
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.