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

4.11 Ülesanne: Kahe lambi vilgutamine

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 vilgutab vaheldumisi valgustorni indikaatorlampe H1 ja H2 sagedusega 0,5 Hz, kui STOP nuppu ei ole vajutatud. Kui STOP nupp on vajutatud, siis peavad indikaatorlambid H1 ja H2 olema väljalülitatud.

Kasutada selleks ühte taimerit.

Perioodi leidmise valem: T = 1 / f


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.11 Exercise: Switch-able two light flashing

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 flashes alternately the indicator lights H1 and H2 with a frequency of 0.5 Hz when the STOP button is not held down. Lights H1 and H2 are switched off when the STOP button is held down.

Use only one timer.

A formula for finding the time period: T = 1 / f


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 .