System Dynamics and Control
University Mechanical Engineering Topic 12 6:36 English narration · English and 中文 subtitles you can switch
Chapters
Transcript
The cooling loop needs one more part - a valve that sets the flow, moved by a small motor and a controller.
冷却回路还需要一个部件——由小电机和控制器驱动、用来调节流量的阀门。
This course builds the models, reads their responses, closes the loop, puts the controller on a microcontroller, chooses its sensor, and checks the result against a written spec.
本课程将建立模型、分析响应、闭合回路、把控制器部署到微控制器上、选择传感器,并根据书面技术要求检查结果。
Every simulation is trusted only after it matches a result we can work out by hand.
每次仿真都要先与我们能手算出的结果吻合,才可以信赖。
A mass and spring, a circuit with a coil and capacitor, and a tank of hot water obey equations of the same form.
质量块与弹簧、带有线圈和电容器的电路,以及一罐热水,都满足形式相同的方程。
So the reservoir is a first-order lag - its time constant is resistance times capacitance, two point three hours, and a kilowatt of heat warms it ten degrees in the end.
因此,储水罐是一个一阶惯性环节——其时间常数为热阻乘以热容,即两点三小时;一千瓦的热功率最终会使水温上升十度。
The assumption to state is that the water is well mixed.
需要说明的假设是水混合均匀。
Write the pump on its mounts with two states, position and velocity.
用位置和速度两个状态变量来描述安装在支座上的泵。
The A matrix holds stiffness and damping per unit mass, and its eigenvalues are minus three point eight plus or minus fifty j - exactly the decay rate and ringing frequency we measured in Course 11.
A 矩阵包含单位质量的刚度和阻尼,其特征值为负三点八加减五十 j——恰好是我们在 Course 11 中测得的衰减率和振荡频率。
The same form will hold the motor.
同样的形式也可以用来描述电机。
The motor turns current into torque and speed into back e m f, with the same constant both ways.
电机把电流转化为转矩,把转速转化为反电动势,两个方向使用相同的常数。
At twelve volts it runs at two thousand two hundred and eighty rpm, and it reaches speed with a time constant of about ten milliseconds.
在十二伏电压下,它以每分钟两千两百八十转的速度运转,达到该转速的时间常数约为十毫秒。
The electrical time constant is shorter, and the exact poles, seven point four and two point one milliseconds, add up to the same.
电气时间常数更短,而由精确极点得到的七点四毫秒和两点一毫秒加起来也接近这个值。
Through fifty to one, the valve turns at point four radians per second per volt - at most four point eight, so a quarter turn takes a third of a second.
通过五十比一的减速传动,阀门的转速增益为每伏零点四弧度每秒——最大为四点八弧度每秒,所以转过四分之一圈需要三分之一秒。
The five newton-metre load on the stem needs three volts just to hold.
阀杆上五牛顿米的负载仅仅维持住就需要三伏。
And the five-amp current limit gives ten newton metres at the valve - enough, with a margin of two.
而五安培的电流限值使阀门处能获得十牛顿米的转矩——足够应付负载,而且有两倍的余量。
The poles tell you the response before you simulate.
在仿真之前,极点就能告诉你系统的响应。
Their distance from the origin is the natural frequency; their angle sets the damping.
极点到原点的距离是固有频率;极点的角度决定阻尼。
With a damping ratio of point seven, the valve overshoots by under five percent and settles in seventy-seven milliseconds - for small steps, while the voltage stays below twelve.
阻尼比为零点七时,阀门的超调量小于百分之五,调节时间为七十七毫秒——这适用于小阶跃,且电压保持在十二伏以下的情况。
In the frequency domain, the open loop gain falls through one at forty-eight radians per second.
在频域中,开环增益在每秒四十八弧度处下降并穿过一。
There the phase is minus one hundred and fifteen degrees, leaving a phase margin of sixty-five.
此处的相位为负一百一十五度,因此相位裕度为六十五度。
That matches the damping we designed for.
这与我们设计的阻尼相符。
Gain alone cannot make this loop unstable - but every bit of delay eats into that margin.
仅靠增益无法使这个回路失稳,但任何延迟都会消耗相位裕度。
With proportional control alone, the motor's holding voltage has to come from an error, so the valve stops one point three degrees short.
仅使用比例控制时,电机维持位置所需的电压必须由误差产生,所以阀门会停在距离目标一点三度的位置。
An integral term keeps growing until that error is gone and then supplies the three volts by itself.
积分项不断增长,直到误差消失,然后自行提供那三伏电压。
Its zero sits a decade below the natural frequency, costing about nine degrees of margin.
它的零点位于固有频率下方一个十倍频程处,会消耗约九度的相位裕度。
A ninety-degree step asks for two hundred and ten volts; the driver gives twelve.
九十度的阶跃需要两百一十伏,而驱动器只能提供十二伏。
While the valve crawls at its rate limit, the integrator keeps adding error it cannot use, and when the valve arrives it overshoots to one hundred and fifty-nine degrees.
当阀门以受限的速度缓慢运动时,积分器不断累积无法有效利用的误差,等阀门到达目标时,它会超调到一百五十九度。
Clamping the integrator during saturation removes the overshoot entirely.
在饱和期间钳制积分器,就能完全消除超调。
The proportional term acts on the error now.
比例项作用于当前误差。
The integral term acts on the error accumulated so far, and removes any steady error.
积分项作用于至今累积的误差,并消除稳态误差。
The derivative term acts on the trend of the error, adding damping, but it also amplifies measurement noise, so it is usually filtered.
微分项作用于误差的变化趋势,增加阻尼,但它也会放大测量噪声,因此通常需要滤波。
A microcontroller samples, computes and holds its output until the next sample.
微控制器进行采样和计算,然后保持输出,直到下一次采样。
On average that staircase is the signal delayed by half a sample.
平均来看,这种阶梯形输出相当于信号延迟了半个采样周期。
At a thousand hertz the delay costs two degrees of phase; at a hundred hertz it costs twenty-one, and the phase margin drops from sixty-five to fifty-one.
在一千赫兹的采样频率下,延迟消耗两度相位;在一百赫兹时,它消耗二十一度,相位裕度从六十五度降到五十一度。
The Tustin rule turns the integral into a running trapezium sum - a few multiplications per sample.
Tustin 法则把积分转换为不断更新的梯形求和——每次采样只需做几次乘法。
The encoder resolves less than four thousandths of a degree at the valve.
编码器在阀门处的分辨率小于零点零零四度。
But a speed estimated by counting is coarse, which is another reason not to use derivative action.
但通过计数估计的速度比较粗糙,这也是不使用微分作用的另一个原因。
Computation time adds a little more delay.
计算时间还会带来少量额外延迟。
Follow the signal - a platinum thermometer at one milliamp, an amplifier, a one-hertz filter, the converter, the controller - and back out through the driver and motor to the valve.
沿着信号路径来看——从一毫安电流下的铂电阻温度计,到放大器、一赫兹滤波器、转换器、控制器——再经过驱动器和电机回到阀门。
Each stage has a scale and an error.
每一级都有自己的量程和误差。
Combined, the reading is good to a quarter of a degree, and the sensor's own tolerance dominates.
综合起来,读数的误差约为四分之一度,其中传感器自身的容差占主导。
The budget lists each independent error - the sensor tolerance, quantisation, gain error and self-heating - and combines them by root sum of squares.
误差预算列出了每一项独立误差——传感器容差、量化误差、增益误差和自热误差——并用平方和开根号的方法合成。
The sensor dominates, so a sixteen-bit converter would be money wasted.
传感器误差占主导,所以使用十六位转换器会浪费资金。
On the output side, the supply voltage sets the speed and the current limit sets the torque.
在输出端,供电电压决定转速,电流限值决定转矩。
Independent errors rarely all push the same way, so combine them by root sum of squares.
独立误差很少都朝同一个方向作用,所以要用平方和开根号的方法合成。
The Pt100 tolerance of 0.30 kelvin, the amplifier offset of 0.15, the lead resistance of 0.10 and the quantisation of 0.05 combine to about 0.35 kelvin, not the 0.60 a straight sum would give.
Pt100 的容差为 0.30 开尔文,放大器偏移误差为 0.15,导线电阻误差为 0.10,量化误差为 0.05,合成后约为 0.35 开尔文,而直接相加会得到 0.60。
The largest error dominates.
最大的误差项占主导。
Here is the whole positioner simulated against its spec.
这里将整个定位器的仿真结果与技术要求进行比较。
Proportional control stalls short.
比例控制在到达目标之前就停住了。
The plain PI controller winds up and swings to one hundred and fifty-nine degrees.
普通 PI 控制器发生积分饱和,摆动到一百五十九度。
With anti-windup the valve is within half a degree at point five two seconds.
使用抗积分饱和后,阀门在零点五二秒时与目标的偏差不超过半度。
The simulation first reproduced the rate limit, the P-control error and the small-step overshoot - so its other numbers can be trusted.
仿真首先再现了速度限制、比例控制误差和小阶跃超调,因此它的其他数值也可以信赖。
The passing design still has weaknesses.
这个达标的设计仍有弱点。
Without load, a small step overshoots eighteen percent.
无负载时,小阶跃的超调量为百分之十八。
The time margin is only eight hundredths of a second, and at eleven volts it almost vanishes.
时间裕度只有零点零八秒,而在十一伏时几乎消失。
Sensor faults, a sticking valve and the motor warming up are untested.
传感器故障、阀门卡滞和电机升温的情况都没有经过测试。
An honest report says all of this.
一份诚实的报告会说明所有这些问题。
Answer from memory first - the reservoir time constant, the motor gain and time constant, the proportional gain and its overshoot, the phase margin, the error without integral action, the windup overshoot, the sampling cost and the temperature error budget.
先凭记忆回答:储水罐的时间常数、电机的增益和时间常数、比例增益及其超调量、相位裕度、没有积分作用时的误差、积分饱和造成的超调量、采样带来的影响,以及温度误差预算。
Then recompute any you missed, and check one of them a second way.
然后重新计算答错或遗漏的部分,并用第二种方法核验其中一项。
Comments
No comments yet. Be the first to ask or share something.