Hello. 1
In this video we are going to learn Bout command I will create a new project and in this project 2
we will add new program a new program language will be ladder diagram 3
in the previous lessons. 4
We remember 0 or 1 0 or 1. 5
What was it just bit four bit equals to or 4 bit equals to nibble. 6
This is just the reminders and 8 bit was one byte and 16 bit was one word. 7
And also we remember k 1 was 8
4 bit or K 3 equals to twelve bit. 9
It was like this so bout means bit specified output. 10
So how can we use it like this. 11
We can add LD M1 12
This is our auxiliary relay and bout then we will assign some bits into the data register so I will 13
assign 16 bit or one word. 14
So what I need to write here. 15
K 4. 16
I will assign auxiliary relay M-bit and it will start from let's say M20 to inside which data 17
register ?? 18
Imagine we need to use or we are selecting D5 and this is our bout command and I will create 19
one more device monitor table and say Bout and I will add here from M20 I will add sixteen bit 20
and in here also I will add D five and just one. 21
That's okay. 22
In program 0 section this is our structure for bout command I will compile this project and I will send 23
it to PLC 24
We are using ss2 plc 25
So in the real plc we are not going to use simulator for the commands. 26
Now it is transferring and transfer is finished. 27
Say Okay I will activate m 1 but first we need to go on line and then our CPU is run situation M1 28
set on. 29
So what's happening now. 30
You cannot see anything in here but in the device monitor table let's check here. 31
M20 is activated. 32
Why. 33
Because D5 is 0. 34
So what is that means we are seeing first bit should be active or this instruction is activating first 35
bit. 36
First bit is starting from zero. 37
So let's change D5 present value or let's say we want to activate M 23. 38
So how can we activate M23 , m23->3. Bit 39
So if I write here three and I will say OK then here we go in here you can see m23 is 40
active now. 41
So let's take a look. 42
We want to activate M 30 it is 10. bit so present value is ten. 43
Say okay. 44
And then M 30 is active now. 45
Or m 35 should be on write here. 46
Your present value 15 and you can see m35 is active. 47
Now what happens if I put here for example 17. 48
So say okay now 21 is active because 17 minus 15 15 is sixteen bit in the D5. 49
So 17 minus 15 equals two then M 21 equals second bit. 50
So m 21 is activated if you want to activate M twenty five then what we need to right here we need to 51
right here 20 52
I will say OK an M24 --. 53
Because one two three four and five m24 is fifth bit then twenty minus fifteen equals five 54
and zero and one and two and three and five and twenty four is activated. 55
This is Bit, specified bit output command. 56
And these are all now active. 57
So what will happen if we want to disactivate these ones completed what can we do. 58
I will add here M1000 and then in here. 59
Let's add 60
zone reset values 61
zone reset I'm just. 62
All types that I need to check once insert 63
then we can say zone reset. 64
How can we use zone reset command from from M20 to for example M40 zone reset update our program 65
line we need to wait a little bit update the program line and update is completed so you can see now 66
I will set off M1 auxiliary relay I will go to my device monitor table and all of them 67
is off now because we are always resetting between 20 and 40 what happens if I put M1 to here 68
M1 but then we need to reset this complete auxiliary relay falling edge then update program line again 69
say OK now update the program line and m 1 it activated. 70
Now this is active and then bout monitor table M24 is active. 71
So let's change it to five and let's change it to 10 m 30 let's change it to 13 M31 that's 72
OK. 73
These are all and then go program section again and set of M 1 that moment go back to monitor table 74
and these are all off now so we can use bout or bit specified output command like this in this video 75
I am finished here. 76
See you in the next video.