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

3.3 Ülesanne: Ühe nupuga kahe lambi lülitamine 2

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 juhib juhtpaneeli indikaatorlampe Q1 ja Q2. Esimesele RESET nupu vajutusel lülitatakse indikaatorlambi Q2 sisse. Teisel vajutusel lülitatakse indikaatorlamp Q2 välja ja indikaatorlamp Q1 lülitatakse sisse. Kolmandal vajutusel lülitatakse indikaatorlambid Q1 ja Q2 välja.

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.

3.3 Exercise: Switching two lights with one button 2

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 lights Q1 and Q2. The light Q2 is switched on when pressing the RESET button first time. By second pressing, the light Q2 is switched off and the light Q1 is switched on. By third pressing, the lights Q1 and Q2 are switched off. ETC.

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

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