01:
Design of speed-controller Fed PMDC motor drive
Contents:
Theory Overview
o Introduction (PI, PID controller)
o Three Phase Converter Controlled Fed DC Motor
Drives
o Derivations Transfer Function of the system
Components
Solve Example
Calculations in Hard form
Calculations in Soft
Implement on MATLAB
o Model(with limiter, PI, PID Controller)
o Parameters
o Output waveform of speed
Subject:
Industrial Electronics
Submitted To:
Sir Kashif Iqbal
Submitted By:
Shahid Nadeem 2015-EE-731
Huzaifah Siddqui 2015-EE-718
M Asad Abbas 2015-EE-725
Design of speed-controller Fed PMDC motor Drive
INTRODUCTION
PI Controller:
What is Proportional Integral (PI) Controller?
A proportional–integral–derivative controller (PID controller) is a generic control loop feedback
mechanism (controller) widely used in industrial control systems. A PID controller calculates an “error” value
as the difference between a measured process variable and a desired set point. The controller attempts to
minimize the error by adjusting the process control inputs.
P Control. Output power is directly proportional to control error. The higher the proportion
coefficient, the less the output power at the same control error. Proportional control can be recommended for
fast-response systems with a large transmission coefficient. To adjust the proportional controller you should
first set the maximum proportion coefficient where in the output power decreases to zero. When the measured
value is stabilized, set a specified value and gradually reduce the proportion coefficient and the control error
will decrease. If there are periodic oscillations in the system, the proportion coefficient should be increased so
that control error is minimal periodic oscillations decrease to the limit.
PI Control. Output power equals to the sum of proportion and integration coefficients. The higher the
proportion coefficient, the less the output power at the same control error. The higher the integration
coefficient, the slower the accumulated integration coefficient. PI control provides zero control error and is
insensitive to interference of the measurement channel. The PI control disadvantage is slow reaction to
disturbances. To adjust the PI controller you should first set the integration time equal to zero, and the
maximum proportion time. Then by decreasing the coefficient of proportionality, achieve periodic oscillations
in the system. Close to the optimum value of the coefficient of proportionality is twice higher than that at
which any hesitation, and close to the optimum value of the integration time constant - is 20% less than the
oscillation period.
PID Controller:
What is a PID Controller?
The proportional-integral-derivative controller (PID controller) has been used and found to be a source
of design for many years now. Combinations of PID have found their way into many different uses. The reason
for this has been the advent of microcontrollers and the diversity of analog control. The mechanical operation
of a motor has been more reliable and useful in our daily lives. The PID controller that uses a micro has been
defined by industry and has led to additional functions that support motors of all sizes and shapes.
PID stands for proportional, integral, derivative. These three terms describe the basic fundamentals of
a PID design. Each of these elements performs a different function and has unique property when driving,
positioning, and starting/stopping a motor.
The key to using a PID function is feedback. Instructions or commands to the controller are used based
on individual feedback signals from the motor or sensors being controlled. Their outputs are summed up based
on the PID algorithm to drive the motor backwards, forwards, stop, speed up, or slow down.
Imagine a lathe that carves baseball bats or table legs, or a 3D printer that maneuvers fast, then must
slow down at the precise moment a signature/pen is applied. All of this action is programmed and achieved
by sensing the feedback loops and the information that is needed.
Proportional Control
Proportional control provides an immediate action to the control error. An example of an error may be
slippage or bearing issue. Feedback control is adequate to assist in error control but it is not entirely a solution
by itself. The error will be in a constant state and therefore correction is limited.
Integral Control
Integral control will use the constant error by driving it to zero or near zero. This will help keep the
system uniformed used to control the system alone and therefore can affect the entire loop. This will mean an
error that will exist until correct manually or possibly drive the motor into a stalled state. It should always be
used in tandem with proportional control.
Derivative
The third leg in the formula is the derivative. It acts upon the change of the error that is controlling the
specific function. This is the quickest response to the error and can and is in fact the bias that prevents motors
from stalling, slipping, starting and stopping, but more importantly allows continuous performance.
Remember motors are mechanical and bearings, belts, and brushes (non-brushless) wear. Temperature also
plays a role in feedback. Over time mechanical components change consistency and therefore adjustments to
the PID control allow for independent outputs as a result.
The motor is driving a load which is proportional to friction. The output of the tachogenerator is filtered
to remove the ripples to provide the feedback signal 𝜔mr .The speed signal (𝜔r*)is feedback signal which is
compared with the speed command 𝜔mr to produce a speed error signal. This signal is processed through a
Proportional plus Integral (PI) controller to determine the torque command (Te*). The torque command is
limited, to keep it within the safe current limits and the current command is obtained by proper scaling. The
armature current loop signal Ia * is compared to the feedback armature current Ia to have a zero current error.
If there is an error, a PI current controller processes it to alter the control signal Vc. The control signal
accordingly modifies the triggering alpha 𝛼 to be set t the converter for implementation.
The inner current loop ensures a fast current response and also limits the current to a safe preset level.
This inner current loop makes the converter a linear current amplifier. The outer speed loop ensures that the
actual speed is always equal to the commanded speed and that any transient is overcome within the shortest
feasible time without exceeding the motor and converter capacity. The operation of closed loop speed
controlled drive is explained from one or two particular instances of speed command. A speed from zero to
rated value is obtained and the motor is assumed to be at standstill which will generate a large speed error and
a torque command and in turn an armature current command. The armature current error will generate the
triggering angle to supply a preset maximum dc voltage across the motor terminals. The inner current loop
will maintain the current at a level permitted by its command value, producing a corresponding torque. As the
motor starts running, the torque and current are maintained at their maximum level, thus accelerating the motor
rapidly. When the rotor attains the command value, the torque command will settle down to a value equal to
the sum of load torque and other motor losses to keep the motor performance in steady state. The design of
the gain and time constant of the speed and current controllers is of paramount importance in meeting the
dynamic specifications of the motor drives.
Where
Where
According to Equations
Taking friction feedback at reference torque TR as H1(s) and the forward block as G1(s), the torque loop is
reduced by block diagram reduction using the formula
Then the remaining block diagram is reduced taking transfer function of forward loop elements as G1(s) and
feedback elements as H1(s).
The interactions of the loops in block diagram shown in Figure are decoupled by suitably redrawing
the block diagram. To decouple the inner current loop from the machine inherent induced emf loop, it is
necessary to split the transfer function between speed and voltage into two cascaded transfer function, first
between speed and armature current and then between armature current and reference input voltage. This
decouples the inner current loop from the machine inherent induced emf loop. The transfer functions are
represented as
Where
Figure 3
Figure 4
Figure 5
Figure 6: Step-by-step derivation of a dc machine transfer Function
The converter can be considered as a black box with certain gain and phase delay for modeling and use in
control studies. The dc output voltage of the three phase controlled converter is
The gain of the linearized controller based converter, Kr for a maximum control voltage Vcm is determined
as follows
where,
The converter is a sampled data system. The sampling interval gives an indication of its time delay. Once a
thyristor is switched on, its triggering angle cannot be changed. The new triggering delay can be implemented
with the succeeding thyristor gating. In the meanwhile, the delay angle can be corrected and will be ready for
implementation within 60. i.e., the angle between two thyristors gating. Statistically, the converter time delay
may be treated as one half of this interval in time; it is equal to
where fs is the supply frequency. For a 50-Hz supply voltage source, the time delay is equal to 1.667ms.The
converter is then modeled with its gain and time delay. The resulting converter transfer function
and above equation can also be approximated as a first order time lag and the converter transfer function is
given as
Many low performance systems have a simple controller with no linearization of its transfer characteristic.
The transfer characteristic in such a case is nonlinear. Then the gain of the converter is obtained as a small
signal gain given by
The gain is dependent on the operating delay angle denoted by 𝛼0.The converter delay is modeled as an
exponential function in Laplace operator ‘s’ or a first order lag, describing the transfer function of the converter
as in equation . The current controller and speed controller are of proportional integral type and are represented
as
Where
The gain of the current feedback is denoted by Hc. No filtering is required in the current loop and in case of
filtering requirement, a low pass filter can be included in the analysis. Even then, the time constant of the filter
might not be greater than a millisecond. Most high performance systems use a dc tachogenerator and the filter
required is low pass type with a time constant less than 10 ms. The transfer function of the speed feedback
filter is
Where
The overall closed loop system of the converter fed DC motor drive is shown in Figure. It is seen that
the inner current loop does not contain the inner induced emf loop. The design of control loop starts from the
innermost (farthest) loop and proceeds to the slowest outer loop. The reason to proceed from the inner to the
outer loop in the design process is that the gain and time constants of only one controller at a time are solved,
instead of solving for the gain and time constants of all the controllers simultaneously. In addition to that, the
performance of the outer loop is dependent on the inner loop, therefore the tuning of the inner loop has to
precede the design and tuning of the outer loop.
Figure 7: Block diagram of the motor drive
The current control loop of the converter fed motor drive is shown in Figure. The loop gain is
Where
Equation gives the fourth order representation and reduction of order is necessary to synthesize a controller
with the following approximation
Reduces the loop gain function to
Where
By selecting Tc= T2 Equation can be reduced to a general second order loop function is
From Equation, the characteristic equation of the system relating Ia(s) and Ia*(s) becomes
For good dynamic performance, the system damping ratio is taken as 0.707. Hence equating the damping ratio
to 0.707 in Equation above, we get
Realizing that
K is approximated as
To design the speed control loop, the second order model of the current loop is replaced with an
approximate first order model. This helps to reduce the order of the overall speed loop gain function. The
second order current loop is approximated by adding the time delay in the converter block to T1 of the motor,
the resulting current control loop can be shown in Figure.
Where
The resulting model of the current loop is a first order system, suitable for use in the design of a speed loop.
The speed loop with the first order approximation of the current control loop is shown in Figure.
Figure 10: Representation of the outer speed loop in the dc motor drive
Where,
Above equation is a fourth order system. To reduce the fourth order of the system for analytical design of the
speed controller, approximation to be followed
Approximating
Where
The closed loop transfer function of the actual speed to its command is
Where
This transfer function is optimized to have a wider bandwidth and a magnitude of one over a wide frequency
range by looking at its frequency response, its magnitude is given by
This is optimize by making the coefficients 𝜔2 and 𝜔4 of equal to zero, to yield the following conditions:
Substituting these conditions in terms of the motor and controller parameters given equations yields
Resulting in
Similarly,
Substituting for Ks and Ts into Equation gives the closed loop transfer function of the speed to its command
as
It is easy to prove that for the open-loop gain function the corner points are 1/4T4 and 1/T4, with the gain
crossover frequency being 1/2T4. In the vicinity of the gain crossover frequency, the slope of the magnitude
response is -20 dB/decade, which is the most desirable characteristic for good dynamic behavior. Because of
its symmetry at the gain crossover frequency, this transfer function is known as a symmetric optimum function.
Speed Control of PMDC Motor using PID Controller
Reference:
Power Electronics by M H Rashid
Chapter No. 14: DC Drives
Example No. : 14.14
Pictures of Reference example:
Page No 01:
Page No 02:
1.35 × 𝑉𝑟𝑚𝑠
𝐾𝑟 =
𝑉𝑐𝑚
𝐾𝑟 = 29.7
𝑉𝑑𝑐(𝑚𝑎𝑥) = 𝐾𝑟 𝑉𝑐𝑚 = 29.7 × 10 = 29.7 𝑉
3
𝑉𝑑𝑐(𝑚𝑎𝑥) = 𝑉
𝜋 𝑝𝑒𝑒𝑘
Now,
𝑉𝑑𝑐 𝑉𝑑𝑐(𝑚𝑎𝑥)
=
𝑉𝑐 𝑉𝑐𝑚
220 297.10
=
𝑉𝑐 10
𝑉𝑐 = 7.405𝑉
𝑉𝑐
𝐻𝑐 =
𝑖𝑚𝑎𝑥
𝐻𝑐 = 0.37025 𝑉⁄𝐴
1 1 1 𝐵1 𝑅𝑎 1 𝐵1 𝑅𝑎 2 𝐾𝑏 2 − 𝑅𝑎 𝐵𝑡
− ,− = − [ + ] ± √ ( + ) − ( )
𝑇1 𝑇2 2 𝐽 𝐿𝑎 4 𝐽 𝐿𝑎 𝐽𝐿𝑎
Therefore,
1
− = −49 + 43.5967
𝑇1
𝑇1 = 0.1774𝑠𝑒𝑐
1
− = −49 − 43.5967
𝑇2
𝑇2 = 0.0107𝑠𝑒𝑐
Now,
𝐽 0.06
𝑇𝑚 = =
𝐵𝑡 0.087
𝑇𝑚 = 0.68sec
Also,
𝐵𝑡 0.087
𝐾1 = 2 =
𝐾𝑏 + 𝑅𝑎 𝐵𝑡 1.242 + 6.5 × 0.087
𝐾1 = 0.041
So, the motor transfer function will be:
𝐼𝑎 (𝑠) 𝐾1 (1 + 𝑠𝑇𝑚 )
𝑇. 𝐹 = =
𝑉𝑎 (𝑠) (1 + 𝑠𝑇1 )(1 + 𝑠𝑇2 )
𝐼𝑎 0.02788s + 0.041
𝑇. 𝐹 = =
𝑉𝑎 0.0189818𝑠 2 + 0.1881𝑠 + 1
Also,
𝐾𝑓𝑖 1
𝐾𝑖 = ×
𝐻𝑐 1 + 𝐾𝑓𝑖
63.886 1
𝐾𝑖 = ×
0.37025 1 + 63.886
𝐾𝑖 = 2.65925
Now,
𝑇3 = 𝑇1 + 𝑇𝑟
𝑇3 = 0.1774 + 0.0013888
𝑇3 = 0.1787𝑠𝑒𝑐
Also,
𝑇3
𝑇𝑖 =
1 + 𝐾𝑓𝑖
0.004754
𝑇𝑖 =
1 + 63.886
𝑇𝑖 = 0.002754sec
So, the transfer function is:
𝐼𝑎 (𝑠) 𝐾𝑖
𝑇. 𝐹 = ∗ =
𝐼𝑎 (𝑠) 1 + 𝑠𝑇𝑐
𝐼𝑎 (𝑠) 2.65925
𝑇. 𝐹 = ∗ =
𝐼𝑎 (𝑠) 0.002754𝑠 + 1
Parameters:
Parameters Values
Steady state error 0.21
Peek overshoot 24.6%
Settling time 5.5 sec
Peek time 1.9 sec
Rise time 1.25 sec
Peek undershoot 4.4 sec
Output waveform of Speed:
With PI Controller:
Parameters:
Parameters Values
Response Time 0.3314 sec
Transient behavior 0.6
Peek overshoot 55.9%
Settling time 3.69 sec
Peek time 1.56 sec
Rise time 0.192 sec
Gain Margin 39.9 dB , 71.8 rad/s
Phase Margin 20.3 dB, 6.04 rad/s
Output waveform of Speed:
With PID Controller:
Model:
Parameters:
Parameters Values
Response Time 0.2545sec
Transient behavior 0.6
Peek overshoot 12.3%
Settling time 0.144sec
Peek time 1.12sec
Rise time 0.17sec
Gain Margin 30.1 dB , 1.22 rad/s
Phase Margin 69 deg, 7.86 rad/s
Output waveform of Speed:
Speed Control of PMDC Motor using PID Controller:
Reference:
Power Electronics by M H Rashid
Chapter No. 14: DC Drives
Example No. : 14.14
Pictures of Reference example:
Page No 01:
Page No 02:
Calculations:
By Hands: