PD vs PI tuning for a pid loop

dawg67

Member
Join Date
Sep 2009
Location
North ga
Posts
11
I read here the other night that some of u prefer pd tuning to pi. We generally use pi, so i am wondering why u use pd instead.
 
You must have read Pandiani's post

http://www.plctalk.net/qanda/showpost.php?p=359378&postcount=5

It depends on the type of system one is controlling. Most systems are non-integrating ( temperature, velocity ) or integrating ( position, level ).

Non integrating systems need an integrator in the controller to bring the error to 0, integrating systems don't.

In a level control system the integrator is useful for reducing the error to 0 when there is a disturbance ( in flow) but often a P gain is enough if a little error can be tolerated.

I don't know why Pandiani recommended a PD controller. A PD controller is where the system has two poles. Usually level control systems have only one pole, the inertia of the pump and motor.

I have customers that use PD control with motors where the precise positioning is not necessary but fast response is. As I said above the integrator adds a pole and every pole slows down the response.
 
Hello,
I prefer using PD controller in level loops. The biggest strength of PD controller is in case if you're controlling level in some tank with motorized control valve. In that case, you'll have double integrator in the loop and problems with overshoot. PD can be used succesfully to provide good response.
I suggest you reading posted links ablut D part of the PID controller. If PV doesn't contain noise (properly filtered), then D can be your friend.
Like I said, I'm using D almost exclusively in level control(integrating process) and the structure really depends on actual application.

Regards,
Pandiani
 
Hello,
I prefer using PD controller in level loops. The biggest strength of PD controller is in case if you're controlling level in some tank with motorized control valve. In that case, you'll have double integrator in the loop and problems with overshoot. PD can be used succesfully to provide good response.
A PD makes sense when using a motorized valve. If not the D term isn't required.
 
Articles like this are almost useless and can do as much harm as good

There is an excellent article in the February 2010 issue of Control Engineering magazine: The D in PID: How Derivative Action Works. I highly recommend it.

http://www.controleng.com/article/446647-Understanding_Derivative_in_PID_Control.php
The editor quotes two gurus that are experts and process control but their statements are blanket statements. They don't apply to motion control and allot of other forms of control and the editor didn't make that clear. This article will do as much harm as good. I don't want my customers to read this because is simply doesn't apply or is even wrong when it comes to motion control. I am pointing fingers at the gurus because they probably didn't have any control over the article itself. I know those guys are experts in their field but the editor obviously is not.

Too many assume way too much. Every type application, every form of PID has its own little nuances. If the article made it clear they are only talking about process control. I would give it a pass.

The article mainly fills space. It doesn't really cover when a derivative term should be used or what should be done to implement the derivative term successfully. I am sure the gurus know but the editor didn't ask the right questions.
 
T They don't apply to motion control and allot of other forms of control and the editor didn't make that clear. This article will do as much harm as good. I don't want my customers to read this because is simply doesn't apply or is even wrong when it comes to motion control.

Can you explain what is so special at motion control? Does it mean that derivative part is not used with motion control? Can you explain why this doesn't apply to motion control?
 
Yes, I'm insterested in hearing about that too. I don't know much about PIDs (college student on a co-op, never used a PID never even heard of them before here), but I've been reading about them from the various threads here, and I'm definitely interested in learning about them. The more I can learn about when certain parts should be used, how they work, and why you might use them in certain situations, the better. I hate coming into something knowing nothing about what I'm supposed to be learning.
 
I read the same article a few day ago, and actually found it somewhat informative (or so I thought).

I can't speak for others here, but I would love to see this topic discussed with emphasis on motion control. Hopefully, Peter could shed more light on this for those of us who are confused.

:unsure:

Edit.... I always considered motion as a "process"......
 
Last edited:
The derivative gain simply adds damping to the system. if the system doesn't oscillate then it probably doesn't need the D gain. In mechanical system one can add mechanical dampers or friction but this wastes energy.

To really understand the derivative gain you need to try tuning a mass on a spring. When the mass is disturbed the mass will oscillate until friction slows it down but one can turn up the derivative gain and that will add damping too. A mass on a spring will never stop oscillating unless there is mechanical or electronic damping ( D gain ). The unqualified statement below about a well tuned PI control is better than a poorly tuned PID is simply BOGUS. In the case of the mass on the spring the PI control doesn't have a chance because there is no way of adding damping.

I realize the the gurus only meant this to be fore process systems but the editor didn't make that clear.

from the article said:
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.
Adding a derivative gain may be the answer. It depends on how many poles the system has. A SOPDT system will benefit from a derivative gain but a FOPDT system will not. I object to the blanket answer that a derivative gain will help without knowing what the system is. The there is a similar situation in motion control. Most conveyor/speed control applications work well with just a PI controller because the main time constant is the inertia of the system. BUT, when doing position control the velocity is integrated to become a position. These system usually require a derivative gain. A lot depends on where the closed loop poles are placed.


from the article said:
The more the controller tries to change the value, the more it counteracts the effort.
Not quite, it has nothing to do with how much the controller tries but rather on how high the error rate is changing. The derivative term opposes the rate of change in error.

