Professional Documents
Culture Documents
COMPEL - The International Journal For Computation and Mathematics in Electrical and Electronic Engineering
COMPEL - The International Journal For Computation and Mathematics in Electrical and Electronic Engineering
Access to this document was granted through an Emerald subscription provided by 274199 []
For Authors
If you would like to write for this, or any other Emerald publication, then please use our Emerald for
Authors service information about how to choose which publication to write for and submission guidelines
are available for all. Please visit www.emeraldinsight.com/authors for more information.
About Emerald www.emeraldinsight.com
Emerald is a global publisher linking research and practice to the benefit of society. The company
manages a portfolio of more than 290 journals and over 2,350 books and book series volumes, as well as
providing an extensive range of online products and additional customer resources and services.
Emerald is both COUNTER 4 and TRANSFER compliant. The organization is a partner of the Committee
on Publication Ethics (COPE) and also works with Portico and the LOCKSS initiative for digital archive
preservation.
Artificial neural
Application of artificial neural network
network for adaptive speed
control of PMSM drive with
1287
variable parameters
Tomasz Pajchrowski and Krzysztof Zawirski
Faculty of Electrical Engineering, Poznan University of Technology,
Poznan, Poland
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
Abstract
Purpose – The aim of the research was to find out a method of adaptive speed control robust against
variation of selected parameters of system like moment of inertia, time constant of torque control loop
or torque coefficient of the motor.
Design/methodology/approach – The main goal of the research was achieved due to application of
artificial neural network (ANN), which was trained on line on the base of speed control error. The good
results were gained by elaboration of enough fast and precise training algorithm and proper ANN
structure.
Findings – The work shows a structure of artificial neural network (ANN), applied as adaptive speed
controller, and presents an algorithm of ANN training. Some versions of this algorithm were analysed
and verified by simulation and experimental tests.
Research limitations/implications – The research should be continued to determine a final
version of training algorithm and its influence on controller properties.
Practical implications – The elaborated adaptive controller can be easily used by applying
microprocessor system available now on the market. The proposed control solution is robust against
parameters variation as well as their imprecise identification. The controller has ability of self-tuning
which can have great practical advantage.
Social implications – Social implications are difficult to determine.
Originality/value – The paper presents a new solution of adaptive speed controller, which means a
new ANN structure and new training algorithm.
Keywords Artificial neural network, Adaptive control, Robust control,
Permanent magnet synchronous motor, Electric motors, Controllers
Paper type Research paper
I. Introduction
It is recently observed that requirements concerning dynamic properties of servodrives
become higher and higher. Because of it a proper controllers’ settings adjustment are of
great importance. A procedure of controller tuning is difficult when a variation of drive
and driven mechanism parameters is expected or when the parameters are identified in
imprecise way. Variation of such parameters like a moment of inertia, in drives of robot
COMPEL: The International Journal
arms, machine tools or rolling machines, motor torque coefficient in case of field for Computation and Mathematics in
weakening range or a delay time of torque (current) control loop, in case of existing Electrical and Electronic Engineering
Vol. 32 No. 4, 2013
pp. 1287-1299
q Emerald Group Publishing Limited
This work was supported by the Polish National Science Center (NCN) under the Grant No.: 0332-1649
N N510 146638. DOI 10.1108/03321641311317103
COMPEL variation of resistance and inductance of motor windings, are often met in industrial
32,4 applications. In such situations an adaptive control is recommended, which guarantees
on line controller tuning.
A typical cascade servodrive control system contains three control loops:
supervised angular position control loop with subordinate control loops of angular
speed and motor torque. The main problem with plant parameters variation is in speed
1288 control loop, so in the paper the adaptive speed controller was analyzed. The analysed
speed control loop is shown in Figure 1. An artificial neural network (ANN) was
applied to design the adaptive speed controller. Two different concepts of ANN
adaptive controller were presented in literature (Grzesiak et al., 2005, 2006;
Orlowska-Kowalska and Szabat, 2007). In Orlowska-Kowalska and Szabat (2007) the
neuro-fuzzy adaptive model following control (MFC) was described. In this method the
neuro-fuzzy controller is trained “on-line” on base of error (difference) between output
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
signals of reference model and controlled plant. In Grzesiak et al. (2005, 2006) an
adaptive neural controller was proposed, which was trained on the base of its own
control error. This reference model free adaptive control seems to be more promising so
this concept was developed and analyzed in the paper.
Results of simulation investigations were verified by experimental tests. The object
of control was a direct servodrive (gearless) with low speed PMSM, which parameters
are given in Appendix.
400VAC/50Hz
Rω
idref = 0 ud
PI dq αβ
ωref iqref – uq
ANN PI αβ abc
– –
ω
id ia
dq αβ ib
iq LPF ic
LPF αβ abc
θ
PMSM
Figure 1.
Scheme of angular
position and speed control
systemwith PMSM d θ
dt
ωref
w11
Artificial neural
1
w12
1 network
w13 v1
w21
e b1
2 w22
iqref
– w23 v2
w31 2 4
ω w32 1289
3 w33 v3
b2 b4
w41
w42
z–1 4 3
w43 Figure 2.
ANN structure
b3
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
where hmin, hmax are minimum and maximum values of training coefficient and a, b
are, respectively, constants coefficients of increasing (usually a ¼ 1.2) and decreasing
(usually b ¼ 0.5) of training coefficient and Sij(k) describes equation:
›EðwðkÞÞ
S ij ðkÞ ¼ ð4Þ
›wij
COMPEL It is worth to comment that the RPROP algorithm increases training coefficient hij
according equation (3), when in two following training steps the sign of error function
32,4 gradient is the same, decreases it when the sign is changed and keeps its constant
value when the gradient is zero. The last procedure step (for other cases) means that for
Sij(k) ¼ 0 the value of training coefficient hij is without change. To fulfil condition
Sij(k) ¼ 0 is difficult in practice so in the paper was proposed a solution, which
1290 introduces some tolerance band DS for evaluating the value of gradient equal zero.
After assumption the tolerant band the formulas (3) take form:
8
> minðahij ðk 2 1Þ; hmax Þ for Sij ðkÞSij ðk 2 1Þ . DS
>
<
hij ¼ maxðbhij ðk 2 1Þ; hmin Þ for Sij ðkÞSij ðk 2 1Þ , 2DS ð5Þ
>
>
: hij ðk 2 1Þ for other cases
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
Y
Sij(k)Sij(k-1) > ∆S
Y
Sij(k)Sij(k-1) < ∆S
Figure 3. wij(k)=wij(k-1)-ηij(k)sign(e(k))
The scheme of algorithm
of elaborated training
procedure
Pajchrowski et al. (2006, 2007). During simulation tests the responses on step change of Artificial neural
reference speed and step change of motor load were analysed for drive with constant and network
variable moment of inertia. First investigated problem was a starting of ANN controller
with initial values of weight coefficients. Random selection of these coefficients leads to
the transient process of speed step response with unaccepted oscillations and significant
value of overshoot. Such situation is shown in Figure 4(a). In the paper two solutions of
this problem, which make the first start of ANN controller soft, were analysed. First of 1291
them bases on introducing a filter of speed reference signal with proper time constant
(first order lag block with time constant TF ¼ 0.0125 s). The results of such approach are
shown in Figure 4(b). As can be noticed the introducing the filter reduces oscillations of
speed and motor torque but makes step response slower.
Second proposed solution consists in involving the first transient process without
motor rotation. This concept base on forcing in special way a change of reference motor
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
0.14
0.12
w [rad/s]
0.1
0.08
0.06
0.04
0.02
iq [A]
0
–0.02
–0.04
0 0.05 0.1 0.15 0.2 0.25 0.3
t [s]
(a)
0.12
w [rad/s]
0.1
0.08
0.06
0.04
0.02
iq [A]
0
Figure 4.
–0.02 Waveforms of angular
0 0.05 0.1 0.15 0.2 0.25 0.3
speed and current in axis q
t [s] during transient process of
(b) first starting of
neural controller
Notes: (a) Without; (b) with filter of speed reference signal
COMPEL torque (current in axis q) with reference speed equal zero. In this situation control
32,4 system tries to keep speed equal zero and the change of reference torque treats as a
disturbance, which is compensated. Transient process involved in such way leads to
initial selection of ANN weight coefficients without motor starting (zero speed).
Illustration of such ANN starting is visible in Figure 5.
Shown in Figure 5 transient process was obtained for constant moment of inertia.
1292 At time 1.7 s a step change of load torque was involved. In Figure 5 one can observe
that this load change is accompanying by some changes of selected ANN weight
coefficients. It is interesting that the controller changes its weight coefficients even in
situation when plant parameters are constant. During responce on load torque change
a weight coefficient of bias in output neurone is significantly increased and due to it a
dynamic drop of speed, involved by this change, is compensated. As a result of such
controller operation a steady state speed control error is kept at value near zero with
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
1.2
0.8
ωref, ω [rad/s]
0.6
0.4
B2
0.2
0.19
tolerant band 2
0.185
tolerant band 3
0.18
0.175
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
0.17 Figure 6.
The influence of tolerant
2.98 3 3.02 3.04 3.06 3.08 3.1 3.12 3.14 3.16 band on response
on load change
t [s]
–0.005
ANN - on line
ω [rad/s]
ANN - on line
–0.01 in t = 2.3 s
ANN - off line
–0.015
–0.02 Figure 7.
Comparison of speed
PI - symmetry criterion
–0.025 control error involved by
step change of load torque
(20 Nm) for three types
2.3 2.305 2.31 2.315 2.32 2.325 2.33
of controllers
t [s]
ANN adaptive controller ensures much smaller value of dynamic control error in
comparison with PI controller, what is its advantage.
Some another important problem is to select proper period of ANN training. The
shortest period is equal sampling time of controller calculations (Ts) but for such small
its value some unstable behaviour of ANN during training process was observed. The
minimum safety value of the training period selected by trial and error method is equal
2Ts. The results of analysis of training period influence on speed control error involved
by step change of load torque are shown in Figure 8. It is clearly visible that a smaller
control error was obtained for smaller value of training period.
COMPEL Waveform angular speed
32,4 0.21
0.205
0.2
0.195
1294 Ta = 2 Ts
0.19
ω [rad/s] 0.185 Ta = 4 Ts
0.18
Ta = 6 Ts
0.175
0.17
Figure 8.
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
Adaptive abilities of controller are shown in Figure 9, which shows a sequence of speed
step responses during variation of moment of inertia. The control system is invariant
to these variations due to its adaptive abilities.
V. Conclusions
The results of investigations proved correct operation of adaptive neural controller trained
on-line. Proposed concept of adaptive controller enables to obtain robustness against drive
parameters variation. Moreover, the self tuning abilities of the ANN controller lead to good
dynamic operation and significantly reduce stead state control error of load torque change
even in structure without integral operation. The described training algorithm of ANN is
enough fast to be used on-line (in real time) on DSP processor.
Artificial neural
0.12
w [rad/s] network
0.1
1295
0.08
0.06
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
0.04
0.02
0
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1
t [s]
(a)
6
4
J
3
1
iq
0
–1
–2
–3
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1
t [s]
Figure 9.
(b) Illustration of controller
Notes: (a) Reference and measured speed; (b) current in axis q and operation during change
moment of inertia of moment of inertia;
waveforms
COMPEL
32,4
1296
PC Analog LCD
Port I/O
Outputs
JTAG 8
DAC.
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
AD7809
DSP 10 – bit
Module
21060
LCD
keyboard
SHARC
Module
u, i I/O iDC
uDC
ADMC401
Generator
PWM
Service AD7865
Encoder
ADC 6
MUX
14 – bit
AD7865
LPF
ADC
14 – bit MUX
ia, ib, ic
PMSM
Encoder
Figure 10.
Scheme of laboratory
stand
Artificial neural
w [rad/s] network
1297
Figure 11.
Experimental waveforms
iq [A] of angular speed and
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
0.22
tolerant band 1 < tolerant band 2 < tolerant band 3
0.2
tolerant band 1
0.18
n [1/s]
0.16
tolerant band 2
0.14
tolerant band 3
0.12
0.2
1298 Ta = 2 Ts
0.15
n [1/s] Ta = 4 Ts
Ta = 6 Ts
0.1
Figure 13.
Downloaded by University of Louisville At 10:53 29 January 2015 (PT)
References
Ellis, G. (2004), Control System Design Guide: Using Your Computer to Understand and Diagnose
Feedback Controllers, 3rd ed., Elsevier, Amsterdam.
Grzesiak, L.M., Meganek, V., Sobolewski, J. and Ufnalski, B. (2005), “DTC_SVM Drive with
ANN-based speed controller”, paper presented at PELINCEC Conference,
Warsaw University of Technology.
Grzesiak, L.M., Meganek, V., Sobolewski, J. and Ufnalski, B. (2006), “On-line trained neural speed
controller with variable weight update period for direct-torque-controller AC drive”, paper
presented at EPE-PEMC Conference, Portoroz.
Norgaard, M., Ravn, O., Poulsen, N.K. and Hansen, L.K. (2000), Neural Networks for Modelling
and Control of Dynamic Systems, Springer, London.
Orlowska-Kowalska, T. and Szabat, K. (2007), “Control of the drive system with stiff and elastic
coupling using adaptive neuro-fuzzy approach”, IEEE Trans. on Industrial Electronics,
Vol. 51 No. 4, pp. 228-240.
Pajchrowski, T., Urbański, K. and Zawirski, K. (2006), “Artificial neural network based speed control
of permanent magnet synchronous motor”, COMPEL: The International Journal for
Computation and Mathematics in Electrical and Electronics Engineering, Vol. 25 No. 1,
pp. 220-234.
Pajchrowski, T., Zawirski, K. and Brock, S. (2007), “Application of neuro-fuzzy techniques
to robust speed control of PMSM”, COMPEL: The International Journal for
Computation and Mathematics in Electrical and Electronics Engineering, Vol. 26 No. 4,
pp. 1188-1203.
Riedmiller, M. and Braun, H. (1993), “A direct adaptive method for faster backpropagation
learning: yhe RPROP algorithm”, IEEE International Conference on Neural Networks,
28 March-1 April, Vol. 1, pp. 586-591.
Further reading Artificial neural
Pajchrowski, T. and Zawirski, K. (2012), “Application of artificial neural network for adaptive network
speed control of PMSM drive with variable parameters”, Proceedings of XXII Symposium
on Electromagnetic Phenomena in Nonlinear Circuits, EPNC’2012, Pula, Croatia,
26-29 June.
Appendix 1299