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

5.2 Ülesanne: Nelja lambi lülitamine kahe nupuga 1

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 lülitab esimesel START nupu vajutusel Start nupu indikaatorlambi sisse, teisel vajutusel Reset nupu indikaatorlambi sisse, kolmandal vajutusel Q1 indikaatorlambi sisse ja neljandal vajutusel Q2 indikaatorlambi sisse.

Kõik indikaatorlambid peavad välja lülituma STOP nupu vajutamisel.

Kasutada ühte loendurit ülesande tegemiseks.

Lülitamine peab olema korratav. START nupu allhoidmisel ei tohi esineda vilkumist.


Soovitatav lugemismaterjal

Ülesande lahendamiseks tutvuda järgmiste peatükkidega.

5.2 Exercise: Switching four lights with two 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 which by pressing START button first time switches on the control panel START button light, by second pressing the RESET button light, by third pressing the light Q1, and by fourth pressing the light Q2.

All lights are switched off when the STOP button is pressed.

Only one counter is allowed to be used.

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 .