0:05
Hello everyone, welcome to automation
0:08
community. Today in this video we are
0:11
going to discuss an example in which we
0:14
will control solenoid using three toggle
0:21
Example one. If toggle switch one is on
0:24
then solenoid one, solenoid 2 and
0:27
solenoid 3 will be on. If toggle switch
0:30
two is on then solenoid one and solenoid
0:33
2 will be on. If toggle switch three is
0:36
on then solenoid one, solenoid 2 and
0:39
solenoid 3 will be off.
0:43
So we have three toggle switches and
0:45
three solenoids. So when toggle switch
0:48
one is turned on all the solenoids gets
0:52
on and when toggle switch two gets on
0:56
will when we will turn on toggle switch
0:58
two then only solenoid one and solenoid
1:02
2 will remain on and solenoid 3 gets off
1:06
and when we turn on to switch three then
1:09
all the solenoids gets off. So in this
1:12
example we will use normally open
1:15
contact and two normally closed contacts
1:18
and for solids we will be using coils.
1:22
So let's move to cordices where we will
1:25
draw a ladder diagram for this example.
1:28
Firstly we will open cordises.
1:43
So we need to create a new project.
1:48
and then we can rename the project as
1:52
example one. And we need to select the
1:56
template as standard project and click
2:02
After that we need to uh keep it ladder
2:05
logic diagram and click okay.
2:15
After that we will click on PLCRG and
2:18
here we will draw the ladder diagram. So
2:21
firstly when toggle switch one is on all
2:23
the motors will turn on. So we will
2:26
insert a normally open contact here for
2:59
or we can write simply as toggle one.
3:04
And then we will insert a coil here for
3:08
solenoid one. This will be
3:13
one. Okay. And after that we need to
3:17
insert solenoid 2 and solenoid 3. Three
3:20
coils. So we will open the branch here.
3:25
And this will be solenoid
3:30
2. And after that we have one more
3:33
solenoid. Let's open the branch again
3:47
Click here and insert branch.
3:51
So in this way if we click here and
3:54
click on this insert branch no branch is
3:57
inserted. So firstly click here and
4:01
click on this option insert branch below
4:04
and then we will insert a coil. So in
4:06
this way we have inserted three coils
4:09
here. So this will be solenoid
4:16
Okay. So when toggle switch one is on
4:19
all the three solenoids will turn on.
4:23
And then we have toggle switch two. When
4:26
toggle switch two is turned on only
4:28
solenoid one and solenoid 2 gets remains
4:31
on and so 3 gets off. And before this
4:35
soil night tree, he'll insert a normally
4:37
closed contact here. And this will be
4:44
Okay. And then we have when toggle
4:47
switch three is on all the solenoids
4:50
gets off. So for that we'll insert
4:55
we will insert a normally closed contact
4:58
here and this will be stallinoi sorry
5:03
toggle switch three toggle switch three
5:06
okay so here when toggle switch one is
5:10
turned on the signal will pass through
5:15
and then the son I3 is off initially the
5:19
current will sorry the signal will pass
5:21
through this. So light one gets on. The
5:24
signal will pass through this. So light
5:26
two gets on. And similarly toggle two
5:28
switch two is is also false. Initially
5:32
the signal will pass through this and so
5:37
and for now all the soil lights are on
5:40
and now toggle switch two is turned on.
5:44
Okay. So toggle switch two is only
5:46
present here. So when it is turned on as
5:50
it is a normally closed contact the
5:52
signal will not pass through this. As a
5:54
result the soil light 3 gets off but so
5:57
light one and so light 2 remains on. And
6:00
then when toggle switch three is turned
6:02
on the signal will not pass through
6:04
this. As a result all the solids gets
6:08
For now we will generate code here.
6:13
Go to online and start simulation.
6:25
So as you can see here, all the soil
6:27
lights are false for now. And when I
6:32
turn on toggle switch one, we will click
6:37
make it true, and then debug.
6:40
And you can see here all the soil
6:42
knight, soil knight one, soil knight
6:44
two, and soil knight three. all the
6:45
solids gets on. So when I turn on toggle
6:50
switch one, all the solenite gets off.
6:56
when I turn on solenoid 2, debug it and
7:01
you can see so 3 gets off but solid one
7:05
and solid 2 remained on. And then when I
7:08
turn on uh toggle switch three, let's
7:12
debug it. And you can see all the
7:18
So let's repeat. We will turn all the
7:21
toggle switches as off.
7:25
As you can see here, initially all the
7:28
solenoids are in false state. And when
7:33
we change the state of toggle switch one
7:38
And then we need to debug it. Click on
7:40
write uh write values. You can see all
7:42
the solenoids gets on. So one is on. So
7:47
2 is on. So 3 is on. When turning on
7:50
toggle switch one, the signal passes
7:52
through this. Toggle switch three is
7:54
normally closed contact. In false state,
7:56
the signal will pass through this. So
7:58
light one gets on. The signal will pass
8:01
through this. So light two gets on. The
8:03
signal will pass through toggle switch
8:05
two as well. As it is a normally closed
8:08
contact and its status falls here. So in
8:11
fall state it's conducts no signal the
8:15
signal passes through this and soil 93
8:18
also gets also on and then when we turn
8:21
on toggle switch two as well
8:25
you can see here toggle switch two is
8:27
only present here. So in true state
8:30
toggle switch two is in true state. In
8:32
true state normally close contact do not
8:34
pass the signal. As a result so knight 3
8:37
gets saw but so night one is on and also
8:39
soil night 2 is also on. And then when
8:42
we turn on the toggle switch three we
8:45
change the state from false to true.
8:48
Let's debug it and write values. And
8:51
this toggle switch three will not allow
8:54
signal to pass through this. As a
8:56
result, signal will not reach sol 1, 2
8:59
and three. As a result, all the solids
9:01
gets off. It was all about this example.
9:05
Thank you for watching.