Académique Documents
Professionnel Documents
Culture Documents
Squirrel Cage Induction Motor Control with DS1104 R&D Controller Board
Table of Contents
2 2 3
6 8 9 12
12
12 13 13
14
14 15
16
Introduction
Electrical drives play an important role as electromechanical energy converters in transportation and most production processes. During the last few years the field of controlled electrical drives has experienced rapid expansion mainly caused by the advances of semiconductors in the form of power electronics as well as digital signal and analog electronics for microelectronics and microprocessors. Electronically switched solid-state power converters have renewed the controlling of AC-motor drives not subject to the limitations of the mechanical commutator of DC drives. These application notes describe the implementation of a fieldoriented control for a squirrel cage induction motor. The control structure is programmed as a Simulink graphical model and can be implemented by Real-Time Interface (RTI) on the DS1104 R&D Controller Board. The induction motor control is implemented in three tasks containing the I/O and the two control layers. The measure task is directly triggered by the PWM interrupt of the TMS320F240. This closely connects the task cycles of the TMS320F240 and PowerPC 603e to avoid jitter. It works at a PWM frequency of 16kHz and generates a synchronous software interrupt with 8kHz. This interrupt is used to trigger the superior current control task. The subordinated speed controller works in a third task and is triggered by the timer interrupt of the PowerPC, which occurs with a frequency of 4kHz.
Host PC
PWM Signals
3 2 Current Information i
a b
Power Supply
Frequency Converter
Field-Oriented Control
This chapter describes the basics of the implemented control scheme. The control algorithms are derived from the block structure of an induction machine in rotor-flux frame, shown in Figure 2.
1 FS L H/ ( T RLR) FS
uSd
1/KR KL/KR
iSd
LH
TR Rd
LH / T R Denominator Numerator FR RS
uSa uSb
a,b,c
KL
mL
uSq
1 J
Rd RS
Figure 2: Block diagram of a squirrel cage induction motor The motor dynamics are described by the following space vector differential equations:
K R i Sd + K L K R i Sq + K L
LH di Sd = u Sd + FS K L i Sq + Rd dt L R TR diSq dt = u Sq FS K L i Sd + LH LR
RS Rd
FR =
LH i Sq TR Rd
FS = FR + RS FS = FS dt
The torque of the motor me is proportional to the product of Rd and iSq, see the lower part of Figure 2. The rotor-flux Rd changes slowly compared to iSq and iSd, since the time constant TR is much greater than:
KL KR
K , TR >> L KR
For this reason it makes sense to control the torque via iSq, with the q-current controller (q-CC), see Figure 3. Furthermore, it is required that the machine has a constant magnetic operating point, which is provided by the flux controller (FC) with a set-point. To realize this control structure it is necessary to transform the phase currents into d- and q-currents. The block diagram of the motor (Figure 2) shows that the d- and q-currents are coupled, so it is necessary to implement a decoupling network (D) to make them independent of each other. The transformation, which calculates the d- and q-currents from the measured phase currents, is given by the following equations:
Figure 3 shows the complete control structure. The transformation blocks are marked with dashed-lined boxes.
* RS RS * Rd Rd FC VC i* Sd d-CC iSq FS iSd phase to d,q-frame iS a,b,c iSa
ejFS
* iSq
q-CC
u* Sq
d,q-frame to phase * uS
,
+ u* Sa * uSb u* Sc za zb zc
U D
D
u* Sd
e-j FS
PW M
ASM
IG RS RS
u* S
a,b,c
iSb
iS
,
iSc
Rd
FR
FluxModel
RS
Figure 3: Control structure for the induction motor To decouple both currents and compensate the induced voltage in the q-current path (see lower left part of Figure 2), the necessary compensation voltages are reconstructed using the available measurements. These voltages and the output of both current controllers are added to determine the output quantities uSd* and uSq*. Figure 4 shows the decoupling network and both current controllers. The decoupling and the compensation section are marked with dashed-lined boxes.
KL
FS
RS FR
iSq
current decoupling
q-CC
i* Sq
LH/LR
+ +
u* Sq
Rd
Figure 4: Decoupling network and current controller As shown above, the decoupling network needs the rotor-flux Rd, the slip-frequency FR and the electrical rotor velocity RS. While RS can be measured the other two variables are estimated using a flux-model (Figure 5), which is based on the motor model shown in Figure 2. The flux model is also used to estimate the angle FS needed for the frame transformations (see Figure 3). Since it is based on the current measurement, Figure 5 is the current version of the flux model.
L H iS iS
e-j FS
T R Rd FR
iSd iSq L /T H R 1 FR
FS
Denominator Numerator
FS
FR RS
TRi
TTi
1 RS
LS RS
iSq
Figure 6: Current controller structure The AC drive is described in the first order lag GSi(s) with:
1 RS GSi (s) = L 1+ S s RS
The delay time TTi is determined by the delay times of the digital control and the PWM inverter:
TTi = Tctrl +
TPWM 2
Goi (s) = K Ri
Both current controllers are dimensioned with the magnitude optimum method, according to a phase reserve of 63. The controller parameters are:
Tci = Kci =
LS RS Tci RS 2 TTi
Figure 7 shows the velocity control structure. This structure is based on the symmetric optimum. So a further first order lag to delay the reference input M is necessary. In addition, the actual velocity input is FIR-filtered to avoid jitter effects of the incremental encoder. In the block structure the behavior of the FIR-filter is approximated by a first order lag.
KM J
1 1.2 T c
*
Kc
Tc
Td
Tf
Gi(s)
M =
KM iq ( t ) dt J
The delay time Td is determined by the delay time of the digital velocity control: Td = Tctrl . The open velocity controller loop is given by:
Go = Kc
1 + s Tc K 1 Gi ( s) M e s Tc s Tc J 1 + s Tf
The transfer function Gi(s) and the exponential term can be approximated by first order lags with the time-constants T and Td. According to the symmetric optimum, the small time constants can be combined to Tsub. With these simplifications the controller parameters can be determined with the following equations achieved by field-oriented control.
Tc = 4 Ti Kc = J 2 Td + Ti + Tf K M
1 UD 3
In the lower part of Figure 2 it can be seen that uSq has to be higher than the back EMF of the AC motor to produce a torque. The back EMF can be determined with the equation:
ueR. m. f =
LH R Rd RS LR
Since the back EMF is proportional to the rotor flux and the flux Rd, in the rotor frame, the coordinates have to be reduced at high speed. This can be done with a look-up table. As long as the current rotor velocity RS is under the nominal velocity RSnom, the flux reference value Rd is the constant nominal flux Rdnom. And if the velocity is higher than the nominal velocity the reference flux is weak. This is done with the following equation:
RSnom ) RS
For safe operational behavior the stator voltage vector US has to be limited according to the operating point of the AC motor. If the motor is in generating working order, for example, after a speed reversal, US has to be limited with q-priority and otherwise with dpriority. The modified controller structure is shown in Figure 8.
* RS
RS * Rd FC Rd VC
i* Sq
q-CC
u* Sq limit iq RS u* Sd
D
i* Sd d-CC iSd iSq
RS
u
2
dle ft
3 1
drig h t
4 5 6
Figure 9: Space vector modulation With the determined values for the sectors dleft and dright, the Space Vector Modulation of the TMS320F240 can be used for PWM generation, just as it is possible to use the TMS320F240 for PWM generation with duty cycles. Then the output signals PWMa through
d0 4
dr 2
dl 2
d0 2
dl 2
dr 2
d0 4
10
10
dl = dleft dr = dright
3 TPWM UD 3 TPWM UD
d0 = TPWM dl dr
Figure 11 shows the ceiling phase voltages ua, ub and uc generated by the duty cycle PWM of the TMS320F240. The resulting line voltages uab , ubc and uca. are shown in Figure 12.
150
0.005
0.01
0.015
0.02
t/[s]
300
0.005
0.01
0.015
0.02
t/[s]
The calculated duty cycles za through zc are in the range of 0 to 1 since the PWM calculation routine, which can also be used for the subharmonic pulse width modulation, needs input values between -1 and 1.
11
11
This is essential for the reference signal generator, which must be timer triggered to get the required absolute time reference. Now the requirement of several discrete sample rates can no longer be met by SIMULINK functions positioned in interrupt-triggered subsystems. Therefore any discrete units placed inside such systems must inherit their sample time.
12
12
Furthermore, the software interrupt for the current controller is generated inside the measure subsystem.
13
13
By setting switch_weakflux accordingly, either the normal control or an extended control including flux weaking is available. The flux weaking control is discretized at a sample time of 250 s and is therefore included in the speed/flux subsystem (see Figure 17). It is comprised of a nonlinear function and a PI compensator. The nonlinear function supplies a constant reference flux of psi_ref for speeds below speed_ref and a flux decreasing at a rate of 1/n beyond (see Figure 18).
14
14
Speed Limits
Due to the implemented flux weaking, higher speeds are now possible with the induction motor. For this reason, the speed limits included in the signal generator can optionally be ignored now (see Figure 19). Then arbitrary reference speeds can be selected, although the motor is not able to follow at any speed.
Figure 20 shows the ControlDesk layouts for standard control. The layout displays the turnaround times as it provides instruments for changes regarding the reference signal generator. Furthermore, a plotter shows the captured information on the speed, current and rotating vector. The Real Speed gauge displays the current speed information of the encoder. Its annular is split into two parts matching the multi-state LED colors of speed saturation. The proportional gain for the PI flux controller can be adjusted with slider controls. A second layout named Measure provides some measured data.
15
15
Experiment description file Experiment connection file Experiment file System description file, defines application should be used Main control layout Layout with measured data Stimulus Sequence for test automation
which
16
16