Presentation of Process Control
Presentation of Process Control
Course Objectives
➢ What is the process control?
➢ Basis of process control
➢ Basic hardware and instrumentation
➢ Process dynamics (modeling)
➢ Analysis of dynamic systems
(Source: Petro Times)
➢ Design of feedback controllers (PID)
➢ Various control strategies (Feedforward, IMC, cascade)
Books
1. Dale E. Seborg, Thomas F. Edgar, Duncan A. Mellichamp, Process
Dynamics and Control, John Wiley & Sons, 2011.
2. Donald R. Coughanowr, Process System Analysis and Control,
McGraw-Hill International Editions, 2009.
Input Output
Raw Product
Plant
Requirements:
1. Safety: 2bar, 2-136 °C
2. Production specifications:
10000 kg/h, 99.5%
3. Environment: CO2, SO2…
4. Operational constraint:
250-514 °C
5. Economic: Qmin
Source:https://doi.org/10.14483/22487638.11499
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
There are three issue:
1. Suppressing the influence external disturbance:
Objective:
t = tr
f i , ti
Sensor h,t
t
Start up -> stability
tr f o , to
; If f st = cont Then
e
u fi change t
FCV
Controller
t tr
e > 0 more steam
e = tr − t e < 0 reduce steam
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
2. Ensuring stability
t
= o t is disturbed
= o + t tr
tr No need control
=0
tr = o t is disturbed
= o + t tr
f i , ti
need control
h,t
3. Optimize the performance Sensor A->B->C
t
max imize = cos t of purcha sin g A + tr f o , to
e
( revenue from the sale of product B − cos t of steam)dt
tr
u
FCV
Controller
o
Q(steam)->min steam f st
Source: https://instrumentationandcontroltoday.blogspot.com
Field mounted
on pipeline
Instruments that
are mounted on
control board
Source: https://instrumentationandcontroltoday.blogspot.com
Source: https://instrumentationandcontroltoday.blogspot.com
Source: https://instrumentationandcontroltoday.blogspot.com
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Valves and actuators can be represented with different drawings like the
instruments
With or without Positioned & Actuator: With or without handwheel:
With the fail position: With the status during normal operation:
Source: https://instrumentationandcontroltoday.blogspot.com
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Transducer and transmitter
The instruments usually have: the sensor (transducer) and the transmitter.
The sensor (transducer) interprets the measured variable and converts it
to other measurable energy
Example a resistance temperature detector
transducer (PT100) converts the
temperature in a resistance value.
This value is not usually sent
directly to the control cabinet,
instead it is converted in a head-
mounting transmitter. The
transmitter sends the final signal (4-
2mA) to the control cabinet
Source: https://instrumentationandcontroltoday.blogspot.com
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
- The head-mounting transmitter can be -Also, It can be indicated with the transducer
represented like the following drawings: or the thermowell.
Source: https://instrumentationandcontroltoday.blogspot.com
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
P&ID instrument codes
The “TAG” (name) is "20-FT-1982-A". This code will not be repeated for other plant devices.
-First part: “the Unit”. It indicates two digits "20". The instrument is installed in the unit “20”.
-Second part: "the instrument type”. It indicates two letters "FT". It is a flow transmitter.
- Third part: “the Loop Number”. It indicates "1982". Each control loop is named with a sequential number. A “Loop” is a
set of devices with a control logic link.
-Fourth part: “Suffix”. “A” indicates that there is a redundant device at least, as the "A" and "B" in the previous drawing
Source: https://instrumentationandcontroltoday.blogspot.com
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Example 1
LCV 201
PIC
PIC Where PIC is function in DCS
PE
Feed z
LV 200
V 200
PT
Exercise 1
pHIC 1
pHE 1 pHT 1
pHIC 2
pHE 2 pHT 2
CV-102 TK-102
The diagram shows pH adjustment;
(base feed tank) part of waste water treatment process.
With using above symbols, draw
control loop where the process need
is:
The process shall maintained at
pH=6. When the process liquid states
below pH=6, CV-102 will be opened
to dosing NaOH to the tank TK-100.
When the process liquid states above
CV-101 pH=6, CV-101 will be operated to
TK-100 TK-101
dosing HCl.
(pH adjustment tank) (acid feed tank)
MV Process system CV
Objective: h, t
Sensor h,t
t
CV MV DV
tr f o , to
e h fi , ( f o ) f i , ti
u
FCV
Controller
t f st , fi , ti f i , ti
steam f st
Feed z
f CV MV
f , ( )
Product (c%)
f st Actuator: Controller: Sensor: cr
Control PLC Composition
valve analyzer
CV MV
CIC Product (Liquid)
z
CA
f cr f , ( )
Product (c%)
Steam f st
Feed forward control systems
Product(vapor) Cooling water
CV MV
CIC Product (Liquid)
f , ( )
Computer TT
with t i
Measurements
and estimate
composition (c)
TT f
cr
Feed z Product (c%)
Steam f st
Measurement: ti to estimate composition
Inferential control systems
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Control configuration DVi
CVi
Controller MVi Process system Controller Estimator
To design the
How does the -How far?
Math models control strategy
process
help us answer -How fast for new process/
influence the
these questions! to design
response? “Shape”
controller
Classification of process model
- Theoretical model (TM): Principle conservation.
- Empirical model (EM): By fitting experimental data.
- Semi-empirical model: combination of TM+EM.
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
How to build process model?
Six (6) - step modelling procedure
1. Define Goals
We apply this procedure
2. Prepare information
• to many physical systems
3. Formulate the model • overall material balance
Sensor h,t
t
tr f o , to
e
u
FCV
Controller
steam f st
f i2
f i1
h
h2
h1
0 0
dh h Laplace H (s) K p0
H (s)
A + = fi AsH ( s ) + = Fi Gp0 = =
d Rv Rv Fi ( s ) p 0 s + 1
2.5 Where,
Gp0 = ; Rv = 2,5; A = 218.34
545.45s + 1 Kp0 = Kv: Process gain.
Conclusion?????????
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
C1. Time delay in process dynamics and control
Time delay play an important role in process control system. They
commonly occur as a result of the transport time (θ) required for fluid (or
materials) to flow (or to transfer) through a pipe (or devices).
f ( )
The f d ( ) is the function f(t) delayed
by θ time unit. Therefor, f d (t ) and f(t)
are related by
f d ( ) = f ( − )1( − )
f d ( )
And, Laplace transformation of the f d (t )
of time
Fd ( s ) = e − s F ( s )
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
C2. Time delay in process dynamics and control
Fi
H (s) 3
G p (s) = =
h Rv
Fo
Fi ( s ) 4 s + 1
Fi θ=2 dead time
H ( s ) 3e −2 s
G p (s) = =
h Rv
Fo
Fi ( s ) 4 s + 1
dx f f
f ( xs , u s ) + x + u (c3.3)
d x xs ,us u xs ,us
Example:
Determine the mathematic
fi ,ρ model of the system, given
the outlet flow rate:
h
fo ,ρ f o ( h) = Rv h (c3.4)
Where, 2 hs
K p0 =
Rv
2 A hs
p0 =
Rv
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
C4. Concentration control
fi ; c Ai Objective: c = cr
Concentration (C)
d (Vc A )
= wi1c A1 + wi 2 c A 2 − wo c Ao
d
dV dc A
cA + V = wi1c A1 + wi 2 c A 2 − wo c Ao
d d
dh dc A
cA A + V = wi1c A1 + wi 2c A 2 − wo c Ao ; ()
d d
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Substituting for dh/dτ (*)
dc A
c A ( wi1 + wi 2 − w0 ) + V = wi1c A1 + wi 2c A 2 − wo c Ao
d
Note, CAo = CA
dc A 1
= wi1 (cA1 −cA ) + wi 2 (cA2 − cA )
d Ah
- How does the process influence the response ????????
- How to control CA ???????????
Nếu cA1 thay đổi đột ngột từ 0,5 đến 0,6 (lưu lượng wi1, wi2 và cA2 không đổi). Lúc này, thành
phần của sản phẩm lấy ra khỏi bình (cAo) sẽ thay đổi. Giá trị cAo ở trạng thái xác lập (cuối cùng)
là bao nhiêu?. Thời gian cần thiết để cAo đạt được 99% so với giá trị cuối cùng?
1
0 = wi1 (cA1 −cA ) + wi 2 (cA2 − cA )
Ah
wi1c A1 + wi 2 c A 2 120 x0.6 + 100 x0.5
cA = = = 0.555
wi1 + wi 2 120 + 100
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
dc A 1
= 120(0.6 −cA ) + 100(0.5 − cA )
d 800 x3.14 x 2 x1.75
dc A
= 0.0138 − 0.025c A
d
dc A
= d
0.0138 − 0.025c A
cAo2
dc A 1
c 0.0138 − 0.025cA = d ln(0.0138 − 0.025c A ) c =
cAo2
Ao1 0
−0.025 Ao1
with cAo1 = 0.5; cAo2 (99%c Ao ) = 0.555 − 0.555 x0.01 = 0.549
τ=116 min
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Dynamic simulation using MATLAB
dc A 1
= wi1 (cA1 −cA ) + wi 2 (cA2 − cA )
d Ah
dc A 1 1
+ ( wi1 + wi 2 ) c A = wi1cA1 + wi 2cA2
d Ah Ah
Because both inputs influence the dynamic of cA, it is necessary to
develop two transfer function for model
cA2 = 0
dc A 1 1
+ ( wi1 + wi 2 ) c A = wi1c A1
d Ah Ah
Laplace
C A (s) wi1
= G p 01 ( s ) =
C A1 ( s ) Ahs + ( wi1 + wi 2 )
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
cA1 = 0
dc A 1 1
+ ( wi1 + wi 2 ) c A = wi1c A 2
d Ah Ah
Laplace
C A (s) wi 2
= G p 02 ( s ) =
C A2 (s) Ahs + ( wi1 + wi 2 )
The model of systems
120 100
C A ( s ) = G p 01 ( s ) CA1 + G p 02 ( s ) CA2 = CA1 + CA2
8792 s + 1 8792 s + 1
0.545 0.4545
C A (s) = CA1 + CA2
39.96 s + 1 39.39 s + 1
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
cA2 = 0 C A (s) 0.545
=
CA1 39.96 s + 1
f i , , c p , ti
h,t
V , t , , cp
f o , , c p , to
steam
f st Source: https://www.pinterest.com
FCV
Q
m3 kg kJ
fi , f o ( ); ( 3 ); c p ( o ); t ( oC )
s m kg . C
Rate of energy Rate of generation
Rate of energy Rate of energy Rate of energy
= − proviced / removed / disappearance
accumulation input output of energy
by heater / coolant
d (mc p t )
= f i c p ti − f o c p t o Q − (H r )rV
d
d (V c p t )
= f i c p ti − f o c p t o Q − (H r )rV
d
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
d (V c p t )
= f i c p ti − f o c p t o Q − (H r )rV
d
dV dt
c pt + c pV = f i c p ti − f o c p to Q − (H r )rV ≈ 0
d d
Note : dt Q
V = (ti − t ) f i
d cp
to = t
- How does the process influence the response ????????
dV - How to control t ???????????
= fi − f 0
d
dt Q
V + f i t = f i ti
d cp
mme ce d 2t me ce me ce m dt me ce dti 1
+ + + +t = + ti + Q
fi he Ae d he Ae f i c p f i
(***)
d he Ae d fic p
2
mme ce d 2t me ce me ce m dt 1
+ + + +t = Q
fi he Ae d he Ae f i c p f i d fic p
2
Laplace
1
T (s) fi c p
= = G1 ( s )
Q( s) mme ce 2 me ce me ce m
s + + + s + 1
fi he Ae
he Ae f i c p f i
Process control
Q= 0
mme ce d 2t me ce me ce m dt me ce dti
+ + + +t = + ti
fi he Ae d he Ae f i c p f i
2
d he Ae d
Laplace
me ce
s +1
T (s) he Ae
= = G2 ( s )
Ti ( s ) mme ce 2 me ce me ce m
s + + + s + 1
fi he Ae h A fc fi
e e i p
Example
m mc mc 1
= 10 min; e e = 1, 0 min; e e = 1, 0 min; = 0, 05o C min/ kcal
fi fi c p he Ae fi c p
Q = 5000kcal / min; ti = 100o C ;1kcal = 4,18855kJ
a. Calculate the nominal steady-state temperature?
b. Assume that the process is initially at steady-state determined in part (a). Calculate the
response, t, to a sudden change in Q from 5000 to 5400 kcal/min
mme ce
c. Suppose that it can be assumed that the term ( f h A ) is small relative to other terms in (***)
i e e
b and c.
https://uniduc.com/vi/blog/
(A.A. Kopyrin, A.I. Karelin, V.A. Karelin, 2006) may-chiet-rot-dang-ap
PYC
2
CV PT
p1 fi P 2
Pressure p2 , f 2
vA , p FCV
tank
2
p
vB V1
fo p1 , f1
V1
T1
C1
pv A = nRt (C 6.2)
dp dv A
vA +p =0 (t = const ) (C 6.3)
d d
Since v A + vB = C (const ) (C 6.4)
dv A dvB
+ =0 (C 6.5)
d d
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
dvB
In level control = fi − f o (C 6.6)
d
dp p
(C6.3), (C6.5) and (6.6), we have: = ( fi − f o ) (C6.7)
d v A
ps
At the steady-state, 0= ( fis − f os ) (C 6.8)
v As
d ( p − ps ) ps
(C6.7), (C6.8) we have: ( fi − fis ) − ( f o − f os ) (C 6.9)
d v As
Given p = p − ps , f i = f i − f is , f o = f o − f os (6.10)
dp ps
(C6.9), (6.10) we obtain f i − f o (C 6.11)
d v As
Consider flow, fi , running through CV-valve, we obtain
fi = K v p1 − p (C 6.12)
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
− Kv
Differential (C6.12) df i = dp (C 6.13)
2 p1 − p
Or, − Kv
fi − f s = ( p − ps ) (C 6.14)
2 p1 − p
− Kv
(C6.10) and (C6.14) fi = Kp , where : K = (C 6.15)
2 p1 − p
1 − Kv v As
where : K1 = , K = ; 1 =
K 2 p1 − p Kps
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
D. Empirical model identification
Out-comes:
-Experimental design for model building
-Process reaction curve (graphical)
-Statistical parameter estimation
Diagnostic Evaluation
• What order, dead time, etc?
Model Verification
Complete
Experimental Design
Plant Experimentation
Parameter Estimation
• Does the model fit the data used to
Diagnostic Evaluation evaluate the parameters?
Model Verification
• Does the model fit a new set of data
Complete
not used in parameter estimation.
Start
Diagnostic Evaluation
Model Verification
Complete
▪ Closed-loop identification
Controller Process
Input Process
output
fi ; c Ai
1. Start at steady state
2. Single step to input V ; cA
f o ; c Ao
fi
3. Collect data until steady state
f i2
4. Perform calculations f i1
h
h2
h1
0 0
∆𝐶𝑉
- Step 1: Determine 𝐾𝑝 =
∆𝑀𝑉
- Step 2:
+ Determine the point A at value 𝐶𝑉𝐴 = 0.632∆𝐶𝑉 on the graph
+ Determine the time corresponding with A on the time axis, 𝜏0
+ 𝝉𝒑 = 𝝉𝟔𝟑% = 𝝉𝟏 − 𝝉𝟎
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
The transfer function of first-order plus time delay models (FOPTD)
CV2
ΔCV 0.63CV
Kp = -θ s CV2
ΔMV
CV(s) K p e
p
CV
τ p = τ 63% a = maximum slope
CV1 G p (s) = = CV
MV(s) τ ps +1
MV2 ΔCV CV1
ΔMV Kp =
MV1 ΔMV θp
p τ ΔCV τp
time τp =
τ 63% a MV2
θ p = show in figure MV ΔMV
τ0 τ1 1
τ
∆𝐶𝑉 τ0 τ1 time
- Step 1: Determine 𝐾𝑝 = ∆𝑀𝑉
Process reaction curve - Method II
- Step 2: The two points method was proposed
CV2
+ From the step response curve we determine the times τ1 , τ2 that correspond to the 0, 63CV
28% and 63% the steady state value of the response, respectively.
0, 28CV CV
+ Determine the parameters by equations: τ p = 1,5( 63% - 28% )
ΔCV CV1
θ p = 63% - p Kp =
ΔMV τ 28%
τ p = 1,5( 63% - 28% ) τ 63%
+ Note: Another two points can be used: 35% and 85%, then:
MV2
τ p = 0, 67( 85% - 35% ) θ p = 63% - p ΔMV
MV1
θ p = 1,3 35% - 0, 29 85% τ 0 τ1 τ 2 time
τ
Experiments were conducted in triplicate. All values were obtained in the average ± standard deviation (n = 3)
55
Parameter Estimation 50
45
40
Diagnostic Evaluation 35
Temperature (oC)
30 45 oC,1.8 kW/m2
10
Complete 0
0 0.5 1 1.5 2 2.5
Time (s) 4
x 10
1 𝑁
𝑅𝑀𝑆𝐸 = σ (𝑦 −𝑦𝑝𝑟𝑒,𝑖 )2 (D.2)
𝑁 𝑖=1 𝑒𝑥𝑝,𝑖
𝑦𝑒𝑥𝑝,𝑖 −𝑦𝑝𝑟𝑒,𝑖
100 σ𝑁
𝑖=1 𝑦𝑒𝑥𝑝,𝑖
𝑀𝑅𝐸 = (D.3)
𝑁
where, yexp,i, ypre,i, yav, and N are the measured data from the experiment, the predicted values,
the average experimental values, and the number of experiments, respectively
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Statistical analysis method
If the MRE value must be less than 10% then the modeling of the
process can be accepted.
If the R2 value more than 95% then the modeling of the process can be
accepted.
4.00
CV 18 − 10 8 oC 2, 67 2, 67 3 2, 67
Kp = = = , G p (s) = T(s) = Q(s) =
MV 85 − 82 3 W 3s +1 3s +1 s 3s +1
0, 63CV = 5, 4 oC ; p = 3, min
18.00
17.00
t (exp) t(pre)
16.00
15.00
14.00
13.00
12.00
11.00
Method: s +1
2 2
s 3 3
s
- Taylor series expansion: e − s = 1 − s + − + ...
2! 3!
e − s 1 − s
(E.3)
s
or e 1 + s
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
- The 1/1 Padé approximation:
1− s
e − s G1 ( s ) = 2 (E.4)
1+ s
2
1 1
𝜏 = 𝜏𝑟 + 𝜏𝑚 =5+ . 3 = 6,5
2 2
1 1
𝜃 = 𝜏𝑚 + σ 𝜏𝑖 = . 3 + 0,5 + 0,1 = 2,1
2 2
K (−0,1s + 1) Ke −2,1s
G (s) =
(5s + 1)(3s + 1)(0,5s + 1) 6,5s + 1
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Comparation the actual and approximate models
Actual Skogestad
K (−0,1s + 1) K ( −0,1 s + 1) Ke −2,1s
G (s) = G (s) =
(5s + 1)(3s + 1)(0,5s + 1) (5s + 1)(3s + 1)(0,5s + 1) 6,5s + 1
Taylor series
K (−0,1s + 1) Ke −3,6 s Conclusion????
G (s) =
(5s + 1)(3s + 1)(0,5s + 1) 5s + 1
Heat chamber
Air inlet Air outlet
tin, vin tout, vout
Heat resistor
Heat chamber
𝐶𝑉 𝑠
DV(s) 𝐾𝑝0 𝐾𝑝𝑐 𝐾𝑠
Gd(s) = × × 𝑀𝑉 𝑠
𝜏𝑝0 𝑠 + 1 𝜏𝑝𝑐 𝑠 + 1 𝜏𝑠 𝑠 + 1
SP E(s)
GC(s)
MV(s)
Gpc(s) GP0(s)
CVm(s) 𝐾𝑑 𝐾𝑠
- + × 𝐷𝑉 𝑠
𝜏𝑑 𝑠 + 1 𝜏𝑠 𝑠 + 1
CV GS(s)
d
p1 = gh1 A2 s
(F.3)
p1 − p2 = Rv1 f o1 p2 = gh2 Fi ( s ) Fo1 ( s ) Fo ( s )
Rv2
H 2 (s)
Rv1
g A1dh1 A1s g H 2 (s)
=?
f o1 = ( h1 − h2 ) (F.4) = fi − f o1 (F.5)
d
H1 ( s ) Fi ( s )
Rv1
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
G. Feedback control for process control systems
Illustrative example: Schematic diagram for level control systems
V 200 LC Set point
Feed z
LV 200
LT
h I/P
Area:A
LCV 201
Feed z
LV 200
LT
h I/P
Area:A
The controller compares the measured value to the set point and takes the
appropriate corrective action by calculating the controller output and
transmitting it as an electronic signal to control valve
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
sp e mv Process cv m
Calculating the function
-
cv Sensor
1
e =
1 + Kc K p
𝑲𝒄 = 𝟏
𝑲𝒄 = 𝟎. 𝟓
Conclusion???
𝑲𝒄 = 𝟎. 𝟏
POT=?, 𝝉𝒓 =? ; 𝝉𝒔 =? 𝒆∞ =?
usp Anti-Windup
us
1
e 1 τ τ
1 usp us 𝑢𝑐_𝐼 (τ) = 𝐾𝑐 𝜏 0 𝑒 𝜏 𝑑𝜏= 𝐾𝐼 0 𝑒 𝜏 𝑑𝜏
𝐼
2 6
3 7
e=0 When a PI controller is used, reset windup
uc (%) 4
5 usp us (figure) occurs because the integral term
uc _ min = 100%
continues to increase until the error signal
2
3
4
changes sign at τ=τ1
7
1 6
50% 5
uc _ min = 0%
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
2.67
Simulation of step response G p (s) =
180 s + 1
e = 0
𝑲𝒄 = 𝟏;𝝉𝒊 = 𝟏
𝑲𝒄 = 𝟏;𝝉𝒊 = 𝟏𝟎
Conclusion???
POT=?, 𝝉𝒓 =? ; 𝝉𝒔 =? 𝒆∞ =? 𝑲 = 𝟏;𝝉 = 𝟏𝟎𝟎
𝒄 𝒊
Derivative time Gs ( s ) = 1
Integral time Kp
G p (s) =
Proportional Gain ps +1
Steady-state (bias) value OR
− p s
Controller output K pe
G p (s) =
ps +1
Conclusion???
POT=?, 𝝉𝒓 =? ; 𝝉𝒔 =? 𝒆∞ =?
𝑲𝒄 = 𝟏;𝝉𝒊 = 𝟓𝟎
No!
Yes!? Yes!?
0.5
POT
Unit-step responses
= IAE 0
0 5 10 15 20 25 30 35 40 45 50
Time
Rise time
Settling time
= |sp(τ)-cv(τ)| dτ 2
0 1.5
to find out 1
𝑲𝒄 ; 𝝉𝒊 ; 𝝉𝒅 0.5
0
0 5 10 15 20 25 30 35 40 45 50
Time
Integral Square Error(ISE) Integral Absolute Error (IAE) Integral of time Absolute Error (ITAE)
ISE = ( sp ( ) − cv( ) ) d IAE = sp ( ) − cv( ) d IAE = sp ( ) − cv( ) d
2
0 0 0
− p s
K pe
G p (s) = Fitness evaluation function = min( IAE , ITAE )
ps +1 For set-point changes (Madhuranthakam et al., 2008)
PI controller For set-point changes
b1
a p p IAE ITAE
Kc = 1 ; = a1 = 0.758; b1 = −0.861 a1 = 0.586; b1 = −0.916
K p p
i
a2 + b2 p
a2 = 1.02; b2 = −0.233 a2 = 1.03; b2 = −0.165
p
PID controller For set- point changes IAE ITAE
b1 b3
a p p p a1 = 0.965; b1 = −0.855
Kc = 1 ; i = ; d = a3 p a1 = 1.086; b1 = −0.869
Kp p
a2 + b2 p
p a2 = 0.74; b2 = −0.13 a2 = 0.796; b2 = −0.147
a3 = 0.348; b3 = 0.914 a3 = 0.308; b3 = 0.9292
p
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
For disturbance inputs (Madhuranthakam et al., 2008)
Step 1. Set PID control and wait. After the process has reached steady
state, introduce proportional-only control (set 𝜏𝑖 = 0; 𝜏𝑑 = ∞).
Step 3. Determine the ultimate gain (𝐾𝑢 ) and the ultimate period (𝑇𝑢 )
CV Gc ( s )G p ( s ) 1 G ( s)
G (s) = = Gc ( s ) =
SP 1 + Gc ( s )G p ( s ) G p ( s) 1 − G ( s)
(Chen & Seborg, 2002)
Apply for FOPDT model − s Where 𝜏𝑐 is the
e p
Referent model G (s) = desired closed-
c s + 1 loop time constant
p
1 c +p 1
p
K c 1 + = 1 + Kc = ; i = p
i
s Kp s
p K p ( c + p )
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
a2. Direct Synthesis-Disturbance Rejection Method (DS-d Method)
DV
Gd(s) SP=0 DV CV
T(s)
SP E Gc(s) MV G (s) CV
p
-
CV Gd ( s ) Gd ( s ) 1 1
T (s) = = Gc ( s ) = − = K c 1 +
DV 1 + Gc ( s )G p ( s ) T ( s )G p ( s ) G p ( s ) i
s
i − p s
se (Chen & Seborg,
Referent model (known) Kc
T (s) = 2002)
( c s + 1)
2
With PI controller
p + p p − ( c − p )
2
i
2
1
Gd ( s ) = G p ( s ) Kc = ; i =
K p c +p p + p
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Direct Synthesis Method for first-order model
DV
Gd(s)
DV=0 SP CV
G(s)
SP E Gc(s) MV G (s) CV
p
- CV
G (s) =
SP
For process without delay, the first-order model in (*) is a
more reasonable choice CV 1
G (s) = = (*)
SP c s + 1
Gc ( s )G p ( s ) 1 G ( s)
G (s) = Gc ( s ) =
1 + Gc ( s )G p ( s ) G p ( s) 1 − G ( s)
p
Kc = ; i = p
1 1 With PI controller 1 K p c
Gc ( s ) = Gc ( s ) = K c 1 +
G p (s) c s is Selection of 𝝉𝒄 , 𝝉𝒑 ≈ 𝟓𝝉𝒄
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
b. Internal Model Control, IMC Method
DV DV
SP E GIMC(s) MV Gp(s) PV SP PV
GIMC(s) MV Gp(s)
- - +
- PV1 PV1
G p (s) G p (s)
if
GIMC =
Gp
then PV = SP
A
Case of Gp Gp and DV 0
if GIMC =
1
Gp
then PV = SP
B
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
How to determine the Gc for all case A and case B?
Step 1: Separate the process model G p into two terms
G p = G p +G p −
GIMC
Gc =
1 − GIMC G p
Step 3: ps +1
K p ( c s + 1) p 1
Gc = = 1 +
p s + 1 K p (1 − p s ) K p ( c + p ) p s
1−
K p ( c s + 1) p s + 1
1
Gc ( s ) = GPI ( s ) = K c 1 +
i
s
p
Kc = ; i = p
K p ( c + p )
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Selection of τc
The choice of design parameter τc is a key decision in both the DS and IMC
design methods.
- In general, increasing τc procedures a more conservative controller because
Kc decreases while 𝜏𝑖 increases.
- Several IMC guidelines for τc have been published for the FOPTD .
+ τc > 0.8𝜃𝑝 ; τc > 0.1𝜏𝑝 (Rivera et al., 1986)
+ 𝜏𝑝 > τc > 𝜃𝑝 (Chien and Fruehauf, 1990)
+
Recommendations Condition References
0.5 p Default value smooth Grimholt and Skogestad
c = p control (2013)
1.5 p
Default value robust Astrom and Hagglund (2006);
c = 3 p control MCMillan (2015)
p
2
+ 1
Kc =
1
p ; = + p ; = p
Kp c
i p
2
D
p
2 + 1 2 +1
p
p
I/O modules
Analog (hardware)
Analog Output
Input
process &
4...20 mA field instrumentation
0…100 cm 0…100%
4...20 mA
I L
This topic:
- Different types of sensors
- Principles of sensors
- Selection of sensors
- Noise filter
➢ Sensor types
▪ Temperature: thermocouple, RTD, thermistor
▪ Pressure: bellows, bourdon tube, diaphragm
▪ Flow rate: orifice, venturi, magnetic, ultrasonic, Coriolis effect
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
▪ Liquid level: float, differential pressure
▪ pH: pH electrode
▪ Viscosity: pressure drop across venturi or vane deflection
▪ Composition: density, conductivity, GC, IR, NIR, UV
Output
different outputs from the same value
g
sin
of quantity being measured according
rea
Error
dec
g
to whether that value has been
sin
rea
reached by a continuously in
inc
increasing change or continuously
decreasing change. 0
Value of measured quantity
Measurement Device
Input Output
Sensor Transmitter
U(s) Y(s)
Indicator
Y (s) Ks
G (s) = =
U (s) s s + 1
Four-wire configuration
Dynamic Pressure. P = Ps + Pd
where, 𝑃𝑠 : the static pressure
𝑃𝑑 = ρ𝑣 2 /2
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
https://en.wikipedia.org/wiki/Level_sensor
Level gauge
DP = h( 1 − 2 ) g
where, DP: difference pressure
𝜌1 : the density of the heavier fluid
𝜌2 : the density of the lighter fluid
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Based on time-of-light
2 r 0 h
C=
ln( D / d )
1 2 P
mv + mgh + mg = cont
2 g
D1 V1 Dt V D2
2
1 2
1 2 P
mv + mgh + mg = cont
D1 V1 Dt V D2 2 g
2
1 2
2 g 2 g
Assuming: h1 = h2
2
V − V2 =
2 2
( P1 − P2 )
1
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
The mass flow rate at position (1) and (2) are the same:
m 1 = m 2 = V1 A1 = V2 A2
V1 A1 = V2 A2
2 ( p1 − p 2 )
The velocity at (2): V2 =
[1 − ( A2 A1 ) ]
2
A2
mtheory = V2 A2 = 2 ( p1 − p2 )
[1 − ( A2 A1 ) ]
2 12
Cd . A t
mactual = 2 ( p1 − p2 ) where, 𝐶𝑑 : coefficient constant
[1 − ( A t A1 ) ]
2 12
Orifice Plate
Cd At
mactual = 2 ( p1 − p2 )
[1 − ]
4 12
F o r 0 .2 0 .7 5 a n d 1 0 4 R e 1 0 7
91 . 71 2 . 5
C d = 0 . 5959 + 0 . 0312 2 . 1 − 0 . 184 8 +
R e 0 . 75
Cd At
mactual = 2 ( p1 − p2 )
[1 − ]
4 12
6 . 53 0 .5
C d = 0 . 9975 −
R e0 .5
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Venturi Tube
Cd At
mactual = 2 ( p1 − p2 )
[1 − ]
4 12
1 P2 2
P1,V V2=0
1
2 ( P2 − P1 )
V1 =
mactual = Cd A t 2 ( p1 − p2 )
Sensor
What is actuator?
Actuator converts the command signal from controllers into physical
adjustment in adjustable process variable. It is normally valve opening,
power level or displacement.
Actuator types
▪ Control valve: pneumatic, electric, hydraulic
▪ Electric heater output: SCR, thyristor
▪ Pump/Motor speed: inverter
▪ Displacement: pneumatic, electric, hydraulic
Biên soạn: Nguyễn Xuân Quang, Võ Lâm Chương
Process control
Control valve
Control input
Valve actuator
Stem
Valve body
Inlet stream Outlet stream
τv is the valve time constant, and is typically much smaller than the
largest process time τp . The τv value varied from 0.3 to 7.8 s, while the
θv /τv ratios varied from 0.3 to 0.8 (Emerson Process Management, 2005)
Where e(k) is the error at the kth sampling instant for k=1,2,…
Taking the z-transform,
MVP z = K c E(z) (G3.2.3)
∆τ τd
MVPID k = MVPID k − 1 + K c 1+ + e k −
τi ∆τ
2τd τd
− Kc 1 + e(k − 1) + K c e(k − 2) (G3.2.12)
∆τ ∆τ
0.1 (Isermann,1889)
i
s
s (Astrom and wittenmark 2011)
15 6
update_time
Parameter input:
( delta_t)
K_c, tau_i, tau_d, delta_t
+ e(k-2) = e(k-1)
+ e(k-1) = e(k)
+ e(k) = sp(k) - pv(k)
+MV_pid(k-1)=MV_pid(k)
K_c
temp1=delta_t/tau_i
temp2=tau_d/detal_t
tau_i temp3=1+temp1
temp4=temp3+temp2
tau_d temp5=K_c*temp4
temp6=temp5*e(k)
temp7=temp2*2 MV_pid(k)
delta_t temp8=1+temp7
temp9=K_c*temp8
temp10=temp9*e(k-1)
MV_pid(k-1) temp11=K_c*temp2
e(k) temp12=temp11*e(k-2)
temp13=temp6-temp10
e(k-1) temp14=temp13+temp12
e(k-2)
MV_pid(k)= MV_pid(k-1)+temp14
Stop
End
TC
Product (Liquid)
Distillation FC
FT
column
f
z Product (c%)
Feed
Steam f st
G C_Primary
U S _ L (s) KS _ L
GS _ L ( s ) = =
𝑺𝑽𝟐 CVm ( s ) S _ Ls +1
𝑺𝑽𝟏 LC 𝑷𝑽𝟐
FC
Primary
Secondary
𝑷𝑽𝟏 FT
fi
LT
h Rv
fo
Thank you