Help - Brushless DC Motor Drive - Blocks (SimPowerSystems™)
Help - Brushless DC Motor Drive - Blocks (SimPowerSystems™)
Library
Electric Drives/AC drives
Description
The high−level schematic shown below is built from six main blocks. The PMSM, the
three−phase inverter, and the three−phase diode rectifier models are provided with the
SimPowerSystems library. The speed controller, the braking chopper, and the current
controller models are specific to the Electric Drives library. It is possible to use a simplified
version of the drive containing an average−value model of the inverter for faster simulation.
High−Level Schematic
Simulink Schematic
Speed Controller
The speed controller is based on a PI regulator, shown below. The output of this regulator is
a torque set point applied to the current controller block.
Current Controller
The current controller contains four main blocks, shown below. These blocks are described
below.
The T−I block performs the conversion from the reference torque to the peak reference
current. The relation used to convert torque to current assumes pure rectangular current
waveforms. In practice, due to the motor inductance, it’s impossible to obtain these
currents. Therefore the electromagnetic torque may be lower than the reference torque,
especially at high speed.
The Hall decoder block is used to extract the BEMF information from the Hall effect signals.
The outputs, three−level signals ( 1, 0, 1), represent the normalized ideal phase currents to
be injected in the motor phases. These type of currents will produce a constant torque. The
following figure shows the BEMF of phase A and the output of the Hall decoder for the phase
A.
The current regulator is a bang−bang current controller with adjustable hysteresis bandwidth.
The Switching control block is used to limit the inverter commutation frequency to a
maximum value specified by the user.
When using the average−value inverter, theabc current references are sent to the simplified
inverter.
Braking Chopper
The braking chopper block contains the DC bus capacitor and the dynamic braking chopper,
which is used to absorb the energy produced by a motor deceleration.
Average−Value Inverter
The average−value inverter is shown in the following figure.
It is composed of one controlled current source on the DC side and of two controlled voltage
sources on the AC side. The DC current source allows the representation of the DC bus
current behavior described by the following equation:
Idc = (Pout + Plosses ) / Vin,
with Pout being the output AC power, Plosses the losses in the power electronic devices, and
Vin the DC bus voltage.
On the AC side, the voltage sources are fed by the instantaneous voltages provided by the
Trapezoidal PMSM dynamic model (see PMSM documentation for machine model). This
dynamic model takes the reference currents (the rate of these currents has been limited to
represent the real life currents), the measured BEMF voltages and the machine speed to
compute the terminal voltages to be applied to the machine.
The dynamic rate limiter limits the rate of the reference currents when transitions occurs.
The rate depends of the inverter saturation degree.
During loss of current tracking due to insufficient inverter voltage, the dynamic rate limiter
saturates the reference current in accordance to this operation mode.
Remarks
The model is discrete. Good simulation results have been obtained with a 2 μs time step. To
simulate a digital controller device, the control system has two different sampling times:
Speed controller sampling time
Current controller sampling time
The speed controller sampling time has to be a multiple of the current controller sampling
time. The latter sampling time has to be a multiple of the simulation time step. The
average−value inverter allows the use of bigger simulation time steps since it does not
generate small time constants (due to the RC snubbers) inherent to the detailed converter.
For a current controller sampling time of 40 μs, good simulation results have been obtained
for a simulation time step of 40 μs. The simulation time step can, of course, not be higher
than the current controller time step.
Dialog Box
PM Synchronous Machine Tab
The PM synchronous machine tab displays the parameters of the PM synchronous machine
block of the powerlib library. Refer to Permanent Magnet Synchronous Machine for more
information on the PM synchronous machine parameters.
Model detail level
Select between the detailed and the average−value inverter.
Mechanical input
Allows you to select either the load torque or the motor speed as mechanical input.
Note that if you select and apply a load torque, you will obtain as output the motor
speed according to the following differential equation that describes the mechanical
system dynamics:
Controller Tab
Regulation Type
This pop−up menu allows you to choose between speed and torque regulation.
Schematic Button
When you press this button, a diagram illustrating the speed and current controllers
schematics appears.
Model Specifications
The library contains a 3 hp drive parameter set. The specifications of the 3 hp drive are
shown in the following table.
3 HP Drive Specifications
Drive Input
Voltage
Amplitude 220 V
Frequency 60 Hz
Motor
Nominal
Values
Power 3 hp
Speed 1650 rpm
Voltage 300 Vdc
Example
The ac7_example demo illustrates an AC7 motor drive simulation with standard load
condition. At time t = 0 s, the speed set point is 300 rpm.
There are two design tools in this example. The first block calculates the gains of the speed
regulator in accordance with your specifications. The second block plots the operating
regions of the drive. Open these blocks for more information.
As shown in the following figure, the speed precisely follows the acceleration ramp. At t =
0.5 s, the nominal load torque is applied to the motor. At t = 1 s, the speed set point is
changed to 0 rpm. The speed decreases to 0 rpm. At t = 1.5 s., the mechanical load
passes from 11 N.m to 11 N.m. The next figure shows the results for the detailed converter
and for the average−value converter. Observe that the average voltage, current, torque, and
speed values are identical for both models. Notice that the higher frequency signal
components are not represented with the average−value converter.
AC7 Example Waveforms (Blue: Detailed Converter, Red: Average−Value Converter)
References
[1] Bose, B. K., Modern Power Electronics and AC Drives, Prentice−Hall, N.J., 2002.
[2] Krause, P. C., Analysis of Electric Machinery, McGraw−Hill, 1986.
[3] Tremblay, O., Modélisation, simulation et commande de la machine synchrone à
aimants à force contre−électromotrice trapézoïdale, École de Technologie Supérieure, 2006.