You are on page 1of 6

New Design Concept of an FPGA-Based Chip with

Considerations of Flexible Functions Applying


Sliding Mode Control Strategy for Permanent
Magnet Synchronous Motor Drives
Chih-Hsing Fang', Wen-Nan HuangI2", Chih-Hsin Chen', Jan-Ku Chen', Haw-Yang Chang'
'.Power Electronics Lab., Electrotechnology Division, ERL
Industrial Technology Research Institute, Hsin-Chu, Taiwan 3 10, R.O.C.
*400364@itri.org.tw
'.Department of EIectrical and Control Engineering, National Chiao-Tung University
1001 Da Hsueh Road, Hsin-Chu, Taiwan 300, R.O.C.
*wnhuang.ece88g@nctu.edu.tw

Abstract- A methodology for a successful IC development as Altera and Xilinx [1,2]. Many research efforts has focused
procedure, both can be applicabIe and helpful in relatively on the new FPCA-based system development and obtained
experimental studies and during product prototyping phase, is excellent dynamic performance as well [3,4]. One of the
proposed. A field programmable gate array (FPGA)-based Chip applications, PMSM drive, which is attracting increased
is utilized to design the conceptual core of sliding mode control
strategy for permanent magnet synchronous motor (PMSM) attention for drive application for its advantages of usage [5,6].
drives owning flexible considerntions in hardware and software Sliding mode control, which is to force the system trajectory
functions. Description based on ffexible design issue is aIso to a specific surface with insensitivity to disturbances and
arranged for showing feasibility of the presented concept and its parameter variation, suitable for applying in PMSM drives
realization approach. Meanwhile, it demonstrates that the [7,8]. By the former survey of PMSM drives utilize FPGA, it
effectiveness of the proposed FPCA-based chip control system for can be realized that it is still in lack of emphasis on proposing
the performance improvement of PMSM drives can be achieved effective design approach and useful arrangement of flexible
us well.
function considerations under a new control scheme.
Therefore, to extend the design content of an FPGA-based
1. INTRODUCTION chip system forms the motivation.
In this paper, the experimental setup and related system
The utilization of FPGA for controlIer implementation collocation, it is not taken into account except for the FPGA-
will shorten the design and prototyping time because the based chip of the core concept for controlling a PMSM,
simulated model can be converted directly into peripheral interface circuit for motor drive board, and
implementation code, and thus one debugging can be avoided integration design for power stage circuit. The content of this
[ l ] . However, a complete description and design opinion paper is organized as followings: Section I1 briefly describes
wholly based on researchers requirements in laboratories or the concept and related scheme for constructing the FPGA-
product development is not enough while comparing to efforts based chip. The proposed sliding mode control strategy is
and achievements of finding new applications of FPGA-based presented and introduced by algorithm derivation in Section
systems. To propose and arrange a usefil concept, making use 111, being with preliminary verification by simulation also. The
of new control algorithms and letting it be a starting point, to implementation and experimental results are described and
design the system with flexible capability considerations will reported in Section iV and V, respectively. Finally, Section VI
help the researchers to modify their conceptual functions into draws the conclusions.
realization and verification in a shorter time and certainly
lower the cost of product development. In this paper, a PMSM 11. DESIGN CONCEPT OF OVERALL SCHEME
is applied to be the research machine to implement and
highline the primary parts of the design of an FPGA-based The extendable designs in hardware and software are both
chip and teIated configurations, selected to be APEX taken into account for owning flexible hnctions. A brief
EP20K200EBC652-1X produced by Altera Inc., contented a introduction is given in this section.
novel sliding mode control strategy.
The flexible and risk-free option without up-front non- A . Basic Scheme Description
recurring engineering charges or minimum order quantities, The algorithms of rotating and static transformation frame
are the primarily features developed by FPGA producers, such utilized for PMSM drives, as part of the FPGA-based chip
required functions, are introduced and arranged in Appendix

