1
00:00:12,150 --> 00:00:21,630
So in this tutorial, we will learn your Pavi instruction and this instruction is how to write and read

2
00:00:21,900 --> 00:00:25,790
the parameters to Sarah or from Sarah.

3
00:00:25,950 --> 00:00:28,890
First of all, I will show it to image.

4
00:00:28,890 --> 00:00:30,960
First of all, this is our S.O.P.

5
00:00:30,960 --> 00:00:39,240
Are we w um, this is our instruction and this is the number, our cell phone number or her address

6
00:00:39,420 --> 00:00:40,410
and code.

7
00:00:40,590 --> 00:00:48,420
And this request code is H as hexadecimal two and three to be two if and forty and if you are using

8
00:00:48,440 --> 00:00:55,680
a request code to enter three and this is writing for Bitauto to Salwar and to be two by Theta and one

9
00:00:55,680 --> 00:01:04,350
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

10
00:01:04,350 --> 00:01:07,140
for the K and index and subindex.

11
00:01:07,140 --> 00:01:09,750
And then what is the meaning of index and subindex.

12
00:01:09,760 --> 00:01:11,850
This is the parameter number.

13
00:01:11,860 --> 00:01:16,530
OK, as hexadecimal we need to convert it and read and write devi's.

14
00:01:16,770 --> 00:01:21,610
We will write here for example, data register five uh fifty or five hundred.

15
00:01:21,630 --> 00:01:25,460
OK, and then we will read or write uh from this data.

16
00:01:25,650 --> 00:01:30,180
And one more thing and other pictures in here.

17
00:01:30,180 --> 00:01:35,030
You will see a function called If we want to write to parameter one to twelve.

18
00:01:35,040 --> 00:01:40,440
OK, in here you will see, uh, we are converting it to hexadecimal, OK.

19
00:01:40,610 --> 00:01:43,080
And in sarva in the case.

20
00:01:43,440 --> 00:01:47,040
OK, um we have acceleration and deceleration times.

21
00:01:47,040 --> 00:01:51,900
You can see it in here and the parameter five twenty.

22
00:01:51,930 --> 00:01:53,520
OK, and let's convert it.

23
00:01:53,520 --> 00:01:58,530
OK, I opened my calculator and I will go my programer ok.

24
00:01:59,010 --> 00:02:03,300
And in this programer we will adopt my bit.

25
00:02:03,540 --> 00:02:07,190
But first of all we will write here a five OK.

26
00:02:07,860 --> 00:02:11,210
And five is a hexadecimal five.

27
00:02:11,220 --> 00:02:17,440
OK, this is the first thing and according to my picture you will see another data we need to define.

28
00:02:17,460 --> 00:02:19,760
So now we have zero five.

29
00:02:19,770 --> 00:02:23,130
OK, and another is this right here.

30
00:02:23,490 --> 00:02:24,570
Um, twenty.

31
00:02:26,490 --> 00:02:30,040
And hexadecimal, we have 14.

32
00:02:30,060 --> 00:02:34,360
OK, so we have zero, five and 14 is hexadecimal.

33
00:02:34,860 --> 00:02:36,970
Let's go to my speech.

34
00:02:37,260 --> 00:02:40,000
OK, and let's right here our code.

35
00:02:40,230 --> 00:02:43,160
First of all, let's start with the Aldy.

36
00:02:43,320 --> 00:02:46,020
OK, start my instruction.

37
00:02:46,210 --> 00:02:58,440
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

38
00:02:58,470 --> 00:02:59,860
and first serve.

39
00:02:59,880 --> 00:03:01,400
OK, what are we going to do.

40
00:03:01,560 --> 00:03:06,210
We're going to read a data ok for Bitauto or two by that.

41
00:03:06,240 --> 00:03:14,670
OK, let's read one data register because of I will write here this one ok in my writing two by Thatta

42
00:03:14,670 --> 00:03:15,270
or reading.

