0
1
00:00:21,230 --> 00:00:22,190
Hello.
1

2
00:00:22,260 --> 00:00:31,770
In this video we are going to learn INV and ALT commands so I will give a name INT_ALT
2

3
00:00:32,010 --> 00:00:35,160
as project name and I will say okay.
3

4
00:00:35,250 --> 00:00:45,640
New project is opening now Program Section select new and is ladder diagram new project is creating now
4

5
00:00:46,030 --> 00:00:48,960
and I will say LD M5
5

6
00:00:48,970 --> 00:00:58,040
This is our auxiliary relay to understand inverse command, the left click twice to here or just press space.
6

7
00:00:59,320 --> 00:01:08,200
On your laptop or computer and then right here or type here in worse than OUT Y0.
7

8
00:01:08,510 --> 00:01:17,700
monitor and LD M1 and then ALT Y1
8

9
00:01:18,060 --> 00:01:28,190
go online to plc and we will see how these commands are working or what can we do with these commands.
9

10
00:01:28,260 --> 00:01:39,850
Now my project is transferring to plc and say OK we need to wait a little bit it is completed now and
10

11
00:01:39,850 --> 00:01:43,030
I want to go back to running state that's okay.
11

12
00:01:43,330 --> 00:01:45,850
And then you can see it now.
12

13
00:01:46,890 --> 00:01:51,440
And 5 is off but Y0 is active.
13

14
00:01:51,530 --> 00:01:56,760
So how it is working this is working not logic.
14

15
00:01:56,810 --> 00:01:58,260
So this is zero.
15

16
00:01:58,340 --> 00:02:01,200
This is one if this becomes one.
16

17
00:02:01,340 --> 00:02:02,870
This should be zero.
17

18
00:02:03,200 --> 00:02:14,390
Let's try once said on that moment Y0 0 it's of so 1 and 0 because of our inverse command and
18

19
00:02:14,390 --> 00:02:18,730
say set of so 0 to 1.
19

20
00:02:18,800 --> 00:02:20,720
This is inverse command.
20

21
00:02:20,900 --> 00:02:25,490
It is it changed the situation to opposite old command.
21

22
00:02:25,490 --> 00:02:27,830
How it is working or 
22

23
00:02:27,830 --> 00:02:39,470
What should we why we should use outcome on if one is active and then Y0 becomes zero and one
23

24
00:02:40,160 --> 00:02:42,200
false and true false and true why.
24

25
00:02:42,230 --> 00:02:48,290
Because it is changing the situation of why one and set off.
25

26
00:02:48,470 --> 00:02:50,860
Now it is off.
26

27
00:02:51,020 --> 00:02:59,450
So all this change to situation of output 0 to 1 0 to 1 0 to 1.
27

28
00:02:59,450 --> 00:03:01,270
It works like this.
28

29
00:03:01,640 --> 00:03:06,770
What will happen if I use in here just rising.
29

30
00:03:07,010 --> 00:03:10,900
Let's try once rising edge trigger and update the program line.
30

31
00:03:10,910 --> 00:03:16,710
The project is compiling now and say OK update the program line.
31

32
00:03:16,800 --> 00:03:19,770
OK and it's completed.
32

33
00:03:19,770 --> 00:03:36,530
So let's take a look set on Y1 is active, set off still active set on now off set off and then set
33

34
00:03:36,620 --> 00:03:42,090
on again and set off again and set on again.
34

35
00:03:42,110 --> 00:03:51,140
It should be high always because we are giving a pulse or activating the logic front of the ALT
35

36
00:03:51,140 --> 00:03:52,100
instruction.
36

37
00:03:52,100 --> 00:04:01,460
But now you can see and what happens if I put here say normally open M1000 and in one second
37

38
00:04:01,460 --> 00:04:04,590
clock pulse and update the program line again.
38

39
00:04:04,880 --> 00:04:10,100
Say okay update a program line that's okay.
39

