0:05
Hello everyone, welcome to automation
0:08
community. Today in this video we are
0:12
going to discuss an example in which we
0:14
will control buzzers over toggle
0:17
switches. So let's start.
0:20
Example two. If toggle switch one and
0:23
toggle switch two are on, then buzzer
0:26
one and buzzer two will be on. If toggle
0:30
switch two and toggle switch three are
0:32
on, then buzzer two will be off and
0:35
buzzer three will be on. So we have
0:38
three toggle switches and three buzzers.
0:41
So buzzer will one will be on when
0:44
switch one and switch two both are on
0:46
and buzzer two will also be on when the
0:49
both switches are on.
0:52
And then if we turn on switch two and
0:56
toggle switch three then buzzer two will
0:59
be off and buzzer 3 will be on. So for
1:04
this example we will use normally open
1:06
contacts as well as normally close
1:10
So let's move to cortices where we will
1:13
draw a ladder diagram. For this example
1:17
I will open cordices here.
1:29
Firstly, we need to create a new
1:31
project. I will click on new project and
1:36
we'll select the template as standard
1:38
project and we can rename the project
1:43
example 2 and then click on okay.
1:49
And then we need to select Lal logic
1:52
diagram here and then click on okay
1:58
and then double click here on PLC PRG.
2:01
So here we will draw the ladder diagram.
2:04
So firstly we will insert a normally
2:06
open contact for toggle switch one. So I
2:18
and then we will insert one more
2:20
normally open contact here
2:28
and this will be toggle switch two
2:34
So when toggle one, toggle switch one
2:36
and toggle switch two are on then LED
2:39
one and LED 2 will turn on. Sorry buzzer
2:43
one and buzzer two will be on. So here
2:46
we will insert a coil one coil for
2:49
buzzer one buzzer one and then we need
2:53
to add one more coil here for buzzer
2:56
two. So I will click here and then
3:08
So this will be buzzer two.
3:12
So for buzzer one and buzzer two to be
3:15
on both the toggle switches should be
3:17
on. Toggle switch one and toggle switch
3:19
two should be on. And then when switch
3:23
two uh and switch three are on, toggle
3:26
switch two and toggle switch three are
3:28
on then LED 3 will turn on.
3:32
So we will insert a network below and
3:37
then we will insert two normally open
3:44
So this normally open contact will be
3:54
and this will be toggle switch three. So
3:58
when toggle switch two and toggle switch
4:01
three are on then alarm sorry this
4:05
buzzer three will be on.
4:09
So here we will write as buzzer 3 and
4:13
with that buzzer two should turn off. So
4:17
to turn off buzzer three sorry to turn
4:20
off buzzer two we will add a normally
4:23
closed contact here and this will be
4:38
So when toggle switch one and toggle
4:41
switch two are on then buzzer one will
4:44
be on. So when these two toggle switches
4:47
are on the signal will pass through this
4:50
when their state will be true then
4:53
buzzer one and buzzer two both will be
4:55
on. As this toggle switch three is in
4:58
pole state and it is a normally closed
5:01
contact. In pole state it will allow
5:04
signal to pass through it. As a result,
5:07
this buzzer two will also turn on.
5:10
So for now, we have turned on these two
5:13
switches and buzzard one and buzzer two
5:15
are on. And then when we turn on toggle
5:18
switch three as well, when toggle switch
5:21
two and toggle switch three are on, then
5:24
buzzer three will be on with that buzzer
5:31
So let's generate code here.
5:36
and then we'll go online and start
5:40
After that we'll log in, click on yes
5:53
So as you can see here all the buzzers
5:55
are off. So we need to turn on toggle
5:58
switch one. So when we turn on toggle
6:01
switch one we'll debug it right values
6:04
nothing will happen buzzer one and two
6:06
remains off. So we need to turn on
6:09
toggle switch two as well. Let's debug
6:14
We will firstly turn it and then debug
6:17
and write values. And you can see here
6:20
buzzer one and buzzer two gets on.
6:25
So what happens is that when we turn on
6:27
the toggle switch one in true state this
6:30
is a normally open contact in true state
6:33
it will allow signal to pass through it.
6:36
So this toggle two needs to be turned
6:38
on. So when we turn on this toggle
6:41
switch two this is also a normally open
6:44
contact. So in true state it will allow
6:47
signal to pass through this. As a result
6:49
this buzzer one gets on. And then here
6:53
we have used a normally closed contact
6:55
for toggle three. Toggle switch three.
6:57
As you can see here toggle switch three
6:59
is in false state. So when normally
7:02
closed contact is in false state it
7:05
allows signal to pass through it.
7:08
And you can see here buzzer 2 is also
7:12
And then to turn on the buzzer three
7:15
these two inputs should be on. As you
7:18
can see here toggle two toggle switch
7:20
two is on already on and we need to turn
7:23
on toggle switch three here. So I will
7:27
uh change it to true and then debug and
7:30
write values and you can see buzzer
7:35
So when toggle switch three is on you
7:38
can see it is a normally open contact in
7:40
true state it will allow signal to pass
7:42
through this. As a result, this buzzer 3
7:44
gets called. And this toggle switch
7:47
three. It is a normally closed contact.
7:50
When turned on, when it state is true,
7:53
it will not allow signal to pass through
7:55
this. As a result, this buzzer two gets
7:58
off. It was all about this example.
8:01
Thank you for watching.