43
00:03:15,270 --> 00:03:22,380
OK, maybe we can write here too but I will write to by Theta and this is the first thing.

44
00:03:22,530 --> 00:03:24,150
And then another thing.

45
00:03:24,150 --> 00:03:25,620
Index and subindex.

46
00:03:25,620 --> 00:03:26,990
OK in picture.

47
00:03:27,000 --> 00:03:29,170
OK, um not this one.

48
00:03:29,220 --> 00:03:34,110
I will go here in subindex for the drives.

49
00:03:34,110 --> 00:03:40,050
OK, if you look the parameter address subindex always zero zero zero hexadecimal.

50
00:03:40,050 --> 00:03:43,600
OK indexes that we found subindex always zero.

51
00:03:43,740 --> 00:03:49,500
So because of this I will come to here and I will write here my first index.

52
00:03:49,740 --> 00:03:51,450
We found this one.

53
00:03:52,280 --> 00:03:59,770
OK, and subindex is zero zero zero for the servers, OK, and the data that we're going to write to,

54
00:03:59,840 --> 00:04:08,640
for example, 500 hundred, OK, and we can say to here, see, your p r w is OK.

55
00:04:08,660 --> 00:04:10,410
OK, this is my output.

56
00:04:10,740 --> 00:04:12,940
OK, and what can we do?

57
00:04:13,670 --> 00:04:23,270
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

58
00:04:23,270 --> 00:04:23,930
is ok.

59
00:04:24,250 --> 00:04:30,080
OK then we can say for example um this can, we can recite it ok.

60
00:04:30,320 --> 00:04:31,850
For example again.

61
00:04:32,760 --> 00:04:34,770
OK, and reset it.

62
00:04:34,980 --> 00:04:36,070
OK, very good.

63
00:04:36,330 --> 00:04:43,260
And what we're going to do, I will do this, uh, download this project to my p.l.c. and then we will

64
00:04:43,260 --> 00:04:43,800
test it.

65
00:04:46,390 --> 00:04:54,190
Now we are transferring and I will say, OK, then, OK, then let's go to up and let's check the connections

66
00:04:54,430 --> 00:04:56,070
I was set on.

67
00:04:56,260 --> 00:04:57,710
Communication is OK.

68
00:04:58,020 --> 00:05:05,530
OK, um, for the duration and the recent times, um, I am not going to use it, but these are all

69
00:05:05,530 --> 00:05:06,760
written to a zero.

70
00:05:06,970 --> 00:05:07,780
Let's check it.

71
00:05:07,790 --> 00:05:09,750
Read from the device.

72
00:05:11,760 --> 00:05:13,240
Um, OK.

73
00:05:13,420 --> 00:05:22,140
And now these are all one, because we try to write a zero, so these are now one and one, OK, and

74
00:05:22,140 --> 00:05:23,070
what are we going to do?

75
00:05:23,100 --> 00:05:24,410
I will come to here.

76
00:05:24,420 --> 00:05:29,970
I will make my on OK then said what is on and then I will go down.

77
00:05:30,940 --> 00:05:37,270
Then now what we are doing, we are writing A that I will change it to, for example, one hundred,

78
00:05:37,450 --> 00:05:43,420
OK, then, uh, I will start to write this instruction.

79
00:05:43,430 --> 00:05:45,810
This instruction is activated.

80
00:05:45,820 --> 00:05:49,120
OK, but now, uh, it's OK.

81
00:05:49,270 --> 00:05:50,440
And this is reseated.

82
00:05:50,470 --> 00:05:53,140
OK, then now I will make it set off.

83
00:05:53,480 --> 00:05:56,610
And now what we write one hundred.

84
00:05:56,620 --> 00:06:01,720
OK, let's go to here and let's read from the device and we will check.

85
00:06:01,720 --> 00:06:03,430
Is it written correctly or not.

86
00:06:03,970 --> 00:06:14,020
And I am just looking parameter five twenty is still um one millisecond so this is not written correctly.

