0:11
hello everyone welcome to automation
0:15
Community today in this video we are
0:18
going to discuss an example which will
0:20
be about home and parking lights so
0:23
let's look at the example first home and
0:27
parking lights when the lights are
0:29
turned off in a building an exit door
0:31
light remain on for 15 seconds after
0:34
that the parking lot light gets on until
0:39
parking so for this example we will use
0:43
normally open contacts as well as
0:45
normally closed contacts with that we
0:48
will be also using negated
0:51
coils and some timers like TP so let's
0:55
move to TI portal where we will draw a l
1:01
example this is the interface of di
1:05
firstly we will go to PLC tags and then
1:12
table so here we need to add our inputs
1:18
outputs so firstly there will be a start
1:21
button that will start the whole process
1:34
have for example we have four rooms in
1:38
the building so there will be light
1:45
two light three Suppose there are three
1:49
lights and then we have one more that is
1:55
light as these are output so its address
2:09
then we have one more output that is
2:17
light and then we have one more input
2:20
that is a sensor which detects the
2:22
presence of light in uh presence of car
2:25
in the parking so it is an output so its
2:31
after that we'll go to program blocks
2:37
ob1 so here we will be drawing lat
2:43
example so I will zoom into it like this
2:46
so firstly we will use a normally open
2:49
contact for the start
2:53
button and then I will insert a Quil
2:56
that will be used as a memory bit so it
2:58
will be m0 0 and then I will open the
3:02
branch here at a normally open contact
3:04
and then close so we are latching this m
3:06
0.0 here so the start button is a push
3:09
button so when it is spash and release
3:11
this m 0.0 gets through and when M 0.0
3:15
gets through and lights saw button is
3:18
pressed so M 0.0 that means start button
3:21
is being pressed and released
3:24
then the lights off button when pressed
3:28
when turned on all the lights will turn
3:36
use nug gated contacts
3:40
here open the branch add a coil open the
3:45
branch add a coil open the
4:16
coils for light one light two light
4:24
four so this will be light one and then
4:28
this will be Light 2 and this will be
4:40
three and then this Quil will be for
4:46
lights and this exit light will turn on
4:49
for 15 seconds so for that we will use a
4:51
timer operation and that will be
4:56
TP and this uh the Pressed value for
5:04
seconds after that we will use one more
5:08
normally open contact for m0 in network
5:11
3 m 0.0 and then when exit lights are
5:26
activated that means there is the there
5:31
parking so when it gets activated
5:36
then and uh the lights so button is
5:41
pressed then the parking lights will be
5:44
on so this will be parking light parking
5:49
light so we will start the simulation
5:52
and during the simulation we will learn
5:55
how this later logic will work
6:14
finish after that I will start
6:20
monitoring after that I will switch to
6:25
view where we need to create a new
6:28
project let's create a new project here
7:01
after that let's go to simulation tables
7:03
and then simulation table
7:05
one so I will WR click here and click on
7:11
taxs so as we can see
7:14
here initially light one light two and
7:17
light three is on and
7:20
then we will turn on the start button I
7:23
will turn it on press and release it and
7:27
then when lights saw button is pressed
7:30
all the lights gets off and with that
7:32
the exit light will turn on for 15
7:38
seconds and when the exit light gets
7:49
off gets off and there is a car there is
7:54
car in the parking so this sensor is
7:57
also activated then the parking light
7:59
will turn on and it will remain on until
8:03
the car gets out of the parking so when
8:06
the car gets out of the parking the
8:08
sensor gets deactivated so the sensor
8:11
got deactivated and the parking lights
8:14
again turned off it was all about this
8:17
example thank you for watching