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

2.3 Ülesanne: Kolme nupuga mitme lambi lülitamine 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 sisse juhtpaneelil Start nupu indikaatori, Reset nupu indikaatori ning indikaatorlambid Q1 ja Q2 kui vajutada samaaegselt START ja RESET nupu. Neist ainult ühe vajutamine ei tohi protsessi mõjutada. Kõik indikaatorid peavad pärast STOP nupu vajutust olema välja lülitatud.

Lülitamine peab olema korratav.


Soovitatav lugemismaterjal

Ülesande lahendamiseks tutvuda järgmiste peatükkidega.

2.3 Exercise: Switching several lights 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 on the control panel START button light, RESET button light, and lights Q1 and Q2 when pressing START and RESET button simultaneously. The process is not affected when one of the buttons is pressed. After the STOP button has been pressed, all the lights are switched off.

The switching must be repeatable.

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