1.3 Ülesanne: Ühe nupuga ühe lambi välja lülitamine
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 lülitab juhtpaneelil indikaatorlambi Q1 välja, kui START nuppu all hoitakse. Kui START nupp ei ole alla vajutatud, siis on indikaatorlamp Q1 sisse lülitatud.
Soovitatav lugemismaterjal
Ülesande lahendamiseks tutvuda järgmiste peatükkidega.
1.3 Exercise: Switching off one light with one button
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 off when the START button is held down. When the START button is released, the indicator lamp Q1 is switched on.