You know, in this tutorial, we will learn.
Basics of beat logic.
OK, in the places you can see it everywhere, Vitalogy and how it is working.
Imagine you have a button on the button is.
The symbol of the button is like that, but imagine this is your button, OK, when you press it, OK?
This is the push button.
When you press the push button, this will be normal, normally close contact and then you release your
hand.
OK, this will be normally open contact, that's all.
Or you can say, OK, I hit a stop button.
For stockpot, the symbol is like that.
OK, so this is normally closed, so when you use stock but button, if we have a power from here,
OK, imagine you have a for what is connected to stop button, then it will go to the next of the line
when you press the stock button and it will be turned to normally open contact or you can say, OK,
I have to button one button.
OK, and one more button.
If I press two one button, uh, for example, this is the first one and this is the second one.
If I press one or two, I want to activate my motor.
OK, this is your call.
You.
And what you hear, this is now all contact.
OK, so you have an output if you.
See, OK, so imagine this is your policy, you have inputs, OK, x1 x zero and explore and like that
and you hit and all of flight zero one and like that inside of to see what we hear.
We have a microcontroller.
OK, so when the input is activated by a push button by sensor.
OK, what is happening.
OK, plus what is coming to input or this is up to.
I think that's right.
You think or connection?
OK, but now I'm talking about it if you give.
Two minus two is OK, this is uncommon.
OK, this is mine, so you need to and four to zero to your digital inputs.
OK.
It goes to the inside of the PC plus five, four and five comes to microcontroller and then it takes
the input and output.
Five-fold goes and then from Pfeifle with the optic coupler, ok, it goes to transferal or it turns
to 24.
OK, and that your wife zero or one and your output becomes active.
OK, big logic is just the control circuit.
That's all for the.
Designer.
OK, um, let's come to here and let's write to some sample code and then you will be understanding
effectively how can you fit logic in the Delta p.l.c.?
OK, for the code.
This is Elvie.
Elvie means a lot.
OK, Aldy, for example, I will use an Internet at this moment.
For example, the M0 then this is imagine X zero.
This is your input, OK, and when the engine is active, OK or the button is pressed.
OK, and I want to give one output outweight zero point zero.
OK, so this is a contact and the normal open contact and this is all good if I put it if m zero and
OK, the keyword at this moment and if M0 and uh for example LDA and one OK and zero and one is active.
So in here this must be one, this must be one.
So we have an output or I can come to here now I click this one I am writing or ok or M two.
Now I put here or contact M zero or two and one then we have an output.
That's all I can come to here.
LDI OK, so for example M three if M3 is not activated.
OK, so I can come to here, you can write to M0 normally open or if you can select normally closed
like that or you can write Kurgan normally open that.
So uh let's start a simulator.
I will go on line.
OK device is not compile and download.
OK.
Um.
Component, I will select it, OK?
Um, stop mission.
OK, so you can see M3 three is normally closed, so this is allowing to pass current or the it is allowing
to, uh, let to go to right side to coil because of y because this is normally closed and you will
see, for example, M0 or M2 imageries active end and one is active.
OK, so we will get the output, but it is stopped p.l.c. so we need to make it run.
OK.
And then again, M0 is active and then and one is active.
We have an output or M2.
OK, let's make it false.
Let's make it M2.
OK, this is also active.
If uh and one is not activated because of the end uh structure there is no output or I can say and M
three is not is must be of but now I will make it on so there is no output or we can say just come to
hear.
The set conditions, OK?
Right.
We can say set like that or I will delete this one I have right here set, for example, why zero point
zero?
Um, but I'm right or wrong, said y zero point zero.
That's not OK.
Then let's do a download this project.
But, uh, we need to compile once it's finished.
Let's go to class, um, compiled once.
OK, I will start again, start transmission.
OK, successfully extended, and then I will go on line again and you will see now am zero active and
and one is now active.
So this is settled.
OK, so let's make a false and one you can see why zero point zero is remained.
OK, now then we need to reset it.
For example, in here I will say just.
Come to hear the and five, OK?
And we said, OK, why zero point zero like that or you can come to here just right, click on set or
reset or dayjob, and I will make a pile this project again and I will send it to my simulator and start
transmission.
OK, and I will go on line, so let's take a look once and this is true and this is true and this is
settled.
Let's make and five active than you will see.
This is recent, OK, let's make it false and let's make it on again.
OK, because of.
Structure of the palaces, then it relates to inputs and activist outputs and policy comes from the
left to right and from top to bottom.
Because of this, it is resetting now and I will make it false.
OK, then you can see it is set that so and then it is reset it and it's to make it false and let's
make it fall.
So for a moment, what we can say, this is set and reset for the ledge, for the outputs, OK, for
the keep output high until Rousset is active and for the normally open and normal close contacts according
to our end or gaits.
OK, you can use them all.
But the binary logic, I'm not going to talk about it because you can say, OK, if this button is pressed
and this button is press, there is an output.
And this is, for example, for the stop contact.
This is just start contact.
This is also another star contact or another condition.
But I'm not going to talk about one or one equals one and one equals one and not one equals one.
And there's an output now, not like that.
It is really basic logic.
You can do a test yourself and you can do a small applications like that for this tutorial.
I finished here.
See you in the next tutorial.