CODESYS PLC tutorial for pump and switch control using ladder logic and industrial automation concepts.
** Video Topics **
0:00 Programming Example
1:11 CODESYS Project
1:50 PLC Programming
6:22 Testing the Program
✨ FOLLOW US ✨
👉WhatsApp: https://whatsapp.com/channel/0029VaAbUecLNSa4rDPOV31o
👉Telegram: https://t.me/+u3qORX5FKec1NjA1
👉LinkedIn: https://www.linkedin.com/company/instrumentationtools/
👉Facebook: https://www.facebook.com/instrumentationtoolss/
👉Instagram: https://www.instagram.com/instrumentationtools/
👉YouTube: https://youtube.com/instrumentationtools?sub_confirmation=1
👉JOIN Courses: https://automationcommunity.com/
#codesys #programmingtutorial #ladderdiagram
Tags:
Show More Show Less View Video Transcript
0:05
Hello everyone, welcome to automation
0:08
community. Today in this video we are
0:12
going to discuss an example in which we
0:15
will use memory bits and latching. So
0:19
let's start.
0:22
Example seven. If toggle switch one is
0:24
on then pump one and pump two will be
0:27
on. If toggle switch one is off, then
0:29
pump one and pump two will be still on.
0:32
If toggle switch two is on, then palm
0:35
three and pump four will be on. If
0:37
toggle switch two is off, then palm
0:39
three and pal four will be still on.
0:42
So for this example, we will use memory
0:45
bits and implement latching. So in the
0:49
previous video, we have discussed the
0:52
same example, but we have used set
0:55
coils. But in today's video, we will be
0:58
using memory bits and we will be also
1:02
implementing latching.
1:04
So let's move to cortices where we will
1:07
draw the ladder diagram and also
1:10
simulate it.
1:12
I will open codices.
1:26
Let's create a new project. Click on new
1:28
project. You can name the project and
1:33
select this template as standard project
1:36
and click on okay.
1:40
Choose a PLC programming as ladder logic
1:43
diagram and click on okay.
1:51
Go to PLC programming here. Double click
1:54
on it. So here we will draw the ladder
1:56
diagram. So firstly I will insert a
1:59
normally open contact and a coil. This
2:03
normally open contact
2:11
will be
2:17
toggle switch one.
2:23
Okay. And this coil will be a memory bit
2:47
and we will this memory bit one here. So
2:50
I will insert one more normally open
2:53
contact in parallel to this to switch
2:55
one and this will be memory bit one
3:04
and this memory but bit one will be used
3:07
in another network. So let's insert a
3:09
network below and we will use a normally
3:13
open contact here which will be used as
3:16
this memory bit
3:19
one and this memory bit one
3:28
will turn on pump one and pump two. So
3:33
we'll insert a coil
3:37
and this coil will be as far one
3:47
and then this memory bit one will also
3:50
turn on pump one. So we will insert a
3:53
branch here and add a coil. So this coil
3:57
will be used for pump two.
4:01
So what will happen is that when toggle
4:03
switch one is turned on, memory bit one
4:06
gets on and when memory bit gets on,
4:09
pump one and pump two gets on. And then
4:12
when toggle switch one is turned off,
4:14
this memory bit still remains on because
4:17
we have lasted it here. This memory bit
4:20
one is last here. So this memory bit one
4:23
remains on when we turn this off. And
4:27
when it remains on, pal one and pal two
4:30
also remains on.
4:32
Similarly,
4:34
we will do the same for pal 3 and pal 4.
4:38
We'll use toggle switch two, another
4:40
memory bit, then latching, and then
4:43
using that memory bit to turn on palm 3
4:46
and pal 4. So, we'll insert a normally
4:49
open contact
4:51
and a coil. So this will be toggle
4:56
switch two. Okay. And this coil will be
5:02
memory bit 2
5:11
and after that
5:13
we will latch it here. So we will insert
5:16
a normally open contact in parallel with
5:19
toggle switch two and we will keep it as
5:22
memory bit 2
5:28
and after that we'll insert one more
5:30
network below and this memory bit 2 will
5:33
be used as normally open contact here
5:36
memory sorry memory bit 2 and this
5:41
memory bit
5:51
will turn on palm three and palm four.
5:54
So we will insert a coil here and then I
5:57
will open the branch. Insert a branch
6:00
and then one more coil. So this will be
6:03
pump three
6:06
and this will be pump four. So similarly
6:11
when to switch source 2 is turned on
6:12
memory bit 2 gets true and when it is
6:15
turned off it remains true and when it
6:17
remains true palm 3 and pal 4 also
6:20
remains on. So let's generate code
6:26
go online start simulation
6:29
login
6:31
yes
6:34
and then start.
6:36
So when toggle switch one is turned on
6:41
right values
6:43
this memory bit one gets on and when
6:46
this memory bit one gets on pump one and
6:49
pump two gets on and when toggle switch
6:52
two one is turned off
6:56
right values then this memory bit one
6:59
remains true because we have latched it
7:01
here. So the signal will pass through
7:04
this. As a result, this memory bit one
7:06
remains true. And when it remains on,
7:09
pump one and pump two also remain on.
7:12
Similarly, when toggle switch two is
7:15
turned on,
7:16
memory bit two gets on and this memory
7:20
bit two will turn on palm 3 and palm 4.
7:24
And when this toggle switch two is
7:27
turned off, let's debug it. Write
7:29
values. This memory bit two remains on
7:32
because we have latched it here. And
7:34
when it this memory bit two remains on,
7:37
it keeps pump three and pump four on.
7:41
So this is the use of application of
7:44
latching. We usually use this latching
7:47
in push buttons. So when input is on,
7:50
output gets on and when input gets off,
7:53
output remains off. On. Okay. So here
7:57
when toggle switch one gets on memory
7:59
bit gets on. When this memory bit gets
8:01
on two pumps gets on and when we turn it
8:04
off memory bit bit bit remains on and
8:07
when memory bit remains on these two
8:09
pumps also remain on. Similarly, when
8:12
toggle switch two is turned on, this
8:13
memory bit 2 gets on and when this
8:16
memory bit 2 gets on, it turns on this
8:19
BM 3 and BM four. And when toggle switch
8:21
two, when we will turn it off, due to
8:24
latching, memory bit two remains on. And
8:27
when it remains on, it puts the palm 3
8:30
and palm four on. It was all about this
8:33
example. Thank you for watching.
8:37
[Music]
#Science

