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

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 ainult START nupu vajutamisel lülitab sisse juhtpaneeli Start nupu indikaatorlambi ning lülitab Reset nupu indikaatorlambi ja indikaatorlambi Q1 välja. START ja RESET nupu sama aegsel vajutamisel lülitab sisse Reset nupu indikaatorlambi ja indikaatorlambi Q2 ning lülitab Start nupu indikaatorlambi välja.

Pärast STOP nupu vajutust peavad olema Start nupu indikaatorlamp, Reset nupu indikaatorlamp ja indikaatorlamp Q2 välja lülitatud ning indikaatorlamp Q1 sisse lülitatud.

Lülitamine peab olema korratav.


Soovitatav lugemismaterjal

Ülesande lahendamiseks tutvuda järgmiste peatükkidega.

2.5 Exercise: Switching several lights with three buttons 3

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 on the control panel START button light and switches off the RESET button light and light Q1 when pressing START button. RESET button light and light Q2 are switched on and switches off the Start button light when pressing START and RESET buttons simultaneously.

After the STOP button has been pressed, the START button light, RESET button light, and light Q2 are switched off and light Q1 is switched on.

The switching must be repeatable.

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