Hello. 1
Today we are going to learn contact types and start up to basic commands. 2
So in this page you can see AND contact and ANDI contact and OR contact types and also rising EDGE and 3
the falling edge and set output and the reset output. 4
So for these contacts to learn them all it's open ISPsoft and let's create the project and the simulator 5
with the simulator help. 6
We are going to learn them all effectively. 7
So in the ISPSoft software come here and click new and I will type it test application and our 8
controller type is going to be DVP and plc type is going to be ss2 9
And let's press. 10
OK. 11
And this now. 12
And now let's open a program a new program that's created a name POU means program organization unit 13
so we can say it just the program program name is going to be test application and our programming language 14
is going to be a ladder diagram and its type in here as common test application for udemy. 15
And OK. 16
This is our programming page and it's opened and in here we will serial contact. 17
We will put in here will serial contacts we can add a contact to click in here just the contact and 18
we can come here and just click left mouse twice and it will add contacts like these. 19
And if you want to just to write a plc programs easily you can come here to red and black dots 20
in here in this area you can click twice to left side LD M0 and LD M1 and let's put in here one 21
output and out Y0 so M1 and M0 and Y1 is serial contacts and also insert one extra network 22
and LD M3 or M3 23
So this is our parallel contact or OR contact. 24
So that's put in here or contacts. 25
So lets add here one more output , OUT Y1 and insert one more network. 26
LD M4 and let's put in here inverse contact or not contact LDI M5 27
put here an output, out Y2 and insert one more network put in here not contact. 28
We can type like this not contact and in here we can add to. 29
We can learn in this network to set. 30
command 31
And also we are going to learn now how to add rising edge Contract type so LDP 32
ldp 33
This is our rising edge contact. 34
command. 35
And we can add a contact as the auxiliary contact M6 and output SET Y3 36
Y3 37
And one more network. 38
Now let's insert in this network to following edge contact LDF, F means falling edge. 39
So not an output just an auxiliary relay M7 and reset Y3 40
So let's simulate these things all click in here and compile our project. 41
There is no error and download our project to the simulator and press transfer button and say yes and 42
now object is transferring to the running state ,Yes. 43
I want to go back to running state. 44
If you do it ... 45
If you do it first time so it can be like this. 46
So plc or simulator can be stopped or could be stopped. 47
So look what will happen. 48
M0 and M1 is active but there is no output. 49
Why because our PLC or simulator is stopped. 50
So you need to come here. 51
You need to select run, run situation now activated. 52
Then we can see our output is activated. 53
So this is our serial contact. 54
What happens for the serial contact. 55
serial contacts. 56
All of them must be on for the output. 57
So M0 is active but it is not enough to activate our output. 58
M1 must be active also for OR contact two. 59
Or there can be a lot of contacts as parallel. 60
One of them must be active. 61
So we have an output. 62
So M3 is active also still we have an output M2 is off. 63
We have still active output ,M3 is of our output. 64
this activated for the not contact. 65
M4 for example. 66
This is just a normally open contact and M5 is normally close contact and these conditions 67
are okay. 68
We have an output but what happens M5 goes on set on our output is off M5 set off. 69
We have an output M4 is off our output is gone for the M6 for a set command. 70
This is just the rising edge. 71
If somebody pressed a button then that moment suddenly after the button is activated it is just a square 72
wave. 73
Beginning of the square wave 74
It will give an output so suddenly Y3 set. 75
So we have a set output. 76
What happens if M6 released set off. 77
So we have still output M7 is active but we have still output y3 still set. 78
Why. 79
Because M7 is falling edge contact. 80
So after on to off suddenly our output is gone. 81
So what happens for the plc programming. 82
when you want to latch some circuits or let's say you need latched circuits or latched programming 83
concepts so also you need online edit to control your plc to because of 84
Machine can be running and you maybe you don't want to stop your machine. 85
So what can you do so you can come here. 86
You can activate online edit mode, now online edit mode is active but for online edit you cannot add 87
any variable to in here. 88
I will also while you are online you cannot do this but I will add some variables to understand our 89
concepts or our lesson so I will stop our plc. 90
I will come here to left click twice identifier. 91
Let's give it a name , start name given it, to start button. 92
This type will be bool okay. 93
This is just a variable and stop button should be bool and we want to turn our motor forward. 94
So let's give a name motor forward and type should be bool okay. 95
And go on line. 96
Now we are on line. 97
Our Plc in run situation and I will open our online edit mode and insert network and write 98
plc programs for the latching circuit and also I will put a note here latching circuit okay. 99
LDP so when somebody pressed the start button start button and if there is no stop button is active 100
or never pressed stop button. 101
Imagine like this. 102
LDI stop button motor is going to turn forward 103
OUT Motorforward also in here. 104
I will add one OR contact like this and this will be motor forward. 105
This will latch our circuit. 106
Okay send changes to our plc. 107
Okay. 108
There is no error an update program online. 109
Update is completed. 110
Somebody press that button. 111
Now our motor is turning forward pressed and released. 112
Start button. 113
So if you want to stop your motor you need to press stop button press once and release and motor forward. 114
Is disactivated now. 115
So this latched circuit is disactivated also. 116
And suddenly somebody pressed against start button and released Motor is still turning forward again 117
and stop button is pressed and motor forward finished or stopped. 118
So this is the example of the latching circuits in this video. 119
We learned how to do online it it how to create a new plc project how to insert the networks and 120
the serial contacts and the parallel contacts and how to set and reset and the falling edge and the 121
rising edge and latching circuits and how to create variables for the basic programming concepts. 122
So we are finished for this video. 123
See you in the next video.