1
00:00:21,410 --> 00:00:22,050
Hello.

2
00:00:22,160 --> 00:00:30,710
In this video we are going to learn data addressing for the bit addressing the meaning of the bit zero

3
00:00:30,740 --> 00:00:41,570
or one or on and off control is only available for one bit addressing like it's five or M0 or

4
00:00:41,690 --> 00:00:43,080
out Y1

5
00:00:43,160 --> 00:00:43,830
--

6
00:00:44,030 --> 00:00:51,550
The basic comments are usually addressed with a single bit four digit addressing digit means 4 bit.

7
00:00:51,590 --> 00:01:01,340
So if we say two digit equals to one byte ,four digit equals to one word so far with addressing

8
00:01:01,400 --> 00:01:01,990
is a digit.

9
00:01:02,600 --> 00:01:12,260
And we can express it like this k1 is four point or four bit according to what according to this

10
00:01:12,470 --> 00:01:13,460
usage.

11
00:01:13,470 --> 00:01:20,930
Okay so for example K1 M0 4 bits are expressed by addressing at the end of the common process the

12
00:01:20,930 --> 00:01:29,960
values of m0 or 1 and 2 and 3 bits have been moved to the first four bits of sixteen bit D0

13
00:01:30,020 --> 00:01:31,500
memory region.

14
00:01:31,520 --> 00:01:45,010
So for these zero memory region we can use one digit addressing 4 bits 0 and 1 and 2 and 3 4 bytes

15
00:01:45,050 --> 00:01:53,620
addressing four and one byte is eight bits so we can express it with k 2 because of the remember in

16
00:01:53,630 --> 00:01:59,750
here k 1 Was it cool 2 4 bit or K was equal to 4B.

17
00:02:00,020 --> 00:02:05,760
So K to 4 multiply by 2 8 point or 8 bit.

18
00:02:05,990 --> 00:02:18,380
So if we move K to M 0 to the zero then we can assign a B to inside of 2 to 0 3 digit addressing so

19
00:02:18,380 --> 00:02:26,990
three digit means twelve bits forty four cha three bits form with play three bits so for example 12

20
00:02:26,990 --> 00:02:35,390
points can be expected with an addressing such as K 3 m 0 like this then we can see it in here usage

21
00:02:35,840 --> 00:02:39,160
and word other thing if we want to.

22
00:02:39,260 --> 00:02:42,650
Addressing address to avert.

23
00:02:42,650 --> 00:02:51,230
So the word can be used with the timers and counters or data registers etc. these registers are word

24
00:02:51,230 --> 00:03:00,050
side so word is a two byte or sixteen bit so we can say that one word equals sixteen bit so we can

25
00:03:00,050 --> 00:03:06,030
say one word equal to k4 multiply by 4.

26
00:03:06,110 --> 00:03:15,960
So that means sixteen point or sixteen bit than complete word can be addressed by bits to it and in

27
00:03:15,960 --> 00:03:20,710
here m 0 or M auxiliary relay are an example.

28
00:03:20,750 --> 00:03:29,030
So if you want to use addressing for double word so that means the addressing method described so far

29
00:03:29,390 --> 00:03:33,770
was the word addressing format in the k 1 and k 4 range.

30
00:03:33,920 --> 00:03:44,480
Some commands are expert with the 32 bit memory area so K1 is four point K2 eight points K 3 twelve

31
00:03:44,480 --> 00:03:46,960
point K 4 sixteen point.

32
00:03:47,150 --> 00:03:58,610
But if we use k 5 then we can address 20 points or two and to be in word area and if we if we go a little

33
00:03:58,610 --> 00:04:04,640
bit further both to 16 bit or one word we shall use double word.

34
00:04:04,940 --> 00:04:16,220
So for example if we say okay k8 we can use thirty two point and what about the indirect addressing.

35
00:04:16,220 --> 00:04:24,530
So while indirect addressing can be used with the word parameters can X and can Y and can M and can

36
00:04:24,710 --> 00:04:29,330
timer and counter and data registers.

37
00:04:29,540 --> 00:04:37,460
It cannot be used with the parameter it's a m as ejector right not able to command allows indirect addressing.

38
00:04:37,460 --> 00:04:45,800
So in here we can see a usage of indirect addressing so it will it is really helpful for us and we are

39
00:04:45,800 --> 00:04:53,620
going to use indirect addressing while we are writing up serial communication program for the drives.

