Professional Documents
Culture Documents
PID Control: Introduction To
PID Control: Introduction To
Introduction to
PID control
Paul Avery
Senior Product Training Engineer
Yaskawa Electric America, Inc.
Waukegan, Ill.
E
veryone uses control loops. since 1958.
Anytime you adjust how you Similarly, modern indus-
do something based on pre- trial controls are often re-
vious results, you are forming your quired to regulate process-
own control loop. es as part of a control loop.
For example, when you want The controller receives a setpoint
to drive your car at 65 mph, you request from the programmer and
depress the accelerator until the compares it to a measured feedback.
speedometer reports the target The setpoint can be thought of as
speed — simple. But what happens where I want to be and feedback can
when you start driving up a hill? be thought of as where I really am.
The car slows because the torque to The difference between the set- and Derivative. Proportional means
move a car at 65 mph on flat road is point and feedback is called the er- a constant multiple. A number is
no longer enough — so you respond ror ε. The job of the controller is to said to be a proportion to another if
by pressing the accelerator further eliminate the error — so where I am there exists a constant n such that y
down. Your foot, the speedometer, is where I want to be. = nx. This n can be positive or neg-
and your brain have formed a con- ative, greater or less than one. To
trol loop. American cars have of- How do PID loops work? make the formula more accurate by
fered automated speed control loops PID is an acronym for the math- PID controller standards, propor-
— also known as cruise control — ematical terms Proportional, Integral, tion is given by K P and the x term is
d(ε)
y=
dt
All three of these PID controller components cre-
ate output based on measured error of the process be-
ing regulated. If a control loop functions properly, any
changes in error caused by setpoint changes or process
Circle XXX
MARCH 2009 MOTION SYSTEM DESIGN • www.motionsystemdesign.com 17
Control basics
Derivative factor
K=1 The derivative factor is the least
understood and used of the three
factors. In fact, a majority of PID
loops in the real world are really just
Larger proportional gain or error increases output from the proportional
factor. Caution: Setting proportional gain too high can cause a controller
PI loops. That does not negate the
to repeatedly overshoot its setpoint. fact that there are certain applica-
tions in which the derivative plays
a very important role. The propor-
disturbances are quickly eliminated larger the proportional gain, the tional corrects instances of error,
by the combination of the three fac- smaller the steady state error — but the integral corrects accumulation
tors P, I, and D. Let us now analyze the larger the proportional gain, the of error, and the derivative corrects
how each contributes to perfor- more likely the loop is to become present error versus error the last
mance. unstable. This dilemma leads to time it was checked.
inevitable steady-state error called In other words, the derivative is
Proportional factor offset. looking at the rate of change of the
The proportional factor is easi- error ∆ε. The more error changes or
est to understand: The output of Integral factor the longer the derivative time, the
the proportional factor is the prod- Think of the integral factor as a larger the derivative factor becomes.
uct of gain and measured error ε. basket in which the loop stores all The effect of the derivative is to
Hence, larger proportional gain or measured error (∫ε). Remember that counteract the overshoot caused by
error makes for greater output from error can be positive or negative, P and I. When the error is large, the
the proportional factor. Setting the so sometimes error fills the basket P and the I will push the control-
proportional gain too high causes a (when positive error is added to pos- ler output. This controller response
controller to repeatedly overshoot itive error or negative error is added makes error change quickly, which
the setpoint, leading to oscillation. to negative) and sometimes it emp- in turn causes the derivative to
The downside to a proportion- ties the basket — as when positive more aggressively counteract the P
al-only loop is that when error be- error is added to negative, or vice and the I. A properly used derivative
comes too small, loop output be- versa. allows for more aggressive propor-
comes negligible. Therefore, even When the integral factor func- tional and integral factors. Larger
when the proportional loop reaches tions properly in the control loop, derivative time makes the derivative
steady state, there is still error. The the basket is nearly empty. Even more aggressively dampen P and I.
Ti = 2
The integral factor is like a basket that stores all measured error. When
the integral is functioning correctly, the basket is always nearly empty.
Td = 0.7
The derivative factor is the least understood and used of the three fac-
tors. It accounts for and corrects present error versus error at last check.
Circle XXX
20 MARCH 2009 MOTION SYSTEM DESIGN • www.motionsystemdesign.com
Ziegler–Nichols method
Control type Kp Ki Kd
P only 0.5·Kc - -
PI 0.45·Kc 1.2Kp / Pc -