1
00:00:07,400 --> 00:00:13,670
Hello, in this video, we are going to learn the application of encoder and left side, you will see

2
00:00:13,670 --> 00:00:15,500
the camera and we are.

3
00:00:16,740 --> 00:00:21,690
Working with the 24 volt DC and one.

4
00:00:22,890 --> 00:00:25,910
2024 Pulsers encoder.

5
00:00:26,160 --> 00:00:33,900
OK, this is the real encoder and this is the presentation, because previously we already learned theoretical

6
00:00:33,900 --> 00:00:40,910
information about the encoders and now you can see we can use applicable software, high speed counters

7
00:00:41,070 --> 00:00:45,720
count or two hundred and thirty five till two hundred and thirty four.

8
00:00:45,990 --> 00:00:50,180
And we have applicable hardware, high speed counters in here.

9
00:00:50,220 --> 00:00:53,910
OK, it's starting from count to two hundred and forty three.

10
00:00:53,910 --> 00:01:01,350
And the last two fast to input encoder counter is two hundred and fifty four.

11
00:01:01,560 --> 00:01:06,930
OK, what we have let's go to ISP solved firstly.

12
00:01:07,080 --> 00:01:12,060
OK, and let's make it bigger a little bit more and let's check.

13
00:01:13,200 --> 00:01:24,030
For this encoder, um, I will make try to OK, what we hear, we hear and read cable and this is our

14
00:01:24,030 --> 00:01:27,750
power supply of this encoder and we have blue cable.

15
00:01:27,750 --> 00:01:30,540
Is Grant OK, minus and.

16
00:01:32,590 --> 00:01:42,880
Pulse policies like and that minus is yellow and Afar's is white and a minus pulse is or cable is brown,

17
00:01:43,610 --> 00:01:46,810
B is pink and B minus is black.

18
00:01:47,440 --> 00:01:50,970
OK, let's go to this area.

19
00:01:52,720 --> 00:01:56,370
I will change this camera to here.

20
00:01:56,800 --> 00:02:06,240
OK, what we here are connected to a first two is, um, white white cable to zero input and, uh,

21
00:02:06,250 --> 00:02:09,190
pink cable is before us is to each one.

22
00:02:09,530 --> 00:02:11,700
OK, let's go back to here.

23
00:02:12,940 --> 00:02:22,000
And also, 24 world is connected to, um, red and blue cable, the power supply must be connected to

24
00:02:22,000 --> 00:02:28,000
our encoder and efforts and before is connected, why it's going to be solved.

25
00:02:28,540 --> 00:02:32,080
Firstly, and I will create a new project.

26
00:02:33,250 --> 00:02:40,860
And as a and I will say, OK, a new project is created and I will say new and OK.

27
00:02:42,370 --> 00:02:45,640
Aldy and one thousand is always on contact.

28
00:02:45,640 --> 00:02:54,640
And let's go to hear, for example, we want to count up and down so we can use count two hundred and

29
00:02:54,640 --> 00:02:55,690
forty seven.

30
00:02:55,960 --> 00:03:02,690
Or if you want to reset our encoder value, we can use count two hundred and forty eight.

31
00:03:02,710 --> 00:03:13,410
OK, this one here and I will go to ISP of again and I will add my 32 bit counter the counter counter

32
00:03:13,420 --> 00:03:22,000
two hundred and forty seven until for example this volume and I will go online and I will send this

33
00:03:22,390 --> 00:03:24,280
code to my c.p.u.

34
00:03:24,920 --> 00:03:26,950
OK, this is the value.

35
00:03:26,950 --> 00:03:27,730
But why.

36
00:03:27,730 --> 00:03:33,880
Because it is already connected to my p.l.c. and this code is standard.

37
00:03:34,150 --> 00:03:36,040
For example, let's add to here.

38
00:03:36,430 --> 00:03:37,120
Um.

39
00:03:40,010 --> 00:03:43,880
Helda am one, OK, start.

40
00:03:45,020 --> 00:03:45,680
Count.

41
00:03:46,680 --> 00:03:48,390
Undescended.

42
00:03:49,270 --> 00:03:56,530
And this project is going to be transferred to C.P.U, OK, it's centered and I will make it zero.

43
00:03:56,770 --> 00:04:06,060
OK, now if I turn my encoder to clockwise or counterclockwise, nothing is changing in here.

44
00:04:06,070 --> 00:04:07,540
You can focus it.

45
00:04:08,420 --> 00:04:16,250
And then if I activate and one of it is activated and let's go to turn control.

46
00:04:17,910 --> 00:04:25,320
Or clockwise now or clockwise direction, and it's counting counter to two hundred and forty seven,

47
00:04:25,620 --> 00:04:33,150
is it cause now one thousand five hundred and seven if I go to another direction, OK, you will see

48
00:04:33,510 --> 00:04:38,700
the policies are decreasing and now the policies are increasing.

49
00:04:39,840 --> 00:04:50,100
So this is up and down counter with the encoder, but what if we want to count just one direction like

50
00:04:50,370 --> 00:04:51,490
here, OK?

51
00:04:51,810 --> 00:04:59,990
For example, we want to use just zero input and we want to go up and we want to go down.

