Professional Documents
Culture Documents
Projects
Control in Smart Grids and Distributed Generation
University Master (UPV/EHU-ESTIA)
2
Application to Concrete Projects - P. Alkorta
0. Introduction to rotating electrical machines
Electrical Generator
Electrical Motor
Stator
(static part)
Rotor
(rotating part)
3
Application to Concrete Projects - P. Alkorta
0. Introduction to rotating electrical machines
4
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
• Physical structure
1. Three ph. asynchronous machine
squirrel cage (brushless)
2. Three ph. asynchronous machine
wound rotor
squirrel cage rotor (aluminium’s bars)
6
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
Anillos
rozantes
7
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
8
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
• Operating principle
– stator generates Ψs rotatory flux, at synchronous speed (ωe)
– rotor generates Ψr rotatory flux to track the stator’s flux, at same speed
(ωe)
“Variable Ψs ,generates E.M.F. in rotor
which generates currents (ir), these
generate variable Ψr ,that rotates in
same sense that Ψs , and as a conse_
quence, rotating the rotor at asynchro_
nous speed (ωr)”
cause-effect principle:
“the effect is opposed to the cause”
ωe> ωr for every t (balance) ωe> ωr
if ωr == ωe cause disappears
9
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
10
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
stator
11
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
12
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
13
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
rotor
stator
14
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
XL
Rs=R1s=Re: stator resistance X 2 f L L
L
2 f1
Rr=R2r=m2Rr: rotor resistance referred to the stator
Xsl=X1s=Xe: stator leakage (dispersion, loss) reactance Lsl , Ls=Lsl+Lm
Xrl=X2r=m2Xr: rotor leakage (dispersión, loss) reactance referred to the stator Lrl , Lr=Lrl+Lm
Xm: magnetizing reactanceLm
Rfriction+iron=Rp: resistance of friction and iron loss n1 n2 60 f1
s n1
NOTE
n1 P
italics: motor data given by the manufacturer (referred to the stator)
bold: motor data neccessary to implement vector control
15
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
• Mechanical model
– Electromagnetic torque equation (Te)
KT’: torque constant of the motor
Te K T ' r is
r : rotor flux space vector
is : stator current space vector
– Mechanical equation
J : moment of inertia of the motor (rotor, shaft)
d m
J Bv m TL Te Bv : viscous friction coefficient of the motor (shaft)
dt
TL : load torque or perturbation torque
ωm : mechanical rotating speed (rotor)
r ωr : electrical rotating speed (rotor)
m P : number of pair of poles of the motor
P
p : number of poles of the motor
16
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
1 Lm 1 Lm 1 Lm
2
disd 1
Rs Rr 2 isd eisq Rr 2 rd v sd
Ls Lr Ls Lr Ls Rr Ls state equations (matrix form)
r rq
dt
.......
disq 1 Lm 2 1 Lm 1 Lm 1 x Ax Bus
eisd R
s R i
2 sq r rd Rr 2 rq vsq
dt Ls r
Lr Ls Ls y Cx
Rr Lr Ls
d rd Rr R
Lmisd r rd e r rq states vector / states variables
dt Lr Lr
x isd isq rd rq T
d rq Rr R
Lmisq r rq e r rd
dt Lr Lr input vector / input variables
Te
3 p Lm
rg isg
3 p Lm
rd isq rqisd
us v sd v sq
T
4 Lr 4 Lr
output vector / output variables
d m L
2
J Bv m TL Te 1 m
dt Ls·Lr y isd isq rd rq
T
Rs Rr Lm
2
Lm Rr r Lm 1 1 0 0 0
2
0
L 0
Ls Ls Lr Ls L2r Ls Lr 1 0 0
e
s C
Rs Rr Lm
2
r Lm Lm Rr 1
e B 0 0 0 1 0
2 2 Ls
A
sL L L
s r L L L L
s r
s r 0 0 0 0 0 1
Lm Rr Rr
0 ( e r ) 0 0
Lr Lr
Lm Rr Rr
0 ( e r )
Lr Lr
18
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
armature
inductor / field
20
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
Induc. Mot. Te
3 p Lm
4 Lr
rd isq rqisd
3 p Lm
Te rd isq
4 Lr
Te K T ' rd isq if rd cte, Te K T isq
21
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
22
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
23
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
24
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
Objective:
Generate an appropiate isq* to get
an optimal speed tracking
(ωm ωm*)
• Supositions:
– dynamics associated to SVPWM, VSI y PI current controllers are neglected because
they are much faster than mechanical dynamics of induction motor and PIω controller
– TL =0 and Bv=0 (usually small)
– d and q components disacoupled, and isd isd , isq isq
* *
26
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
PI speed control. Design in frequency domain (N. Mohan 2001)
• taking mechanical equation of motor
d m Really, the Transfer Function of motor
d m
J Bv m TL Te J Te is this (external representation)
dt dt
PI
m ( s) KT
I sq ( s ) ( Js Bv )
OLTF ( s ) Kp KT
s sJ
argOLTF ( s ) s j 180º PM tg ( PM ) Ki
GC Kp
GC
OLTF: Open Loop Transfer Function (FTLA: Función de Transferencia en Lazo Abierto)
ωGC: gain crossover frequency (frecuencia de ganancia crítica)
Ned Mohan calls ωC: crossover frequency (frecuencia de corte)
PM: phase margin (margen de fase)
27
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
PI current control. Design in frequency domain (N. Mohan 2001)
• Based on complete diagram of vect. ind. control with SVPWM mod. and VSI
Objective:
generate appropiates vsd* and vsq* to get
an optimal voltage control
vsABC vsABC * isd* isd and isq* isq
• Suppositions:
– dynamics associated to
SVPWM and VSI are neglected
because they are much faster than
stator dynamics and PIi controllers
– same control design for d and q
– equations of d and q voltages (p. 22)
disd Lm d rd disq Lm
vsd Rsisd Ls eLsisq vsq Rsisq Ls e rd eLsisd
dt Lr dt dt Lr
28
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
PI current control. Design in frequency domain (N. Mohan 2001)
• taking the stator equations of motor
disd Lm d rd
v sd Rsisd Ls eLsisq These are considered
dt Lr dt
as disturbances (pert.)
disq Lm
vsq Rsisq Ls e rd eLsisd vsd,pert vsq,pert
dt Lr
PI
– PIi
• Output limited to ±Vs_max (Saturation) value
• Anti-windup, kbi≈2
30
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
31
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
• Diseño de controlador PI para sistemas de 1º orden en el dominio temporal.
Método de cancelación polo-cero
– Tomando la función de transferencia de controlador PI (donde Ki=Kp/Ti)
K i K p ·s K i K p ·s K p / Ti s 1 / Ti T ·s 1
GC ( s ) K p
Kp Kp i
s s s s Ti ·s
y teniendo en cuenta que el sistema en lazo cerrado es
Ejemplo: diseñar un controlador PI para el lazo de velocidad del motor de inducción 1 (7.5 kW)
para que su tiempo de establecimiento ante una entrada escalón de 100 rad/s sea de 0.1 s
– la respuesta de este sistema de primer orden ante ese escalón es c(t)=100·(1-e-t/τ’), y su
respuesta se estabiliza al transcurrir t=5·τ’ segundos,
– primero hay que hallar los parámetros K y τ de función de transferencia del motor (ec. mec.)
KT KT / Bv KT / Bv K
G( s) K=163.21 y τ =3.8 s (J=0.057, Bv=0.015, KT=2.4483)
J ·s Bv ( J ·s Bv ) / Bv J / Bv ·s 1 1 ·s
1 1 1
5·τ’=0.1 s τ’=0.1/5=0.02 s, ' Ki 0.3063
Ki K ' K 0.02·163.2182
– como Ti = τ
Kp
Ti K p Ki · 0.3063·3.8 1.1641
Ki
33
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
• Diseño de controlador PI para sistemas de 1º orden en el dominio temporal.
Método de cancelación polo-cero
sigue Ejemplo: diseñar un controlador PI para el lazo de velocidad del motor de inducción 1
(7.5 kW) para que su tiempo de establecimiento ante una entrada escalón de 100 rad/s sea de
0.1 s
– se comprueba su estabilidad en el dominio frecuencial (PM, etc). Para ello se representan
los diagrama de Bode del sistema en lazo abierto y se comprueba que PM>0 (positivo)
– Esto sirve también para establecer la relación entre los dos métodos de sintonización de
controladores PI (dominio temporal y frecuencial)
1. Ancho de banda (BW):
(FTLA) ωGC≈ ωC (FTLC)
(diseño en frec, canc. pol-cer)
2. Siempre PM=90º>0 (BW ωC=1/ τ’ ):
siempre estable (ventaja)
K pK Ki K
FTLA
Ti ·s s
no es posible variar Kp y Ki (desv.)
34
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
• Diseño de controlador PI para sistemas de 1º orden (lazo cer. 2 polos+1 cero)
Métodos que NO cancelan polo-cero:
– Diseño en dominio temporal, fijar: ts , ωn y δ (ζ) despr. cero Kp y Ki
¿cómo influye el cero? ¿y las saturaciones? ¿y el anti-windup? Comprobarlo por simulación.
– Para cualquier diseño, una buena forma de compensar el efecto de la perturbación es aña_
diendo la acción feedforward. De todos modos, comprobarlo simulando (igual no merece).
· Para el lazo de velocidad es añadir isq_ff (t) = 1/KT ·TL , TL se puede estimar (ec. mec.)
y así isq_ref (t)= isq_pi (t) + isq_ff (t)
· Para los lazos de corrientes es añadir los términos de acoplo de las tensiones (consid.
perturbaciones p. 29) y así vsd_ref (t)= vsd_pi (t) + vsd_pert(t), y vsq_ref (t)= vsq_pi (t) + vsq_pert(t),
Lm d rd Lm
vsd _ pert eLsisq si rd cte vsd _ pert eLsisq vsq _ pert e rd e ·Lsisd
Lr dt Lr
35
Application to Concrete Projects - P. Alkorta
1. Modelling and speed control of Induction Machine (IM)
– Método 2 (aproximado): es un buen método, emplea el circuito equivalente exacto (p. 15),
donde supone el motor trabajando en vacío a Vn y fn, y sin pérdidas, la corriente consumida
se emplea solamente para generar el flujo
v f _ max v f _ max
I sd _ max
2 2 2
Rs ( X sl X m )2 Rs X s
2 2
I sq _ max I s _ max I sd _ max
r _ max Lm I sd _ max
36
Application to Concrete Projects - P. Alkorta
2. Modelling and speed control of Permanent Magnet Synchronous Machine
(PMSM)
sd Lsd ·isd M
sq Lsq·isq
3P Sup. Lsd = Lsq = Ls
Te risq P, número de par de polos
2 ωr , velocidad eléctrica de rotor
x Ax Bu ωm , velocidad mecánica de rotor
ωr = P ωm
y Cx Du
Application to Concrete Projects - P. Alkorta
2. Modelling and speed control of Per. Magnet Synchronous Machine (PMSM)
– PIi
• Salida limitada al valor ±Vs_max (Saturation)
• Anti-windup, kbi≈2
42
Application to Concrete Projects - P. Alkorta
3. C programming language for S-Function Builders of MatLab/Simulink.
Discretization of continuous time controllers and estimators, other calcs.
• Discretization of:
– PI controllers (speed, currents), estimator of rotor flux ψr , calculation θe
angle, calculation Clarke’s and Park’s transformations, saturarions, etc.
– Ts=2e-6s (2 µs) simulation, Tsc=1e-4s (100 µs) controllers & others,
43
Application to Concrete Projects - P. Alkorta
3. C programming language for S-Function Builders of MatLab/Simulink.
Discretization of continuous time controllers and estimators, other calcs.
44
Application to Concrete Projects - P. Alkorta
3. C programming language for S-Function Builders of MatLab/Simulink.
Discretization of continuous time controllers and estimators, other calcs.
45
Application to Concrete Projects - P. Alkorta
3. C programming language for S-Function Builders of MatLab/Simulink.
Discretization of continuous time controllers and estimators, other calcs.
46
Application to Concrete Projects - P. Alkorta
3. C programming language for S-Function Builders of MatLab/Simulink.
Discretization of continuous time controllers and estimators, other calcs.
47
Application to Concrete Projects - P. Alkorta
3. C programming language for S-Function Builders of MatLab/Simulink.
Discretization of continuous time controllers and estimators, other calcs.
48
Application to Concrete Projects - P. Alkorta
4. Control Predictivo Generalizado (GPC, Generalized Predictive Control)
49
Application to Concrete Projects - P. Alkorta
4. Control Predictivo Generalizado (GPC, Generalized Predictive Control)
y Gu F ( z 1 ) y ( t ) G ' ( z 1 )u(t 1)
y Gu f
53
Application to Concrete Projects - P. Alkorta
4. Control Predictivo Generalizado (GPC, Generalized Predictive Control)
• GPC aplicado a sistema monovariable con retardo
– Planta: motor de inducción (7,5 kW), control de velocidad. Func. Transf:
m ( s ) KT Bv d ·s m ( z 1 ) B ( z 1 ) d b0
e z z d
τm=J/Bv τd=d
I sq ( s ) (1 s m )
*
I sq ( z 1 ) A( z )
* 1
(1 a z )
1
55
Application to Concrete Projects - P. Alkorta
4. Control Predictivo Generalizado (GPC, Generalized Predictive Control)
• La diferencia en la elección de un horizonte de control (Nu) u otro en el cálculo de y y u,
es decir ŷ(t+j|t) y Δu(t)
– Tomando el ejemplo anterior, a) (N=3, d=0, N1=1, N2=3, con λ=0.0361), si se toma Nu=1, entonces la
matriz dinámica G contiene solamente la 1ª columna desde la izquierda (sin cambiar de tamaño).
Nu=1
g0 0 0 g0 0 0 yˆ (t 1 t ) g 0 0 0 u (t ) f11 f12
ˆ
G g1 g0 0
G p g1 0 0 y (t 2 t ) g1 0 0 u(t 1) f 21 y (t ) f 22 y (t 1)
g 2 g1 g0 g 2 0 0 yˆ (t 3 t ) g 2 0 0 u(t 2) f 31 f 32
– Pero si se toma Nu=3, entonces la matriz G contiene las 3 primeras columnas desde la izquierda,
coincidiendo con la matriz original. Así, en el cálculo de la predicción más lejana intervienen los 3
términos de u, y consecuentemente también en el cálculo de Δu(t), debido a que el primer término de
la función Jc es el de las predicciones. A pesar de todo, de las tres componentes de u, la que se
aplica finalmente al sistema es la primera, es decir, Δu(t), empleando la 1ª fila de la matriz KK
u (G T G I ) 1 G T ( w - f ) KK ·( w - f )
Notar, que aunque la primera fila de la matriz KKp y la de KK son muy similares, no son iguales,
y es precisamente ahí donde radica la diferencia de emplear un horizonte de control de 1 ó 3. 56
Application to Concrete Projects - P. Alkorta
4. Control Predictivo Generalizado (GPC, Generalized Predictive Control)
• Los coeficientes de la ecuación diofantina o diofántica, se pueden obtener de forma
recursiva empleando la función filter() de MatLab. Esta función realiza la división de
dos polinomios. A modo de ejemplo, se muestas algunas líneas de código para el cálculo
recursivo de los polinomios Fj(z-1) y Ej(z-1) :
A=[1 -p1];
Ag=conv(A,[1 -1]);
b=[1 0 0];
for i=1:n+d
[c,r]=filter(b,Ag,[1]);
if(i==1)
E(i)=c;
else
E(1:i)=[E(1:i-1) c];
end
F(i,:)=r;
.
.
57
Application to Concrete Projects - P. Alkorta
2. Modelling and speed control of Per. Magnet Synchronous Machine (PMSM)
• Control Vectorial de Velocidad, de Posición, de Par
– Se aplica del mismo modo a Motores de Inducción (IM), Motores Síncronos
(PMSM), Motores de Reluctancia Variable (SRM), etc. Todas las técnicas
empleadas para el motor de inducción las podemos aplicar a otros motores.
• Controladores, estimaciones/cálculos (θe,Ψr, etc.), transformadas
Clarke y Park,... demandan un procesador con elevada capacidad
de cálculo y mucha velocidad (DSP, Digital Signal Processor)
58
Application to Concrete Projects - P. Alkorta
4. Control vectorial de velocidad, posición y par del SCIM
• μC/μP Texas Instruments
– Familia 2812: manejo de números reales con unidad de coma fija
– Familia C2000 (F28069/335): manejo de números reales con unidad de
coma flotante
– Programación:
• En lenguaje C
• En Simulink
– Otros μC sencillos (Arduinos, 8051, etc) sin unidades de coma fija o flotante
en hardware (los emulan por software) necesitan demasiado tiempo para los
cálculos. P.e. Trasformada de Park en varios ms Vs. varios μs (DSP)
• Herramientas para experimentos reales con motores trifásicos
– MCK2812 Kit C Pro-S (IM, 370 W)
• http://www.technosoftmotion.com/en/tools/professional-kits-with-apps/induction-
motor-control-kits/mck2812-kit-c-pro-s-im
– DRV8312 (F28069), (PMSM, unos 50 W)
• http://es.farnell.com/texas-instruments/drv8312-69m-kit/eval-instaspin-bldc-motor-
kit/dp/2307916?Ntt=DRV8312-69M-KIT
– Plataformas basadas en DSPACE (1103, 1104), EUITI Eibar
• Motores de Inducción (VDC = 540V ), con carga controlada en el eje (TL)
– Industrial de 380V / 7,5 kW (motorinduccion1.m)
– Industrial de 220V / 3 kW (motorinduccion2.m)
59
Application to Concrete Projects - P. Alkorta
4. Control vectorial de velocidad, posición y par del SCIM
• Aplicaciones de máquinas asíncronas y máquinas síncronas
– Tanto las máquinas asíncronas como las síncronas tienen muchas aplicaciones.
Pueden ser empleadas tanto como generadores de energía eléctrica, como motores
eléctricos para producir energía mecánica.
– La mayor parte de la energía eléctrica consumida a nivel mundial está asociada a los
máquinas trifásicas, concretamente a los motores de inducción, aunque los motores
síncronos se están empleando cada vez más debido a sus excelentes prestaciones
(máquina herramienta, vehículos eléctricos, etc).
60
Application to Concrete Projects - P. Alkorta