Dynamics and Control: Tclab On/Off Control
Dynamics and Control: Tclab On/Off Control
OPTIONS:
Main
On/off control is used in most cooling and heating applications where the actuator
can only be On or Off. Run the temperature control lab with On/Off control for 4
minutes to reach a setpoint of 40oC.
COURSE INFORMATION
On/Off Control (4 min)
Course Overview
import tclab
import time Syllabus
a = tclab.TCLab() # connect to TCLab Schedule
fid = open('data.csv','w')
fid.write('Time,Q1,T1\n') Competencies
fid.write('0,0,'+str(a.T1)+'\n')
fid.close() Info Sheet
for i in range(240): # 4 minute test Video Playlist
time.sleep(1)
T1 = a.T1 # temperature
Q1 = 100 if T1<=40.0 else 0 # On/Off Control
a.Q1(Q1) # set heater ASSIGNMENTS
print('Time: '+str(i)+' Q1: '+str(Q1)+' T1 (SP=40): '+str(T1))
fid = open('data.csv','a')
fid.write(str(i)+','+str(Q1)+','+str(T1)+'\n')
fid.close() PROJECTS
a.close()
[$[Get Code]] Lab: Temperature Control
Generate Plot Project: Process Control
.
EQUIPMENT DESIGN
Data Acquisition
Sensors and Signals
Valve Design
CONTROL DESIGN
Introduction
P-only
https://apmonitor.com/pdc/index.php/Main/TCLabOnOffControl 1/3
18/1/2020 TCLab On/Off Control
PI
PID
Stability Analysis
Cascade Control
Feedforward Control
OPTIMAL CONTROL
Optimization Intro
Linear Programming
Nonlinear Programming
Refinery Optimization
Model Predictive Control
RELATED COURSES
Computational Tools
Dynamics & Control
Add the underdamped (0 ≤ ζ < 1) analytic solution to data plot to compare the Optimization
graphical fit to the data. See Second Order Systems for additional information on Dynamic Optimization
analytic solutions.
Admin
t ζ t
′ −ζ t/τs 2 2
T (t) = Kp ΔTS P (1 − e [cos( √1 − ζ ) + sin( √1 − ζ )])
1
τs √1 − ζ 2 τs
Solution
The temperature starts at 20oC and has an average final value above the
setpoint (40oC) at 41oC. The change in temperature is 21oC.
ΔT 1
3. Calculate Kp = .
ΔT SP
https://apmonitor.com/pdc/index.php/Main/TCLabOnOffControl 2/3
18/1/2020 TCLab On/Off Control
Kp = 21/20 = 1.05oC/oC.
2
(ln(OS))
ζ = = 0.527
⎷ 2
2
π + (ln(OS))
√1 − ζ 2
τs = tp = 23.2
π
https://apmonitor.com/pdc/index.php/Main/TCLabOnOffControl 3/3