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

4.5 Ülesanne: Kahe nupuga ühe lambi sisse lülitamine määratud ajaks

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 pärast RESET nupu vajutust lülitab indikaatorlambi Q2 sisse 3 sekundiks olenemata sellest, kas RESET nupp jääb vajutatuks või ei. START nupu vajutus lülitab indikaatorlambi Q2 sisse 5 sekundiks olenemata sellest kas nupp jääb vajutatuks või ei.

Kasutada selleks ühte taimerit.

Lülitamine peab olema korratav. Nuppude vajutus lampi töö ajal ei tohi mõjutada lambi sees oleku aega.


Soovitatav lugemismaterjal

Ülesande lahendamiseks tutvuda järgmiste peatükkidega.

4.5 Exercise: Using two buttons to switch on light for specified time

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 light Q2 only for 3 seconds after the RESET button was pressed, regardless of whether the RESET button is held down or not. The START button switches on the light Q2 for 5 seconds, regardless of whether the START button is held down or not.

Use only one timer.

The switching must be repeatable. If the light is on, then the buttons should not affect the timer operation (the light on time).

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