40
00:04:53,630 --> 00:04:58,990
So it will help to reduce a programming line for us.

41
00:04:59,030 --> 00:05:07,620
For example if x 0 becomes high so these 5 e will move to the 8.

42
00:05:07,850 --> 00:05:14,030
So let's say equals to 8 and F equals to 14.

43
00:05:14,030 --> 00:05:18,410
So these 5 E means do .

44
00:05:18,470 --> 00:05:25,810
This is a data registers 5 and 8 5+ 8 a then equals to 13.

45
00:05:26,070 --> 00:05:30,070
It is close to the thirteen.

46
00:05:30,120 --> 00:05:32,940
So what about the A@F.

47
00:05:32,940 --> 00:05:38,750
So here 8 and f is 14 14 plus 8.

48
00:05:38,820 --> 00:05:47,700
So it equals D22 when the condition exists or high done D 13 well who is going to be transferred

49
00:05:47,700 --> 00:05:56,030
to D22  for the ISPsoft usage so you can see in here we are adding at sine.

50
00:05:56,310 --> 00:06:00,490
So in here imagine E 0 is 5.

51
00:06:00,540 --> 00:06:06,830
So the 10 5 five will transfer to D0 in here.

52
00:06:06,840 --> 00:06:13,790
Imagine if zero is to D100 and two will transfer or move to the zero.

53
00:06:13,800 --> 00:06:18,060
For example in here let's say is zero equals to 10.

54
00:06:18,060 --> 00:06:24,870
So the one under than ten is going to transfer in here but we need to know if 0 0.

55
00:06:24,880 --> 00:06:26,790
Let's let's give an example.

56
00:06:26,840 --> 00:06:28,010
It goes to 3.

57
00:06:28,200 --> 00:06:34,830
So the one under then 10 is going to move to the one under then 3.

58
00:06:34,860 --> 00:06:40,990
So let's take a look once to our ISPSoft software

59
00:06:41,280 --> 00:06:48,840
Let's write the program and let's analyze what's going on with this addressing and let's let's practice

60
00:06:48,930 --> 00:06:49,410
a little bit.

61
00:06:49,890 --> 00:06:57,960
So a new project and controller type DVP and the plc type is going to be SS2 and I will create

62
00:06:57,960 --> 00:07:02,370
the one program will be later on and data

63
00:07:04,990 --> 00:07:14,330
I will give a name addressing and it will be program with the ladder diagram and I will create a device

64
00:07:14,350 --> 00:07:22,140
monitor table 2 if you want to monitor your your values or data registers or bits and everything in

65
00:07:22,340 --> 00:07:30,390
a piece of software so unique you can create a device monitor table in here just come here and right

66
00:07:30,400 --> 00:07:37,840
click and new and give a name to your monitor table and it can be stay like this and I will say okay

67
00:07:38,170 --> 00:07:52,510
and I will write my code okay LD M1000 always open contact and I will say to here okay first addressing

68
00:07:52,510 --> 00:07:54,480
of all collateral.

69
00:07:54,520 --> 00:07:55,020
I will.

70
00:07:55,020 --> 00:08:05,980
I will give this example to let's say 8 bit one bite addressing k 2 because of these m 0 and first

71
00:08:06,010 --> 00:08:12,120
I will use this instruction to the zero.

72
00:08:12,160 --> 00:08:14,910
This is the first thing and the second thing.

73
00:08:15,150 --> 00:08:21,490
And I will I will say LDI 20 for the indirect addressing.

74
00:08:21,700 --> 00:08:31,290
I will say  D1 under then is 0 to d 1 under then 8.

75
00:08:31,430 --> 00:08:38,310
I have zero and  I will send my project to Plc to simulator.

76
00:08:38,320 --> 00:08:39,340
Okay.

77
00:08:39,460 --> 00:08:41,180
And I want to transfer it.

78
00:08:41,200 --> 00:08:42,100
Okay.

79
00:08:42,100 --> 00:08:46,590
Transfer my project to Plc and now it's transferring.

80
00:08:47,320 --> 00:08:48,420
Yes.

81
00:08:48,580 --> 00:08:55,960
And I will say okay we have a runs so run status but I will say again to run.

82
00:08:55,960 --> 00:08:56,320
Okay.

83
00:08:56,320 --> 00:09:04,300
Monitor table I will monitor my m balloons than just time.

