The example shows an application that is useful for event rooms, for example: During the break, all lights should be dimmed to 50% of the current value. After the break, the original brightness should be restored.
The function is achieved via the Elvis scene module in conjunction with a Basic script (for capturing the current values at the beginning of the pause).
If the trigger data point “ADPLSZAus” has the value “1-50%”, the current values of the lights should be read into the scene “Light scene read out current values” (100%-1) and stored.
Then a 2nd scene is to be created from this, whose actual values of the data points always have 50% of the actual value of the scene “Light scene read out current values”. This scene is written in “Light Scene Read-Out Current Values” (50%-2).
This scene should be depicted immediately.
If the button “Trigger data point light scene readout; 2-100%”, the scene “Light scene read out actual values”, i.e. the originally read state, should be displayed.
The scenes are to be recreated and saved (i.e. overwritten) each time the button for the “Trigger data point light scene read out 50%” is clicked. For this purpose, it is important that the trigger value for the scene “Light scene read out actual values” remains free in the list of scenes/sequences in the table. This is defined by the calculation in the global script.
The calculation of the example project is in the global script, since several operator stations are to access it. If this is not the case, it makes more sense to write the calculation to the page event processing of the operator station.
For testing, please first specify specific values for ALL dimmers and switches (e.g. via light scene 1). If you then click on the “50%” button, a first scene (“100%”) is created and saved from the current update values, a second scene (“50%”) with 50% reduced current values (dimming values to be precise), saved and triggered immediately. After clicking on the “100%” button, the original scene of the same name is triggered again.