Control of A DC Motor Drive
Control of A DC Motor Drive
Marko Hinkkanen
Aalto University
School of Electrical Engineering
Autumn 2015
1 / 25
Learning Outcomes
2 / 25
Introduction
A cascaded control system may also include a position controller, but we will not cover it in these lectures.
3 / 25
Outline
Preliminaries
Current Control
4 / 25
Closed-Loop Control
The stability of the closed-loop system H(s) is often evaluated indirectly via the loop transfer function L(s). For example, the gain and phase
margins can be read from a Bode plot or a Nyquist plot of L(jω). In these lectures, we mainly analyse the closed-loop transfer function H(s) directly.
5 / 25
PI Controller
6 / 25
Outline
Preliminaries
Current Control
PI Controller
IMC Tuning Principle
2DOF PI Controller
7 / 25
Current Control System
Udc
8 / 25
Block Diagram
Assumptions:
I Switching-cycle averaged quantities
I Ideal voltage production: ua = ua,ref
Motor model
ea ωM
kf
TL
ia,ref
Current ua 1 ia 1
controller kf
sLa + Ra sJ
TM
Switching-cycle averaged symbols will not be marked with overlining in these lectures.
9 / 25
Simplified Block Diagram
10 / 25
PI Current Controller
I Time domain
Z Current controller ea
ua = kp e + ki e dt
ia,ref e ua ia
K (s) Ya (s)
I Transfer function
e(s) k
= K (s) = kp + i
ua (s) s
1
I How to tune the gains kp and ki ? Ya (s) =
sLa + Ra
11 / 25
Closed-Loop Transfer Function
12 / 25
Internal Model Control (IMC) Principle
I Let us equal the closed-loop transfer function with the desirable one
K (s)Ya (s) αc αc
H(s) = = ⇒ K (s)Ya (s) =
1 + K (s)Ya (s) s + αc s
I Controller K (s) can be solved
αc αc αc Ra
K (s) = = (sLa + Ra ) = αc La +
sYa (s) s s
I Result is a PI controller with the gains kp = αc La and ki = αc Ra
I Bandwidth αc should be (at least) one decade smaller than the angular
sampling frequency 2π/Ts
13 / 25
Example: Step Response
ia (A)
I Ra = 1 Ω, La = 10 mH 60 ia,ref Closed-loop control
I Constant ea = kf ωM = 100 V
40
I Open-loop controller
I Slow (τa = 10 ms) 20 Open-loop control
I Inaccurate even in steady
0
state (since Ra varies as 0 4 8 12 16 20 t (ms)
a function of temperature) ua (V)
I Closed-loop PI controller 400 Z
I Fast (τc = 2 ms) ua = kp (ia,ref −ia ) + ki (ia,ref −ia )dt
I Steady-state accuracy
depends on the current 200
measurement accuracy ua = Ra ia,ref + ea
0
0 4 8 12 16 20 t (ms)
14 / 25
Example: Step Response During Acceleration
ea increases 2 V/ms
0
0 4 8 12 16 20 t (ms)
15 / 25
2DOF PI Current Controller: Improved Disturbance Rejection
I Active resistance r is a
controller gain Current controller ea
I Affects like a physical
resistance (without ia,ref ua0 ua 1 ia
K (s)
causing losses) sLa + Ra
ia (s) r
= Ya0 (s)
ua0 (s)
1
=
sLa + Ra + r
Ra + r
I Bandwidth of Ya0 (s) can = αc ⇒ r = αc La − Ra
be selected to equal αc La
This controller structure could also be represented as a state feedback controller with integral action and reference feedforward.
16 / 25
2DOF PI Current Controller
r = αc La − R a 1
kp = αc La Ya0 (s) =
sLa + Ra + r
ki = αc (Ra + r ) = αc2 La
17 / 25
Outline
Preliminaries
Current Control
18 / 25
Voltage Saturation: Control Loop Becomes Nonlinear
1
ki ea
s Saturation
ia,ref e ua,ref ua 1 ia
kp
sLa + Ra
19 / 25
Back-Calculation Anti-Windup Method
Current controller
This signal is nonzero
1/kp only if the voltage saturates
1
ki ea
s
ia,ref e ua,ref ua 1 ia
kp
sLa + Ra
20 / 25
Example: Step Responses With and Without Anti-Windup
ia (A)
60 No anti-windup
0
0 8 16 24 32 40 t (ms)
21 / 25
Outline
Preliminaries
Current Control
22 / 25
Cascaded Control System
Udc
Control system
ωM,ref qA , qB
Speed TM,ref 1 ia,ref
controller Current ua,ref
kf PWM
controller
ia
ua ia
ωM
23 / 25
Block Diagram
Motor model
ea ωM
kf
TM,ref ia,ref
ωM,ref ua,ref TL
Speed 1
Current 1 ia 1
controller kf kf
controller sLa + Ra sJ
TM
24 / 25
Simplified Block Diagram
I Assumption on ideal torque control TM = TM,ref
I Holds well if the current-control bandwidth is (at least) one decade faster than
the speed-control bandwidth
TL
ωM,ref
Speed TM 1 ωM
controller sJ