Beginner PLC Project: Auto Door with Motion Sensor
2 views
Aug 3, 2025
🚪 Learn how to build an automatic door system using a motion sensor and PLC with delay timers. Perfect for beginners in industrial automation. JOIN THE PLC COURSES: https://learn.automationcommunity.com/courses/ TAgs: PLC project, automatic door PLC, motion sensor door, PLC automation, beginner PLC tutorial, auto door using PLC, PLC with delay timer, industrial automation project, PLC door control, motion detection PLC, PLC examples, automation for beginners, Siemens PLC, automatic door system, basic PLC project, motion sensor with delay, PLC delay logic, proximity sensor PLC, open close door PLC, auto door project, PLC training, home automation PLC, door automation, smart door PLC project
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 automated door so let's look at
0:23
the example
0:24
first automat door with
0:28
delay the motion set detects when
0:31
someone approaching the door should wait
0:34
for 10 second and then open if no one is
0:37
detected for 5 seconds the door should
0:40
close that means when a sensor gets
0:44
activated that means when the sensor uh
0:48
gets uh some input that means some when
0:51
someone is detected the sensor gets
0:54
activated and with that the door will
0:57
wait for 10 seconds and then open open
1:00
and after opening the door it will once
1:03
again detect and if there is no one at
1:06
the door it will close after 5 seconds
1:10
so for this example we will use some
1:13
normally open contacts and normally
1:15
close contacts we will be also using
1:19
some memory bits and timers like T on
1:22
and T off so let's move to TI portal
1:26
where we will draw a letter diagram for
1:28
this example
1:31
this is the interface of TI portal
1:33
version 16 so firstly we need to go to
1:37
PLC tags and then default tag
1:40
table so here we need to add our inputs
1:44
and outputs so the first input is the
1:48
sensor which
1:50
detects the presence of someone at the
1:53
door and then we have an output that is
1:57
the lock of the door so I wrote
2:00
a door lock so as it is an output so its
2:04
address will be like this Q
2:07
0.0 so we have only one input and one
2:10
output let's move to program blocks and
2:14
then main
2:16
ob1 so here we will be drawing the
2:19
lateral diagram for automated door with
2:22
delay so I will minimize this and then I
2:25
will zoom into it so firstly I will
2:28
insert a normal open contact that will
2:31
represent the sensor and I will also
2:34
insert a coil so this normally open
2:36
contact will be the sensor and this Quil
2:40
will be a memory bit let's say m
2:45
0.0 and then we'll use this m 0.0 here
2:50
as normally closed contact so this is M
2:56
0.0 so when sensor gets detected M 0.0
3:00
gets activated and when it gets
3:02
activated the door lock should get off
3:05
so the door will be
3:06
unlocked so this is door
3:12
lock so initially the current flows
3:15
through this as this is a normally
3:17
closed contact and here the door gets
3:21
locked so when sensor gets
3:25
detected when sensor gets activated that
3:28
means the sensor detect that there is
3:30
someone at the door so this m 0.0 gets
3:34
through and when M 0.0 gets through the
3:37
current will not flow through it and the
3:39
door will
3:41
unlock but this m 0.0
3:44
should turn on after some time so we
3:49
will use a timer operation t
3:55
on and then this t on the preset value
3:58
for this will be 10 seconds so as you
4:01
can see here when there is someone at
4:03
the door this
4:05
m.0 does not get immediately turned on
4:09
but it will wait for 10 seconds so when
4:12
there is someone at the door it will
4:14
wait for 10 seconds and after 10 seconds
4:16
M 0.0 gets through and when M 0.0 gets
4:19
through the door gets unlocked so when
4:22
sensor gets uh activator the door will
4:25
unlock after 10 seconds and then here we
4:29
will use one more timer that is T off as
4:33
the door should get locked after 5
4:37
seconds so when
4:40
sensor gets deactivated so here will be
4:43
5 seconds so when sensor gets activated
4:46
M 0.0 gets through after 10 seconds and
4:50
when it gets through after 10
4:52
seconds when M 0.0 gets through after 10
4:56
second the door gets unlocked after 10
4:58
second so sensor detects the door will
5:01
wait and it will wait for 10 seconds and
5:03
after 10 seconds the door gets unlocked
5:06
and then when sensor gets deactivated
5:09
that means when there is no one at the
5:11
door this m 0.0 does not get immediately
5:15
Falls but it will wait for 5 seconds and
5:18
after 5 Seconds it will get off so it
5:21
will wait M 0.0 will wait for 5 seconds
5:24
and after 5 Seconds the door gets
5:27
locked so we will start start the
5:30
simulation here click on
5:46
Okay click on
5:49
load and then
5:52
finish after that I will start the
5:55
CPU click on okay and then start
5:58
monitoring
6:01
Let's uh switch to the project view here
6:03
where we need to create a new
6:08
project create a new project and let's
6:11
wait
6:46
click on simulation tables double click
6:48
on simulation table one and then right
6:50
click
6:52
here and then click on load project TX
6:55
so when when sensor gets activated you
6:58
can see the door gets unlocked
7:05
immediately the door does not get
7:08
unlocked immediately but it will wait
7:10
for 10 seconds so now the door is
7:14
unlocked as you can see here the current
7:16
does not flow through this when sensor
7:17
got activated it waited for 10 seconds
7:20
and after waiting for 10 seconds this m
7:21
0.0 got through and when it when it got
7:24
through the current doesn't flow through
7:26
this and the door lock doesn't log Lo
7:29
the door so it is currently unlocked and
7:33
then when there is no one at the door
7:36
the door doesn't get locked immediately
7:38
but it will wait for 5 seconds and after
7:41
5 Seconds this m 0.0 gets fals and the
7:43
door gets locked again you can see again
7:46
when sensor gets
7:49
activated the door doesn't got unlocked
7:52
immediately but it will wait for 10
7:54
seconds as you can see here 5 6 7 8 9 10
7:58
and then m0 Z gets through and when it
8:01
gets through the current will not pass
8:02
through this and the door will be
8:04
unlocked and then when there is no one
8:07
at the door the sensor gets deactivated
8:10
and M 0.0 gets off for after 5 seconds
8:13
and after 5 Seconds the door gets locked
8:15
again it was all about this example
8:18
thank you for watching
8:20
[Music]