Learn PLC programming with exercises and practice ladder logics to build job-ready skills fast in the automation world.
Join PLC Courses:
https://learn.automationcommunity.com/
#learning #programming #exercises
Tags:
Learning PLC Programming with Exercises, learn PLC programming, PLC programming exercises, PLC practice problems, PLC homework, PLC worksheets, PLC quizzes, PLC projects for beginners, PLC tutorial with exercises, PLC step by step, PLC hands-on training, ladder logic exercises, structured text exercises, function block diagram exercises, SFC exercises, beginner PLC course, PLC coding practice, PLC logic challenges, PLC simulator practice, PLC examples with solutions, PLC study guide, PLC learning path, PLC training exercises pdf, PLC programming practice set, PLC skills test.
Show More Show Less View Video Transcript
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 automatic
0:22
sanitization so let's look at the
0:24
example
0:26
first automatic sanitization the
0:29
sanitization process should run for 10
0:32
seconds when the door is used four
0:34
times so there is an unlock button to
0:38
unlock the door so when unlock button is
0:41
pressed four times then the sanitization
0:43
process will start for 10 seconds so for
0:46
this example we will be using normally
0:49
open contacts normally close contacts
0:52
implementing latching and uh some timers
0:56
like
0:58
TP so let's move to TI portal where we
1:01
will draw a ladder diagram for this
1:05
example this is the interface of TI
1:07
portal firstly we'll go to PLC tags and
1:13
default tag table so here we need to add
1:16
our inputs and outputs so the first
1:18
input is unlock
1:21
button and then we have one output that
1:24
is sanitization that will be a
1:27
nozle that will do the sanitization of
1:30
the
1:31
door so this is an output so it address
1:34
will be like Q 0.0 so we have only two
1:37
inputs and uh
1:40
outputs so now we need to go to program
1:43
blocks and double click on Main ob1 so
1:47
here we will be drawing ladder diagram
1:49
so I will zoom into it so firstly I will
1:51
insert a normally open contact and a
1:54
coil this normally open contact will
1:58
represent the start button
2:00
or the unlock
2:02
button and then this coil will represent
2:05
a memory bit so it will it will be M 0.0
2:10
so now we need to latch it
2:13
here I will assign address to it as same
2:17
as this m
2:18
0.0 after that when unlock button is
2:22
pressed and released M 0.0 gets through
2:25
and when M 0.0 gets through another
2:29
memory bit gets on so this will be M
2:34
0.0 and with that when unlock button is
2:37
press uh is released so this will be
2:41
unlock button so when it is released
2:43
then another memory bit gets through and
2:46
we will latch it here so I'll open the
2:49
uh sorry I will open the branch add a
2:52
normally open contact and connect it
2:54
like this so this will be M
2:58
0.1 and then so this m 0.0 is a memory
3:02
bit that is storing the data that unlock
3:04
button is being
3:07
released this m 0.0 stores the data that
3:11
it is being pressed and this m 0.1
3:14
stores the data that unlock button is
3:16
being released and then when it is being
3:19
released so M 0.01 gets through and then
3:23
again when unlock button is when unlock
3:27
button is again pressed so another Co
3:31
another uh memory bit gets through so
3:35
this will be M
3:38
0.2 and we will latch it here I will
3:41
connect it like this and this will be
3:46
m02 so this m 0.2 stores the data that
3:50
uh the unlock button is being pressed
3:53
second time and then I will insert a
3:55
normally open contact that represent
3:57
this m 0.3 m0
4:08
.3 sorry this is M 0.2 M 0.2 when it is
4:14
uh uh gets through and unlock button is
4:17
released so we'll use a normally Clos
4:19
contact for unlock button and another
4:23
coil another memory bit gets on so this
4:25
m 0.3 stores a data that unlock button
4:29
is being released second time so I will
4:33
uh open the branch at a normally open
4:35
contact and latch it like this so the
4:38
address for this normally open contact
4:40
will be M 0.3 so when M 0.3 gets through
4:44
that means when the push button is being
4:47
leased second time when it gets
4:49
through and unlock button is being
4:53
pressed third time so this will be
4:56
unlock button third time then one more
4:59
memory bit gets through this is M
5:02
0.4 and when it gets through we will
5:05
latch it here so I will open the branch
5:07
add a normally open contact and connect
5:09
it like this so this will be M
5:13
0.4 and then when this m.4 gets through
5:16
when it gets through is when the unlock
5:19
button is being pressed third time so M
5:22
0.4 gets through when the unlock button
5:24
is being pressed third time and when it
5:27
is released so this will be unlock
5:30
button when it is released another
5:32
memory bit gets through another coil for
5:35
a memory bit m0.5 when it gets
5:40
through then we will latch it here at
5:44
the normally open contact connect it
5:47
like this so this will be m0.5
5:51
and then when m0.5
5:54
is uh activated is true when it is
5:58
activated it's activated when unlock
6:00
button is being pressed third time and
6:02
released so this is pressed
6:06
released
6:08
pressed released and then pressed and
6:12
now it is being released here you can
6:15
see pressed M 0.1 stores it is being
6:19
released M 0.2 stores it is being
6:21
pressed second time and it is being
6:24
released second time it is being pressed
6:27
third time and it is being release third
6:30
time and then when m0.5 gets through and
6:35
unlog button is pressed four time so
6:40
this is unlock button when it is being
6:42
pressed four time then one more memory
6:45
bid gets true this is M
6:48
0.6 and when it gets
6:51
true it is storing the data that unlock
6:54
button is pressed four times so this
6:57
will be M 0.6
7:04
and then so the uh the unlock button is
7:07
being pressed four time that means door
7:11
has been opened four times then we will
7:14
use normally open
7:16
contacts like M 0.0 M
7:20
0.0 then
7:23
m0
7:27
2 second time then M 0.4 third time and
7:32
then one more normally open contact or
7:34
simply we can use only one
7:38
contact that is M 0.6 when it gets
7:42
through then the sanitization process
7:45
will start and this will be sanitization
7:49
and the sanitization process will uh go
7:53
on for only 10 seconds so for that we
7:56
will use a timer operation TP
8:01
e and the preset value will be 10
8:11
seconds so now I will start simulation
8:31
click on
8:34
load and then
8:37
finish after that I will start the
8:40
CPU and then start
8:42
monitoring after that I will switch to
8:45
the project
8:50
view let's create a new project here
8:53
click on
8:58
create e
9:31
after that I will go to simulation
9:33
tables and simulation table
9:37
one right click here and click on load
9:40
project
9:41
TXS as you can see
9:48
here when unlock button is being pressed
9:52
first time this m 0.0 gets through and
9:59
when it is released this m 0.1 gets
10:03
through and when it is being pressed her
10:07
uh sorry second time this m 0.2 gets
10:11
through and when it is being released
10:14
second time this m 0.3 gets
10:18
through so the door has been uh open two
10:23
times then again when it is pressed
10:26
third time the M 0.4 gets through and
10:30
when it is being released third time
10:33
this m0.5 gets through and when it is
10:36
being pressed four time that
10:40
means the sanitization process will
10:43
start this m 0.6 gets through when the
10:46
unlock button is being pressed four time
10:49
that means the door has been opened four
10:52
time and the sanitization process has
10:55
started it has sanitized the door it was
10:59
all about this example thank you for
11:02
watching
11:04
[Music]
#Programming
#Education
#Engineering & Technology

