
The function block STATUS writes a global status. This way, one or more lights or consumers can be monitored.
Tip: To list all used elements, you can right-click on the function block. If the database has been used in another element, these will be displayed under
Used By. The list is divided by NS name spaces.
The database DB is used to define the global namespace. For example: Light.ON or Ventilation.Fault etc.
The input indicates whether the value is active.
A number can be passed at the input. This will then be evaluated when ON is true.
A text with a string can be passed at the input. This makes it possible, for example, to output an error. The text is only passed if the input ON is true.
Tip: With the string {name}, the name of the document can be passed to the input TEXT, and with {dir}, the path. However, sorting by name is then no longer performed. With {dir:2}, the length of the path can be reduced to 2 folders. With {dir:-1}, the path is reduced from below. It is also possible to define the separator using {dir::\}.
With the input NS, a dynamic namespace can be added. This corresponds to a subordinate variable. This simplifies handling with the templates considerably. For the value to be evaluated with the function block GETSTATUS, this 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.