Examples

WC Ventilation

Task
If the light in the WC is switched on, then the ventilation should be switched on 15 seconds later (the ventilator must be connected to a digital output) and run for one minute after the light has been switched off. If the light is switched off before the ventilator is switched on, the ventilator should not be activated.

Solution
First open the app “logic” and create a logic program via “add program”.

Give the logic program the name WC-ventilation and select the room WC.

Open the logic program via the button “edit”. Use the “add function” to add the function time relay. This relay is red, meaning that it isn’t yet working, because there are no inputs.
Now open the time relay. Since the output should be switched on after 15 seconds, you will need a delay of 15 seconds. Change the switch on delay to a fixed value and enter the value 15. Do the same for the switch off delay, except instead of 15, use the value 60, since the ventilation is only meant to run for 1 minute (= 60 seconds) after the light has been switched off.

Now you need to link inputs and outputs. Select input E1 using the button “select” and navigate to the lights, select the WC light and select “light on”. In the object panel of the time delay, you can now see the current value of the light and how it changes when the light is switched on and off. Now all you need to do is connect the output of the time relay with the digital output. To do this, click on “select” under “output” and navigate to the digital outputs. Once there, select the desired output and click on “set value”.

Now you can test your WC ventilation and see if everything is working fine.

Light Transformer

Task
There are 4 lights and 1 light transformer available. The light transformer is connected to a digital input. As soon as at least one light is switched on, the light transformer must be switched on. If no lights are switched on, the light transformer must also be switched off.

Solution
The first thing to do is open the app “logic” and create a logic program via “add program”.
Give this logic program a name “light-trans”.
Next, open the logic program using the button “edit”. Use the button “add function” to add an OR. This OR is red meaning that it is not currently functioning, because it has no inputs.

Now open the OR and add two inputs using the button “add pin”. These four inputs must now be linked with the four lights via the button “select” by selecting “light switched on” for each light. The OR is now green, because all inputs are linked. Finally, you need to connect the digital output of the transformer with the OR. Do this by clicking on “select” under “output”, open the digital output there and select “set value” for the desired digital output.

The logic should now work as desired.

Ventilation Control

Task
You measure humidity in a room and want to switch on the ventilation as soon as the humidity has reached a certain value.

Solution
To do this, the humidity sensor must be connected to an analog input of an analog module and configured accordingly (to do this, see chapter “Analog Input”). The ventilation must be connected to the output of a digital module.

Next, create a logic program in the app “logic” using “add program”. Give the program a meaningful name (e.g. fan control) and if wish, allocate a room. Then open the parameter panel and select “edit” under “edit logic”. Insert a compare function via “add function”.

Now open the operator panel of the compare function. Under the item “settings”, first select for “type” the value “greater than” (since the fan is to be switched on when the humidity is GREATER than a certain value). You can configure the hysteresis for the compare function as you feel is necessary. In this example, select 5 for the hysteresis. The sample time can be left at 0. Now the compare function is correctly configured.

The inputs and output now need to be connected. Select the analog input you connected the humidity sensor to under “inputs” for “E1”. For “E2” enter the value above which the fan is to be switched on. In this example select 80. Now select the digital output you connected the fan to using the button “select” under “output”.

The ventilation control is now complete. If you want, you can change the hysteresis and the sample time as you require.