84
00:09:04,930 --> 00:09:12,670
M auxiliary relay that  I'm going to monitor and I will take a look wants to what will

85
00:09:12,670 --> 00:09:14,630
happen in D0

86
00:09:14,800 --> 00:09:15,540
---

87
00:09:15,640 --> 00:09:25,660
In here we send to K to M zero to D0 because of I'm going to watch these zero values and

88
00:09:25,840 --> 00:09:27,980
I will add these values also.

89
00:09:28,430 --> 00:09:41,950
Okay and monitor table and I will say E 0 and I will say F 0 first of all for the bit other seeing

90
00:09:42,070 --> 00:09:51,490
what we are going to learn or what we are going to work with this which is actually realized.

91
00:09:51,580 --> 00:09:59,170
For example you are working with a lot of actually release a lot of bits then you want to know which

92
00:09:59,650 --> 00:10:03,510
contacts are active and which ones are disabled.

93
00:10:03,610 --> 00:10:06,640
So how can you take them all one by one.

94
00:10:06,640 --> 00:10:12,450
It can take a lot of time and one by one you can you can lose a lot of time.

95
00:10:12,490 --> 00:10:20,920
So for example your and one contact is high set on and your fifth contact and 5 is on.

96
00:10:21,190 --> 00:10:22,400
So let's take a look.

97
00:10:22,400 --> 00:10:25,610
These 0 is now equals 34.

98
00:10:25,780 --> 00:10:29,110
So 34 means as binary.

99
00:10:29,110 --> 00:10:36,520
Your second and your sixth contact because it's starting from the zero is active.

100
00:10:36,700 --> 00:10:47,110
So let's active activate M 3 and set on you say you our value is change and now what we did we addressed

101
00:10:47,530 --> 00:10:50,730
byte so byte equals bit.

102
00:10:50,920 --> 00:10:53,960
So what happens if I activate m 9.

103
00:10:54,160 --> 00:10:59,250
Set on You see nothing is changed and of nothing's changed.

104
00:10:59,260 --> 00:11:08,160
So now we learn we can monitor or we can follow a bit value inside of these your.

105
00:11:08,170 --> 00:11:13,660
So what happens for example if I say not okay too.

106
00:11:13,930 --> 00:11:15,470
I will say okay.

107
00:11:15,580 --> 00:11:17,280
4 for example in here.

108
00:11:17,290 --> 00:11:26,620
So I want to watch and I want to address one word or sixteen bit and I will send it to PLC now it's

109
00:11:26,650 --> 00:11:31,360
transferring with the online it edit update program line update is completed.

110
00:11:31,430 --> 00:11:40,940
Okay now let's go back to monitor table and at M10 and eight more.

111
00:11:40,990 --> 00:11:41,800
No.

112
00:11:42,050 --> 00:11:47,190
Ve changed a nine contact to all but these four didn't change.

113
00:11:47,230 --> 00:11:49,980
Now I will change to M9 set on.

114
00:11:49,990 --> 00:11:58,270
So you see all these zero value is changed and now it's bigger than because after a bit than we activate

115
00:11:58,270 --> 00:11:59,170
the tenth bit.

116
00:11:59,290 --> 00:12:05,800
If you put the 10. Bit  1 as binary numbers then you can.

117
00:12:05,980 --> 00:12:12,060
You can reach not this number because M1 and M3 and these ones are high.

118
00:12:12,130 --> 00:12:19,870
Let's set off these ones and as binary effect to a tiny bit and it cost as decimal five hundred and

119
00:12:19,920 --> 00:12:24,190
twelve and let us imagine M fifteen is active.

120
00:12:24,310 --> 00:12:30,790
So our value is higher than thirty two thousand seven hundred and sixty seven.

121
00:12:30,790 --> 00:12:34,860
So it's this activities D1 activate and 14.

122
00:12:35,110 --> 00:12:37,300
So you see this is our value.

123
00:12:37,420 --> 00:12:40,200
What about a 17 set on.

124
00:12:40,250 --> 00:12:47,520
Nothing nothing's changed because now we are addressed just 16 bit inside of the zero.

125
00:12:47,770 --> 00:12:56,730
So this is addressing the methods of the of your bits of your values inside of the plc projects.

126
00:12:56,800 --> 00:13:02,680
So let's take a look wants to in indirect addressing what will happen.

