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

6.3 Ülesanne: Muutuva ajaga ühe lambi töötamine

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 pärast START nupu vajutust lülitab juhtpaneeli indikaatorlambi Q1 sisse 2 sekundiks. Igal järgmisel START nupu vajutamisel pikeneb indikaatorlambi Q1 töötamise aeg 1 sekundi võrra. Seda ainult siis kui indikaatorlamp Q1 ei tööta.

Pärast RESET nupu vajutamist peab indikaatorlamp Q1 töötama järgmisel START nupu vajutamisel 2 sekundit. Ülejäänud toimub nii nagu kirjeldatud eespool.

Lülitamine peab olema korratav. Nuppude allhoidmisel ei tohi esineda vilkumist ega mitmekordset aja loendamist.


Soovitatav lugemismaterjal

Ülesande lahendamiseks tutvuda järgmiste peatükkidega.

6.3 Exercise: A light with variable working 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 the control panel light Q1 on for 2 seconds when pressing the START button. Next START button pressing is extending the light Q1 working time by 1 seconds. The working time of the light Q1 is increasing when it has not been switched on.

The working time of the light Q1 is reset when the RESET button is pressed.

The switching must be repeatable. There should be no flashing of the lights or double counting of the time when holding the buttons.

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