x
E26 should be pressed first and let go again. If the correct pushbut-
ton is pressed, the flowchart continues downward. If an incorrect
pushbutton is pressed (E25-E22), a variable VAR1 is added and the
flowchart is only continued then.
x
You need this sequence a total of three times below each other.
The correct pushbutton is always on the left, and the wrong one
on the right. Every time an incorrect pushbutton is pressed, the
variable VAR1 is increased by one.
x
At the end, you query with the COMPARE block whether VAR1=0.
The correct code was entered only in such a case.
x
You can also output a message and generate different sounds. Then
you exit the subprogram via two different SUBOUT blocks:
If the code was correct,
you open the barrier. If
it was wrong, a new code
n
must be entered.
This programming is rather
demanding, but try it
anyway. You will see that
it functions. And if not?
Don't worry; we have also
stored the ready-to-run
project here under:
Car park barrier 2.mdl.
GB+USA
17