Function Block STATUS

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.

Database

The database DB is used to define the global namespace. For example: Light.ON or Ventilation.Fault etc.

Input ON

The input indicates whether the value is active.

Input NUM

A number can be passed at the input. This will then be evaluated when ON is true.

Input TEXT

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::\}.

Input NS

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.