4.3 Ülesanne: Ühe lülitiga ühe lambi viitega väljalülitus
Juhtpaneeli kirjeldus
Juhtpaneelil on 3 nuppu (S1 - Start, S2 - Stop, S4 - Reset), üks võtmega lüliti (S3 - Auto/Man) ja 4 indikaatortuld (H1, H2, H3, H4).
Ülesande püstitus
Koostada programm, mis peale lüliti S3 MAN asendisse lülitamist lülitab sisse indikaatorlambi Q1.
Pärast lüliti tagasi AUTO peale lülitamist peab indikaatorlamp Q1 3 sekundi pärast välja lülituma.
Lülitamine peab olema korratav ja nupu kasutamisel ei tohi esineda vilkumist lambi töös.
Soovitatav lugemismaterjal
Ülesande lahendamiseks tutvuda järgmiste peatükkidega.
4.3 Exercise: Using a button to switch off light with a delay
Description of the control panel
The control panel has three buttons (S1 – Start button, S2 – Stop button, S4 – Reset button), one key switch (S3 – Auto/Man (in normal state, it is on Auto)) and 4 indicator lights (lamps) (H1 – Start light, H2 – Reset light, H3 – Light Q1, H4 – Light Q2).
Description of the exercise
Write a program that switches the control panel light Q1 on when the key switch S3 has been turned to the position MAN.
After three seconds, the light Q1 is switched off when the key switch has been turned back to the position AUTO.
The switching must be repeatable. There should be no flashing of the light when using the switch.