0:11
hello everyone welcome to automation
0:15
Community today in this video we are
0:18
going to discuss an example which will
0:20
be about trash compactor so let's look
0:24
at the example first trash compactor
0:27
cycle when a start button is pressed the
0:30
compactor should compress trash for 20
0:33
seconds and then it should throw the
0:35
trash out of it for 10 second while
0:38
throwing the trash out there should be
0:40
the presence of trash collecting tray
0:43
that means there will be a start button
0:47
when pushed the compression the process
0:49
of compression will start and it will
0:52
process for 20 seconds and after 20
0:55
seconds when there is the uh trash
0:58
collecting tray so there will be a
1:00
sensor that detects the presence of
1:02
trash collecting tray when there will be
1:05
uh uh detected the trash compact the
1:09
trash collecting tray then the
1:11
actuator will get activate to throw the
1:14
trash out and it this process will go on
1:17
for 10 seconds so for this example we
1:20
will use normally open contacts with
1:22
that we will be also using some time
1:25
like TP and T so let's move to TI portal
1:29
where we will we draw a ladder diagram
1:31
for this example this is a interface of
1:34
TI portal version 16 so firstly we need
1:38
to PLC tags I will double click on it
1:41
and double click on default tag table so
1:44
here we need to add our inputs and
1:46
output so the first input is start
1:49
button and then there will be the sensor
1:51
which detects the presence of the trash
1:56
tray and then we have two outputs the
2:02
compactor or I will write as compressor
2:07
and then we have one more that is
2:09
actuator that will throw out the
2:12
compressed trash after that I will
2:15
double click on program blocks and then
2:17
double click on Main ob1 so here we will
2:20
draw the ladder diagram I will minimize
2:23
this and then zoom into it like this so
2:25
firstly I will insert a normally open
2:27
contact and a coil so this normally open
2:30
contact will be a start button and then
2:33
this coil will be the compressor will
2:36
which will compact the trash and then
2:39
after that this compressor will uh will
2:42
start working only for 20 seconds so it
2:45
will work for 20 seconds for that I will
2:47
use a timer operation that is a
2:51
TP and the preset value for this TP will
2:54
be 20 seconds and after that we'll use
2:57
Network 2 here I will insert an normally
3:00
open contact for start button and then a
3:03
coil this normally open contact will be
3:05
the start button and then when there
3:07
will be a trash collecting tray so for
3:09
that we will use one more normally open
3:12
contact that will represent the sensor
3:14
and then the coil will be the
3:17
actuator so this actuator will run when
3:23
stopped so there will be a delay of 20
3:27
seconds so here we will use a t on here
3:30
and the preset value will be 20 seconds
3:33
and the actuator will throw out the
3:36
trash for 10 seconds for that we will
3:39
use a timer that is pulse timer TP and
3:42
the preset value will be 10
3:46
seconds so as you can see here when
3:49
start button is turned
3:52
on the current will flow through it as a
3:54
result the compressor will start
3:56
compressing the trash for 20 seconds and
4:00
after 20 seconds when the sensor gets
4:02
activated when there is a tray then the
4:05
acuator will throw out the trash for 10
4:08
seconds so now I will start simulation
4:32
finish after that I will start the CPU
4:35
here click on okay and then I will start
4:40
monitoring and after that I will switch
4:42
to the project view here where we need
4:45
to create a new project let's create a
5:22
after that I will double click on
5:23
simulation tables and then simulation
5:27
one and then I will right click here and
5:31
load project TX so I will turn on the
5:34
start button you can see here the
5:37
compressor has started working and it is
5:50
trash so while compressing if there is a
5:56
actuator the compression has started
5:58
then the actuator will throw out the
6:00
trash when the sensor is activated and
6:02
it will repeat this process for 10
6:05
seconds so when again start button is
6:08
pressed the compressor will start and
6:11
during compression if this if there is
6:13
the tray then sensor gets activated but
6:16
the actuator will not do the
6:19
process because there is being the
6:22
compression process and after
6:24
compression after 20 seconds the
6:26
actuator will start working so after to
6:29
20 seconds actuator will work and it
6:32
will work for 10 seconds and after 10
6:35
seconds this actuator this throwing
6:37
actuator will also stop working it was
6:41
all about this example thank you for