0:00
Hello everyone. Welcome to Automation Community
0:16
Today in this video, we are going to discuss an example in which we will blink a light
0:23
That means for some time it will be on and for some time it will be off
0:28
then again on, off, on and off. So let's look at the example first
0:38
Blinking light. Make a light blink with a time interval of two seconds and five seconds
0:44
So we will start with the first one that is the time interval of two seconds
0:49
That means when we turn on a switch, then LED will be on for two seconds and then off for two seconds
0:57
then again on for two seconds and again off for two seconds so let's move to a t i portal where we will draw a ladder diagram for this example
1:09
so this is an interface of t i portal we go here and then PLC tags And then default tag table
1:20
And then we need to add here inputs and outputs. We have one input and one output
1:26
We have start button. Let's say one. And then we have start button two for LED 2
1:38
for LED 2 and then we have LED 1 and then we have LED 2 so this is an output so its address
1:49
will be Q0.0 and LED 2 is also an output so its address will be Q0.1 so as now we
1:58
have added our inputs and outputs and then we will go to program blocks and main
2:03
OB1 so here we will draw the ladder diagram so firstly I will insert a
2:14
normally open contact here for start button and then a coil for LED 1 so this
2:21
will be start button 1 and this will be LED 1 so this will be LED 1 so this This LED will be on for two seconds so i will insert a timer here
2:36
and it will be TP so the preset value for this tp will be two seconds
2:46
and then this LED 1 should turn on after 2 seconds so i will open the branch here and then i will insert a
2:54
coil. So this coil will be a memory bit M0.0. And then this memory bit for this we will use
3:02
one more timer that will be on delay timer and for this the preset value will also be two
3:08
seconds. So we will use this memory bit here as normally close contact. I will assign address
3:16
to it as M0.0 and then we will use LED1 as normally close contact here and
3:24
and I will select LED 1. So here, when start button is turned on, the current will flow through it
3:31
This LED 1 turns on and it will remain on for 2 seconds
3:35
And after 2 seconds this LED 1 will turn off and this when this LED 1 will turn off then this timer will start and it will go to two seconds and after two second this will turn on and then this M 0 also gets on and with that this M0 here is a normally
3:57
close contact so the current will not flow through it as a result this M0.0 gets off
4:03
So when this gets off the current will flow through it and this timer will again start and as a result
4:09
this LED 1 will turn on for 2 second then off for 2 seconds and then on for 2 seconds
4:15
so here I will use one more network so the up so for LED 1 2 there will be a time
4:24
interval of 2 seconds so this will be switch start button 2 then a coil for LED 2 and
4:34
then a timer for this as it will be on for 5 second i will insert tp so the preset value for this will be 5 second and then it should remain on for 5 seconds also for that i will open the branch here insert a coil and this will be memory bit so i will assign address to it as m0.1 and this