1
00:00:07,380 --> 00:00:13,780
Hello, in this video, we are going to learn the art we I instruction.

2
00:00:13,920 --> 00:00:20,460
OK, this is what we are going to learn in this video and we will test with our stepper motor.

3
00:00:20,790 --> 00:00:24,780
OK, the two hundred and two hundred and two.

4
00:00:24,780 --> 00:00:26,480
And why is why one?

5
00:00:26,490 --> 00:00:29,010
I will explain them all to you.

6
00:00:29,430 --> 00:00:31,230
All the twenty 25.

7
00:00:32,700 --> 00:00:33,670
Are we.

8
00:00:33,670 --> 00:00:38,520
I let's remember the two hundred is the cost to produce.

9
00:00:41,150 --> 00:00:41,990
Palls.

10
00:00:42,890 --> 00:00:49,550
No, OK, the two hundred and two is pulse frequency value.

11
00:00:50,980 --> 00:00:54,220
And why zero is Paul's?

12
00:00:55,730 --> 00:00:56,480
Output.

13
00:00:57,340 --> 00:01:00,970
Port and why one is Direxion.

14
00:01:02,440 --> 00:01:12,190
And one more thing for the DDR, the I instruction, let's remember, and the M one thousand doesn't

15
00:01:12,190 --> 00:01:12,660
matter.

16
00:01:12,940 --> 00:01:23,800
And now we will take a look to move the two hundred or two hundred and fifty to the one thousand three

17
00:01:23,800 --> 00:01:24,740
hundred forty three.

18
00:01:25,060 --> 00:01:31,240
This is ramp down, up, ramp up and down for the first group pass out.

19
00:01:31,240 --> 00:01:44,200
But we are working with the Y zero for the pulse output, uh, port and the 1343 is spatial data registers

20
00:01:44,200 --> 00:01:46,660
for the ramp up and down time.

21
00:01:46,690 --> 00:01:50,970
So now we can send it to our CPU.

22
00:01:51,370 --> 00:02:01,930
Now it is sending for the NAACP and OK, it's finished and now we are on line our CPU's run situation.

23
00:02:02,200 --> 00:02:04,330
OK, let's give the producer pause.

24
00:02:04,660 --> 00:02:06,390
How many parts.

25
00:02:06,400 --> 00:02:14,980
Imagine twenty five thousand calls is going to be produced by CPU and Farkash volume is the speed of

26
00:02:14,980 --> 00:02:15,610
the stepper.

27
00:02:15,610 --> 00:02:19,570
Motor is going to be for example, five hundred.

28
00:02:19,780 --> 00:02:24,400
And if I activate this one you can see it is turning.

29
00:02:24,640 --> 00:02:26,350
OK, turning.

30
00:02:28,750 --> 00:02:30,160
Time is zero.

31
00:02:30,190 --> 00:02:30,940
You can see.

32
00:02:31,940 --> 00:02:32,850
Because why?

33
00:02:32,870 --> 00:02:38,930
Because we are sending zero change to, for example, five hundred millisecond.

34
00:02:38,950 --> 00:02:43,610
This is now five hundred milliseconds, but the direction is to the.

35
00:02:45,280 --> 00:02:48,100
This site, you can see.

36
00:02:49,270 --> 00:02:51,690
It will be to focus, OK?

37
00:02:53,830 --> 00:02:58,780
Now, it's stunning to decide I will activate Y zero.

38
00:02:59,950 --> 00:03:09,100
But still, it is turning to the other side and I will make it set off because it was, uh, it needs

39
00:03:09,100 --> 00:03:11,920
to turn to another direction.

40
00:03:11,930 --> 00:03:14,830
Ha, let's set off again.

41
00:03:15,220 --> 00:03:16,210
Set on.

42
00:03:16,210 --> 00:03:18,640
I will just check one more thing.

43
00:03:18,650 --> 00:03:21,620
Still same y set of stop.

44
00:03:22,360 --> 00:03:31,900
Now, um, we need to focus to pass for currency value and produced Paul's number and if I change it

