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

1.6 Ülesanne: Ühe lambi sisse lülitamine ühe või teise nupuga

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 indikaatorlambi Q2 sisse, kui START nupp või RESET nupp on alla vajutatud. Kui see tingimus ei ole täidetud ei tohi indikaatorlamp Q2 põleda.


Soovitatav lugemismaterjal

Ülesande lahendamiseks tutvuda järgmiste peatükkidega.

1.6 Exercise: Switching on one light with one or the other button

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 Q2 on when the START button or RESET button is held down. If the condition is not met, then the light Q2 is switched off.

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