1.7 Ülesanne: Ühe lambi sisse lülitamine kolme nupuga 1
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 juhtpaneeli indikaatorlambi Q1 sisse, kui hoida START ja STOP nuppu või kui võtilüliti on asendis MAN ning võtilülitiga hoitakse RESET nuppu all. Kui tingimused ei ole täidetud ei tohi indikaatorlamp Q1 põleda.
Soovitatav lugemismaterjal
Ülesande lahendamiseks tutvuda järgmiste peatükkidega.
1.7 Exercise: Switching on one light with three buttons 1
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 START button and STOP button or when the key switch is in the position MAN and RESET button is held down. If the condition is not met, then the light Q1 is switched off.