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