Hello.
In this video we are going to learn data addressing for the bit addressing the meaning of the bit zero
or one or on and off control is only available for one bit addressing like it's five or M0 or
out Y1
--
The basic comments are usually addressed with a single bit four digit addressing digit means 4 bit.
So if we say two digit equals to one byte ,four digit equals to one word so far with addressing
is a digit.
And we can express it like this k1 is four point or four bit according to what according to this
usage.
Okay so for example K1 M0 4 bits are expressed by addressing at the end of the common process the
values of m0 or 1 and 2 and 3 bits have been moved to the first four bits of sixteen bit D0
memory region.
So for these zero memory region we can use one digit addressing 4 bits 0 and 1 and 2 and 3 4 bytes
addressing four and one byte is eight bits so we can express it with k 2 because of the remember in
here k 1 Was it cool 2 4 bit or K was equal to 4B.
So K to 4 multiply by 2 8 point or 8 bit.
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
three digit means twelve bits forty four cha three bits form with play three bits so for example 12
points can be expected with an addressing such as K 3 m 0 like this then we can see it in here usage
and word other thing if we want to.
Addressing address to avert.
So the word can be used with the timers and counters or data registers etc. these registers are word
side so word is a two byte or sixteen bit so we can say that one word equals sixteen bit so we can
say one word equal to k4 multiply by 4.
So that means sixteen point or sixteen bit than complete word can be addressed by bits to it and in
here m 0 or M auxiliary relay are an example.
So if you want to use addressing for double word so that means the addressing method described so far
was the word addressing format in the k 1 and k 4 range.
Some commands are expert with the 32 bit memory area so K1 is four point K2 eight points K 3 twelve
point K 4 sixteen point.
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
bit further both to 16 bit or one word we shall use double word.
So for example if we say okay k8 we can use thirty two point and what about the indirect addressing.
So while indirect addressing can be used with the word parameters can X and can Y and can M and can
timer and counter and data registers.
It cannot be used with the parameter it's a m as ejector right not able to command allows indirect addressing.
So in here we can see a usage of indirect addressing so it will it is really helpful for us and we are
going to use indirect addressing while we are writing up serial communication program for the drives.
So it will help to reduce a programming line for us.
For example if x 0 becomes high so these 5 e will move to the 8.
So let's say equals to 8 and F equals to 14.
So these 5 E means do .
This is a data registers 5 and 8 5+ 8 a then equals to 13.
It is close to the thirteen.
So what about the A@F.
So here 8 and f is 14 14 plus 8.
So it equals D22 when the condition exists or high done D 13 well who is going to be transferred
to D22 for the ISPsoft usage so you can see in here we are adding at sine.
So in here imagine E 0 is 5.
So the 10 5 five will transfer to D0 in here.
Imagine if zero is to D100 and two will transfer or move to the zero.
For example in here let's say is zero equals to 10.
So the one under than ten is going to transfer in here but we need to know if 0 0.
Let's let's give an example.
It goes to 3.
So the one under then 10 is going to move to the one under then 3.
So let's take a look once to our ISPSoft software
Let's write the program and let's analyze what's going on with this addressing and let's let's practice
a little bit.
So a new project and controller type DVP and the plc type is going to be SS2 and I will create
the one program will be later on and data
I will give a name addressing and it will be program with the ladder diagram and I will create a device
monitor table 2 if you want to monitor your your values or data registers or bits and everything in
a piece of software so unique you can create a device monitor table in here just come here and right
click and new and give a name to your monitor table and it can be stay like this and I will say okay
and I will write my code okay LD M1000 always open contact and I will say to here okay first addressing
of all collateral.
I will.
I will give this example to let's say 8 bit one bite addressing k 2 because of these m 0 and first
I will use this instruction to the zero.
This is the first thing and the second thing.
And I will I will say LDI 20 for the indirect addressing.
I will say D1 under then is 0 to d 1 under then 8.
I have zero and I will send my project to Plc to simulator.
Okay.
And I want to transfer it.
Okay.
Transfer my project to Plc and now it's transferring.
Yes.
And I will say okay we have a runs so run status but I will say again to run.
Okay.
Monitor table I will monitor my m balloons than just time.
M auxiliary relay that I'm going to monitor and I will take a look wants to what will
happen in D0
---
In here we send to K to M zero to D0 because of I'm going to watch these zero values and
I will add these values also.
Okay and monitor table and I will say E 0 and I will say F 0 first of all for the bit other seeing
what we are going to learn or what we are going to work with this which is actually realized.
For example you are working with a lot of actually release a lot of bits then you want to know which
contacts are active and which ones are disabled.
So how can you take them all one by one.
It can take a lot of time and one by one you can you can lose a lot of time.
So for example your and one contact is high set on and your fifth contact and 5 is on.
So let's take a look.
These 0 is now equals 34.
So 34 means as binary.
Your second and your sixth contact because it's starting from the zero is active.
So let's active activate M 3 and set on you say you our value is change and now what we did we addressed
byte so byte equals bit.
So what happens if I activate m 9.
Set on You see nothing is changed and of nothing's changed.
So now we learn we can monitor or we can follow a bit value inside of these your.
So what happens for example if I say not okay too.
I will say okay.
4 for example in here.
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
transferring with the online it edit update program line update is completed.
Okay now let's go back to monitor table and at M10 and eight more.
No.
Ve changed a nine contact to all but these four didn't change.
Now I will change to M9 set on.
So you see all these zero value is changed and now it's bigger than because after a bit than we activate
the tenth bit.
If you put the 10. Bit 1 as binary numbers then you can.
You can reach not this number because M1 and M3 and these ones are high.
Let's set off these ones and as binary effect to a tiny bit and it cost as decimal five hundred and
twelve and let us imagine M fifteen is active.
So our value is higher than thirty two thousand seven hundred and sixty seven.
So it's this activities D1 activate and 14.
So you see this is our value.
What about a 17 set on.
Nothing nothing's changed because now we are addressed just 16 bit inside of the zero.
So this is addressing the methods of the of your bits of your values inside of the plc projects.
So let's take a look wants to in indirect addressing what will happen.
do you want one under eight it is zero value is going to transfer to d 1 under then f 0.
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
a value to zero it will be time and a zero it will be 20
and go back to data addressing area okay.
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
change the value inside of the the one under then time and in here left double click d one under then
turn and left click d one under then twenty.
So now let's change it to for example three now o the one underlined time blue is three and after I
activate two M twenty contact we are we need to see the one hundred and twenty equals two three.
Let's try once M twenty set on so go back our monitor table than you see.
d121 to became three.
So let's change for example this value to 5.
And we can see it's five.
So what happens if I change is zero to 30.
Now you can see the one hundred and twenty is zero.
Why.
Because now we are transferring 120 data registers to the one hundred and twenty.
Let's take a look once the one hundred and twenty and it's your.
So what I what I change to this value for example is give a value to the one hundred and twenty fifty.
Then we need to see fifty in here.
Let's change a zero to for example 50 and now we need to change this value for example to 60.
Okay now we need to see the one hundred and fifty must be equal to sixty.
It's at the one hundred and fifty here.
Then you can see it is sixty.
So now we can address our bits our registers with the with the addressing methods so we can we can
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
this and you can address your deeds and your values were with like this and you can monitor them you
can take under control them all and with the indirect addressing you can use e areas and the F areas
inside of the ıspsoft inside of the delta plcs and if you put in the ISPsoft the 5 for
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
and your value of 0 then you will get a result of this ending and then these data registers that you
are going to use actually inside of the Plc projects these are Y really important.
Imagine you are communicating with the third to slave for example with the drives with we have these
and you need to send them all a lot of information and you need to read a lot of information from them
done you you need to write a lot of data registers inside of the program or you can increase your area
Sweet Sixteen or thirty two each time and each cycle down you can read and write a lot of information
with a free program line.
So these are really important and we are going to use them all inside communication with the these and
other device.
So for a moment before this video I am finished and see you in the next video.