from the article said:
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.
This assumes the P and I gains haven't been changed. If one adds the derivative gain and also increases the proportional and integrator gain one can actually get faster response. Especially if the system really needs a derivative gain to place the all the poles.

from the article said:
Looking at the situation in the top diagram of the sidebar, the operator has raised the setpoint. How does the controller respond?
When you raise a set point in a temperature system the integrator does wind up as stated. A motion controller's integrator would like wise wind up if the velocity set point is increased BUT, motion controllers have feed forwards. A properly tuned motion controller's integrator term should always be close to 0. This is a big difference. Another big difference is that in motion control the set points are rarely changed in a step. There is a target generator the smooth ramps the target position, velocity and acceleration through the whole profile until the set point is reached. Ideally the PID term is close to 0 and feed forwards do almost all of the work.

from the article said:
So if the main purpose is slowing the control effort of the other factors, what’s D good for? Fast acting loops, such as flow and pressure loops, don’t really need it.
Fast acting is not defined. A motion control system is fast acting compared to anything in the process industry and yet motion controller use the derivative term much of the time. Almost all the time in position control.
We make hydraulic motion controllers where oil flows and pressure on either side of the piston creates the force that makes the actuator move.

It should also be obvious that the article is talking about 10s of minutes and we are often talking about moves that take a few milliseconds to a couple of seconds.

A well tuned PI controller is going to beat a moderately tuned PID controller every time.
This is truly bogus. Anybody can make a PID controller look bad, but if the PID controller is right for the system then it will be easier to tune than the PI controller.

Adding the extra tuning parameter adds complexity, which can confuse a lot of people.
That is why auto tuning was created. I am very good at tuning PIDs on many different systems but I am pretty clueless when it comes to tuning the second derivative gain. I use math and other tools for that.

George Buckbee, P.E., vice president of marketing and product development for ExperTune warns that some traditional loop tuning beliefs should not be considered as universal. “That Ziegler-Nichols quarter amplitude damping thing is a bit of a fallacy for a lot of loops,” he advises
I agree and it shouldn't be used for motion control at all. One can do much better.

“The criteria for what is 'good performance’ really do change from one loop to the next, but usually it’s faster movement toward the setpoint with less risk of overshoot. You have to choose those criteria wisely, and define them for control performance on a per-loop basis”.
True, but the article could mention how the tuning is evaluated. There are methods such as the sum of squared errors(SSE), mean square error(MSE), integrated absolute error(IAE), integrated time absolute error (ITAE)

However, as Buckbee points out, each loop has to be approached individually using the right tuning for a given situation.
YES!!! This is why I cringe when I see people giving advice about how to tune a system when they don't know anything about the OP's system. Usually the OP doesn't even know.

Buckbee compares using derivative to learning to drive: “Derivative is like trying to drive your car with one foot on the gas and one foot on the brake. To my 16-year-old son who’s just learning, that was the first thing he wanted to do.”
What nonsense. If implemented properly the derivative action should be smooth but often it isn't because of sample jitter and non-linearities due to quantizing. You all have heard me rant on that before. The sad part is that PLC PID controllers suffer from slow analog feed backs with low resolution and lots of sample jitter but that is the PLCs fault. Not the PIDs. Our motion controller samples 8 times a millisecond, has 16 bit resolution and all sort of tricks to estimate the rate of change which most on this forum ignore.

Such an approach might work for a skilled race car driver, but most loops don’t need that kind of immediate and violent action.
These guys haven't met most of my customers. They want to go faster, smoother and more accurately all the time and are constantly pushing the hydraulic and mechanical limits.

Buckbee adds, “Derivative is looking at fast, short-term changes in the process variable, and that’s all that noise is. It goes up by 1%, and the next sample it’s down by 1%.
If our product wandered around by 1% it would get yanked out in a millisecond. I have customers grinding to 10 microns. Back in the 80s we had to hold to within 0.001 in. Now there are rods with 1 micro resolution.

Rice suggests that if the dampening action is too high, you have to turn up the P and I action to compensate, like trying to accelerate your car with a foot on the brake.
True but I hate the accelerate your car with the foot on the brake analogy.

At the bottom you can see that ZN was developed in the 40's. Control theory has come a long way since then.
 
Thank You gentlemen.

I can see I have alot more to learn on this subject.
I would enjoy more exchange on loop control anytime you are willing. Again Thank You. Terrell
 

Similar Topics

Hello, I am attempting to tune a PID loop on a process. The process involves a valve with electronic actuator that has quite a high deadband...
Replies
10
Views
2,150
Hello Everyone, I have a fast PID loop that I was having issues with tuning it. - The CV is a sliding stem valve - The PV is a High pressure...
Replies
36
Views
24,029
Hi all, splitting out from this thread because it's a somewhat different question to the original. I have to migrate some code from a Micrologix...
Replies
17
Views
4,062
Long time listener, first time caller. I have a Micro850 PLC controlling the temperature in seven fermentation vessels at a local brewery. Each...
Replies
2
Views
2,577
I am using PID instruction in RS Logix 5000 with independent equation. I am confused about its tuning. Please somebody explain under listed...
Replies
1
Views
4,917
Back
Top Bottom