1903
(see Table A-1). As thr: illustration and depiction of Table A-I, improving the accuracy of the motor control and numerical
all the transformations for the frame expression of PMSM operation within this chip. Three techniques, includes concept
model and control force design are shown in module type or of state machines, realization of Pi control, and SPWM, for
conforming spccific coding requirement in grouping (includes improving flexible competence utilizes coding module are
frame transformation of Park, PurK', Clark, and ClarK'). In shown as Fig.2.
this paper, the synchronous rotation d-q frame is chosen as the
analysis structure for control scheme construction, which
eventually all shown as the block diagrams in this table. The i. ' ' 51 ! S2 ! S3 ! S4 ! I
I -
proportional-integration (Pl) controllers are dominated and
actuated by two values of voltage, denoted as Vd and V9 in
frame expression.
Then, the proposed sliding mode control strategy is
designed to serve as the outer-loop guiding formulas of the
FPGA-based chip to construct the overall scheme of PMSM I - r + I
drive with sinusoidirr pulse width modulation (SPWM)
technique to output thi: desired speed, depicted as Fig. 1
(a) Concept of state machines applied for frame transformation

1 t

jI
I

I
I
I
I
I
I
! FPGA !
I
(a) The schematic representationof control scheme PI Control ter

(b) The architecture of the PI controller

(b) The conlipration for system development

Figure 1. Overall block diagram of the FPGA-based chip for PMSM (c) Main coding flow and configurationof SPWM
drives.
Figure 2. Main architecturesfor implementation of the FPGA-based
B. Approaches for Concept Realization and Functionalities chip.
Integration
The developed FPGA-based chip mainly includes Besides of that, the VHDL instruction strl, the
coordination transformation, position feedback decoding, distribution shift adding structure, is applied to lessen the
SPWM, current-loop and speed-loop controller, and so forth, usage of logic elements of FPGA caused by the multiplication
and all the capabilities are verified by ALTERA Quartus 11 for frame transformations. The Park frame transformation is
package software to complete and execute simulation and operated by one multiplexer herein (544 logic elements, and
further analysis. Meanwhile, a 16-bit data length with Q14, in 6% chi? usage area), and the structures of CLARK and
P.U. transformation, and signed 2's format complement CLARK are respectively depicted in Fig.3(a) and Fig.3(b).
computation for all digital circuit design is applied as well for

1904
The Lyapunov function candidate Ycan be selected as (3):

And the time derivative of Vcan be obtained by the derivatives


computation of S, and expressed in the form of (4):

v=ss
= S(w' -w+ k,e) (4)
(a) CLARK transformation
Utilizing the dynamic relationship of energy conservation
I
including loading torque TL and taking (1) into account, the
angular acceleration can be derived as ( 5 ) :

To substitute (5) into (4), the expression can be derived further


as followings:

@)CLIRK' transformation

Figure 3. The structures of frame transformation.


