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 playground swing timer so let's
0:23
look at the example first playground
0:26
swing timer when a child starts swinging
0:29
a Time timer should count down from 30
0:31
second an alarm should sound when time
0:35
is up a reset button will start count
0:39
again that means when we turn on the
0:44
button and then the alarm will turn on
0:47
after 30 second so that means the child
0:51
will swing for 30 second and after 30
0:54
second an alarm should should uh get on
0:58
then to start the new round the reset
1:00
button is used so when reset button is
1:02
used the alarm will again turn on after
1:06
30 seconds allowing the child to swing
1:08
for 30 seconds so for this example we
1:11
will use normally open contact and
1:15
contact and with that we will also use a
1:17
timer that is on delay timer t on so
1:21
let's move to TI portal where we will
1:23
draw a ladder diagram for this
1:25
example so this is the interface of TI
1:30
after configuring the device we will go
1:34
to PLC tags and then default tag table
1:37
so here we need to add the input and the
1:40
output so we have two inputs firstly we
1:48
button and then we have one more input
1:54
button and then we have one output that
2:02
so the alarm is an output so its address
2:07
0.0 and after that we'll go to program
2:11
blocks and then main ob1 I will double
2:15
it so here we will be drawing letter
2:18
diagram for playground swing timer so I
2:21
will minimize this and then zoom into it
2:27
this so firstly I will inser insert a
2:30
normally open contact
2:36
here and then I will insert a coil so
2:39
this normally open contact will be a
2:42
start button so I will write start and
2:45
select start button from the list it is
2:48
the same list we have made in the PLC
2:50
tag table and then this is the coil
2:53
which will be used for alarm so I will
2:56
write ala and select alarm from the list
2:59
so when start button is turned on the
3:01
child will swing and after 30 second
3:04
alarm will turn on so this alarm will
3:06
turn on after 30 second for that we will
3:11
use a timer operation here and it should
3:14
be t on so I will double click on T on
3:19
okay so I will take it uh here and then
3:24
I can uh give the preset value here for
3:27
t on on delay timer that is 30
3:30
seconds so when start button is turned
3:33
on alarm will not immediately turn on it
3:38
will wait for 30 seconds and in those 30
3:41
seconds the child will swing and after
3:44
swinging for 30 seconds alarm will turn
3:47
on and to reset the alarm we will use
3:51
one more input that is reset button so
3:54
here we will be using reset button as
3:56
normally Clos contact so I will write re
3:59
e s and select reset button from the
4:01
list and then when reset button is
4:04
pressed and released this alarm will
4:07
again wait for 30 seconds allowing the
4:10
child to swing and after 30 seconds
4:13
after 30 seconds of swinging alarm will
4:17
on and after that we will also simulate
4:21
here I will click here that is start
4:26
simulation uh then I will click on okay
4:41
configuration click on
4:44
load and then click on
4:47
finish and after that I will start the
4:49
CPU here click on okay and then I will
4:55
monitoring and after starting the
4:58
monitoring let let's go to switch to
5:06
here here we need to create a new
5:09
project let's press crl + n and enter
5:13
it's creating the new project it will
5:15
take some time let's wait for it to
5:18
complete this process
5:41
click here and then simulation tables
5:45
and then double click on simulation
5:47
table one and after that right click
5:50
here and click on load project tags so
5:53
all the PLC tags are being listed here
5:56
so we can modify the uh value of start
6:00
button so when I turn on start button a
6:03
timer will start and this timer will
6:06
start from it will count down from 30
6:09
seconds so 7 8 it will go to 10 uh 30
6:13
second and after 30 second the alarm
6:15
will turn on and in those 30 seconds the
6:20
swinging and after 30 second alarm will
6:27
on so as you can see here here it's 28
6:31
29 and 30 and after 30 second alarm will
6:34
turn on and to start this we will use
6:38
the reset button so when it is pressed
6:41
and then released the alarm will again
6:43
turn off and it will wait for another 30
6:46
seconds and in those 30 seconds the boy
6:51
swing and he will swing for 30 second
6:53
and after 30 seconds again this alarm
7:08
so as you can see here after 30 seconds
7:11
alarm again turns on and it needs the
7:14
set button to be pressed and release so
7:16
alarm gets off and after 30 second it
7:19
will again turn on it was all about this
7:22
example thank you for watching