0
1
00:00:21,240 --> 00:00:22,110
Hello.
1

2
00:00:22,140 --> 00:00:24,460
In this video we are going to learn speed.
2

3
00:00:24,480 --> 00:00:32,250
Command the number of pulses received within the time period, time period is the key word is of speed.
3

4
00:00:32,260 --> 00:00:35,250
Command determined by the SPD command or speed.
4

5
00:00:35,250 --> 00:00:40,620
Command is periodically counted and the result is recorded in a specified data.
5

6
00:00:40,770 --> 00:00:47,820
When the speed command is used some calculations are required to calculate the speed for these using
6

7
00:00:47,820 --> 00:00:49,460
formula like this.
7

8
00:00:49,530 --> 00:01:01,880
By these same thing the number of revolutions is found in meters per second or rpm. So after
8

9
00:01:01,880 --> 00:01:11,360
we get a value or found of value after a speed command this value will be as our RPM value. for example.
9

10
00:01:11,360 --> 00:01:14,420
The result will be 500.
10

11
00:01:14,450 --> 00:01:25,850
So we can say okay our motor is turning 500 RPM in the Formula D ,in here D0 and in here
11

12
00:01:25,880 --> 00:01:26,670
nT.
12

13
00:01:26,750 --> 00:01:37,940
And the result will be as rpm. So first thing external pulse input from S1 number of pulse signals.
13

14
00:01:38,060 --> 00:01:43,850
Also S2 is pulse time so we will decide the time.
14

15
00:01:43,880 --> 00:01:51,560
So in this time period as I told you in the beginning of the video we will use time periods to detect
15

16
00:01:51,560 --> 00:01:57,300
a speed and we will get the result from the or from here.
16

17
00:01:57,290 --> 00:02:03,170
The important note for the speed come on high speed counters or interrupts related to the inputs used
17

18
00:02:03,170 --> 00:02:03,680
in the speed.
18

19
00:02:03,680 --> 00:02:09,560
Command can no longer be used for high speed counters or before interrupts.
19

20
00:02:09,560 --> 00:02:12,650
two related to the inputs.
20

21
00:02:12,710 --> 00:02:19,960
Normally we can adapt our inputs as high speed counters or interrupts if we are using split command.
21

22
00:02:19,970 --> 00:02:24,050
These things can not be usable after speed.
22

23
00:02:24,050 --> 00:02:27,210
Command is used starting from the selected register.
23

24
00:02:27,210 --> 00:02:28,920
The 4 result.
24

25
00:02:28,920 --> 00:02:29,480
5.
25

26
00:02:29,480 --> 00:02:33,410
Register D regions are used for this common for example.
26

27
00:02:33,410 --> 00:02:44,590
If you put here D0 D1 D2 D3 and D4 also will be used by speed command.
27

28
00:02:45,140 --> 00:02:54,590
And D and D+1 data  keeps the previous past detection result as 32 bit D2 D0+2
28

29
00:02:54,590 --> 00:02:55,460
for example.
29

30
00:02:55,580 --> 00:03:00,630
I mean D+2 and D+3 data registers.
30

31
00:03:00,800 --> 00:03:03,560
Keep the current active pulse count.
31

32
00:03:03,560 --> 00:03:08,140
Value is 32Bit , D+4 this data register.
32

33
00:03:08,140 --> 00:03:09,920
Equals , data shows
33

34
00:03:09,920 --> 00:03:16,070
The remaining time of the active count maximum 32767 millisecond
34

35
00:03:16,580 --> 00:03:25,340
one SPD command can actively run simultaneously in SS SA, SX ,EH2, ...
35

36
00:03:25,340 --> 00:03:34,300
plcs and multiple speedy commands can actually run simultaneously in SS2,SA2, ES2 ..
36

37
00:03:34,430 --> 00:03:46,670
model in Delta plcs ,in here we have an example when x 7 is on when this contact on the data periodically
37

38
00:03:46,670 --> 00:03:56,580
comes the pulse triggers coming to x1 input this is our pulse trigger input or pulse input in 1000
38

39
00:03:56,900 --> 00:04:02,180
millisecond timeframes like we said in the beginning time period.
39

40
00:04:02,540 --> 00:04:11,730
So we will get the pass times as millisecond and we decided in here 1000 millisecond is
40

41
00:04:11,840 --> 00:04:17,470
standard when you put here 100 it will be 100 milliseconds.
41

42
00:04:17,850 --> 00:04:27,430
These speed command saved the value counted at the end of 1000 milliseconds to D0
42

43
00:04:27,590 --> 00:04:36,430
It writes or stores the speed calculations result in D0.
43

44
00:04:36,470 --> 00:04:39,420
You can see the graphics in here.
44

45
00:04:39,510 --> 00:04:39,940
Okay.
45

46
00:04:40,050 --> 00:04:48,500
When 7 is on X1 is the pulses are coming and goes off and on On and off.
46

47
00:04:48,500 --> 00:04:58,140
Something like this  with the square wave and then our present value.
47

48
00:04:58,160 --> 00:05:01,880
How many a data or pulses are counted.
48

49
00:05:01,880 --> 00:05:04,770
Or what is the actual existing value.
49

50
00:05:04,850 --> 00:05:12,930
So we can monitor it in D2, D0 and D1 and D2 so D+2.
50

51
00:05:12,950 --> 00:05:20,240
Like I said in here D+2 and D+3, Data keep the current active pulses as 32 bit.
51

52
00:05:20,240 --> 00:05:30,620
so it shows you present value and also after 1000 millisecond you will get detected value
52

