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

4.9 Ülesanne: Ühe nupuga nelja lambi sisse ja välja lülitamine ajaliste viidetega

Juhtpaneeli kirjeldus

Juhtpaneelil on 3 nuppu (S1 - Start, S2 - Stop, S4 - Reset), üks võtmega lüliti (S3 - Auto/Man) ja 4 indikaatorlampi (H1, H2, H3, H4).

Ülesande püstitus

Koostada programm, mis peale START nupu vajutamist lülitab juhtpaneeli Start nupu indikaatorlambi sisse. 3 sekundit hiljem lülitatakse Reset nupu indikaatorlamp sisse. Hiljem sama viitega lülitatakse ka indikaatorlamp Q1 sisse ja siis veel hiljem indikaatorlamp Q2. Iga indikaatorlamp peab olema sees 4 sekundit.

Lülitamine peab olema korratav ja nupu all hoidmisel ei tohi esineda vilkumist lampide töös.


Soovitatav lugemismaterjal

Ülesande lahendamiseks tutvuda järgmiste peatükkidega.

4.9 Exercise: Using a button to switch four lights on and of with a delay

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 when the START button was pressed. 3 seconds later the RESET button light is switched on. Later on the lights Q1 and (later) Q2 are switched on with a delay (same delay value as by RESET button light). Each light is switched on only for 4 seconds.

The switching must be repeatable. There should be no flashing of the lights when holding the START button.

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