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:19
be about Fish Feeding system so let's
0:23
look at the example first Fish Feeding
0:26
system the system should dispense three
0:28
types of food for 5 Seconds every 15
0:31
seconds it will dispense food only if
0:34
there is movement of fishes in the near
0:39
means there will be a sensor which will
0:42
detect the movement of fishes and then
0:46
there will be three walls which will
0:48
dispense three types of food one by
0:52
one and the wall will remain open for 5
0:57
each and then it will repeat the process
1:00
again and again so for this example we
1:03
will use normally open contacts normally
1:06
close contact we will be also using
1:09
memory bits and timers like TP and T on
1:13
so let's move to TI portal where we will
1:15
draw a ladder diagram for this
1:18
example this is the interface of TI
1:21
portal version 16 firstly we need to go
1:25
to PLC tags then default tag table so
1:29
here we need to add add our inputs and
1:31
outputs so the first input
1:34
is start button and then we have one
1:42
sensor and then we have three
1:49
one so this is an output its address
1:54
0.0 and then we have valve 2 and valve
1:58
three so these vales will be
2:03
here after that we'll go to program
2:09
ob1 so here we will be drawing the
2:12
ladder diagram so firstly I will zoom
2:14
into it like this I will insert a
2:16
normally open contact and a
2:19
Quil this normally open contact will be
2:28
button and then this this uh coil will
2:31
be a memory bit and this memory bit will
2:34
get activated when start button is
2:36
pressed and the sensor is activated that
2:40
will sense the mement of
2:42
fishes and then this m 0.0 will be used
2:46
here as normally open
2:50
contact to turn on the Val one so this
2:58
one and then this Val one will operate
3:01
for 5 seconds for that we will use a
3:03
timer operation TP here and the preset
3:07
value for this TP will be 5
3:11
seconds and then I will open the branch
3:14
here add a Quil so this will be Val two
3:19
so this valve two will operate when Val
3:21
one is off so I will insert a normally
3:25
closed contact that will represent Val
3:27
one and Val two will turn on for 5
3:31
seconds for that we will use a timer
3:34
operation TP and the preset value will
3:38
seconds and then I will open the branch
3:41
add a coil and this coil is for wall
3:45
three and this Val three will turn on
3:52
one when Val one and Val
3:56
two are closed so this will represents
4:00
valve one and this represents valve two
4:04
and the valve uh three will operate for
4:07
5 seconds for that we will use a TP here
4:12
TP the preset value will be 5
4:20
seconds and then so there will be W one
4:24
for 5 seconds W two for 5 seconds and w
4:27
three for 5 seconds so there will be 50
4:29
15 seconds when valves are open so I
4:32
will insert a normally open
4:34
contact and this will be M
4:37
0.0 and this m 0.0 will turn on one more
4:42
coil that is a memory bit M 0.1 and it
4:46
will turn on this m 0.1 after 15
4:51
seconds so this is the preset value will
4:54
be 15 seconds and this M1 will be used
5:00
here as normally closed contact so this
5:04
will be M 0.1 so this makes it in a loop
5:09
so after 15 seconds so when start button
5:12
is turned on and sensor gets activated
5:14
then M 0.0 gets through and when M 0.0
5:18
gets through firstly the Val one gets on
5:21
and when it gets off then Val two gets
5:23
on for 5 seconds and when it gets off
5:26
the valve three gets on and after 5
5:29
Seconds all the valves get off and after
5:32
15 second this m 0.1 gets to and when M
5:36
0.1 gets to M 0.0 gets off and when M
5:40
0.0 gets off this m 0.1 gets off and
5:45
when M 0.1 gets off M 0.0 gets on again
5:49
and when M 0.0 gets on again again that
5:52
these timers will start the Val one gets
5:54
on the Val two gets on and Val three
5:57
gets on so after 15 seconds
6:02
the preset value for this will be 30
6:10
seconds as after dispensing the after
6:14
dispensing the type 34 it will wait for
6:17
15 second then again Val one will open I
6:21
will start the simulation here
6:53
finish after that I will start
7:03
monitoring after that I will switch to
7:11
view let's create a new project here
7:47
go to simulation tables and simulation
7:51
one so here I will right click and then
7:54
click on load project tag so when I turn
7:57
on the start button nothing
8:00
happens because there should be the
8:03
moment of sensor the moment of fishes so
8:07
the sensor will get activate if there is
8:09
a movement in the fishes so if there is
8:11
movement in the fishes this m 0.0 gets
8:14
through and when it gets to this y 0.0
8:17
valve gets on then valve two gets open
8:20
for 5 second then valve three gets open
8:23
for 5 seconds then it will wait for 15
8:27
seconds and then uh this 0.1 gets to
8:31
when M 0.1 gets to m0 point gets off and
8:34
again this m 0.1 gets off and this m 0.0
8:38
gets on and with that this Val one gets
8:43
again so as you can see Val one got on
8:46
then again Val two will get on and again
8:49
then Val three will get on and after
8:52
waiting for 15 seconds this Val one will
8:55
get on again and again it was all about
8:59
thank you for watching