45
00:03:31,900 --> 00:03:34,840
to minus five hundred to.

46
00:03:36,100 --> 00:03:46,450
Then activate this one, it is not stop sort of we need to stop, let's change it to five hundred again.

47
00:03:47,080 --> 00:03:49,440
I am doing one thing wrong.

48
00:03:49,450 --> 00:03:55,480
I need to take a look once two minus two thousand five hundred again.

49
00:03:56,170 --> 00:03:57,700
Um, stop.

50
00:04:00,240 --> 00:04:01,910
Another side you can see.

51
00:04:03,830 --> 00:04:05,190
Now, another side.

52
00:04:05,260 --> 00:04:11,700
OK, I, I made a mistake, so for this, let's take a look once to the art of the instruction.

53
00:04:12,020 --> 00:04:21,640
This is the produce pulse and not a speed we need to make minus for the opposite direction, not the

54
00:04:21,860 --> 00:04:27,980
other instructions to activate why one DPL or instruction was like that.

55
00:04:28,190 --> 00:04:36,500
But now we need to change this to, for example, plus two thousand five hundred, OK, and then you

56
00:04:36,500 --> 00:04:39,280
will see it will turn to decide this.

57
00:04:39,290 --> 00:04:39,800
Correct.

58
00:04:39,800 --> 00:04:41,750
And why one is not activated.

59
00:04:42,230 --> 00:04:42,620
Good.

60
00:04:42,830 --> 00:04:46,640
And stop now we can continue like this.

61
00:04:46,790 --> 00:04:52,640
For example, the produce pulse is going to be minus 90.

62
00:04:53,780 --> 00:04:54,530
Toussant.

63
00:04:55,250 --> 00:05:03,560
And our speed is going to be, for example, three thousand, OK, pass frequency and the ramp time

64
00:05:03,560 --> 00:05:09,200
is going to be not 500 milliseconds, but maybe five thousand milliseconds.

65
00:05:09,650 --> 00:05:14,500
Five seconds later, it needs to reach the maximum frequency speed.

66
00:05:14,750 --> 00:05:17,300
This activate is one slow.

67
00:05:18,360 --> 00:05:24,160
Fast and fast and fast and fast, you can see after five seconds.

68
00:05:24,570 --> 00:05:32,940
This is the speed of the three thousand set of let's change it to nine thousand, OK?

69
00:05:33,540 --> 00:05:39,690
And set on slow, slow and fast.

70
00:05:40,050 --> 00:05:41,080
You can see it.

71
00:05:42,040 --> 00:05:54,040
And set off and then change it to five thousand speed and change it to ten thousand millisecond later,

72
00:05:54,350 --> 00:05:54,970
OK?

73
00:05:55,360 --> 00:06:02,590
And this is plus ninety thousand, OK, and stop and set on.

74
00:06:04,670 --> 00:06:14,380
So slow, so, so, so slow, so and increasing the speed speed is increasing and increasing and increasing,

75
00:06:14,750 --> 00:06:23,600
just focus after 10 seconds, it will be maximum speed, maximum frequency equals to five thousand.

76
00:06:24,050 --> 00:06:33,980
And after ninety thousand pulses produced and it will stop slowly, you can see and it is finished.

77
00:06:34,160 --> 00:06:39,340
So this is the DDR, VI or TRV instruction usage.

78
00:06:39,630 --> 00:06:41,030
We need to change that.

79
00:06:41,030 --> 00:06:48,440
The stepper motor direction with the minus or plus values from the produced pulse number.

80
00:06:48,630 --> 00:06:58,130
And we need to give a speed frequency from here and we need to adapt our ramp up and down times for

81
00:06:58,130 --> 00:07:05,270
the stepper motors acceleration and deceleration according to our TR we instructions instruction.

82
00:07:05,270 --> 00:07:07,290
OK, I am finished for this year.

83
00:07:07,460 --> 00:07:09,130
See you in the next video.
