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

4.7 Ülesanne: Ühe nupuga ühe lambi lülitamine ajalise viitega 1

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 juhtpaneeli indikaatorlambi Q1 sisse 3 sekundit pärast START nupu aktiveerumist (seda ei pea nii kaua all hoidma). Teisel START nupu vajutusel lülitatakse indikaatorlamp Q1 välja pärast 3 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.

4.7 Exercise: Using a button to switch light with a delay 1

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 on the control panel light Q1 with a delay of 3 seconds when the START button was pressed. The light Q1 is switched off with a delay of 3 seconds when the START button was pressed second time.

The switching must be repeatable. There should be no flashing of the light when holding the START button.

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