53
00:05:30,920 --> 00:05:33,980
in D0 in that point.
53

54
00:05:34,040 --> 00:05:42,650
After 1000 milliseconds you will get result by speed command or a speed instruction
54

55
00:05:43,010 --> 00:05:52,470
so you will get a value as RPM for example 100 RPM or 133 RPM in D zero.
55

56
00:05:52,500 --> 00:05:56,330
If you want to monitor to present volume present.
56

57
00:05:56,350 --> 00:06:00,830
counted pulses.
57

58
00:06:00,960 --> 00:06:11,440
So you need to check D2 and D3 value and content in D4 you can see in here like this
58

59
00:06:12,990 --> 00:06:14,090
what was it.
59

60
00:06:14,340 --> 00:06:22,910
D+four the remember D+4 data shows the remaining five time of the active count.
60

61
00:06:23,280 --> 00:06:33,570
So the time will be 1000 milliseconds and it will go down and after 1000 millisecond content
61

62
00:06:33,660 --> 00:06:42,570
in D4 will be zero and that moment we will get our detected value inside of the D0 and at that
62

63
00:06:42,570 --> 00:06:50,510
moment D2 present value will be Max also after 1000 milliseconds we will start to count again and
63

64
00:06:50,530 --> 00:06:58,620
the D2 will start from zero and our content in D4 will be 1000 milliseconds again and
64

65
00:06:58,620 --> 00:07:05,190
it will go down again and that moment we will wait till 1000 milliseconds is finished.
65

66
00:07:05,550 --> 00:07:14,110
Then again we will get a speed for example 350 in D0.
66

67
00:07:14,160 --> 00:07:18,970
So this is formula for the SPD command or a speed instruction.
67

68
00:07:18,990 --> 00:07:21,840
How can we use it in the Delta plcs.
68

69
00:07:21,840 --> 00:07:25,660
This is the usage of the of this formula in wplsoft.
69

70
00:07:25,710 --> 00:07:30,840
This is created inside of the wplsoft software for Delta plcs.
70

71
00:07:31,230 --> 00:07:42,000
It's a speed command that is used X0 is assigned to pulse input and K1000 is our time period
71

72
00:07:42,030 --> 00:07:48,110
1000 milliseconds and the result will be read or stored in D100.
72

73
00:07:48,210 --> 00:07:58,460
So we are multiplying D100 value with K1000 and the result is stored in D110
73

74
00:07:59,310 --> 00:08:08,940
And then also we are multiplying D100 with 60 in here 1000 is coming from here.
74

75
00:08:09,000 --> 00:08:10,170
10^3.
75

76
00:08:10,180 --> 00:08:13,790
60 coming from here.
76

77
00:08:13,810 --> 00:08:16,790
The zero means in this example.
77

78
00:08:16,800 --> 00:08:21,360
We use the D100 because of this we used in here also D100
78

79
00:08:21,600 --> 00:08:30,940
So also in here we are dividing by 1000 because of why we are adopted.
79

80
00:08:31,090 --> 00:08:35,980
our value as the time period is 1000
80

81
00:08:35,980 --> 00:08:41,150
Also we are dividing by 100
81

82
00:08:41,150 --> 00:08:42,010
Why.
82

83
00:08:42,020 --> 00:08:43,370
Because .
83

84
00:08:43,460 --> 00:08:48,920
In this example also we are using where can we see it.
84

85
00:08:48,980 --> 00:08:50,300
in the nt time
85

86
00:08:50,300 --> 00:08:51,890
Time interval counted.
86

87
00:08:52,220 --> 00:08:56,260
And the pulses generated by the encoder in one turn.
87

88
00:08:56,270 --> 00:08:59,790
So how can I explain this.
88

89
00:09:00,600 --> 00:09:06,820
Your encoder turns for example if it can be equal to 120
89

90
00:09:07,050 --> 00:09:17,420
But this is not a correct example because encoders generally will be 1024 or 512
90

91
00:09:17,430 --> 00:09:26,070
ppr and will be for example 256ppr  in this example we set our
91

92
00:09:26,070 --> 00:09:31,190
encoder generating 100 pulse after one turn.
92

93
00:09:31,200 --> 00:09:37,740
So you can see the explanation and nt in here and was the pulse signal generated by the encoder in
93

94
00:09:37,740 --> 00:09:38,560
one turn.
94

95
00:09:38,580 --> 00:09:46,240
T was time interval counted as millisecond so you can apply this formula to your projects to your 
95

96
00:09:46,370 --> 00:09:48,180
plc programs like this.
96

97
00:09:48,180 --> 00:09:52,470
This is just an example to how can you use it.
97

98
00:09:52,500 --> 00:09:55,060
How can you adopt your plc programs
98

99
00:09:55,080 --> 00:10:03,630
According to this formula so you can multiply by these values to 1000 and D60
99

100
00:10:03,630 --> 00:10:08,920
But don't forget this you need to use DMUL DDIV.
100

101
00:10:08,960 --> 00:10:13,420
32 bit the multiplying 32 bit dividing.
101

102
00:10:13,650 --> 00:10:21,630
So these are all writing into another register but after this calculation is written to D120
102

103
00:10:21,630 --> 00:10:24,950
D120 is used in here.
103

104
00:10:25,030 --> 00:10:27,060
D130 in here.
104

105
00:10:27,210 --> 00:10:33,200
In the end you will get the result of this formula in D140
105

106
00:10:33,330 --> 00:10:35,520
In this video I am finished here.
106

107
00:10:35,520 --> 00:10:36,930
See you in the next video.
