0
1
00:00:21,340 --> 00:00:22,070
Hello.
1

2
00:00:22,140 --> 00:00:31,400
In this video we are going to learn Bout command I will create a new project and in this project
2

3
00:00:32,030 --> 00:00:39,620
we will add new program a new program language will be ladder diagram
3

4
00:00:42,360 --> 00:00:43,870
in the previous lessons.
4

5
00:00:43,920 --> 00:00:49,310
We remember 0 or 1 0 or 1.
5

6
00:00:49,410 --> 00:00:59,370
What was it just bit four bit equals to or 4 bit equals to nibble.
6

7
00:00:59,380 --> 00:01:11,290
This is just the reminders and 8 bit was one byte and 16 bit was one word.
7

8
00:01:12,110 --> 00:01:15,800
And also we remember k 1 was
8

9
00:01:18,530 --> 00:01:23,790
4 bit or K 3 equals to twelve bit.
9

10
00:01:23,930 --> 00:01:33,600
It was like this so bout means bit specified output.
10

11
00:01:33,600 --> 00:01:36,270
So how can we use it like this.
11

12
00:01:36,390 --> 00:01:39,220
We can add LD M1
12

13
00:01:39,270 --> 00:01:50,400
This is our auxiliary relay and bout then we will assign some bits into the data register so I will
13

14
00:01:50,400 --> 00:01:54,230
assign 16 bit or one word.
14

15
00:01:54,540 --> 00:01:56,610
So what I need to write here.
15

16
00:01:56,700 --> 00:01:58,130
K 4.
16

17
00:01:58,290 --> 00:02:08,690
I will assign auxiliary relay M-bit and it will start from let's say M20 to inside which data
17

18
00:02:08,700 --> 00:02:09,910
register ??
18

19
00:02:10,110 --> 00:02:18,420
Imagine we need to use or we are selecting D5 and this is our bout command and I will create
19

20
00:02:18,510 --> 00:02:30,150
one more device monitor table and say Bout and I will add here from M20 I will add sixteen bit
20

21
00:02:30,670 --> 00:02:37,500
and in here also I will add D five and just one.
21

22
00:02:37,500 --> 00:02:38,190
That's okay.
22

23
00:02:39,360 --> 00:02:49,140
In program 0 section this is our structure for bout command I will compile this project and I will send
23

24
00:02:49,140 --> 00:02:50,460
it to PLC
24

25
00:02:53,160 --> 00:02:56,270
We are using ss2 plc
25

26
00:02:56,340 --> 00:03:01,650
So in the real plc we are not going to use simulator for the commands.
26

27
00:03:01,800 --> 00:03:05,720
Now it is transferring and transfer is finished.
27

28
00:03:05,720 --> 00:03:17,330
Say Okay I will activate m 1 but first we need to go on line and then our CPU is run situation M1
28

29
00:03:17,330 --> 00:03:18,860
set on.
29

30
00:03:18,860 --> 00:03:20,540
So what's happening now.
30

31
00:03:20,630 --> 00:03:29,340
You cannot see anything in here but in the device monitor table let's check here.
31

32
00:03:29,440 --> 00:03:32,340
M20 is activated.
32

33
00:03:32,390 --> 00:03:32,810
Why.
33

34
00:03:33,020 --> 00:03:35,720
Because D5 is 0.
34

35
00:03:35,900 --> 00:03:45,930
So what is that means we are seeing first bit should be active or this instruction is activating first
35

36
00:03:45,930 --> 00:03:46,290
bit.
36

37
00:03:46,520 --> 00:03:49,380
First bit is starting from zero.
37

38
00:03:49,460 --> 00:03:59,000
So let's change D5 present value or let's say we want to activate M 23.
38

39
00:03:59,030 --> 00:04:04,900
So how can we activate M23 , m23->3. Bit
39

40
00:04:05,070 --> 00:04:15,380
So if I write here three and I will say OK then here we go in here you can see m23  is
40

41
00:04:15,620 --> 00:04:16,420
active now.
41

42
00:04:16,680 --> 00:04:18,480
So let's take a look.
42

43
00:04:18,500 --> 00:04:25,540
We want to activate M 30 it is 10. bit so present value is ten.
43

44
00:04:25,590 --> 00:04:26,680
Say okay.
44

45
00:04:26,920 --> 00:04:30,040
And then M 30 is active now.
45

46
00:04:30,220 --> 00:04:34,560
Or m 35 should be on write here.
46

47
00:04:34,570 --> 00:04:39,480
Your present value 15 and you can see m35 is active.
47

48
00:04:39,490 --> 00:04:45,370
Now what happens if I put here for example 17.
48

49
00:04:45,460 --> 00:04:57,570
So say okay now 21 is active because 17 minus 15 15 is sixteen bit in the D5.
49

50
00:04:57,730 --> 00:05:05,890
So 17 minus 15 equals two then M 21 equals second bit.
50

51
00:05:05,950 --> 00:05:13,960
So m 21 is activated if you want to activate M twenty five then what we need to right here we need to
51

52
00:05:14,260 --> 00:05:16,720
right here 20
52

53
00:05:16,720 --> 00:05:21,300
I will say OK an M24 --.
53

54
00:05:21,430 --> 00:05:29,530
Because one two three four and five m24 is fifth bit then twenty minus fifteen equals five
54

55
00:05:29,800 --> 00:05:35,530
and zero and one and two and three and five and twenty four is activated.
55

56
00:05:35,530 --> 00:05:40,510
This is Bit, specified bit output command.
56

57
00:05:40,840 --> 00:05:43,690
And these are all now active.
57

58
00:05:43,690 --> 00:05:51,980
So what will happen if we want to disactivate these ones completed what can we do.
58

59
00:05:52,030 --> 00:05:57,740
I will add here M1000 and then in here.
59

60
00:05:58,250 --> 00:05:59,240
Let's add
60

61
00:05:59,290 --> 00:06:04,550
zone reset values
61

62
00:06:10,190 --> 00:06:11,830
zone reset I'm just.
62

63
00:06:12,080 --> 00:06:16,110
All types that I need to check once insert
63

64
00:06:19,010 --> 00:06:21,730
then we can say zone reset.
64

65
00:06:21,740 --> 00:06:38,520
How can we use zone reset command from from M20 to for example M40 zone reset update our program
65

66
00:06:38,520 --> 00:06:46,790
line we need to wait a little bit update the program line and update is completed so you can see now
66

67
00:06:47,450 --> 00:06:55,730
I will set off M1 auxiliary relay I will go to my device monitor table and all of them
67

68
00:06:55,730 --> 00:07:11,300
is off now because we are always resetting between 20 and 40 what happens if I put M1 to here
68

69
00:07:14,230 --> 00:07:25,240
M1 but then we need to reset this complete auxiliary relay falling edge then update program line again
69

70
00:07:27,440 --> 00:07:34,470
say OK now update the program line and m 1 it activated.
70

71
00:07:34,470 --> 00:07:42,800
Now this is active and then bout monitor table M24  is active.
71

72
00:07:42,810 --> 00:07:52,920
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

73
00:07:52,920 --> 00:07:53,270
OK.
73

74
00:07:53,280 --> 00:08:03,510
These are all and then go program section again and set of M 1 that moment go back to monitor table
74

75
00:08:04,040 --> 00:08:13,320
and these are all off now so we can use bout or bit specified output command like this in this video
75

76
00:08:13,390 --> 00:08:14,580
I am finished here.
76

77
00:08:14,580 --> 00:08:16,130
See you in the next video.