87
00:06:14,350 --> 00:06:15,680
So what can we do.

88
00:06:16,510 --> 00:06:23,620
We will test wants to write is our system for my daughter and age twenty three.

89
00:06:23,620 --> 00:06:31,480
OK, and let's go here and let's change it to twenty three because of it may.

90
00:06:33,820 --> 00:06:39,310
Needs to fall by Tata, so double word, OK, and we are sending.

91
00:06:40,440 --> 00:06:48,480
And I will say yes now, OK, and OK, so also check once to, uh, this one with the calculator.

92
00:06:48,840 --> 00:06:51,480
If it is five and this is.

93
00:06:52,440 --> 00:07:03,120
Five, OK, and 20 is 14, so what is the complete address, zero five and then 14, but we forgot one

94
00:07:03,120 --> 00:07:03,600
more thing.

95
00:07:03,820 --> 00:07:04,770
OK, I'm sorry.

96
00:07:05,380 --> 00:07:09,650
We need to edit to, uh, we did two thousand hexadecimal.

97
00:07:09,660 --> 00:07:10,860
OK, this is our address.

98
00:07:11,190 --> 00:07:21,090
OK, so what we here we have zero five and fourteen plus twenty two thousand as hexadecimal.

99
00:07:21,270 --> 00:07:22,310
This is our result.

100
00:07:22,320 --> 00:07:27,330
OK, so we need to come to here, we need to change it to with this one.

101
00:07:27,840 --> 00:07:30,810
OK, and let's change it to be again.

102
00:07:31,260 --> 00:07:33,870
OK, we need to write to this address.

103
00:07:33,870 --> 00:07:36,360
OK, uh check this condition.

104
00:07:36,540 --> 00:07:40,950
I forgot to add with the two thousand eight hexadecimal OK.

105
00:07:41,220 --> 00:07:45,300
And then we can test once and I will send it to.

106
00:07:46,230 --> 00:07:47,640
This project to p.l.c..

107
00:07:48,990 --> 00:07:51,120
And now it is downloading.

108
00:07:52,200 --> 00:08:01,860
And let's say transfer and let's say, OK, now it is standard and I will go up and OK, I will right

109
00:08:01,860 --> 00:08:11,640
here, for example, 50, OK, and also this will you I will change it to 50 and then I will start my

110
00:08:12,210 --> 00:08:13,170
communication.

111
00:08:13,360 --> 00:08:14,830
And this is written.

112
00:08:14,850 --> 00:08:18,300
OK, let's go here and let's read from the device.

113
00:08:18,780 --> 00:08:20,790
That's from the read from the Sarut.

114
00:08:20,790 --> 00:08:21,110
Right.

115
00:08:21,300 --> 00:08:22,560
Let's go here then.

116
00:08:22,560 --> 00:08:25,430
These are now 50 and fifty, OK?

117
00:08:25,680 --> 00:08:30,470
And what we are doing now, we are now writing a data.

118
00:08:30,570 --> 00:08:33,690
OK, let's change it to, for example, one hundred.

119
00:08:33,690 --> 00:08:36,000
OK, and I will start it.

120
00:08:37,250 --> 00:08:40,370
OK, and it is written OK.

121
00:08:40,390 --> 00:08:42,810
And I will say settle down.

122
00:08:43,020 --> 00:08:44,060
Let's check once.

123
00:08:44,210 --> 00:08:45,020
Is it worked?

124
00:08:47,170 --> 00:08:49,340
OK, let's go five.

125
00:08:49,540 --> 00:08:54,320
So now you will say this is 100, OK, so this is working.

126
00:08:54,340 --> 00:09:01,540
So what we did now we right at the start, you sat right with the GOP RW instruction.

127
00:09:01,540 --> 00:09:07,150
OK, maybe we can change it to, for example, two hundred and fifty, OK.

128
00:09:07,350 --> 00:09:10,030
And I will say that on OK.

129
00:09:10,270 --> 00:09:14,920
And now we can go to screwdriver again and we can read it.

