Hello. 1
In this video we are going to learn INV and ALT commands so I will give a name INT_ALT 2
as project name and I will say okay. 3
New project is opening now Program Section select new and is ladder diagram new project is creating now 4
and I will say LD M5 5
This is our auxiliary relay to understand inverse command, the left click twice to here or just press space. 6
On your laptop or computer and then right here or type here in worse than OUT Y0. 7
monitor and LD M1 and then ALT Y1 8
go online to plc and we will see how these commands are working or what can we do with these commands. 9
Now my project is transferring to plc and say OK we need to wait a little bit it is completed now and 10
I want to go back to running state that's okay. 11
And then you can see it now. 12
And 5 is off but Y0 is active. 13
So how it is working this is working not logic. 14
So this is zero. 15
This is one if this becomes one. 16
This should be zero. 17
Let's try once said on that moment Y0 0 it's of so 1 and 0 because of our inverse command and 18
say set of so 0 to 1. 19
This is inverse command. 20
It is it changed the situation to opposite old command. 21
How it is working or 22
What should we why we should use outcome on if one is active and then Y0 becomes zero and one 23
false and true false and true why. 24
Because it is changing the situation of why one and set off. 25
Now it is off. 26
So all this change to situation of output 0 to 1 0 to 1 0 to 1. 27
It works like this. 28
What will happen if I use in here just rising. 29
Let's try once rising edge trigger and update the program line. 30
The project is compiling now and say OK update the program line. 31
OK and it's completed. 32
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
on again and set off again and set on again. 34
It should be high always because we are giving a pulse or activating the logic front of the ALT 35
instruction. 36
But now you can see and what happens if I put here say normally open M1000 and in one second 37
clock pulse and update the program line again. 38
Say okay update a program line that's okay. 39
Update is completed and now we need to see you can see it it is coming and it is becomes zero and false. 40
But it showed active all. 41
Or it is not following M1013, 42
And let's change it. 43
M20 and update the program line again and say Okay I say OK 44
update completed then I will write the logic to here and I will say to you five timer the key five and 45
then we will add to here a timer, timer T5. 46
How many seconds. 47
Three seconds for a moment delay this one and then we will add like this to here on 48
all types and alt 49
And inserted. 50
That's okay. 51
And normally close and T 5 then send it 52
just you need to specify our output is y 5. 53
That's okay. 54
Update the program line again and it will. 55
Okay. 56
It's finished and then update the program line then update is completed and 20 set on timer is counting 57
then timer came. 58
It is active then timer high 59
It is disactive and timer came each three seconds. 60
It is becomes of an on off and on off and on it's working like this. 61
You can see it. 62
This is how all commands works. 63
This is how inverse command works set on and set off. 64
You can see the output is change the situation according to logic M5 and in here you can see the 65
pulses each 3 second like this. 66
It is changing the situation outcome on change the situations from on to open or off to on according 67
to input and in here you can see T5 comes and Y5 become High and T5 comes and Y5 becomes low like this. 68
All change to situation of the outputs like this. 69
So it goes off to on, off on ,off to on or 1 and 0 1 0 1 ..... 70
And like this. 71
This is how can we use inverse and alt commands in the plcs. 72
So you can use your inverse logic if you want to disactivate your output when you active your contact 73
or you can. 74
You can use your alt command or alt instruction if you want to create the outputs like this when you 75
when you specify a time as 3 second with timer and you can give a outputs according to your time 76
or according to your structure. 77
I am finished for this video. 78
See you in the next video.