In operation conditions, if sliding surface function status is
111. APPLYING CONTROL STRATEGY DO, then the approaching condition can be set as (7):
Among many observation methods utilized far electric
machines, sliding mode observer is a promising approach [SI. (7)
For motor drives, torque control capability is a key topic for
this outputted performance plays the role deciding the level to
response of this drive system. Hence, sliding mode control In the opposite condition, i.e. S<O, the relation will exist as (8):
strategy is chosen to be a torque related derivation result, for
making use of its good following feature, to let the
electromagnetic torque T,, output of PMSM, to track the
desired value from computed error by the inputs.

A. Algorithms Derivation of Sliding Mode Control Hence, the PI type sliding mode controller can be
By defining the sliding surface, denoted as S, which constructed by taking the conditions o f (7) and (8) into account:
belongs to PI type, firstly, the torque expression in the sliding
mode analysis procedure can be arranged as (1):
(9)

For realization of sign function appeared in former


equation, it can be achieved utilizes the if-else coding
where J,,,, B,, and e ,denote motor moment of inertial, viscous technique in VHDL by judging the sign bit of sliding surface
coefficient, and velocity error. k , k,and kiare all sliding mode function and to output 1 while its value is 0, and in the reverse
control required setting gain values. Then, the toque command operation as well, meaning when sign bit is 1, outputting -1.
that related to q-axis desired current iq*can be expressed as (2): Eventually, the proposed sliding model control scheme is

1905
implemented by the structure represented as Fig.4.

._
Ir.

(c) Step type loading is added

Figure 5 . T h e simulation results for verification of the proposed


sliding mode control strategy.

Figure 4. The scheme for realization of the proposed sliding mode Iv, ACHEVEMENTS OF 1MPLEMENTATION
control strategy.
The FPGA-based chip is developed by the advantage of
flexible coding features for design concepts being with
B. Preliminary Verification extendable circuit functions and module-like adjustably
The rating and information of parameters of PMSM taken transferring variables.
for verification are d-pole, 200watt, 90V with the rated current,
speed, and output torque of 2.3A, 3000rpm, and 0.636N-m. A. Capability of FlexibleFuncfions
The mechanical parameters of rotor moment of inertial and Some considerations for flexible usages under design
viscous coefficient are 0.0000 t N-m-sec.2 and 0.0000754N-m- . phase can be arranged and described in Table I.
sechad. The simulation results of the PMSM drive with the
proposed sliding mode control are arranged and shown as TABLE I
Fig.5. DESIGNEXAMPLES WITH FLEXIBLE
CAPABILITY OF THE FPGA-BASEDCHlP

Descriptions SampIe Programs and main conceptual


Advnn tages forming
Example:
The hardware circuit of the developed flexible intcrbc circuit is
designed to be M c u t of prcliminav a i l y s i s and debugging circuit by
deplay, choarhg B 7-SECdisplay lor obscrving the binary compulalan
rmulu during on-line operation mttu.
Ease of debugging
and extending E"l!!:'comcling sapal pons. such U LCD dtrplay. fcedbrk s i p d
pmccrring and 80 on. SRI Jcrigncd and edded forpornbls usape.

Example:
The module circuiu for clccmic ~ m c t c rcylauon,
s much a pre-
cosdiiionini hncrion and pmiection. arc dcripcd.
Example:
To avoid tbc ovcrnow saturation cffett hi D - i y p flip-llop adder for
Ihc PI ctlnimllcrcamputation, ihc mRwarc is contenred w i h ht txprcrrion
oflhe followinla:

Interface signal
computation

1
The rpecd unii of PMSM in radlYc. can be compulcd by ihe rcahmtw
technique with flcxiblc 4 u s t caplbiliiy U follows'
@) Speed command: k 2OOOrpm ,.32E
4 L 7.
where T,,K , m d N,arc sampling lime. pukc numbcr per revolution, md
puke number muliilicd by four during rampling timc, rrrpctivcly. The
ihrcc variables c m be sdjurrcd under differcnl rcquirtmcnu.

1906
8. Implementation of Hardware
The peripheral design for implementation of this FPGA- c

based chip to integrate a PMSM drive can be divided into


flexible interface processing circuit, switching power supply,
gate drivers circuit, development board, and power stage
I
1

circuit, are photoed as Fig.6. 0

50 ~m

Cntc dtlvcn C I ~ Y I I f I--


f ,-
I FPGA &vcbpmenl
; b.rd f
T (a) Speed command: f 500rpm

procasing clrcuit

'upfly Power stnge clmuit

(a) The overall PMSM drive

(c) Speed response while step-type loading is added

Figure 7.The experimental results for the proposed sliding mode


control strategy.

VI. CONCLUSIONS
The FPGA-based chip utilizing VHDL modulation
(b) The developed flexible interface circuit. techniques from a system planning level opinion. The key
feature of the developed chip is that the constructed functions
Figure 6.The FPGA-based chip related implementation information. are both with the consideration of flexible design for related
deveIopment and usage of drives. The operation information
v. EXPERIMENTAL VERIFICATIONS of this chip is finally arranged in Table 11.

