
The Function Block SCENES_NUM defines multiple scenes on the visualization.
The database DB specifies the storage location of the scenes. This way, an element can have several scene function blocks. The database is stored behind the visualization variable and cannot be accessed as with a normal database.
When the value at the input changes, the corresponding scene is executed immediately. Off corresponds to scene 0. After execution, the output Q is set to the value of the called scene. If the scene does not exist, the value is still set.
The input disables the execution of a scene with the input NUM.
On a positive edge, the scene with the number at the input NUM is executed immediately.
Tip: Connect this input to a trigger of the interface to call the scene with the same number again.
The output returns the number of the last executed scene.
The control of the scenes is done via the elements-scenes and scenes-configuration. Under interface, the value can be connected with the used function blocks.
The control via the visualization has priority over the corresponding input.
The configuration of a scene is explained in the help section under Visualization.