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

3.2 Ülesanne: Ühe nupuga kahe lambi lülitamine 1

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. Esimesel START nupu vajutusel lülitatakse indikaatorlambi Q1 sisse ja indikaatorlambi Q2 välja (see peab põlema alguses). Järgmisel vajutusel lülitaks indikaatorlamp Q1 välja ja indikaatorlamp Q2 sisse.

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.2 Exercise: Switching two lights with one button 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 that switches the control panel lights Q1 and Q2. When pressing the START button first time, the light Q1 is switched on and the light Q2 is switched off (in the beginning the Q2 has to be on). By second pressing the light Q1 is switched off and the light Q2 is switched on. 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 .