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

4.8 Ülesanne: Ühe nupuga kolme lambi sisse ja välja lülitamine ajaliste viidetega

Süsteemi „Nuppud ja lambid” kirjeldus

Süsteemus on 3 nuppu (S1 - Start, S2 - Stop, S3 - Reset) ja 3 indikaatorlampi (H1 - roheline, H2 - kollane, H3 - punane).

Ülesande püstitus

Koostada programm, mis peale START nupu vajutamist lülitab valgustorni indikaatorlambi H1 sisse. 3 sekundit hiljem lülitatakse indikaatorlamp H2 sisse. Hiljem sama viitega lülitatakse ka indikaatorlamp H3 sisse. Iga indikaatorlamp peab olema sees 4 sekundit.

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.

CoDeSys animatsioon

Alla laetav animatsioon virtuaalsele PLC-le "CODESYS Control WIN V3". See võimaldab testida PLC programmi arvutis ilma reaalse riistvarata.

4.8 Exercise: Using a button to switch three lights with a delay

Description of the buttons and lights

The MFS stand has three buttons (S1 – Start button, S2 – Stop button, S4 – Reset button) and 3 indicator lights (lamps) (H1 – Green light, H2 – Yellow light, H3 – Red light).

Description of the exercise

Write a program that switches on the indicator light H1 when the START button was pressed. 3 seconds later the light H2 is switched on. Later on the light H3 is switched on with a delay (same delay value as by light H2). Each light is switched on only for 4 seconds.

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


CoDeSys animation

Animation for virtual PLC "CODESYS Control WIN V3". Download it and solve the exercise on the PC without the real equipment.

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