Siemens PLC: ON for 10 Seconds, OFF for 20 Seconds, Repeat Cycle
17K views
Nov 8, 2024
Learn how to program a Siemens PLC for a 10-second ON and 20-second OFF with a repeat cycle in industrial systems. #ON #OFF #SIEMENS Tags: siemens plc, on off cycle, plc programming, timed control, 10 seconds on 20 seconds off, ladder logic, repeating cycle, programmable logic controller, siemens plc example, timed automation, industrial automation, plc control system, cyclic operation, plc timer logic, plc timing function, automation process control, siemens plc tutorial, timed on off control, plc ladder diagram, industrial control systems
View Video Transcript
0:12
hello everyone welcome to automation
0:15
Community today in this video we are
0:18
going to discuss an example which will
0:21
be about pump cycle so let's look at the
0:24
example first pump cycling turn on a
0:29
pump for 10 seconds second then off for
0:31
20 seconds and repeats this cycle that
0:35
means firstly the pump will turn on for
0:38
10 seconds then it will remain off for
0:41
20 seconds then again 10 seconds on 20
0:45
seconds off and it will repeat this
0:48
process again and again that is 10
0:50
seconds on 20 seconds off 10 seconds on
0:53
20 seconds off and so on so for this
0:57
example we will use normally open
1:00
contacts and normally Clos contacts we
1:03
will be also using a memory bit and some
1:06
timers like pulse timer and on delay
1:08
timer so let's move to TI portal where
1:12
we will draw a ladder diagram for this
1:15
example so this is the interface of di
1:18
portal let's go to PLC tags then default
1:22
tag table so here we need to add our
1:25
inputs and outputs so we have one input
1:28
that is start button
1:30
I will write
1:32
start
1:34
but and then we have one output that is
1:41
pump so we have only one input and one
1:45
one output and then we will go to
1:47
program blocks and Main
1:50
ob1 so here we will be drawing ladder
1:53
diagram so I will zoom into it
2:11
so firstly I will insert a normally open
2:13
contact that will be for
2:17
switch and then I will insert a Quil
2:20
that will be for
2:22
pump so I will select Palm from the
2:26
list and then this Palm should be on for
2:30
10 seconds for that I will insert a
2:32
timer that will be pulse timer so I will
2:35
go to timer operation then TP I will
2:38
double click here and then click on okay
2:40
so this
2:43
TP so this TP for this TP I will set the
2:48
preset value as 10 second so when start
2:53
button is
2:54
pressed when start button is turned on
2:58
then pump will turn on for 10 seconds
3:01
and then it will turn off
3:04
and after that I will open the branch
3:08
and I will insert a
3:09
coil this coil will be used for a memory
3:13
bit so I will assign address to it as
3:16
m.0 and we will use this m
3:19
0.0 to make the pump once again on after
3:23
20 seconds so we will use this m 0.0
3:26
here as normally close contact I will
3:30
assign address to it as M
3:33
0.0 and this m 0.0 should turn on after
3:38
20 seconds so for that I will insert a
3:41
timer t on that is an on delay timer and
3:45
the pump should turn on after every 20
3:48
seconds so the pulse timer will be 20
3:51
second but this will start when pump is
3:55
off so here we will use a normally close
3:58
contact and it will be as a pump so when
4:02
start
4:04
button is turned on as you can see here
4:07
this pump will turn on for 10 second and
4:10
after 10 second when pump will turn off
4:14
then this normally close contact will be
4:17
in Fall State and in Fall State the
4:19
current will flow through it and then
4:21
this timer will start so this timer will
4:24
start after 20 seconds so it will wait
4:26
for 20 second then M 0.0 gets through
4:30
and here when it gets through it will
4:32
not allow current to flow through it as
4:35
a result as a result the current will
4:37
not flow through it as a result this m
4:40
0.0 gets off it gets false and when M
4:44
0.0 gets off this m 0.0 as normally
4:48
closed contact in F state it will allow
4:51
current to flow through it as a result
4:54
this TP will once
4:57
again once again
5:00
uh note the time so this TP will allow
5:03
current to flow through it and as a
5:06
result it will turn on the pump and the
5:09
current will flow through this for 10
5:11
seconds only as a result this pump will
5:13
remain on for 10 seconds and this
5:16
process repeats again and again so we
5:19
will go to this option that uh starts a
5:22
simulation and then I will click on okay
5:25
and then we will wait for some time
5:37
after that I will click on
5:40
load and after that I will click on
5:43
finish so then we will start the CPU
5:46
here by clicking on okay and then we
5:49
will start monitoring after that we need
5:52
to switch to the project View and there
5:54
we need to create a new project so
5:57
firstly we will create a new project
5:59
here control n and then click on this
6:02
create and let's wait for some time
6:33
after that I will go to simulation table
6:35
and simulation table one and then right
6:38
click here and load project TXS so here
6:41
there is a start button
6:43
here and I will turn it on when I turn
6:46
it on this timer starts and this pump
6:49
will turn on and it will remain on for
6:52
10
6:56
seconds and after that it will turn off
6:59
and as a result this ton will start and
7:02
it
7:03
will
7:05
start and stop after 20
7:08
second and after 20 second this m 0.0
7:12
gets two this gets two this gets off and
7:15
once again the pump will turn on and
7:17
again the pump is turned on and it will
7:19
remain on for 10 second after that it
7:21
will wait again for 20 second and then
7:24
again pump will turn on after 10 seconds
7:26
it gets off and after that after 20
7:29
seconds this m 0.1 gets through this
7:31
gets through this gets off and this gets
7:34
off and as a result the pump will turn
7:37
again on so 12 13
7:45
14 and after that this pump goes again
7:48
on it was all about this example thank
7:51
you for watching
7:55
[Music]