0:12
everyone welcome to automation Community
0:16
today in this video we are going to
0:18
discuss an example which will be about
0:21
time interval so let's look at the
0:27
first Interval Timer the on a device for
0:33
seconds that means we will be using a
0:36
switch to turn on a device and the
0:40
device will remain on for 2 seconds and
0:44
it will turn off and it will remain off
0:48
for 10 seconds and after that it will
0:52
again turn on for 2 seconds and then off
0:56
for 10 seconds and then again 2 seconds
0:59
on and then it will remain off for 10
1:02
seconds and it will repeat this repeat
1:06
this process again and again after an
1:10
interval so let's move to TI portal
1:13
where we will draw a ladder diagram for
1:18
example so this is the interface of TI
1:23
16 so firstly we have to add the inputs
1:28
and outputs in the the PLC tags so we
1:32
have only one input that is a start
1:39
button and then we have one output that
1:44
is a device that can be any device but
1:48
this is an output so its address will be
1:54
0.0 then we will go to program blocks
2:02
one so here we will draw the ladder
2:04
diagram so let's zoom into it like
2:08
this and then I will insert a normally
2:11
open contact that will be for a start
2:15
button so I will write St and select
2:18
start button from the list and then I
2:21
will insert a coil for the device and I
2:26
will write D and then select device from
2:30
the list but this device should remain
2:36
seconds so I will add a timer for
2:42
here then go to timer operations and
2:45
then double click on TP and then click
2:49
on okay so here I will write 2 s that
2:54
means 2 seconds so when start button is
2:57
turned on device turns on and it will
3:00
remain on for 2 seconds and after that
3:02
it will stop but it should remain off
3:05
for 10 seconds only for
3:09
that I will open the branch here I will
3:13
open the branch here and then add a coil
3:18
that will be a memory bit let's say it
3:24
0.0 and then this memory bit will turn
3:29
on after 10 seconds when the device is
3:33
turned off when device is off then the
3:37
timer will start and it will count up to
3:40
10 seconds and then M 0.0 will turn on
3:45
so here we will use a normally close
3:47
contact and its address will be Q 0.0
3:52
that is a that is this device when
3:55
device gets off then a timer will start
3:59
and it will delay the
4:01
on so we will insert t on and the time
4:06
will be the preset value will be 10s
4:11
seconds so when device gets off then
4:16
after 10 seconds M 0.0 gets through and
4:20
when it gets through here we will use
4:23
this as normally close contact at this
4:30
so so when the devices gets off then
4:35
after 10 second this m 0.0 gets through
4:38
and when it gets through the current
4:41
will not flow through this and then M
4:43
0.0 gets off and when it gets off then
4:47
this m 0.0 gets off the current will
4:50
flow through it as a result this TP will
4:54
once again start and the current will
4:57
flow through this for 2 seconds and and
4:59
in those 2 seconds device will remain on
5:02
and after 2 seconds the device turns off
5:05
the current will flow through it and
5:07
then it will wait for 10 seconds the
5:10
current will flow through it and this m
5:12
0.0 gets through this gets through this
5:15
gets through and then this gets off and
5:18
this gets off and then device gets on
5:21
and it will repeat again and again so
5:25
now we will start simulation here
5:31
and then we will wait for some
5:48
time after that I will start
5:51
CPU and then start monitoring and after
5:55
that we will switch to the project view
6:02
and here we need to create a new project
6:04
and let's wait for some time
6:37
we'll go to simulation tables and
6:39
simulation table one and then I will
6:42
right click here and load project
6:46
TXS so as you can see
6:50
here when I turn on this start
6:54
button the device gets on and it will
6:57
remain on for 2 seconds and then this
7:00
starts for 10 seconds and after 10
7:03
seconds this gets on on then off off and
7:07
this gets on so the device gets on after
7:09
10 seconds then remains off for 10
7:13
seconds 4 5 6 7 8 9 10 and then gets on
7:20
and then gets off remains off for 10
7:23
seconds it was all about this example
7:26
thank you for watching