5 Process Control Dec 8
5 Process Control Dec 8
• Process Control
– the use of process dynamics for the improvement of process
operation and performance
or
-theuse of process dynamics to alleviate the effect of undesirable
(unstable) process behaviors
Consider a house in a cold
climate which is to be
maintained near a desired
temperature by circulating
hot water through a heat
exchanger
Define Objectives
Develop a process
model
Design controller
based on model
Test by
Simulation
Monitor
Performance
Often an iterative process, based on performance we may
decide to retune, redesign or remodel a given control system
Control System Development
• Objectives
– “What we are trying to control?”
• Process modeling
– “What do we need design?”
• Controller design
– What variables should we measure?
– What variables should we control?
– What is the best controller structure?
Control System Development
• Implement and tune the controlled process
– Test by simulation
– incorporate control strategy to the process
hardware
• Monitor performance
– periodic retuning and redesign is often necessary
based on sensitivity of process or market
demands
Control
A controller is a system designed to regulate a given process
Controller obeys laws of mathematics and logic (sometimes
intelligent)
Action Observation
intervene Controller monitor
Friction
Process Speed
Engine
Controller
Human or Computer
Classical Control
• Control is meant to provide regulation of process outputs about
a reference r, despite inherent disturbances d
d
r e u y
+ Controller Process
-
Actual trajectory
Desired trajectory y
r
Simplest Types of Feedback Control
• On-Off Control
• This is the simplest form of control.
A robotic arm can be moved and positioned by a control loop. By applying forward and
reverse power to an electric motor to lift and lower the arm, it may be necessary to
allow for the inertial mass of the arm, forces due to gravity, and to correct for external
forces on the arm such as a load to lift or work to be done on an external object.[10]
The sensed position is the process variable (PV). The desired position is called the
setpoint (SP). The input to the process (the electric current in the motor) is the
output from the PID controller. It is called either the manipulated variable (MV)
or the control variable (CV). The difference between the present position and the
setpoint is the error (e), which quantifies whether the arm is too low or too high
and by how much.
By measuring the position (PV), and subtracting it from the setpoint (SP), the error (e) is
found, and from it the controller calculates how much electric current to supply to the
motor (MV). The obvious method is proportional control: the motor current is set in
proportion to the existing error. A more complex control may include another
term: derivative action. This considers the rate of change of error, supplying more or less
electric current depending on how fast the error is approaching zero.
Finally, integral action adds a third term, using the accumulated position error in the past
to detect whether the position of the mechanical arm is settling out too low or too high
and to set the electrical current in relation not only to the error but also the time for
which it has persisted. An alternative formulation of integral action is to change the
electric current in small persistent steps that are proportional to the current error. Over
time the steps accumulate and add up dependent on past errors; this is the discrete-
time equivalent to integration
Applying too much impetus when the error is small and is reducing will lead to overshoot.
After overshooting, if the controller were to apply a large correction in the opposite
direction and repeatedly overshoot the desired position, the output
would oscillate around the setpoint in either a constant, growing, or decaying sinusoid. If
the amplitude of the oscillations increase with time, the system is unstable. If they
decrease, the system is stable. If the oscillations remain at a constant magnitude, the
system is marginally stable.
In the interest of achieving a controlled arrival at the desired position (SP) in a timely
and accurate way, the controlled system needs to be critically damped. A well-tuned
position control system will also apply the necessary currents to the controlled motor
so that the arm pushes and pulls as necessary to resist external forces trying to move
it away from the required position. The setpoint itself may be generated by an
external system, such as a PLC or other computer system, so that it continuously varies
depending on the work that the robotic arm is expected to do. A well-tuned PID
control system will enable the arm to meet these changing requirements to the best
of its capabilities.
If a controller starts from a stable state with zero error (PV = SP), then further
changes by the controller will be in response to changes in other measured or
unmeasured inputs to the process that affect the process, and hence the PV.
Variables that affect the process other than the MV are known as
disturbances. Generally controllers are used to reject disturbances and to
implement setpoint changes. A change in load on the arm constitutes a
disturbance to the robot arm control process.
Evaluation Criteria
• Evaluate the steady state response
• Evaluate the response to the change in set
point and transient effect
• Ensure Stability
Control System Evaluation
• 1. How fast the control system responds to the command or
disturbance input (i.e., the bandwidth).
The curves in Figure 5 show two types of response time. In Figure 5a the
curve represents the response time following an abrupt positive going step-
function change of the input parameter. The form shown in Figure 5b is a
decay time (Td to distinguish from Tr , for they are not always the same) in
response to a negative going step-function change of the input parameter.
P-only Control
Time
Time Time
u(t ) u0 KC e(t )
The bias u0 is the value of the controller output which, in manual mode,
causes the measured process variable to maintain steady state at the design
level of operation
[e (t )=0] when the process disturbances are at their expected values
The bias value is assigned at the controller design level, and remains fixed
once the controller is put in automatic
LT
LC Nominal operation:
u must be 60 L/h if
e = 0 then u0=60 L/h
disturbance
Flow out 60 L/h
10 L/h
If the disturbance changes to 20
Flow in
70 L/h L/h, the steady state is
maintained only if u=50 L/h
SP
since u0=60 L/h, the error must
LT
LC be 0
disturbance
Flow out 50 L/h
20 L/h
P-only controllers (cont’d)
u(t ) u0 KC e(t )
What if the disturbance changes during the process?
The manipulated input u must change to guarantee that the process stays at
steady state, i.e.
u u0
A steady state error e 0 must be enforced by the P-only controller to keep the
process at steady state:
u s.s. u0 K C e(t ) u0
• A proportional controller
attempts to perform better
than the On-off type by
applying power in proportion
to the error.
• As the gain is increased, the
system responds faster to
changes in set point(reference
temp.,Td=50c) but becomes
progressively underdamped
and eventually unstable.
Performance of P-only controllers
Response to a disturbance step change
no control
(KC=0) • Whatever the value of K , C
the offset is reduced with
increasing KC respect to open-loop
operation
controlled variable
• Increasing KC :
the offset is reduced
the system may oscillate
the process response is
off-set speeded up
• Although the open-loop
response may be 1st order,
set-point
the closed-loop one is not
time
Summary for P-only control
Advantages
– conceptually simple
– easy to tune (a single parameter is needed, KC ; the
bias is determined from steady state information)
Pitfalls
– cannot remove off-set (off-set is enforced by the
controlled)
Integral Control
Integrator is included to eliminate offset
PI controller form
1 t
u( t ) Kc e( t ) e( ) d u R
I 0
Transfer function model
1
U ( s) Kc 1 E ( s)
I s
PI controllers
P=Proportional , I=Integral
The P controller cannot remove off-set because the only way to change the
controller bias during non-nominal operations is to cause e 0
The rationale behind a PI controller is to set the “actual” bias different from u0
, thus letting the error be zero
The control variable is manipulated according to:
1
t
u0 is the controller bias
u (t ) u0 K C e(t ) e(t ) d t KC is the controller gain
I 0 I is the integral time
(also called reset time)
integral action contribution
PI controllers (cont’d)
1
t
u (t ) u0 K C e(t ) e(t ) d t
I 0
Note that until e 0, the manipulated input keeps on changing because of the
presence of the integral term
Effect of Variations in KI
fixed
increasing KC
CAUTION
For large values
of the controller
gain, the closed-
loop response
set point
may be unstable
time !
Performance of PI controllers (cont’d)
Increasing I :
oscillations are dampened
the process response is
controlled variable
CAUTION
For small values
of the integral
set point time, the closed-
loop response
may be unstable
!
time
Summary for PI control
Advantages
– steady state off-set can be eliminated
– the process response can be considerably speeded
up with respect to open-loop
Pitfalls
– tuning is harder (two parameters must be
specified, KC and I)
– the process response becomes oscillatory; bad
tuning may even lead to instability
– the integral action may “saturate”
Proportional, Derivative Control (KP+ KD)
Proportional Derivative
Action Action
1 t de
u( t ) Kc e( t ) e( ) d D uR
I 0 dt
Integral Controller
Action Bias
i) If the error if increasing very rapidly, a large deviation from the setpoint may
arise in a short time
ii) Sluggish processes tend to cycle
1
t
d e(t )
u (t ) u0 K C e(t ) e(t ) d t D
I 0 d t
derivative action contribution
D is called derivative time
Performance of PID controllers
Response to a disturbance step change
CAUTION
Noisy
set-point measurements may
disrupt the
controller
performance !
time
PID Control (KP+ KI + KD)
• KP and KI have the same general effect as observed for PI
control.
• Derivative action tends (KD = Ds) to reduce the oscillatory
nature of the response and results in faster settling.
Beware measurement noise !
The derivative action requires derivation of the output measurement y with
respect to time:
d e d( ysp y )
dt dt
controlled variable If the measured output
is noisy, its time
derivative may be large,
and this causes the
manipulated variable to
time be subject to abrupt
+100% manipulated variable changes Attenuate
+50% or suppress the
derivative action
0
-50%
-100%
time
Summary for PID control
Advantages
– oscillations can be dampened with respect to PI control
Pitfalls
– tuning is harder than PI (three parameters must be specified, KC , I and
D)
– the derivative action may amplify measurement noise potential wear
on the final control element
1.5
Damping Factor (')
overdamped
underdamped
0.5
0
unstable
-0.5
0 2 4 6 8
Kp
Effect of Kp on Closed-Loop p
0.6
Time Constant ('p )
0.4
0.2
0
0 2 4 6 8
Kp
PI Control (KP+ KI)
Time
The Characteristics of P, I, and D controllers
t=0:0.2:2;
num=1;
den=[1 10 20];
step(num,den,t)
Proportional Control - Example
The proportional controller (Kp) reduces the rise time, increases the overshoot, and
reduces the steady-state error.
MATLAB Example Kp
T( s )
2
s 10 s ( 20 Kp )
Step Response
From: U(1)
1.4
Kp=300; 1.2
Step Response
From: U(1)
1
num=[Kp]; 1
0.9
Amplitude
0.8
To: Y(1)
0.8
den=[1 10 20+Kp]; 0.6 0.7
0.6
t=0:0.2:2;
Amplitude
0.4
To: Y(1)
0.5
0 0.3
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
0.2
Time (sec.)
0.1
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (sec.)