127
00:13:02,690 --> 00:13:10,620
do you want one under eight it is zero value is going to transfer to d 1 under then f 0.

128
00:13:10,640 --> 00:13:20,320
So let's let's do a value to is real and f 0 for example inside of the Monitor table I will give you

129
00:13:20,500 --> 00:13:28,930
a value to zero it will be time and a zero it will be 20

130
00:13:32,150 --> 00:13:35,500
and go back to data addressing area okay.

131
00:13:35,660 --> 00:13:46,820
Now for example o d 1 under that kind Malu is going to move to the one hundred and twenty so let's let's

132
00:13:46,820 --> 00:13:55,730
change the value inside of the the one under then time and in here left double click d one under then

133
00:13:56,240 --> 00:14:01,900
turn and left click d one under then twenty.

134
00:14:01,940 --> 00:14:12,650
So now let's change it to for example three now o the one underlined time blue is three and after I

135
00:14:12,800 --> 00:14:21,140
activate two M twenty contact we are we need to see the one hundred and twenty equals two three.

136
00:14:21,260 --> 00:14:28,420
Let's try once M twenty set on so go back our monitor table than you see.

137
00:14:28,910 --> 00:14:33,410
d121 to became three.

138
00:14:33,650 --> 00:14:39,040
So let's change for example this value to 5.

139
00:14:39,840 --> 00:14:42,540
And we can see it's five.

140
00:14:42,540 --> 00:14:47,270
So what happens if I change is zero to 30.

141
00:14:47,280 --> 00:14:51,720
Now you can see the one hundred and twenty is zero.

142
00:14:51,720 --> 00:14:52,450
Why.

143
00:14:52,530 --> 00:14:59,640
Because now we are transferring 120 data registers to the one hundred and twenty.

144
00:14:59,640 --> 00:15:04,060
Let's take a look once the one hundred and twenty and it's your.

145
00:15:04,080 --> 00:15:13,650
So what I what I change to this value for example is give a value to the one hundred and twenty fifty.

146
00:15:13,800 --> 00:15:17,100
Then we need to see fifty in here.

147
00:15:17,130 --> 00:15:27,920
Let's change a zero to for example 50 and now we need to change this value for example to 60.

148
00:15:28,380 --> 00:15:35,750
Okay now we need to see the one hundred and fifty must be equal to sixty.

149
00:15:35,770 --> 00:15:38,570
It's at the one hundred and fifty here.

150
00:15:38,670 --> 00:15:41,240
Then you can see it is sixty.

151
00:15:41,610 --> 00:15:51,390
So now we can address our bits our registers with the with the addressing methods so we can we can

152
00:15:51,390 --> 00:16:02,580
use k to M0 K to y 0 k 2 8 0 0 k 1 k three K for K five whatever you want to use you can use it like

153
00:16:02,580 --> 00:16:09,360
this and you can address your deeds and your values were with like this and you can monitor them you

154
00:16:09,360 --> 00:16:17,220
can take under control them all and with the indirect addressing you can use e areas and the F areas

155
00:16:17,280 --> 00:16:25,170
inside of the ıspsoft inside of the delta plcs and if you put in the ISPsoft the 5 for

156
00:16:25,170 --> 00:16:35,190
example D 5 it is 0 and if you give a value to each row you need to 8 for example 5 at 5 8 or 5 plus

157
00:16:35,700 --> 00:16:45,360
and your value of 0 then you will get a result of this ending and then these data registers that you

158
00:16:45,360 --> 00:16:53,070
are going to use  actually inside of the Plc projects these are Y really important.

159
00:16:53,070 --> 00:16:59,700
Imagine you are communicating with the third to slave for example with the drives with we have these

160
00:17:00,060 --> 00:17:06,150
and you need to send them all a lot of information and you need to read a lot of information from them

161
00:17:06,540 --> 00:17:14,620
done you you need to write a lot of data registers inside of the program or you can increase your area

162
00:17:14,640 --> 00:17:21,870
Sweet Sixteen or thirty two each time and each cycle down you can read and write a lot of information

163
00:17:21,870 --> 00:17:24,810
with a free program line.

164
00:17:24,930 --> 00:17:33,460
So these are really important and we are going to use them all inside communication with the these and

165
00:17:33,520 --> 00:17:34,380
other device.

166
00:17:34,510 --> 00:17:39,780
So for a moment before this video I am finished and see you in the next video.