52
00:05:00,270 --> 00:05:01,400
How can we do this?

53
00:05:01,440 --> 00:05:06,260
We can focus to hear up and down is according to.

54
00:05:07,370 --> 00:05:14,480
And one thousand two hundred and thirty five, this is actually really special to delay and we can use

55
00:05:14,480 --> 00:05:14,620
it.

56
00:05:14,900 --> 00:05:15,890
How can we use it?

57
00:05:16,010 --> 00:05:20,840
Let's go to project again and I will make it lower.

58
00:05:20,840 --> 00:05:21,690
Okay.

59
00:05:21,710 --> 00:05:22,400
Close it.

60
00:05:25,030 --> 00:05:27,310
For example, let's start.

61
00:05:28,820 --> 00:05:31,850
Helda and one thousand.

62
00:05:34,150 --> 00:05:37,990
And then and the M 20.

63
00:05:38,950 --> 00:05:39,760
For example.

64
00:05:40,590 --> 00:05:42,460
Go up, OK?

65
00:05:43,080 --> 00:05:53,370
And what we need to do now, for example, when this contact is active, we can focus to here or not

66
00:05:53,370 --> 00:05:54,020
like this.

67
00:05:54,690 --> 00:05:59,310
Again, I will add to here and the counter.

68
00:06:01,190 --> 00:06:06,490
Counter, let's take a look to two hundred and thirty five, OK?

69
00:06:08,540 --> 00:06:11,390
Two hundred and thirty five till now.

70
00:06:12,390 --> 00:06:15,660
And then what we need next network.

71
00:06:16,670 --> 00:06:19,760
Helda and one thousand.

72
00:06:21,100 --> 00:06:25,330
And and the M twenty five.

73
00:06:26,420 --> 00:06:29,570
Go down for the hour.

74
00:06:30,970 --> 00:06:39,970
Encoder and let's check to Auxillary and one thousand two hundred and thirty five, this will be activated

75
00:06:40,390 --> 00:06:40,960
out.

76
00:06:42,270 --> 00:06:50,760
And one thousand two hundred and thirty five, OK, counting mode is Countdown is active, so let's

77
00:06:50,760 --> 00:06:52,620
send it to our C.P.U.

78
00:06:53,530 --> 00:06:54,580
It is sending.

79
00:06:59,900 --> 00:07:01,160
Now, this is our value.

80
00:07:01,180 --> 00:07:02,410
Let's reset it.

81
00:07:03,490 --> 00:07:04,120
And then.

82
00:07:05,620 --> 00:07:13,030
I will turn it to one side, it is increasing, another side still increasing, the other side increasing

83
00:07:13,030 --> 00:07:14,860
and other side is increasing.

84
00:07:15,040 --> 00:07:16,620
Always it is increasing.

85
00:07:16,990 --> 00:07:21,130
I will make it zero and I will turn it to clockwise.

86
00:07:21,290 --> 00:07:22,760
OK, it's increasing.

87
00:07:22,780 --> 00:07:23,550
You can see it.

88
00:07:23,860 --> 00:07:25,960
And if I activate, go down.

89
00:07:26,080 --> 00:07:27,700
Now, let's take a look.

90
00:07:28,270 --> 00:07:29,150
It is decreasing.

91
00:07:29,170 --> 00:07:32,740
OK, you can see it is always decreasing.

92
00:07:33,010 --> 00:07:39,570
So if I activate this out slowly, it will go up always.

93
00:07:39,610 --> 00:07:41,820
Now it's going up and up.

94
00:07:42,190 --> 00:07:48,900
And if I activate this one, this auxiliary, it OK, this will increase always.

95
00:07:49,030 --> 00:07:55,300
So this is just one physical input to go up and down for the encoders.

96
00:07:55,540 --> 00:07:59,410
And how can we understand our encoders?

97
00:07:59,680 --> 00:08:02,200
Just you need to take a look once two lines.

98
00:08:02,200 --> 00:08:08,110
It's one thousand twenty four pulse and the power supply of a encoder is two and forward.

99
00:08:08,110 --> 00:08:08,950
It's suitable.

100
00:08:09,170 --> 00:08:12,020
And here you can see here.

101
00:08:12,280 --> 00:08:16,410
OK, so what is the difference between and others?

102
00:08:16,450 --> 00:08:18,790
I have another one encoder in here.

103
00:08:21,280 --> 00:08:29,650
And this encoder you can see in here, Five-fold, OK, this is Five-fold Encoders, so this is not

104
00:08:29,650 --> 00:08:38,550
HGL, this is TTYL encoder and it is giving a one thousand twenty four palls for one turn.

105
00:08:38,740 --> 00:08:43,720
And here the cabling and the colors are also added.

106
00:08:43,960 --> 00:08:51,740
So this is the TTL encoder and the lovechild and here we have HGL Encoder 24 volt.

107
00:08:51,850 --> 00:08:54,940
OK, so I am finished for this video.

108
00:08:55,090 --> 00:09:01,930
If you have any question about encoders, you can ask immediately a question or you can give a feedback

109
00:09:01,930 --> 00:09:02,330
to us.

110
00:09:02,650 --> 00:09:04,420
See you in the next video.
