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

1.11 Ülesanne: Kolme lambi juhtimine kolme nupuga

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 juhib valgustorni indikaatorlampe.

  • Indikaatorlamp H3 lülitatakse sisse kui STOP nuppu hoitakse all.
  • Indikaatorlamp H2 lülitatakse sisse kui hoitakse RESET ja mitte STOP nuppu all.
  • Indikaatorlamp H1 lülitatakse sisse kui hoitakse all ainult RESET ja STOP nuppu koos või ainult START nuppu.

Kui vastavate indikaatorlampide tingimused ei ole täidetud ei tohi vastav indikaatorlamp põleda.


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.

Selles animatsioonis töötab RESET nupp kui fikseeruv surunupp.

1.11 Exercise: Switching on three lights with three buttons

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 controls the indicator lights.

  • The indicator light H3 is switched on when the STOP button is held down.
  • The indicator light H2 is switched on when the RESET button is held down and at the same time the STOP button is not held down
  • The indicator light H1 is switched on when only the RESET and STOP buttons or only the START button is held down.

If the necessary condition for a light is not met, then the corresponding light is switched off.


CoDeSys animation

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

In this animation, the RESET button works as a lockable push button.

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