CoDeSys
Siemens S7-1200 viide Siemens LOGO! viide Automatiseerimise viide Mehhatroonikaseadmete viide Pneumoautomaatika viide
Joonis
Joonis

2.5 Ülesanne: Kolme nupuga mitme lambi lülitamine 3

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 ainult START nupu vajutamisel lülitab sisse valgustorni indikaatorlambid H1 ja lülitab indikaatorlambi H2 ja H3 välja. START ja RESET nupu sama aegsel vajutamisel lülitab sisse indikaatorlambi H2 ning lülitab indikaatorlambi H1 välja.

Pärast STOP nupu vajutust peavad olema indikaatorlambid H1 ja H2 välja lülitatud ning indikaatorlamp H3 sisse lülitatud.

Lülitamine peab olema korratav.


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 START nupp kui fikseeruv surunupp.

2.5 Exercise: Switching several lights with three buttons 3

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 on the indicator light H1 and switches the lights H2 and H3 off when pressing START button. The indicator light H2 is switched on and light H1 is switched off when pressing START and RESET buttons simultaneously.

After the STOP button has been pressed, the lights H1 and H2 are switched off and light H3 is switched on.

The switching must be repeatable.


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 START button works as a lockable push button.

Creative Commons Licence
"CoDeSys" is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License .