Professional Documents
Culture Documents
CLAMPED INTEGRATOR
INTEGRATOR
E1 E5 E12
Position_Comm and Speed_command z.o.h. I_com mand z.o.h. z.o.h.
Radians/sec clk clk clk
V7 Clamp Clamp Clamp
Quantize PWM Car r ier
min min min
Range=50, levels=760
25
Clk1 Speed_Er r or
PULSE(-24 24 20uS { p/2} { p/2} 0 {p} 100
V5 V19 Clk2 V15
V18
V22
V3
PULSE(-1 1 { 2*T_apertur e} 0 0 {T_apertur e} {1/Fs_speed} 100000)
{ -Speed_limit} { -I_limit} PULSE(-1 1 10uS 0 0 {T_apertur e} {1/Fs_curr ent} 100000)
Speed^
cur r ent
INTEGRATOR INTEGRATOR INTEGRATOR
V=I(L1)
Pos _ e nc ode r
PWM
E6 E14 E17 { L} E3
Z -1 Z -1 Z -1 Radians
Clk0 Clk0 Clk0
clk clk clk
{ Kem f}
i.c.
Damping Losses
e r ror _ v o
{ 2* pi/quadcounts} E4 { 1/(Jmotor + Jload)}
{ P_vo} Speed Radians/sec
R2 Tor que E7
Speed
E18 E9 { Rt}
Counts z.o.h. Pos_vo { Kd}
i.c.
clk
M1- RPM
Pos _ v o
lock load
r otor tor que V13 E8
Clk0 { 1/Jt_est} Load
E10 E13 E16 0 { 30 / pi}
V14 Tor que^
i_sam pled { Kt_est} Acceler ation^ 0.5 B3 V12
-Vth
Dave Wilson
Feed-Forward Approach
Comparator
What you want What you get
+ Controller Process
(G2) (G1)
-
Unadjustable,unpredictable,
the difference and often non-linear!
G
What you get = What you want
1+G
Comparator
What you want + System What you get
G(s)
-
Gain is really a function of frequency
Example:
1 d
2 dt
y (t ) 10x (t )
2
2 dt y (t ) 10 x(t ) y (t ) 10x 2 (t )
Desired 1 s Plant 2 System
G(s )
Output G(s ) 2 Input s Output
Feed-forward
Plant
Compensator
The thought process goes something like this: “To achieve a desired
output, what stimulation signal is required at the plant input to get
that output? By knowing the plant transfer function in the forward
direction [G(s)], I find the transfer function looking backwards through
the plant [1/G(s)], and that becomes the transfer function of my
feedforward filter.”
AC Mains Control
Center
Vbus(t)
1
Vdesired 1 Duty Cycle 0
Vbust
PWM 0
Module
Vb usavg Uncompensated
1:1 PWMs
When Vbus(t) is equal to Vbusavg, then “what you want” and “what you get” are equal.
However, when they are NOT equal, the output deviates from the desired input.
TI
Dave’s
AC Mains Control
Center
Vdesired
1
Vbust
PWM 0
Module
Vbus(t ) Vb usavg Compensated
PWMs
1:1
Feed-forward PWM Scaling Modulation
Compensator Plant Process
Motor Current Motor Current
Without F-F Compensation With F-F Compensation
When you multiply through the gain
blocks, you will see that the composite
gain = 1, which again implies that “what
you get” equals “what you want”.
Position + Velocity +
Dave’s
PI PI PI Control
Center
- - -
Measured Current
Measured Position
- +
Measured
Value
∫ Ki
Kp term
∫
Value + Error + Output
Ka Kb
- +
Measured
Value
Ka K p
Ka
Ki
Kb
Ka
Popular with
Current Contollers
0.1 1 10 100 1000
Kp
Frequency
Kb
Controller “zero”
PI Controller
Commanded
Vpi + V = w KE +
∫
Current + Error +
Ka Kb V = Vpi
- -
- +
Measured
Current
R
K a L Current Bandwidth (rad / sec) , Kb
L
Motor Rd Rq Ld Lq
PMSM Rs Rs Ls Ls
L 2 L 2
ACIM Rs Rs+Rr Ls 1 m Ls 1 m
Lr Ls Lr Ls
IPM Rs Rs Ls_d Ls_q
Commanded Load
Commanded Kc, Kd Ka, Kb Motor Motor
Current Inertia
Speed PI PI Volts TI
Torque
Dave’s
Controller Controller
Control
Center
Motor Current
Low
Speed Feedback
Pass
Filter
Pole = t
Load
Filtered Measured
Speed Low Speed
Pass
Filter
1 1 Pole = t
Kc Kd
Kt ,
t
2 Ke = Back-EMF constant
P = Number of motor poles
3PK e J = System Inertia (as seen by the motor)
K for permanent magnet motors
4J t = LPF Pole
= the Damping Factor
3 Lm2
K P Id for AC Induction motors
4 J Lr Single tuning adjustment!
( Equations assume that the Current Controller closed-loop bandwidth is greater than 3t
= 1.5
PI Controller
Commanded Commanded
Vpi
∫
Speed + Error + Current
Kc Kd
- + Limiter
Min Current
Filtered Measured
Speed Low Speed
Pass
Filter
Pole = t
Unfortunately, the Integrator exhibits “windup”
under sudden transient conditions.
Imin
Imin = L, Imax = H
Imin
L ≤ Pout + Iout ≤ H
for minimum condition: L = Pout + Imin → Imin = Min(L – Pout , 0)
for maximum condition: H = Pout + Imax → Imax = Max(H – Pout , 0)
h(t) c(t)
H(s)
•Drawbacks:
- Low noise immunity
- Filter characteristics change with temperature
- Little flexibility
- Component aging
- Power supply variation
- Lot-to-lot manufacturing
- Requires adjustments
- Critical component specification, especially for high order filters
Dave Wilson TI Spins Motors…Smarter, Safer, Greener.
Typical Digital Control System
PWM Module
ADC Module
h(n) c(n) T
H(z)