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

2.1 Ülesanne: Kahe nupuga ühe lambi lülitamine 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 juhtpaneelil indikaatorlamp Q1 sisse, kui vajutada START nuppu. Pärast START nupu vajutust peab indikaatorlamp Q1 sisse jääma. Indikaatorlamp Q1 lülitatakse välja pärast STOP nupu vajutust.

Lülitamine peab olema korratav.


Soovitatav lugemismaterjal

Ülesande lahendamiseks tutvuda järgmiste peatükkidega.

2.1 Exercise: Switching a light with two buttons 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 the control panel light Q1 on when the START button is pressed. The light Q1 has to be on (remain in that state), when the START button is released (after pressing). The light Q1 is switched off when the STOP button is pressed.

The switching must be repeatable.

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