0:11
hello everyone welcome to automation
0:14
Community today in this video we are
0:17
going to discuss an example which will
0:20
be about color detection so let's look
0:23
at the example first color detection
0:26
suppose we are using a color detection
0:28
machine with three colors red blue and
0:31
green a sensor is used to detect the
0:33
colors when the red color is sensed
0:36
machine a works for 10 seconds when the
0:38
blue color is sensed machine B is
0:41
actuated for 8 seconds and when the
0:43
green color is sensed machine c will
0:46
work for 5 seconds so for this example
0:50
we will use normally open contacts and
0:53
with that we will also Implement
0:54
latching and use timer like TP so let's
1:00
where we will draw a ladder diagram for
1:03
example this is a interface of TI portal
1:06
version 16 firstly we'll go to PLC tags
1:15
table so here we need to add our inputs
1:18
and outputs so the first input is the
1:21
start button that will start the whole
1:26
process after that we have some sensors
1:30
the first sensor is the red sensor that
1:33
will detect the red color and then we
1:39
sensor and then we have green
1:46
sensor and then we have some outputs
1:52
a as it is an output so its address will
1:58
0.0 and then we have have
2:01
machine B and then we have
2:07
C after that we'll go to program blocks
2:14
ob1 so here we will draw the ladder
2:17
diagram so I will zoom into it firstly I
2:20
will insert a normally open contact and
2:22
a coil so this normally open contact
2:25
will be the start button and this Quil
2:27
will be a memory bit so the start button
2:31
will be a push button so when it is
2:32
pressed and release this m 0.0 should be
2:35
on so I will open the branch add a
2:38
normally open contact and then close so
2:41
this will be M 0.0 so in this way we
2:44
have implemented latching so now I will
2:47
insert a normally open contact that will
2:49
represent M 0.0 and then we have coil
2:53
for machine a so this machine a will
2:58
work when the red when the sensor
3:00
detects the presence of the red color so
3:03
this will be the red color sensor so
3:06
this sensor will detect the red color
3:08
and it gets on if it if the object is
3:11
red colored then this sensor gets
3:13
activated and machine a works for 10
3:16
seconds so for that we will use a timer
3:18
operation and that will be TP and the
3:21
preset value for TP will be 10
3:25
seconds after that I will open the
3:30
add a coil and this coil will be for
3:33
machine B and this machine B will
3:37
operate only if the sensor detects the
3:39
blue color so when there is the uh when
3:43
the object is blue colored then this
3:45
sensor will get activated and machine B
3:49
will operate and the Machine B should
3:51
operate for 8 seconds for that we will
3:53
use TP here at Pulse timer and for that
3:58
the preset value will be 8
4:00
seconds and then there will be machine C
4:03
also so I will open the branch and then
4:05
add a coil so this will
4:07
be machine C and this machine c will
4:12
operate only if the object is green
4:15
color so there will be a sensor which
4:20
when the uh when the object is green
4:24
colored and when it gets activated
4:26
machine c will operate and machine C
4:32
seconds so for the for TP the preset
4:36
value will be 5 seconds so now as you
4:39
can see here when start button is
4:41
pressed and released this m 0.0 gets
4:43
through and when it gets through
4:50
then and then if the object is red
4:54
colored machine will operate for 10
4:56
seconds if the if the object is green
4:59
colored machine c will operate for 5
5:01
seconds and if the object is blue
5:03
colored then machine B will operate for
5:05
8 seconds so for now I will start
5:27
simulation after that I will start
5:31
CPU and then I will start
5:35
monitoring after that I will switch to
5:41
view where we need to create a new
5:45
project let's create a new project here
6:19
after that we'll go to simulation tables
6:21
and then simulation table one and then I
6:25
will right click here and click on load
6:28
project tag so firstly we need to press
6:31
and release the start button then this m
6:33
0.0 gets through and then if the red
6:37
activated the machine a will operate for
6:40
10 seconds but machine B and machine c
6:44
operate so after 10 second machine a
6:47
gets off and as you can see
6:51
here if the blue if the uh if the object
6:54
is sensed blue so this sensor gets
6:56
activated and machine b gets on for for
6:59
8 seconds and after 8 seconds it gets
7:02
off and then if the object is green
7:05
colored it gets activated and machine c
7:08
will operate for f and after that it
7:11
will turn off so as you can see here
7:15
if the green colored object is detected
7:18
machine c will operate for 5
7:21
seconds and if the bluee is sensed then
7:26
machine B will operate for 8 seconds and
7:29
it will will automatically stop and if
7:34
is red color then machine a will operate
7:38
for 10 seconds it was all about this
7:42
example thank you for watching