So in this tutorial, we will learn your Pavi instruction and this instruction is how to write and read
the parameters to Sarah or from Sarah.
First of all, I will show it to image.
First of all, this is our S.O.P.
Are we w um, this is our instruction and this is the number, our cell phone number or her address
and code.
And this request code is H as hexadecimal two and three to be two if and forty and if you are using
a request code to enter three and this is writing for Bitauto to Salwar and to be two by Theta and one
by Theta four uh, to write a circle we need to use two F and if we want to read theta it must be hexadecimal
for the K and index and subindex.
And then what is the meaning of index and subindex.
This is the parameter number.
OK, as hexadecimal we need to convert it and read and write devi's.
We will write here for example, data register five uh fifty or five hundred.
OK, and then we will read or write uh from this data.
And one more thing and other pictures in here.
You will see a function called If we want to write to parameter one to twelve.
OK, in here you will see, uh, we are converting it to hexadecimal, OK.
And in sarva in the case.
OK, um we have acceleration and deceleration times.
You can see it in here and the parameter five twenty.
OK, and let's convert it.
OK, I opened my calculator and I will go my programer ok.
And in this programer we will adopt my bit.
But first of all we will write here a five OK.
And five is a hexadecimal five.
OK, this is the first thing and according to my picture you will see another data we need to define.
So now we have zero five.
OK, and another is this right here.
Um, twenty.
And hexadecimal, we have 14.
OK, so we have zero, five and 14 is hexadecimal.
Let's go to my speech.
OK, and let's right here our code.
First of all, let's start with the Aldy.
OK, start my instruction.
OK, C or P r we w OK, this is my bill and let's right here our code s.o.p are w ok and then we select
and first serve.
OK, what are we going to do.
We're going to read a data ok for Bitauto or two by that.
OK, let's read one data register because of I will write here this one ok in my writing two by Thatta
or reading.
OK, maybe we can write here too but I will write to by Theta and this is the first thing.
And then another thing.
Index and subindex.
OK in picture.
OK, um not this one.
I will go here in subindex for the drives.
OK, if you look the parameter address subindex always zero zero zero hexadecimal.
OK indexes that we found subindex always zero.
So because of this I will come to here and I will write here my first index.
We found this one.
OK, and subindex is zero zero zero for the servers, OK, and the data that we're going to write to,
for example, 500 hundred, OK, and we can say to here, see, your p r w is OK.
OK, this is my output.
OK, and what can we do?
We can do, for example, to hear, uh, if it is OK, if the writing is OK, um this one C or P r w
is ok.
OK then we can say for example um this can, we can recite it ok.
For example again.
OK, and reset it.
OK, very good.
And what we're going to do, I will do this, uh, download this project to my p.l.c. and then we will
test it.
Now we are transferring and I will say, OK, then, OK, then let's go to up and let's check the connections
I was set on.
Communication is OK.
OK, um, for the duration and the recent times, um, I am not going to use it, but these are all
written to a zero.
Let's check it.
Read from the device.
Um, OK.
And now these are all one, because we try to write a zero, so these are now one and one, OK, and
what are we going to do?
I will come to here.
I will make my on OK then said what is on and then I will go down.
Then now what we are doing, we are writing A that I will change it to, for example, one hundred,
OK, then, uh, I will start to write this instruction.
This instruction is activated.
OK, but now, uh, it's OK.
And this is reseated.
OK, then now I will make it set off.
And now what we write one hundred.
OK, let's go to here and let's read from the device and we will check.
Is it written correctly or not.
And I am just looking parameter five twenty is still um one millisecond so this is not written correctly.
So what can we do.
We will test wants to write is our system for my daughter and age twenty three.
OK, and let's go here and let's change it to twenty three because of it may.
Needs to fall by Tata, so double word, OK, and we are sending.
And I will say yes now, OK, and OK, so also check once to, uh, this one with the calculator.
If it is five and this is.
Five, OK, and 20 is 14, so what is the complete address, zero five and then 14, but we forgot one
more thing.
OK, I'm sorry.
We need to edit to, uh, we did two thousand hexadecimal.
OK, this is our address.
OK, so what we here we have zero five and fourteen plus twenty two thousand as hexadecimal.
This is our result.
OK, so we need to come to here, we need to change it to with this one.
OK, and let's change it to be again.
OK, we need to write to this address.
OK, uh check this condition.
I forgot to add with the two thousand eight hexadecimal OK.
And then we can test once and I will send it to.
This project to p.l.c..
And now it is downloading.
And let's say transfer and let's say, OK, now it is standard and I will go up and OK, I will right
here, for example, 50, OK, and also this will you I will change it to 50 and then I will start my
communication.
And this is written.
OK, let's go here and let's read from the device.
That's from the read from the Sarut.
Right.
Let's go here then.
These are now 50 and fifty, OK?
And what we are doing now, we are now writing a data.
OK, let's change it to, for example, one hundred.
OK, and I will start it.
OK, and it is written OK.
And I will say settle down.
Let's check once.
Is it worked?
OK, let's go five.
So now you will say this is 100, OK, so this is working.
So what we did now we right at the start, you sat right with the GOP RW instruction.
OK, maybe we can change it to, for example, two hundred and fifty, OK.
And I will say that on OK.
And now we can go to screwdriver again and we can read it.
OK, and then go here, so you will see this is 250, so what we are doing, we are, uh, writing letters
to Sarah today.
So if you want to read, what will we do?
Let's go here and let's change it to this one, too.
For example, for them so we can read any data from the secretary and we will read again the similar.
OK, and I will say yes.
Then transfer.
We are writing now, for example, we will write at this point, OK, in the beginning, acceleration
and deceleration times, I will change it to 25.
In the beginning it will be 25 and then we will read it.
And if it is twenty five and the instruction is worked correctly, that we can say, OK, let's go down
and let's start to reading.
OK, so now you will see this is 25.
So we are reading a data from the side of it.
Right.
It was two hundred and fifty and now.
OK, let's go here now, you will see it's 25, it's worked correctly, then you can say, for example,
is it writing and always, OK, let's test it, let's go offline.
And let's right here increment, for example, the five hundred and five, OK?
And each time when the writing and reading is finished, this will be increased one by one.
OK, then let's send it this.
Project to p.l.c. now, I will say yes.
And I will say transfer now it's transferring and I will say, OK, now we are ready again, I will
change it to twenty eight or thirty three, for example.
Another one different number.
OK, and I will start my communication, and this is written via this one, OK?
And I will go down and I will read it.
OK, now focus to hear 33.
Now you will see it is reading and writing.
OK, reseated.
OK, visited each time.
We are starting these instructions and you will see almost four thousand times it's read and write and
read and write and read and write.
OK, you will see the speed of the communication of can open at this point.
OK I will make it set off.
So for this story I am finished here with the CEO PR w insurrection.
We can write and we can read the letters from the screwdriver's and we can adapt our parameters, uh
with our p.l.c., OK, we can control our complete parameters with the p.l.c. for this story finished
here.
See you in the next tutorial.