Hello. 1
Let's continue to PID control example and with M0 auxiliary relay in the Delta plcs with the rising edge 2
contact. 3
We are writing our variables or our values to the data registers. 4
So 300 to d100 so we think it as sampling time that we are detecting or we are adjusting 5
in this line. 6
And also we are sending 50 to D100 for the heating KP and heating KI heating upper and heating 7
output lower limits than we are selecting or adjusting them all in here because of why you can focus to hear 8
-- 9
It is k4 what is it. 10
Heating pıd mode. 11
What was it. 12
Control mode mode was 4 temperature control which has been adjusted so we are not doing automatically 13
PID control or automatically parameter adjusting. 14
We are adapting our values with manuelly because of this. 15
We are sending to 4 to D104 for heating PID mode and also for the cooling. 16
We are adjusting our sampling time cooling KP and also cooling KI cooling output upper and lower 17
limits in here. 18
And also we are sending K4 to cooling PID mode. 19
We are adjusting. 20
Same thing to for cooling. 21
So what we did we adopted our parameters manually we adjusted sampling time KP KI and upper and lower 22
limits and now with the m0 always on contact PID start contact in here you can see when this contact 23
is high what will happen PID instruction is going to start set value is this is 24
what you need to put here a value for example you want to adjust the room temperature is 30 degree. 25
So you need to put it here and present value. 26
You will read it from here for example from your thermocouple sensor you are reading it as 20 degrees. 27
So heating sampling time PID is going to take a sampling times in this sampling times it will work it will 28
process and it will give a result to d30 with this result. 29
D30 will be increase and decrease this value and with the D106 heating output upper limit. 30
So where it comes from, from here for the heating and it is going to give to output to Y10 also for 31
the cooling you will select. 32
Okay. 33
I want zero degree in my room now it is 10 degree 34
So from the d150 35
It is coming from here sampling time is similar 300 and it will give a value to d31 this is 36
cooling output value and according to this value and according to your upper limit D156 37
this GPWM instruction will activate Y11 output of your plc 38
So what will happen. 39
It will activate these outputs according to your PID values and PID parameters and it will for example 40
Y10 will be active 5 second and then it will active to 4 second what is our idea or what is our 41
target so PID works like this. 42
First of all this is our scheme. 43
This is our set value. 44
And if you activate this Y10 and or Y11 it will work like this for example it will start from 45
here. 46
It will go like this or like this or like this but always it will be a little bit longer active or a 47
little bit less active. 48
So for the set value it will work a lot. 49
It will be opened and closed and open and close 50
But for PID control it will go just one and two and three. 51
A little bit more and then it will reach your set value always. 52
It will open and close open and close open and close and it will be stable. 53
This is what PID do and why we are using this PID instruction or why this is really important to 54
make stable your outputs to give outputs correctly and without activate your outputs a long time(a lot) 55
longer or less. 56
You can use this PID instruction with like this. 57
You can adopt them all with automatically to activate control mode as 3 or you can put your variables 58
put your parameters to some data registers. 59
But don't forget because of the power cut/power off and power on you can use to remain data registers. 60
Then you can use as control mode as 4 and then you can use this command for the heating and for 61
the cooling then you can work with the PID instructions with like this for this video. 62
I'm finished here. 63
See you in the next video.