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 cooking timer so let's look at
0:25
first cooking timer a microwave should
0:28
run for 1 minute when the start button
0:31
is turned on an additional 30 second
0:34
should be added if a plus 30 second
0:38
on so for this example we will use
0:42
normally open contact with that we will
0:46
be also using some timers like TP and T
0:50
on so let's move to TI portal where we
0:54
will draw a ladder diagram for this
0:57
example this is the interface of t
1:00
portal version 16 I will go this way
1:03
click on it and then I will go to PLC
1:06
tags and then default tag
1:09
table so here we need to add our inputs
1:13
and outputs so we have only two inputs
1:16
and one output so the first input is
1:26
button and then we have one more input
1:38
button and then we have one output that
1:43
microwave I will write micro wave
1:47
and its address will start with Q as it
1:51
is an output so its address will be Q
1:55
0.0 after that I will go to program
2:04
ob1 so here we will be drawing the
2:07
ladder diagram for cooking
2:09
timer so firstly I will insert a
2:13
normally open contact that will be for
2:17
button and then I will insert a coil
2:20
here that will be for the
2:25
microwave and then this microwave should
2:30
for 1 minute so for that I will insert a
2:34
timer here and that will be
2:42
timer will allow the current to flow
2:45
through it only for 1 minute so I will
2:51
minute or I can write 60 seconds 60
3:00
so after that when start button is
3:03
turned on this microwave gets on and it
3:06
will remain on for 1 minute and
3:10
then if at 30 second button is turned on
3:15
then microwave should remain on for 30
3:18
seconds more so it will remain on for 90
3:24
seconds firstly it will remain for 60
3:27
seconds and then if uh this add 30
3:30
second button is turned on then
3:33
microwave will remain on for another 30
3:36
seconds so I will open the branch here
3:39
add a normally open contact that will be
3:43
uh this at 30 second button so this will
3:46
be add 30 second button so after turning
3:49
on this 30C button this microwave should
3:54
remain on for 30 seconds
4:07
for that I will insert a
4:11
timer that is the on or we can uh simply
4:25
TP so here we will use this add 30
4:29
second I will use this as a memory
4:32
bit so this memory bit will get on when
4:37
start button is turned on and then there
4:40
will be a delay of 30 uh sorry 60
4:48
ADD 30 seconds and then the current will
4:58
seconds sorry this is start button when
5:02
start button is turned on it will wait
5:07
and after 60 seconds if at 30 second
5:11
button is pressed at 30 second is
5:17
then this memory bit should get
5:20
on and this will be M
5:23
0.0 so this m 0.0 should remain on for
5:29
30 seconds so there will
5:31
be 30 seconds preset value so when start
5:36
button is turned on microwave gets on
5:39
and it will remain on for 60 seconds and
5:42
in those 60 seconds the current will not
5:44
flow it and after 60 seconds that is
5:48
when when microwave is turned off then
5:50
the current will flow through it as a
5:52
result this Ed 30 second is also pressed
5:57
then this m 0.0 gets true and it will
6:00
gets through and it remains through for
6:03
30 seconds and when this m 0.0 remains
6:07
true for 30 seconds as a result the
6:10
current will flow through this for 30
6:12
seconds so this microwave remains on for
6:16
another 30 seconds so I will start
6:41
here uh we will select
6:46
these cut from here and then paste
6:51
here so here we will use a memory
7:01
and then when M 0.1 is
7:16
0.1 so we'll start simulation here
7:31
after that we will start CPU
7:39
monitoring so here we will switch to
8:22
let's create a new project here
8:57
after that I will go to simulation
8:59
tables and simulation table one and I
9:02
will right click here and then load
9:06
tags so when start button is turned
9:13
on the microwave turns on and it will
9:17
remain on for 30 seconds sorry after it
9:21
will remain on for 60 seconds and after
9:24
60 seconds it will turn
10:09
after 60 seconds the motor the microwave
10:19
off and then when I turn on
10:25
this uh Ed start button here so this
10:30
microwave will again turn on and it will
10:33
remain on for 30 seconds
11:01
and after 30 seconds this microwave will
11:03
turn off it was all about this example
11:07
thank you for watching