40
00:04:10,130 --> 00:04:23,180
Update is completed and now we need to see you can see it it is coming and it is becomes zero and false.
40

41
00:04:23,380 --> 00:04:25,890
But it showed active all.
41

42
00:04:25,900 --> 00:04:30,860
Or it is not following M1013,
42

43
00:04:30,970 --> 00:04:32,870
And let's change it.
43

44
00:04:32,910 --> 00:04:43,450
M20 and  update the program line again and say Okay I say OK
44

45
00:04:46,500 --> 00:04:59,190
update completed then I will write the logic to here and I will say to you five timer the key five and
45

46
00:04:59,190 --> 00:05:05,420
then we will add to here a timer, timer T5.
46

47
00:05:06,030 --> 00:05:08,010
How many seconds.
47

48
00:05:08,010 --> 00:05:20,330
Three seconds for a moment delay this one and then we will add like this to here on
48

49
00:05:23,270 --> 00:05:25,030
all types and alt
49

50
00:05:25,250 --> 00:05:26,730
And inserted.
50

51
00:05:26,930 --> 00:05:28,260
That's okay.
51

52
00:05:28,270 --> 00:05:36,960
And normally close and T 5 then send it
52

53
00:05:39,990 --> 00:05:44,770
just you need to specify our output is y 5.
53

54
00:05:45,000 --> 00:05:45,930
That's okay.
54

55
00:05:45,930 --> 00:05:48,770
Update the program line again and it will.
55

56
00:05:48,780 --> 00:05:49,080
Okay.
56

57
00:05:49,080 --> 00:05:59,370
It's finished and then update the program line then update is completed and 20 set on timer is counting
57

58
00:05:59,780 --> 00:06:01,480
then timer came.
58

59
00:06:01,680 --> 00:06:04,200
It is active then timer high
59

60
00:06:04,290 --> 00:06:08,480
It is disactive and timer came each three seconds.
60

61
00:06:08,580 --> 00:06:16,110
It is becomes of an on off and on off and on it's working like this.
61

62
00:06:16,110 --> 00:06:22,200
You can see it.
62

63
00:06:22,340 --> 00:06:25,100
This is how all commands works.
63

64
00:06:25,100 --> 00:06:30,860
This is how inverse command works set on and set off.
64

65
00:06:30,860 --> 00:06:39,200
You can see the output is change the situation according to logic M5 and in here you can see the
65

66
00:06:39,200 --> 00:06:42,660
pulses each 3 second like this.
66

67
00:06:42,680 --> 00:06:50,360
It is changing the situation outcome on change the situations from on to open or off to on according
67

68
00:06:50,360 --> 00:07:03,830
to input and in here you can see T5 comes and Y5 become High and T5 comes and Y5 becomes low like this.
68

69
00:07:03,920 --> 00:07:08,720
All change to situation of the outputs like this.
69

70
00:07:08,990 --> 00:07:18,120
So it goes off to on, off on ,off to on or 1 and 0 1 0 1 .....
70

71
00:07:18,170 --> 00:07:19,410
And like this.
71

72
00:07:19,490 --> 00:07:24,290
This is how can we use inverse and alt commands in the plcs.
72

73
00:07:24,410 --> 00:07:32,360
So you can use your inverse logic if you want to disactivate your output when you active your contact
73

74
00:07:32,360 --> 00:07:33,870
or you can.
74

75
00:07:34,070 --> 00:07:41,750
You can use your alt command or alt instruction if you want to create the outputs like this when you
75

76
00:07:41,780 --> 00:07:51,020
when you specify a time as 3 second with timer and you can give a outputs according to your time
76

77
00:07:51,030 --> 00:07:53,820
or according to your structure.
77

78
00:07:53,960 --> 00:07:55,460
I am finished for this video.
78

79
00:07:55,520 --> 00:07:57,190
See you in the next video.
