Professional Documents
Culture Documents
Closed Loop Hydraulic Actuatormodelforrealtimesimulationwith PIDPart 2
Closed Loop Hydraulic Actuatormodelforrealtimesimulationwith PIDPart 2
Closed Loop Hydraulic Actuatormodelforrealtimesimulationwith PIDPart 2
net/publication/364385038
Closed Loop Hydraulic Actuator model for real time simulation with PID Part 2
+ PID Auto tuning + PID manual Tuning
CITATIONS READS
0 63
1 author:
Kamlesh Chaudhari
Lineomatic
30 PUBLICATIONS 9 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Kamlesh Chaudhari on 20 October 2022.
Before going to discuss above model first we will understand basic function of PID
For example, think about your heating system in your home. We want the room to be at
25°C. So, we give our system 25°C as the setpoint or input, and the system tries to regulate
the process variable or output to have a value as close to 25°C as possible.
1. Proportional control
It is really very simple in operation what happens in the controller box. The PV is
subtracted from the SP to create the Error. The error is simply multiplied by one, two or all
the calculated P, I and D actions (depending which ones are turned on). Then the resulting
“error xx control actions” are added together and sent to the controller output.
These 3 modes are used in different combinations:
P – Sometimes used
2. Integral control
The integral of a signal is the sum of all the instantaneous values that the signal has been,
from whenever you started counting until you stop counting.
So, if you are to plot your signal on a trend and your signal is sampled every second, and
let’s say you are measuring temperature. If you were to superimpose the integral of the
signal over the first 5 seconds – it would look like this:
The green line is your temperature, the red circles are where your control system has
sampled the temperature and the blue area is the integral of the temperature signal. It is the
sum of the 5 temperature values over the time period that you are interested in. In
numerical terms it is the sum of the areas of each of the blue rectangles:
The curious units (degrees Celsius x seconds) are because we have to multiply a
temperature by a time – but the units aren’t important.
The integral turns out to be the area under the curve. When we have real world systems,
we actually get an approximation to the area under the curve, which as you can see from
the diagram gets better, the faster we sample.
In Integral Only mode, the controller simply multiplies the integral of the error
(accumulation of error or area under the error curve) by the Integral Gain (Ki) to get the
controller output.
3. Derivative control
In Derivative Only mode, the controller simply multiplies the rate of change of the error at
that instance (slope of the error curve) by the Derivative Gain (Kd) to get the controller
output.
A tricky thing about PID controllers is that to tune Kp, Ki and Kd to suitable values to have a
good controller. The other thing is to use correct components of P, I and D according to
your application or system.
But let’s say the process in your case is a tank of liquid product that you’re trying to heat. If
the process variable (temperature) goes above the setpoint, the product may be ruined or
catch on fire. So, how do you get the process variable to move, but not overshoot the
setpoint excessively? One answer is introducing a derivative factor.
Derivative acts as a brake or dampener on the control effort. The more the controller tries to
change the value, the more it counteracts the effort. In our example, the variable rises in
response to the setpoint change, but not as violently. As it approaches the setpoint, it settles
in nicely with a minimum of overshoot. It doesn’t move as quickly as the PI-only effort, but
without the oscillations, the right amount of derivative action can stabilize the process
variable at the setpoint sooner
The proportional term looks at where my value is currently. Integral looks at where I’ve been
over time, and the derivative tries to predict where I’m going. Derivative tries to work
opposite of where proportional and integral are trying to drive the process. P and I are trying
to drive one way, and D is trying to counteract that. Derivative has its largest effect when the
process is changing rapidly in one direction. The P and I terms are saying, ‘Keep going.’ The
derivative catches it and says, ‘You’re going too fast. You need to slow down.’”
“If you have a system like a really slow temperature loop, users tend to put a lot of
derivatives in there because they don’t like the overshoot,”
Large derivative action tends to destabilize a loop because it doesn’t allow it to change. The
rule of thumb is that if your derivative time is greater than the reset time of your controller
Ultimately, the use of derivative action can be beneficial, but it has to be used in the right
situations and in the right amounts.
EXAMPLE 1
See the value is sudden change for 0 to 1
In black colour is PID default parameter and red colour is PID tune parameter
all above query or question we are going to solve using this model
Input
See in the below graphs input is continuously changing
The input command goes to SUM. the output of sum goes to PID
See the above result blue line is command and yellow line is Measured value
Now we are going to change some process parameters and see what will happen
I changed some parameter Like pipe internal diameter from 0.02 to 0.08, friction from 64 to 200
Pipe length form 2 m to 6m and Pipe wall type from rigid wall to flexible wall
As we discussed above Why derivative is important If you haven't read it carefully, read it
again.
Process is running
See the result
One more thing to reduce the overshoot you can increase then KD blindly
For example
If I increase KD 2 to 10 then what will happened
Its trying to reduce overshoot square box but see the different between SP and actual value by
arrow
But if you want to improve result then increase filter coefficient value from 200 to 500
Now we changed double acting hydraulic cylinder parameter in same PID value
Change is piston are from 0.004 to 0.02 and piston stroke is from 0.1 to 1 now see the result
See there is no overshoot, but command and measured value is different in some case if you
change the PID value and do not get result then keep in mind because of mechanical
parameter is drastically changed so every time PID cannot compensate it in this case you
have to resize your mechanical system
Conclusion
Hope you understand PID and its function. because after this we are going to
discuss various applications using PID. If you have any questions then drop me
a message in the comment box.