0:06
Hello everyone, welcome to automation
0:09
community. Today in this video we are
0:12
going to discuss an example in which we
0:15
will be controlling two burgers using
0:20
So let's look at the example first.
0:23
Example 10. If toggle switch one is on
0:27
then buzzer one and buzzer two will be
0:29
on. If toggle switch one is off then
0:32
buzzer one and buzzer two will be still
0:35
on. If toggle switch two is on then
0:38
buzzer one and buzzer two will be off.
0:41
That means when we turn on the toggle
0:43
switch one both the buzzers buzzer one
0:47
and buzzer two turn on. And when we will
0:50
turn off the toggle switch one both the
0:52
buzzers remain on. And to turn off the
0:56
buzzers, we will uh turn on toggle
0:59
switch two. So to keep the buzzers on
1:03
even when the toggle switch is turned
1:05
off, we will implement latching. And
1:08
with that we will be using some memory
1:11
bits, normally open contacts and
1:13
normally close contacts. So let's move
1:16
to codices where we will draw a ladder
1:19
diagram for this example.
1:21
So I will open cortices.
1:36
So firstly we need to create a new
1:38
project. Click on new project.
1:42
Write the name of the uh of the this
1:44
project. Keep it as example
1:48
10. And we can also select the location
1:52
where this file will be saved. And then
1:55
we can also select the template as
1:57
standard project and click on okay.
2:03
After that you can select your device
2:05
from this drop-own list and also we can
2:08
select the PLC programming for now we
2:11
will be using LA logic diagram and then
2:19
We need to click here
2:25
So double click here and here we will
2:27
draw the ladder diagram.
2:30
So first of all we will insert an a
2:33
contact a normally open contact for
2:36
toggle switch one. So this will be
2:42
Okay. And then we will insert a coil for
2:46
a memory bit. So it will be
2:52
Okay. And we will latch this memory bit
2:57
here. So we will insert a normally open
3:02
in parallel with this toggle search one.
3:04
So this will be again memory bit.
3:12
And after that we will use this memory
3:14
bit in the next network. So we will
3:16
insert right click here and insert
3:19
network below. Click here.
3:22
So one more network will be inserted
3:24
here below this network and here we will
3:27
insert a contact and this contact will
3:32
be for the upper memory bit. So we will
3:38
and this memory bit will be used to turn
3:41
on the two buzzers. So for that we will
3:44
insert a coil and this coil the first
3:47
coil will be buzzer one. Okay.
3:53
And after that we need to add one more
3:56
buzzer. For that we will insert one more
3:59
coil here. But before that we need to
4:02
insert branch so that we can insert one
4:04
more coil. So we will insert one more
4:06
coil here and this will be buzzer
4:15
So when toggle switch one is turned on
4:18
memory bit gets through and when the
4:20
memory bit gets through. So firstly the
4:23
when toggle switch one is turned on the
4:25
signal will pass through this contact.
4:28
As a result, this memory bit gets to
4:30
gets on. And when this memory bit gets
4:33
on, the signal will pass through this
4:36
contact. As a result, this buzzer one
4:38
and buzzer two gets on. And when toggle
4:42
switch one is turned off, the signal
4:44
will not pass through this. But this
4:47
memory bit is true. This contact is also
4:50
true. So the signal will pass through
4:52
this. As a result, this memory bit
4:54
remains true even when the toggle switch
4:56
one is turned off. And when the memory
4:59
bit is true, the signal still passes
5:02
through this contact. As a result, these
5:04
two buzzers still remain on. So when
5:07
toggle switch one is turned on, buzzer
5:09
one and buzzer two both gets on. And
5:12
when toggle switch one is turned off,
5:14
both the buzzers remain on. And to turn
5:18
off these two buzzers, we will we are
5:20
going to use one more toggle switch that
5:23
is toggle switch two. And for that
5:27
we will use a normally closed contact.
5:30
So here we will use a normally closed
5:36
So we will insert a normally closed
5:38
contact like this. And
5:50
So when toggle switch two is turned on,
5:54
when toggle switch two is turned on, the
5:57
signal will not pass through this. As a
6:00
result, this buzzer one and buzzer two
6:02
gets off. We can also use this buzzer
6:10
So that when toggle switch two is turned
6:13
on the uh the signal will not pass
6:16
through this as a result. So this is a
6:18
normally closed contact. So a normally
6:22
closed contact in true state will not
6:24
allow signal to pass through this. As a
6:27
result this memory bit gets off and when
6:29
it gets off the signal will not pass
6:31
through this also. As a result buzzer
6:34
one and buzzer two gets off. So we will
6:41
go to online and start simulation
6:45
and after that we will log in.
6:51
And then we will start. Okay. So
6:55
initially both the buzzers are off. So
6:57
to turn on these two buzzers we have to
7:00
turn on toggle switch one. So to turn on
7:03
this toggle switch one, we need to
7:05
change its state. We will click here.
7:08
When the true appears here, we will go
7:10
to debug and click on write values. You
7:13
can see here toggle switch one gets
7:15
true. With that, this memory bit gets
7:18
true because the signal passes through
7:20
this. And you can see here this toggle
7:22
switch two. This toggle switch two is in
7:25
false state and it is used as a normally
7:29
closed contact. So a normally closed
7:31
contact in false state allow the signal
7:34
to pass to this as a result this memory
7:36
bit gets through. You can see here
7:38
memory bit is true and when this memory
7:41
bit is true it is a normally open
7:43
contact here. So the state of this
7:45
contact is true. So the signal will pass
7:47
through this. As a result this buzzer
7:49
one and buzzer two gets true. And then
7:54
we will turn off this toggle switch one.
7:56
Click here. When false false appears
7:58
here then we will go to debug and write
8:01
values. You can see here toggle switch
8:03
one gets false but memory bit remains
8:07
true because we have latched this memory
8:09
bit here. So the signal passes through
8:11
this as a result this memory bit still
8:14
remains true and when memory bit is
8:17
still true the current still flows
8:19
through this. As a result this uh this
8:21
buzzer one and buzzer two still remains
8:24
on. And to uh to turn off these buzzer
8:27
buzzers buzzer one and buzzer two we
8:30
will be using this toggle switch two we
8:32
need to turn it on. Click here make it
8:34
true and then go to debug and click on
8:36
write values. You can see here the
8:38
toggle switch two does not allow signal
8:42
to pass through this because it is a
8:44
normally closed contact in true state.
8:46
It will not allow signal to pass through
8:48
this. As a result this memory bit gets
8:50
false. You can see here memory bit got
8:53
false and as a result this memory bit
8:55
will not allow signal to pass through
8:57
this as a result this buzzer one and
9:00
buzzer two got got off. So the state of
9:03
buzzer one and buzzer two
9:05
uh will be false. So when toggle switch
9:08
two is turned on buzzer one and buzzer
9:11
two gets off. It was all about this
9:14
example. Thank you for watching.