Hello. 1
In this video we are going to learn SFTR-L shifting bit instruction sftr means 2
right. 3
So that means it is shifting bits to the right side SFTL means our left. 4
So it is shifting bits to the left side. 5
Initial device in which value is shifted. 6
S and D means similar but the important point is here and one is length, length of the thought which 7
is shifted and to number of bits forming group. 8
And imagine you have a line and here boxes are coming. 9
The products are coming and you are looking okay. 10
This have a barcode. 11
This okay. 12
This is not. 13
This is okay. 14
This is not so. 15
Each time if you wait here. 16
If you are looking to these products are there any barcode or not. 17
What will happen. 18
This line will be stopped. 19
A lot of times. 20
Imagine that it is working or it is running very high speeds. 21
So you need to separate them to the left or right. 22
For example imagine this your mechanical system is like that that moment. 23
What should you do without stopping the line. 24
You need to separate these products that moment shifting bit instruction is going to help us. 25
So let's create the one project in the ISPSoft and in here we will add a small project to Plc and 26
we will understand how it is working. 27
New project is created now let's say LD X0.0 28
This is will be rising edge for example. 29
This is just detecting 2. 30
I will put here x0.0 detecting products and x0.1 detecting barcodes. 31
And I will put here SFTR command. 32
So what we need now for example x0.1 is detecting barcodes. 33
So we will use x0.1 in here. 34
It will help us. 35
So how many products that we are going to detect in one just time or in the in this bits groups. 36
For example in this example I will use for product and each time I will shift the bits one by one. 37
And this is one and which bits is going to be one or zero. 38
It will start from M to a.. 39
This is okay. 40
This is just very very small basic example I will go online and I will say okay the project is compiling 41
now I will send it to simulator and we will check what will happen if m 20 42
Will it be 0 or 1 or how it is going to be worked. 43
First of all first product let's say it's OK it is with the barcode. 44
So this is detected the barcode but you can say just said on this is with the barcode. 45
The first product and set on this is finished and off and I will say release all and the second one 46
I will say release X and Y. 47
Again this is okay. 48
And the second one will be not with barcode. 49
So this should be set on again force and force and release and then third one will be set on and fourth 50
set on and fourth release X and Y or release all yes. 51
And the fourth one will be without barcode. 52
Just set on get on and force release all yes force release x and y again. 53
I'm clicking That's okay. 54
So what we did we said just go online it 55
one okay to not okay. 56
Three okay and four not okay. 57
So what we are waiting M 20 should be on M 21 should be off M22. 58
Should be all and M 23 should be of. 59
This is what we are waiting. 60
And then I will go to device monitor table and I will create a new one monitor table and I will add from 61
twenty adjust four device so you can see m20 is on M 21 is of M22 is on and M23 62
is off this is how we are shifting the bits we are activating for example this two condition. 63
So this is okay and this is okay. 64
That moment we are activating the first bit and then it is working like this it is starting from here 65
and on and it is shifting to the up upside so also it is the meaning of SFTR command. 66
It is shifting to the right in the and you can see it shifted to the right on off on and off . 67
So this is how SFTR command works. 68
So you can you can just try SFTL command you can you can use and you can just 69
do an exercise with yourself just put here SFTL and do similar things like me and just watch 70
the results with the device monitor table and you can understand better how these instructions works 71
and for this video I'm finished here. 72
I hope this instruction is going to help you a lot in your projects because this is this is really really 73
important instruction for the production lines for the Plc projects and I hope this video 74
is help you to understand this instruction this is just really basic example but it helps to understand 75
it professionally. 76
See you again in the next video.