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

4.2 Ülesanne: Ühe nupuga kahe lambi sisse lülitamine ajalise viitega

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 START nupu all hoidmise ajaks indikaatorlambi Q1 sisse. Kui START nuppu on all hoitud 3 sekundit, siis tuleb lülitada ka indikaatorlamp Q2 sisse.

START nupu vabastamisel peavad nii Q1 kui Q2 välja lülituma.

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.

4.2 Exercise: Using a button to switch on two lights with a delay

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 Q1 on when the START button is held down. If the START button is pressed for 3 seconds, then the light Q2 is switched on.

When the START button is released, the lights Q1 and Q2 are switched off.

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

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