130
00:09:16,990 --> 00:09:24,070
OK, and then go here, so you will see this is 250, so what we are doing, we are, uh, writing letters

131
00:09:24,160 --> 00:09:25,050
to Sarah today.

132
00:09:25,240 --> 00:09:27,910
So if you want to read, what will we do?

133
00:09:28,160 --> 00:09:32,700
Let's go here and let's change it to this one, too.

134
00:09:32,770 --> 00:09:41,030
For example, for them so we can read any data from the secretary and we will read again the similar.

135
00:09:41,320 --> 00:09:44,800
OK, and I will say yes.

136
00:09:46,030 --> 00:09:47,260
Then transfer.

137
00:09:48,700 --> 00:09:55,360
We are writing now, for example, we will write at this point, OK, in the beginning, acceleration

138
00:09:55,360 --> 00:09:58,120
and deceleration times, I will change it to 25.

139
00:09:58,390 --> 00:10:02,380
In the beginning it will be 25 and then we will read it.

140
00:10:02,540 --> 00:10:10,630
And if it is twenty five and the instruction is worked correctly, that we can say, OK, let's go down

141
00:10:10,720 --> 00:10:12,280
and let's start to reading.

142
00:10:12,530 --> 00:10:15,630
OK, so now you will see this is 25.

143
00:10:15,820 --> 00:10:17,780
So we are reading a data from the side of it.

144
00:10:17,780 --> 00:10:18,010
Right.

145
00:10:18,190 --> 00:10:21,640
It was two hundred and fifty and now.

146
00:10:22,600 --> 00:10:29,650
OK, let's go here now, you will see it's 25, it's worked correctly, then you can say, for example,

147
00:10:29,650 --> 00:10:35,260
is it writing and always, OK, let's test it, let's go offline.

148
00:10:35,800 --> 00:10:41,640
And let's right here increment, for example, the five hundred and five, OK?

149
00:10:41,890 --> 00:10:48,940
And each time when the writing and reading is finished, this will be increased one by one.

150
00:10:48,970 --> 00:10:51,340
OK, then let's send it this.

151
00:10:52,860 --> 00:10:56,550
Project to p.l.c. now, I will say yes.

152
00:10:57,980 --> 00:11:04,970
And I will say transfer now it's transferring and I will say, OK, now we are ready again, I will

153
00:11:04,970 --> 00:11:09,770
change it to twenty eight or thirty three, for example.

154
00:11:10,040 --> 00:11:11,840
Another one different number.

155
00:11:13,380 --> 00:11:20,770
OK, and I will start my communication, and this is written via this one, OK?

156
00:11:21,000 --> 00:11:23,940
And I will go down and I will read it.

157
00:11:23,970 --> 00:11:26,820
OK, now focus to hear 33.

158
00:11:27,180 --> 00:11:29,340
Now you will see it is reading and writing.

159
00:11:29,340 --> 00:11:30,580
OK, reseated.

160
00:11:30,690 --> 00:11:32,160
OK, visited each time.

161
00:11:32,370 --> 00:11:40,620
We are starting these instructions and you will see almost four thousand times it's read and write and

162
00:11:40,620 --> 00:11:42,150
read and write and read and write.

163
00:11:42,150 --> 00:11:47,050
OK, you will see the speed of the communication of can open at this point.

164
00:11:47,070 --> 00:11:48,960
OK I will make it set off.

165
00:11:49,140 --> 00:11:54,210
So for this story I am finished here with the CEO PR w insurrection.

166
00:11:54,330 --> 00:12:03,000
We can write and we can read the letters from the screwdriver's and we can adapt our parameters, uh

167
00:12:03,000 --> 00:12:09,450
with our p.l.c., OK, we can control our complete parameters with the p.l.c. for this story finished

168
00:12:09,450 --> 00:12:09,690
here.

169
00:12:09,840 --> 00:12:11,640
See you in the next tutorial.
