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

4.11 Ülesanne: Kahe lambi vilgutamine

Juhtpaneeli kirjeldus

Juhtpaneelil on 3 nuppu (S1 - Start, S2 - Stop, S4 - Reset), üks võtmega lüliti (S3 - Auto/Man) ja 4 indikaatorlampi (H1, H2, H3, H4).

Ülesande püstitus

Koostada programm, mis vilgutab vaheldumisi juhtpaneeli indikaatorlampe Q1 ja Q2 sagedusega 0,5 Hz, kui STOP nuppu ei ole vajutatud. Kui STOP nupp on vajutatud, siis peavad indikaatorlambid Q1 ja Q2 olema väljalülitatud.

Perioodi leidmise valem: T = 1 / f


Soovitatav lugemismaterjal

Ülesande lahendamiseks tutvuda järgmiste peatükkidega.

4.11 Exercise: Two light flashing

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 flashes alternately the control panel light Q1 and Q2 with a frequency of 0.5 Hz when the STOP button is not pressed. The lights Q1 and Q2 are switched off when the STOP button is pressed down.

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

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