The experimental verification results of the proposed TABLEI1


FPGA-based chip contented sIiding mode control strategy for THENEEDED RESOURCES AN0 SEITINOS OF THIS DEVELOPED FPGA
PMSM drive under the same settings and conditions as the
former simulation, comparing to Fig.5, are illustrated as three elements
parts in Fig.7. The FPGA-based system developed by the
presented method is obviously applicable in speed command Memory 61 % to maximum
tracking and following. Moreover, the robustness of the size 65536(bit) a Iicable resource
proposed drive for PMSM can be demonstrated by the step- YO pin 19.h to maximum
type rated-load adding experiment for showing performance 74. a licable ins
that less than 1/50 speed variant in a response time about 400 Number ofphase-locked loop: 1
ms. System sampling time : 102.4~~

1907
[4] R. Ramos, D.Bid, F. Guinjoan, and E. Fossas, “Distributed
In this paper, a methodology for a successful FPGA-based control strategy for parallelsonnected inverters: Sliding mode
chip design, being taken to implement a drive system with the control approach and FPGA-based implementation,” E E E
IECON 02, ~0l.1,pp. 111-1 16,2002.
conceptual core of sliding mode control for PMSM i s
[5] J.X. Xu, S.K. Panda, Y.1. Pan, T.H. Lee, and B.H. Lam,” A
proposed and verified. The key feature of the design concept modular control scheme for PMSM speed control with pulsating
for processing and conljtmcting functions flexibly is achieved torque minimization,” IEEE Trans. Industrial Electronics, vol.
and the effectiveness of the proposed FPGA-based control 5 I , pp. 526-536.2004,
system for the performance improvement for PMSM drive is [6] M.F. Tsai and H.C.Chen,” Design and implementation of a
also realized. CPLD-based S V P W ASIC for variable-sped control of AC
motor drives,” IEEE PEDS 01, vol.], pp. 322-328,2001,
REFERENCES [7] C.H.Fang, S.K. Lin, C.M. Huang, M.P.Chen, and J.K.Chen,”
Sliding-mode torque control of a permanent magnet
News Views: Newsletter for Altera Customers, Altera Inc., synchronous motor,” IEEE PEDS 01, vol.2, pp. 22-25,2001.
2004. [SI Z. Yan and V. Utkin, ” Sliding mode observers for electric
XILINX Blockset ReferenceGuide, XILINX Inc., 2001. machines-an overview.” IEEE IECON 02, vo1.3, pp, 1842-
J.H. Li, T.-H. S. Li, M.C. Tsai, and S.H.Lin,” Design and 1847,2002.
implementation of dynamic weighted fuzzy sliding-mode
controller for an FPGA-based inverted pendulum car,”
IEEWASME Advanced Intelligent Mechatronics Conf., vol.1,
pp. 628-633,2003,

APPENDIX

TABLE A-1
THEPRIMARY RELATION AND MATHEMATICAL EXPRESSION TAKEN AS THE CONTENT OF FPGA-BASEDCHIP

- .I ~ , I . Definition of variables and’relatedexpression of parameters.


( V o r v:Voltage, and its subscript means phase item or frame base); (Xurrent, the meaning of subscription is the
:Leakage inductance of stator); ( L, :Self-inductanceof stator);
same as former) ; (R or rs :Stator resistance); ( LI,
(Af:Flux linkage of rotor ); (L,:Inductance of stator); (e, :Electrical angular displacement); ( w e:Synchronous
anguliu frequency); ( r, :Electromagnetic torque); (7’‘ :External load torque); (RPoke pair); ( W, : Rotor angular
frequency); (3: Time derivative operator); (&or KG Gain of controller); (K;Gain of torque); (*: Command).

1908

You might also like