00:01
Hello students in this question we are given conditions for operation of a device controlled by three buttons.
00:07
So we have the three buttons x y and z and the mechanism will be activated if z is pressed.
00:16
So now if z is pressed it will activate a mechanism after the x and y is pressed and released sequentially.
00:25
So z x and y you have to press sequentially and then a mechanism is activated.
00:33
So if the if the y button is pressed for five seconds while the device is on the device will be deactivated.
00:45
So okay so so if you press y button for five seconds this will deactivate.
00:55
So that is the program plc program that we have to write.
00:59
So let's have a look at the program that we are going to execute.
01:04
So the first is that we have to start the program right.
01:08
This is the start.
01:10
So there should be some here.
01:14
So this is start the format of start minus minus start minus minus.
01:19
Now we need to start with memory.
01:23
So f1 is x button start time f2 is x button end time.
01:29
Similarly f1 f2 f3 f4 and f6.
01:33
So we have x button start time y button start time and end time.
01:38
And then we have z button start time and f6 which is called the activation time which is the z button end time.
01:47
Right.
01:47
So we sequentially press x y and z.
01:52
That's it.
01:54
The time is important because y is hold for five seconds.
01:57
That means deactivation.
02:00
Now t1 is the second timer that that we can assign as 10 seconds timer.
02:07
A 10 seconds timer.
02:09
Now the variables that we have is x y and activation status x y x button status y button status and activation status activation status is the z button status.
02:22
Now this is the plc program we start right we start we defined everything...