Trying to figure out what my error is.
I have this code for a double switch (in the bathroom using the single switch twice on or off within 3 seconds activates the ventilator)
Now the code works when i just press on or off twice within 3 seconds and when 1 press once and wait 3 seconds it will act correctly too.
The problem is when i press on and within 3 seconds i press off, then the 2nd off within 3 seconds wont trigger the output. I have to wait the full seconds before it starts working again.
What error did i make in the code?
I have this code for a double switch (in the bathroom using the single switch twice on or off within 3 seconds activates the ventilator)
Code:
#Reset 5012|1|"OC[1]"|"0"|""|0|0|1|0 #1ste Aan: 1 in geheugen 1, ingang 2 in tijd 1 5012|1|"EC[1] and EN[1] == 1 and SN[1] == 0"|"1"|"EN[2]"|0|1|1|0 #1ste Uit: 2 in geheugen 1, ingang 2 in tijd 1 5012|1|"EC[1] and EN[1] == 0 and SN[1] == 0"|"2"|"EN[2]"|0|1|1|0 #Reset als ingang 1 = 1 en geheugen 1 = 2 en timer 1 loopt 5012|1|"EC[1] and EN[1] == 1 and SN[1] == 2 and OC[1] == 0"|"0"|"0"|0|1|1|0 #Als ingang 1 = 1 en geheugen 1 = 1 en timer 1 loopt. Zet uitgang 1 op 1. Daarna tijd 1 en geheugen 1 op 0 5012|0|"EC[1] and EN[1] == 1 and SN[1] == 1 and OC[1] == 0"|"1"|""|1|0|0|0 5012|1|"EC[1] and EN[1] == 1 and SN[1] == 1 and OC[1] == 0"|"0"|"0"|0|1|1|0 #Reset als ingang 1 = 0 en geheugen 1 = 1 en timer loopt 5012|1|"EC[1] and EN[1] == 0 and SN[1] == 1 and OC[1] == 0"|"0"|"0"|0|1|1|0 #Als ingang 1 = 0 en geheugen 1 = 2 en timer 1 loopt. Zet uitgang 2 op 1. Daarna tijd 1 en geheugen 1 op 0 5012|0|"EC[1] and EN[1] == 0 and SN[1] == 2 and OC[1] == 0"|"1"|""|2|0|0|0 5012|1|"EC[1] and EN[1] == 0 and SN[1] == 2 and OC[1] == 0"|"0"|"0"|0|1|1|0
The problem is when i press on and within 3 seconds i press off, then the 2nd off within 3 seconds wont trigger the output. I have to wait the full seconds before it starts working again.
What error did i make in the code?
Kommentar