Professional Documents
Culture Documents
set point
controller
plant
measurement
controlled
variables
2.1 Instrumentation
2.2 Continuous control
2.2.1
Plant modeling
2.2.2
Controllers
2.2.2.1 On/Off (two-point)
controller
2.2.2.2 PID controller
2.2.2.3 Nested Controllers
2.3 Programmable Logic Controllers
Otomasi Industri
Materi:
- modeling of plants
- two-point controller
- PID controller
- Nested controllers
Otomasi Industri
3
2
sequential control
closed loop:
140
180
200
120
220
+
-
higher
/lower
continuous control
Sensor temperatur
Otomasi Industri
set-point (solicited)
commands
sequencer
clock
display
on/off
output
controller
plant
plant state
error
(deviation)
display
measurement
control variable
plant
output
plant
state
measurement
%
process value
Otomasi Industri
Otomasi Industri
Control Objective:
maintain car velocity
Measured Process Variable (PV):
car velocity (click rate from
transmission rotation)
Manipulated Variable:
pedal angle, flow of gas to engine
Controller Output (CO):
signal to actuator that adjusts gas flow
Set point (SP):
desired car velocity
Disturbances (D):
hills, wind, curves, passing trucks....
Source: http://apmonitor.com/che436/uploads/Main/Lecture3_notes.pdf
Otomasi Industri
2.1 Instrumentation
2.2 Control
2.2.1
Plant modeling
2.2.2
Controllers
2.2.2.1 On/Off (two-point)
controller
2.2.2.2 PID controller
2.2.2.3 Nested Controllers
2.3 Programmable Logic Controllers
Otomasi Industri
Pemodelan
1) analisis sistem kontrol
2) Mendefiniskan suatu kontroller yang memenuhi kebutuhan fisik dan ekonomi
economical requirements
Langkah pertama adalah mengetahui plant, yakni, menyatakan sifat-sifat plant dengan
cara mathematis, umumnya dengan persamaan differensial,
) White box approach: menganalisa prinsip fisis
(perlu mengetahui semua elemen-elemen)
) Black box approach: mengidentifikasi parameter-parameter plant dengan
menganalisa kelakuaannya (output) dalam merespon perubahan input.
+/-
Otomasi Industri
Otomasi Industri
y = F (x, t)
J [Nms]
(inertia)
i
Ue
(command
tension)
[rad/s]
(speed)
R
T [Nm]
(torque)
ui [V]
(induced tension)
Ue = R i + L
di
dt
+ ui
di
ui = K
dt
T = Ki
d
dt
dt
L
K
(Ue K R i)
Ue
K
s2 (LJ) + s (RJ) + K2
Ffrict Ftract
x
mg
dx
v
dt
motor force
Kc
dv
1
( Ftract mg sin( ) m
C x v 2 C f v)
dt m
radius
slope
mass of the train
plus contribution
of rotating parts
(wheels and rotors)
Otomasi Industri
air friction
curve
friction
mechanical
friction
traction force
train
inertia
Fz
i
motor
current
acceleration
Km
speed
position
1
m
motor
gravity
v2
air
resistance
mgsin()
mg
sin()
Cz
friction
curve friction
sin()
()2
Cx
Cc
|v|
r(x)
(x)
abs
radius
slope
taken from
topography database
Otomasi Industri
ambient-water isolation R1
ambient
temperature
a
Electrical equivalent
R1
C
heater-water
isolation
Heat
resistance R2
water
Uq
R2
C
Ua
x~
ua ~ a
Ua
(ambient temperature)
solicited
temperature 2
controller
heating
energy Uq
1
1
)
dx
1
1
R R2
x 1
Uq
Ua
dt
C
R1C
R2C
(
dx
Ax Bu C
dt
Otomasi Industri
cooling
dx
x 1 1 Ux
R2C R2C
dt
dx
Dx E
dt
Kontrol Kontinyu 2.2 - 14
T1
q=
(T2 T1)
= (T2 T1)
kA
d
A = surface [m2]
d = distance [m]
I = current [A]
U = voltage [V]
R = resistance []
= resistivity [Vm]
Otomasi Industri
d
kA
R=
d
U2
U1
i=
A
(U2 U1)
= (U2 U1)
R
R=
A
d
d
A
q=C
dT
Cm
C=
dt
Cm
Ad
A = surface [m2]
d = distance [m]
= density [kg/m ]
3
I = current [A]
U = voltage [V]
U
i=C
dt
C = capacity [F]
= dielectric constant [F/m]
Otomasi Industri
dU
C=
A
d
d
Kontrol Kontinyu 2.2 - 16
Plant Identification
Once the model is approximately known, the parameters must be determined by measurements.
Classical methods are the response to a pulse at the input or to a calibrated noise at the input, in
case the command signal varies little. Signal correlation then yields the parameters.
test signal
command
unknown plant
input
output
Otomasi Industri
2.2.2 Controllers
2.1 Instrumentation
2.2 Control
2.2.1
Plant modeling
2.2.2
Controllers
2.2.2.1 On/Off (two-point)
controller
2.2.2.2 PID controller
2.2.2.3 Nested Controllers
2.3 Programmable Logic Controllers
Otomasi Industri
Kontroller
Otomasi Industri
Lup Kontroller
disturbance
set-point
controlled variable
controller
regulator
Regler
rgulateur
e
u
state
error
controlled system
Regelstrecke
systmecommand
command
y
measurement
process value
feedback loop
disturbances
feed-forward
controller
set point
feed-back
controller
command
m
x
plant
y
other
constraints:
energy, cost,
cleanness
Otomasi Industri
measurement
process value
actors
Kontrol Kontinyu 2.2 - 22
2.1 Instrumentation
2.2 Control
2.2.1
Plant modeling
2.2.2
Controllers
2.2.2.1 On/Off (two-point)
controller
2.2.2.2 PID controller
2.2.2.3 Nested Controllers
2.3 Programmable Logic Controllers
Otomasi Industri
set-point
control
variable
measured value
energy
of on
room
heater
temperature
thermometer
Thermostat
%
1.20
1.00
value
0.80
Setpoint
Upper bound
0.60
Lower bound
0.40
Output
0.20
0.00
0.00
1.00
2.00
3.00
4.00
5.00
6.00
7.00
8.00
9.00
time (s)
Otomasi Industri
Deadband: no movement,
generally occurs when the valve
changes direction.
Source: http://www.processindustryforum.com/solutions/valve-terminology-basic-understanding-of-key-concepts
Otomasi Industri
temperature
1.00
0.80
0.60
0.40
hysteresis
0.20
0.00
time
If the process is not slow enough, hysteresis or switching period limit are included
to limit switching frequency and avoid wearing off the contactor.
(thermal processes are normally so inertial that no hysteresis is needed)
Otomasi Industri
2.1 Instrumentation
2.2 Continuous control
2.2.1
Plant modeling
2.2.2
Controllers
2.2.2.1 On/Off (two-point)
controller
2.2.2.2 PID controller
2.2.2.3 Nested Controllers
2.3 Programmable Logic Controllers
Otomasi Industri
Step response
Gain:
Source: http://www.stanford.edu/class/archive/ee/ee392m/ee392m.1034/Lecture6_Analysis.pdf
Otomasi Industri
y y ' T1 y"T2 m
diferential equation
y
1
m 1 sT1 s 2T2
plant
Temporal response
Typical transfer function of a plant with slow response, but without dead time
(However, such a plant can also be approximated by a first-order low-pass and a dead time).
delay
1.4
1.2
1
step response
In the examples:
T1 = 1 s
T2 = 0.25 s2
Otomasi Industri
time constant
0.8
0.6
0.4
0.2
0
time
10
d ~ 0.2, T= 1.5s
set-point
controlled
variable
command
variable
P-controller
e
y
Kp
x
plant
error
measurement
process value
the P-controller simply amplifies the error to obtain the command variable
m(t) = Kp e(t) = Kp (u(t) y(t))
command
m(t), y0(t)
2
1.5
large error
x large
0.5
x small
0
0
-0.5
10
Numerical:
Kp = 5.0
set-point
proportional factor
controlled
variable
P-regulator
u0 = set-point
Kp
e = error
plant
m = command
variable
command
measurement
y0 = process value
value
1.5
u0 (Solicited)
1
0.5
u1 (load change)
0
0
10
-0.5
Not only a set-point change, but a load change causes the error to increase or decrease.
(A load change, modeled by disturbance u1, is equivalent to a set-point change)
Otomasi Industri
u0(t), y0(t)
2
1.8
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
0
-0.2 0
10
time [s]
increasing the proportional factor reduces the error, but the system tends to oscillate
Otomasi Industri
symbol
y x( )d
t0
1
s
older symbol
input
inflow [m3/s]
y = level [m]
output
t2
level (t) =
(inflow()) d
t1
PI Regulator : Equations
Time domain
1
m K p (e(t ) e( )d )
Ti t 0
Laplace domain
1 ~
~
m K P (1
)e
sTi
value
Kp = 2,0, Ti=1,0 s
2.2
2
1.8
1.6
1.4
1.2
1
0.8
0.6
0.4
0.2
0
-0.2
Solicited
Output
Command
Integrator
10
time
The integral factor reduced the asymptotical error to zero, but slows down the response
(if Kp is increased to make it faster, the system becomes unstable)
Otomasi Industri
PD controller
Basic idea of the PD regulator: take into account not only the value of the error, but
the rate at which the error changes.
Example: when parking a car in front of a wall, the driver not only looks at the
distance to the wall, but also at the speed at which the car approaches the wall.
Otomasi Industri
symbol: x
dx
dt
s
temporal response:
input
x
1
Td
output
Otomasi Industri
Nf
1
s
PD - controller
command
variable
proportional factor
set-point
PD - controller
error
u
Kp
Td
derivative
factor
process value y
plant
measurement
Otomasi Industri
PD Controller: Equations
Time domain
de(t )
m(t ) K p e(t ) Td
dt
Laplace domain
~ ( s ) K 1 T s ~
m
p
d e (s)
Otomasi Industri
PID-Controller (Proportional-Integral-Differential)
integral factor
integrator
proportional factor
1
Ti
error
set-point
process value
derivative
factor
1
s
Kp
Td
command
variable
plant
PID controller
measurement
The proportional factor Kp generates an output proportional to the error, it requires a nonzero error to produce the command variable.
Increasing the amplification Kp decreases the error, but may lead to instability
The integral time constant Ti produces a non-zero control variable even when the error is
zero, but makes the system instable (or slower).
The derivative time Td speeds up response by reacting to an error change with a control
variable proportional to the steepness of change.
Otomasi Industri
time domain
Laplace domain
1
de(t )
m(t ) K p e(t ) e( )d ) Td
T
dt
i t0
~
Td s
m( s )
1
K
1
p
~
Nf
e ( s)
sTi
(1
s)
Td
se
u
t
no
do
~ (s)
m
1
1
T
s
p
d
e~ ( s)
sTi
1 s
Kontrol Kontinyu 2.2 - 44
differential factor
increases responsiveness
0
0
Solicited
3
Psmall
5
Plarge
6
PI
8
PID
10
U1
Overshoot
Settling time
Steady-State Error
Kp
Decrease
Increase
Small Change
Decrease
Ti
Decrease
Increase
Increase
Eliminate
Td
Decrease
Small Change
increasing
1.4
1.2
1
time constant
Kp =
0.8
0.6
0.4
gain
0.2
0
0
10
1.2 T
KV
Ti = 2.0 d
Td = 0.5 d
(Nf = 10)
d ~ 0.2, T= 1.5s
Otomasi Industri
2.1 Instrumentation
2.2 Control
2.2.1
Plant modeling
2.2.2
Controllers
2.2.2.1 On/Off (two-point)
controller
2.2.2.2 PID controller
2.2.2.3 Nested Controllers
2.3 Programmable Logic Controllers
Otomasi Industri
Reactive power
voltage (QV)
controller
Steam
Controllable
excitation
source
Main
steam
valve
Valve
control
mechanism
Turbine
Generator
Voltage
sensors
Frequency sensor
Mechanical
Mechanicalpower
power
Otomasi Industri
3-phase
3-phaseElectrical
ElectricalPower
Power P+ jQ
voltage
PID
excitation
current
exitation
Ie
U = k Ie
load
speed
frequency
PID
turbine
generator
voltage
measure
measure
Otomasi Industri
Position
PD
Speed
sol
cmd
is
PID
Torque
sol
cmd
is
PID
sol
cmd
is
torque regulation
(protection)
encoder
M
tacho
amplifier
Current
Velocity
Position
position control
speed control
torque control
Otomasi Industri
Feedforward
basic idea: bring the output on an approximate track from the start, let the regulator only correct
the small deviations. The feedforward controller knows the plant, it can also consider known disturbances
disturbances
feed-forward
controller
command
set point
feed-back
controller
plant
y
measurement
process value
Istwert
valeurmesure
Otomasi Industri
Advanced Control
controller
disturbances
plant
model
economical
objectives,
control
algorithms
Cost functions
plant
command
(setpoints for further
regulators)
y
measurement
process value
Istwert
valeurmesure
This is a high-level control in which the set-points are computed based on economical objectives
Otomasi Industri
Exercises
A Control System
a) is dependent not only on current environment but on past environment as well
b) describes the direction PV moves and how far it travels in response to a change in
CO (steady state)
c) set of devices to manage, command, direct or regulate the behavior of other
device(s) or system(s)
What is the set point?
d) Variable you want to control
e) Desired value of control variable
f) Signal that is continuously updated
What has only one tuning parameter so its easy to find best tuning, but permits offset?
g) P only
h) PI
i) PD
What is proportional to both the magnitude of the error and the duration of the error?
j) P only
k) PI
l) PD
https://docs.google.com/forms/d/1CSfJ7yoGdRxNphQ75quNioe5Z0i94XAqqM7zz9g8Ms/viewform
Otomasi Industri
Assessment
Otomasi Industri
To probe further
"Computer Systems for Automation and Control", Gustaf Olsson, Gianguido Piani,
Lund Institute of Technology
Modern Control Systems, R. Dorf, Addison Wesley
Feedback Systems, Karl Johan Astrm, Richard M. Murray
http://www.cds.caltech.edu/~murray/books/AM08/pdf/am08-complete_28Sep12.pdf
Otomasi Industri