Control Design - How To Tune Loops
Control Design - How To Tune Loops
HOW TO TUNE
PID LOOPS
www.controldesign.com
A Control Design reader writes: I often have difficulty tuning PID loops, especially for temperature control applications and servo-motor motion applications. If I use a temperature
controller, the auto-tune built into the device often works well if I follow the manufacturers
recommendations. However, if the temperature control or motion control is through a PLC
or other advanced controller, its often a long training process to find the optimum coefficients for the proportional, integral and derivative of the control loop.
Whether I am controlling the temperature of my medical cleaning process skid or moving
my servo-controlled three-axis gantry, if the process variable (PV), such as temperature or
position, needs to change slowly, its easy. As soon as I need better performance, such as a
fast change in temperature or position, or if dynamic loads are involved, my PID loops become unstable and oscillate or the process variable overshoots or undershoots the setpoint.
I cant afford to burn up the medical device Im cleaning or have a spongy motion-control
system that cant snap to a position.
How do I achieve a quick-responding PID control loop that can handle dynamic changes to
the process variable without chasing PID coefficients for days? What are some rules when
designing the control system for these closed-loop control applications?
Where do I start and what are some best practices to get stability and optimal control in
process-skid and motion-control applications from both a hardware and a PID tuning standpoint. What are some procedures to follow to help reduce PID-loop-tuning time? Any suggestions are appreciated?
www.controldesign.com
ANSWERS
range.
2. Set both the integral and derivative pa-
rameters to zero.
also known as gain. Increasing the proportional-band setting decreases its effect
band = 100/gain.
Upset the loop by introducing loss either by
I is for integral. This is the time parameter.
gral = 1/reset.
onds or seconds).
Do this several times until you see a pronounced oscillation of the process variable;
www.controldesign.com
of a control variable.
be occurring, allowing you to run the system under real process conditions.
EQUIPMENT, ALGORITHM,
SAMPLE RATE
problems.
NO DERIVATIVE VALUE
www.controldesign.com
absolutely necessary.
www.automationdirect.com
MULTIPLE PIDs
www.controldesign.com
a self-regulating process.
we dont overshoot.
special processes
however, that turning off the heat completely wont cause the vessel to start cool-
TEMPERATURE CONTROL
CHALLENGES
www.controldesign.com
Cold Liquid
Valve Position (%)
FULLY CONTINUOUS
Controller Output
(%)
Exit Temp (C)
Steam Supply
Header
www.controldesign.com
Reactant Feed
Conversion (%)
Controller Output (%)
Reactor Temp (C)
Steam to Jacket
SEMI-CONTINUOUS
Figure 2: To increase furnace or batch-reactor temperature, the power to the heating element or flow of steam through the
reactor jacket is increased. As the amount of
heat to the vessel increases, the rate of temperature change increases. By decreasing
the heat into the system, the temperature
will still rise, albeit at a much slower rate.
(Source: Control Station)
point, and the counteraction of the derivative pulling back on the correction once the
process variable starts to change too rapidly.
perature controllers.
on tuning correlations.
www.controldesign.com
FURNACE TEST
Figure 3: In an open-loop bump test of a semi-continuous furnace, the temperature-control example doesnt really look like either of the models. In fact, these types of semi-continuous temperature controllers are best represented by a hybrid of the two models.
(Source: Control Station)
controldesign.com/controlguru.
www.controldesign.com
stant,
SELF-REGULATING
NON-SELF-REGULATING
Figure 4: These examples show open-loop step tests for self-regulating and non-self-regulating
processes. (Source: Control Station)
INTEGRATING PROCESS
Figure 5: An integrating process is applied to the initial dynamics. Since we only require the initial dynamic response, the time required for testing can be significantly reduced.
(Source: Control Station)
10
www.controldesign.com
EQUATION 1
EQUATION 2
EQUATION 3
is
This method is designed to generate tuning parameters quickly, using minimal data
11
www.controldesign.com
12
www.controldesign.com
ready at temperature.
in basic physics.
13
www.controldesign.com
14
www.controldesign.com
analog controllers.
overtaxed PLC.
www.quicksilvercontrols.com
15
www.controldesign.com
controls.com/blog/basics-tuning-pid-loops).
16
www.controldesign.com
REMEMBER TO RECORD
PAST SETTINGS
safety concerns.
a choice.
trols.com/blog/advanced-pid-loop-tuning-
methods.
Kcu.
as possible.
17
www.controldesign.com
3. C
alculate Kc = Kcu/2 for aggressive loop
tuning.
4. Calculate Kc = Kcu/4 for conservative
tuning.
5 TUNING TIPS
This is a complex question in two parts
on-site.
Lee Payne, president, Dataforth, www.dataforth.com
FOCUS ON PI
of other things.
notch filter; for more challenging issues a biquad could get you some really nice results
18
www.controldesign.com
MOTION PROFILE
or weaknesses.
19
www.controldesign.com
Optimation, www.optimation.us
LIMITED PID
20
www.controldesign.com
HVAC systems.
temperature processes), then lambda tuning means the loop will not oscillate and
Optimation, www.optimation.us
LAMBDA TUNING
ing at www.controldesign.com/lambdatuning.
www.emersonprocess.com
AGGRESSIVE TUNING
21
www.controldesign.com
presentation (www.controldesign.com/pid-
www.yokogawa.com/us
22
www.controldesign.com
www.deltamotion.com
STEADY STATE
23
www.controldesign.com
24
www.controldesign.com
INERTIA RATIO
when trying to do simple and more practical applications like what I think you are
trying to do.
CONTROLLER, PLANT
AND PERFORMANCE
processing issues.
25
www.controldesign.com
26
www.controldesign.com
desired specifications.
27
www.controldesign.com
others, as well.
available?
DEDICATED TO CONTROL
by the auto-tuner.
if you can only view the outside loop (position-loop) response, you are basically in
28
www.controldesign.com
Overdamped
Step Command
TIME
Figure 6: Proportional (P) gain is the amount of control variable (CV) response action proportionally presented against the error signal determined by the difference of the measured process variable (PV) and the command/set point (SP).
(Source: Kollmorgen)
error is changing.
29
www.controldesign.com
be; establishing filter types and frequencies by manual examination is beyond the
first attempts.
controlled load.
30
www.controldesign.com
type issue, the I-loop gain setting can typically be reduced 10-15% without affecting
response, and increase the vel-loops integral gain until any steady-state error has
response is achieved.
31
www.controldesign.com
NO
Turn up Kd
YES
Turn down Kd by 2/3
NO
Turn up Kp
YES
Make step command
if only for experimentation, it may be desirable to reduce your velocity feed forward
gain to possibly one-third or less of its
perceived ideal gain settingdirect drive,
fixed loadwhen there is compliance and/
NO
Turn up Ki
YES
Set the Integral Limits
Done
TUNING METHOD
32
www.controldesign.com
VALIDATION
33
www.controldesign.com
www.ni.com
34