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

2.6 Ülesanne: Kolme nupuga ühe lambi lülitamine lukustatava juhtimisega

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 lülitab juhtpaneelil indikaatorlamp Q1 sisse, kui vajutada START ja RESET nuppu samaaegselt. Neist ainult ühe vajutamine ei tohi protsessi mõjutada.

Indikaatorlamp Q1 peab välja lülituma pärast STOP nupu vajutust.

Nupud tohivad eelpool kirjeldatult protsessi mõjutada vaid juhul kui võtmega lüliti on asendis AUTO. Kui lüliti on MAN asendis ei tohi nupud protsessi mõjutada. Indikaatorlambi olek ei tohi lüliti lülitamisest muutuda.

Lülitamine peab olema korratav.


Soovitatav lugemismaterjal

Ülesande lahendamiseks tutvuda järgmiste peatükkidega.

2.6 Exercise: Lockable switching of a light with three buttons

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 when pressing START and RESET buttons simultaneously. The process is not affected when one of the buttons is pressed.

The buttons may affect the process described above when the key switch is in the position AUTO. When the key switch is in the position MAN, then the buttons should not affect the process of the light Q1. The light Q1 state should not change when using the key switch (the mode switch).

The switching must be repeatable.

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