0:07
hello everyone myself
0:10
badas in this video I will discuss one
0:16
example which is single lamp control
0:23
buttons so design a PLC program to
0:27
control one lamp with three push buttons
0:32
so the lamp can be switched on or off
0:39
button so here we have three inputs
0:44
which are three push buttons and one
0:47
output which is one lamp so this is very
0:53
example try to solve this example
0:56
without seeing the solution
1:04
software and take three
1:07
inputs we have three push buttons so we
1:11
have to take three inputs and give the
1:15
command the first one is push
1:25
one the second one is push button two
1:32
is push button three so these are the
1:44
inputs okay now we have one output
1:50
right so I will take one
1:55
output and give comment lamp
2:04
now I will go to basic functions and I
2:12
gate so this is my R I will just give
2:20
R now what I will do I will connect
2:23
these three inputs to this logic
2:49
now I will take one pulse
2:53
relay go down and select pulse relay
2:58
remember you can compl complete this
3:00
program using other function blocks also
3:04
and make sure to try other blocks
3:09
okay now I will connect the output of R
3:12
to the fulse relay trigger input so give
3:17
the comment also pulse
3:24
relay okay now the program is completed
3:30
now I go to tools and click
3:35
simulation before doing the simulation
3:38
as these are push buttons and change the
3:41
property to push button instead of
3:44
toggle switch so right click properties
3:48
simulation and select the second one
3:51
momentary push button make type okay
3:55
similarly for the second one select the
3:58
second one push button
4:00
and you can see in the
4:02
bottom the graphics symbols are updated
4:06
from the toggle switch to the push
4:09
button go to properties
4:12
simulation and select push button make
4:19
now I will press push button one one
4:24
happened sorry we have
4:27
not the output is not yet connected so
4:30
just come out and connect the
4:34
output okay now go to tools and
4:39
simulation now I will press push button
4:45
happened pulse relay output is on lamp
4:48
is on again I will select push button
4:52
two one time I'll press it one time
4:56
off what happens here is
5:00
the r logic gate output will be on when
5:04
when of the push button is on okay the
5:10
relay when the input is received at
5:12
trigger input at Pulse relay block pulse
5:16
relay block output will toggle if the
5:18
output is in off State it will become on
5:22
if the output is in on
5:24
state then it will be off it will change
5:27
its state from off to on are off to off
5:32
to on or on to off whenever there is an
5:35
input pulse at trigger input right now
5:39
what is the output of pulse relay it is
5:43
off so whenever we press the push button
5:48
then the r logic gate output will be on
5:51
right at that time the pulse relay will
5:55
input each time when the trigger input
5:58
is in on State 0 to 1 okay then the
6:03
pulse relay changes its
6:07
state now what I will do instead of
6:11
Simply pressing and releasing the push
6:13
button immediately I will press and hold
6:16
for some time and then I will release so
6:19
that you can see the status clearly now
6:24
I will press push button three and I
6:26
will fold okay see what happens push
6:30
button three is on that is why the r
6:34
third input is on when any of the input
6:38
of the r gate is in on state then output
6:42
is in on state as R output is on the
6:46
pulse relay trigger input is also on
6:51
whenever pulse relay receives a signal
6:53
at the trigger it changes its state
6:56
output State previously the output state
6:59
is in off state right now it is in on
7:02
state that is why our lamp is also on
7:05
now I will release the push button three
7:09
okay if any of the push button is
7:12
pressed now then what happens again
7:15
signal will go to R Block again R Block
7:18
will send the signal to the pulse relay
7:20
again pulse relay changes its output
7:25
state right now it is an on state it
7:27
will go to off that means lamp will be
7:30
off I will press push button one and
7:34
then I will hold and then I will release
7:41
this we can control one
7:43
lamp with any of the push
7:50
okay this is very simple
7:55
task I will give you one simple task to
7:58
you try to practice is okay right now we
8:02
have three inputs three push buttons and
8:05
one output one lamp right now consider
8:10
10 inputs 10 push buttons and one lamp
8:15
you have to control this lamp with any
8:19
of the 10 push buttons okay same concept
8:24
I'm just increasing the number of push
8:26
buttons so try to solve this share with
8:30
us through the comment section how do
8:32
you implement this okay this simple
8:36
task thank you I will meet you in the