Beruflich Dokumente
Kultur Dokumente
LECTURE#10
PID CONTROLLER
In this equation, you can see that the proportional term (Kp), has an
amplifying effect on the entire algorithm.
PID Control----Terms
• Proportional: To handle the present, the error is multiplied by a
negative constant P and added to the controlled quantity.
– Note: When error is zero, proportional controller's output is zero.
• Integral: To handle the past, error is integrated (added up) over a time
period, multiplied by a negative constant I and added to the controlled
quantity. I finds the process output's average error from the setpoint.
– A simple proportional system oscillates around the setpoint,
because there's nothing to remove the error.
– By adding a negative proportion of the average error from the
process input, average difference between the process output and
the setpoint is reduced and the process output will settle at the
setpoint.
• Derivative: To handle the future, the first derivative (slope) of the error
is calculated, multiplied by negative constant D, and added to the
controlled quantity.
– The larger this derivative term, more rapidly the controller responds
to changes in the process output.
– The D term dampens a controller's response to short term changes.
PID PROCESS CONTROLLER
PID CONTROLLER: CLOSED-LOOP MODEL
PID Control Algorithms
• Controller manufacturers arrange the Proportional, Integral
and Derivative modes into three different controller
algorithms or controller structures.
• These are called Series, Ideal and Parallel algorithms.
• Some controller manufacturers allow you to choose
between different controller algorithms as a configuration
option in the controller software.
Interactive Algorithm
• This very popular controller algorithm is called as Series, Classical, Real
or Interactive algorithm.
• The pneumatic and electronic controllers had this algorithm and it is
still found it in many controllers today.
• The Ziegler-Nichols tuning rules are based on this controller algorithm.
Noninteractive Algorithm
• Noninteractive algorithm is also called the Ideal, Standard algorithm.
• In this standard form, inner summation produces a new single error value which is
compensated for future and past errors.
• Addition of proportional and derivative terms predicts the error value at Td seconds in
future.
• Integral component adjusts the error value to compensate for the sum of all past errors
in Ti seconds .
• The resulting compensated single error value is scaled by the single gain Kc.
• The Cohen-Coon PID tuning rules were designed for this algorithm.
Parallel Algorithm
• This parallel form, parameters are treated as simple gains,
• This algorithm is simple to understand, but not perceptive to tune.
• Reason is that it has no controller gain (affecting all three control modes), it
has a proportional gain instead (affecting only the proportional mode).
• Adjusting the proportional gain should be supplemented by adjusting the
integral and derivative settings at the same time.
PID algorithm Pseudocode
• A software loop that implements the PID algorithm in its 'ideal, parallel'
form:
previous_error = setpoint - actual_position
integral = 0
start:
error = setpoint - actual_position
integral = integral + (error*dt)
derivative = (error - previous_error)/dt
output = (Kp*error) + (Ki*integral) + (Kd*derivative)
previous_error = error
wait(dt)
goto start
PID Control Modes
Mode Combination Function Application
Proportional (P) To provide GAIN For small set points or
small load changes