1.7 Ülesanne: Ühe lambi sisse lülitamine kolme nupuga 1
Süsteemi „Nuppud ja lambid” kirjeldus
Süsteemus on 3 nuppu (S1 - Start, S2 - Stop, S3 - Reset) ja 3 indikaatorlampi (H1 - roheline, H2 - kollane, H3 - punane).
Ülesande püstitus
Koostada programm, mis lülitab valgustorni indikaatorlambi H1 sisse, kui hoida STOP ja RESET või START nuppu all. Kui tingimused ei ole täidetud ei tohi indikaatorlamp H1 põleda.
Soovitatav lugemismaterjal
Ülesande lahendamiseks tutvuda järgmiste peatükkidega.
CoDeSys animatsioon
Alla laetav animatsioon virtuaalsele PLC-le "CODESYS Control WIN V3". See võimaldab testida PLC programmi arvutis ilma reaalse riistvarata.
Selles animatsioonis töötab STOP nupp kui fikseeruv surunupp.
1.7 Exercise: Switching on one light with three buttons 1
Description of the buttons and lights
The MFS stand has three buttons (S1 – Start button, S2 – Stop button, S4 – Reset button) and 3 indicator lights (lamps) (H1 – Green light, H2 – Yellow light, H3 – Red light).
Description of the exercise
Write a program that switches the indicator light H1 on when the STOP and RESET or START buttons are held down. If the condition is not met, then the indicator light H1 is switched off.
CoDeSys animation
Animation for virtual PLC "CODESYS Control WIN V3". Download it and solve the exercise on the PC without the real equipment.
In this animation, the STOP button works as a lockable push button.