Hello, in this video, we are going to learn the application of encoder and left side, you will see
the camera and we are.
Working with the 24 volt DC and one.
2024 Pulsers encoder.
OK, this is the real encoder and this is the presentation, because previously we already learned theoretical
information about the encoders and now you can see we can use applicable software, high speed counters
count or two hundred and thirty five till two hundred and thirty four.
And we have applicable hardware, high speed counters in here.
OK, it's starting from count to two hundred and forty three.
And the last two fast to input encoder counter is two hundred and fifty four.
OK, what we have let's go to ISP solved firstly.
OK, and let's make it bigger a little bit more and let's check.
For this encoder, um, I will make try to OK, what we hear, we hear and read cable and this is our
power supply of this encoder and we have blue cable.
Is Grant OK, minus and.
Pulse policies like and that minus is yellow and Afar's is white and a minus pulse is or cable is brown,
B is pink and B minus is black.
OK, let's go to this area.
I will change this camera to here.
OK, what we here are connected to a first two is, um, white white cable to zero input and, uh,
pink cable is before us is to each one.
OK, let's go back to here.
And also, 24 world is connected to, um, red and blue cable, the power supply must be connected to
our encoder and efforts and before is connected, why it's going to be solved.
Firstly, and I will create a new project.
And as a and I will say, OK, a new project is created and I will say new and OK.
Aldy and one thousand is always on contact.
And let's go to hear, for example, we want to count up and down so we can use count two hundred and
forty seven.
Or if you want to reset our encoder value, we can use count two hundred and forty eight.
OK, this one here and I will go to ISP of again and I will add my 32 bit counter the counter counter
two hundred and forty seven until for example this volume and I will go online and I will send this
code to my c.p.u.
OK, this is the value.
But why.
Because it is already connected to my p.l.c. and this code is standard.
For example, let's add to here.
Um.
Helda am one, OK, start.
Count.
Undescended.
And this project is going to be transferred to C.P.U, OK, it's centered and I will make it zero.
OK, now if I turn my encoder to clockwise or counterclockwise, nothing is changing in here.
You can focus it.
And then if I activate and one of it is activated and let's go to turn control.
Or clockwise now or clockwise direction, and it's counting counter to two hundred and forty seven,
is it cause now one thousand five hundred and seven if I go to another direction, OK, you will see
the policies are decreasing and now the policies are increasing.
So this is up and down counter with the encoder, but what if we want to count just one direction like
here, OK?
For example, we want to use just zero input and we want to go up and we want to go down.
How can we do this?
We can focus to hear up and down is according to.
And one thousand two hundred and thirty five, this is actually really special to delay and we can use
it.
How can we use it?
Let's go to project again and I will make it lower.
Okay.
Close it.
For example, let's start.
Helda and one thousand.
And then and the M 20.
For example.
Go up, OK?
And what we need to do now, for example, when this contact is active, we can focus to here or not
like this.
Again, I will add to here and the counter.
Counter, let's take a look to two hundred and thirty five, OK?
Two hundred and thirty five till now.
And then what we need next network.
Helda and one thousand.
And and the M twenty five.
Go down for the hour.
Encoder and let's check to Auxillary and one thousand two hundred and thirty five, this will be activated
out.
And one thousand two hundred and thirty five, OK, counting mode is Countdown is active, so let's
send it to our C.P.U.
It is sending.
Now, this is our value.
Let's reset it.
And then.
I will turn it to one side, it is increasing, another side still increasing, the other side increasing
and other side is increasing.
Always it is increasing.
I will make it zero and I will turn it to clockwise.
OK, it's increasing.
You can see it.
And if I activate, go down.
Now, let's take a look.
It is decreasing.
OK, you can see it is always decreasing.
So if I activate this out slowly, it will go up always.
Now it's going up and up.
And if I activate this one, this auxiliary, it OK, this will increase always.
So this is just one physical input to go up and down for the encoders.
And how can we understand our encoders?
Just you need to take a look once two lines.
It's one thousand twenty four pulse and the power supply of a encoder is two and forward.
It's suitable.
And here you can see here.
OK, so what is the difference between and others?
I have another one encoder in here.
And this encoder you can see in here, Five-fold, OK, this is Five-fold Encoders, so this is not
HGL, this is TTYL encoder and it is giving a one thousand twenty four palls for one turn.
And here the cabling and the colors are also added.
So this is the TTL encoder and the lovechild and here we have HGL Encoder 24 volt.
OK, so I am finished for this video.
If you have any question about encoders, you can ask immediately a question or you can give a feedback
to us.
See you in the next video.