Professional Documents
Culture Documents
net/publication/222988737
CITATIONS READS
27 505
2 authors, including:
Yusuf Altintas
University of British Columbia - Vancouver
263 PUBLICATIONS 22,363 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Yusuf Altintas on 19 December 2017.
Applications
and control modules. This paper describes the control dynamics can be decoupled accurately
design of a very modular research CNC system from the machining process dynamics.
which allows integration of additional monitoring In this paper, a dc motor based velocity servo is
and control modules. The proposed system en- treated as a second-order dynamic system, and the
ables simultaneous testing of chatter avoidance, complete feed drive system is a fourth-order dis-
tool condition monitoring and adaptive control crete-time system with a digital compensating
algorithms, which are coupled in practical machin- filter. Transfer functions of both velocity and
ing operations. The modular CNC system consists position loops are identified, and experimentally
of off the shelf units, and can be easily realized at verified.
other research laboratories. An accurate, discrete-time state space model of
Although considerable progress in CNC tech- the feed drive servo is presented in this paper. The
nology has paralleled developments in electronics model allows simulation of all state variables (i.e.
technology, a detailed analysis of feed drive servo actual position, velocity and motor current) for a
systems for the purpose of precision multi-axes given position, feeding velocity and cutting force
contouring, adaptive control and monitoring of disturbance. This is particularly important for the
machining process has not been studied suffi- analysis of motor current and velocity changes
ciently. Significant early work in the area was under cutting force disturbances.
primarily carried out by Bollinger [2,3], Stute [8,9] The remainder of the paper is organized as
and Koren [4,5]. They concentrated on engineer- follows. Section 2 explains the architecture and
ing design methods of CNC Systems where ap- physical components of the developed modular
proximate models of the feed drive servo were CNC system for a milling machine. Transfer func-
sufficient. However, unmanned machining tasks, tions of the continuous and digital control compo-
in particular precision contouring and adaptive nents of the feed drive system are given in Section
control, require complete modelling and analysis 3. Section 4 presents state space modelling. Ex-
of the feed drive control system so that drive perimental results, which verify the feed drive
POSITION FEEDBACK
IBM PC
DC SERVO MOTOR
(X-AXIS)
POSITION FEEDBACK
MOTOR I ~ ~ IIIII~"
'MPLIrIERI I SERVO MOTOR
(Y-AXIS)
VELOCITY FEEDBACK
POSITION FEEDBACK
I---I
VT I00
C SERVO MOTOR
(Z-AXIS)
VELOCITY FEEDBACK
model, are presented in Section 5. The paper is other auxiliary logic control signals are wired to
concluded with a short summary of the findings. the I / O lines. Contouring (i.e. linear and circular
interpolation), acceleration, deceleration and dig-
ital compensation functions are also carried out
2. Physical Components of the CNC Milling by the motion control board. The board resides in
Machine a Multibus card cage which can take several mo-
tion control cards (i.e. for an additional rotary
The research CNC milling machine may be axis control), data acquisition boards and single
introduced in three major parts: machine tool, board dedicated process control computers (i.e.
feed drive units and the control system as shown tool condition monitoring, process identification
in Fig. 1. and adaptive control) for modular unmanned
The retrofitted machine tool is a vertical mill- machining research. In order to use the existing
ing machine with a 5 kW ac motor connected to a peripherals of the personal computers, the Multi-
spindle drive gear box. The three feeding axes bus is connected to the PC bus with a bus inter-
(x, y and z) of the machine have recirculating face adaptor. An Intel 80286 CPU with an 80287
ball screw drives with 600, 400 and 120 mm travel mathematics co-processor based PC was used as a
limits respectively. All three linear axes are driven master computer to distribute monitoring and
by pulse width modulated (PWM) permanent control tasks to other computer modules on the
magnet dc motors which are directly connected to Multibus. A full technical wiring diagram of the
the lead screw shafts. The motors are capable of CNC unit is provided in Fig. 2 for interested
delivering sufficient continuous torque during readers. The machine tool can be used as a stan-
machining at desired feeding velocities. Factory dard CNC machine by loading an in-house devel-
specifications for the selected servo motors are oped ISO N C language emulator in PC. Feeding
listed in Table 1. velocity, acceleration, deceleration and digital filter
A Motorola M68008 processor based motion parameters can be changed in real time by sending
control board [12] was used to control feeding the desired values from the PC to the motion
velocity and positions of the three linear axes of control unit via the bus adaptor. This feature is
the machine. The motion control card has 16 I / O particularly important and essential for adaptive
lines for logic control functions. Coolant, spindle, control and machine tool monitoring research.
travel limit, feed-hold, amplifier shut-down and
) I i
T ) i
JY ( To Y oxss C i r C u i t 5 ) L.----Jr
wllches NC NC ST I
'~ke~- PC/AT
m OR
, ii' ~ KC.
~ Co~ct~
A t l
\_
i
ilPAHP h
Bo~r~
Zig. 2. Electronics wiring diagram of the CNC feed drive control system.
Computers in Industry Y. Altintas, J. Peng / Modular CNC System 309
Ia Ra
0 6AA/V ~ MECHANICAL
+'
c
_ i La
0 ~
W J e ,B [~kUHU~/p'n~,,O'l
ELECTRICAL
Fig. 3. Schematic diagram of the permanent m a n e t armature
controlled dc s e ~ o motor.
O
f~
The armature current produces a magnetic field
Y~
between the armature and constant field stator, .r-
Taking the Laplace transforms of (1)-(3), the will be called a count. A two-channel encoder with
second-order dynamics of the velocity controller one thousand slots and a quadrature decoding
and its parameters are derived from the control circuit is used, to obtain a corresponding count
block diagram (Fig. 4) and given as follows: length of:
W(s) K, P
1 c o u n t - 4000 [mm],
Vc(s) - s 2 + Kzs + K 3 ' (4)
where p is the pitch of the feed screw in ram. The
where the parameters K 1, K 2 and K 3 are defined: research CNC machine's feed screw has a pitch of
KtSgKiKv p = 5.08 mm, thus 1 count =0.00127 mm. The
K1 LaJe ' gain of the encoder is given as,
B Ra + K v K a 4000
Ke- 2"~ [counts/rad]. (5)
K2= ~ + La '
The u p - d o w n counter acts like an integrator which
B ( R a -}- g v g a ) + g t ( g b -~- n g T g g v g l ) contains the instantaneous position error. Since
K3= Jeta the input to the controller is either parabolic (i.e.
The parameters K t, R a, La, K b and Hg are acceleration and deceleration period) or ramp type
provided by the manufacturers of the amplifier (i.e. steady-state velocity), the u p - d o w n counter
and dc motor. The remaining power amplifier and encoder gain can be cascaded to the end of
p a r a m e t e r s ( K a , g l , K v , Sg and Tg) were mea- the velocity loop as:
sured from the circuits, by applying known signals Sa(s ) g e
to the input port of the circuit in question, and W(s) s (6)
then measuring the corresponding output with a
voltmeter and a currentmeter. The calculated val- Combining (6) with the transfer function of the
velocity loop (4) yields the transfer function of the
ues of K 1, K 2 and g 3 are given in Table 2.
It must be noted that depending on the friction continuous part of the feed drive control system:
characteristics of the machine tool's guideway, it K1 Ke
may be necessary to include static friction as an Co(s) = s 2 + K2s + K3 S - (7)
additional disturbance torque to the velocity loop.
An average viscous damping coefficient of B = The velocity control signal V~ of the digital motion
0.09 N m / ( r a d / s ) is identified by measuring arma- control unit is applied to the power amplifier at
ture current at various steady-state feeding veloci- T = 1 ms intervals via a D / A converter which has
ties on the research machine, see (2) and (3). a gain of K d. The zero-order hold equivalent of
the Gc(s ) for a one millisecond sampling interval
3.2. Position Control Loop is:
Table 3 Table 5
Coefficients of Gc(z ) (eqn. 8) Coefficients of Gcl(Z) (eqn. 11)
1 _ f12 = ( b l + ab2)/b2
b2 = T - ~ e - a ' ~ " r s i n ( ~ d T )
0~d
fll = ( bo + a b l ) / b 2
flo = abo / b2
K 1K e K d Kp
. - [ sin(~OdT) ] a3=al+ K33 b2-1
b1= 2 e-~'°'/
[
"
%
' " rcos(,%r) J
K 1K eK d Kp
a 2 = a o- a 1+ ~ ( b l - ab2)
+ Kz(1 - e -2~'~°r) - 2 e - ~ ' - r sin(~aT ) K2 ~ n
K3 K3 Wd
K 1K e K d Kp
b0 = Te-2~,,',T_ l e - ~ ' , T s i n ( 0 : d T ) °tl K3 ( bo - ab I ) - a 0
6dd
K1KeKdKp
+ ~ e-2~'.r+e -~'.r sin(wdT ) - c o s ( % T ) GO K-"-~ ab°
K1KeKdKpb2
al=--2e ~ . r cos(wdT) Kcl K3
a 0 = e-2~°:nT
Table 4
& 2.2925
Calculated coefficients of Gc(z ) B1 -2.177
B0 0.552
b2 0.4 x 10-4 a3 - 2.1791
bl 1.27 × 10-4 ~2 1.6491
b0 0.25 × 10 -4 ot 1 -0.444
al - 1.20204 ot o 0.01272
a0 0.39448 Kcl 0.0229
312 Applications Computers in lndust O,
multi-axis contouring. However, high open loop where state and input vectors at sampling interval
gain may result in an undesirable oscillatory re- k are defined as:
sponse in the servo. The digital filter parameters
were tuned to achieve an optimum feed drive xc(k ) = [Ia(k), W ( k ) , Xa(k)] T,
servo response.
uc(k) = iVy(k), To(k)]' ,
~(T)=e a~r=[0ia(v)], (i, j = 1 , 2 , 3 ) ,
4. State Space Modelling of the Feed Drive Con-
trol System H(T)=freac'dt. Bc=[h,,], ( i = 1, 2, 3),
J0
A state space representation of the feed drive (j=l, 2).
servo was developed in order to verify the derived
The matrix ~ ( T ) is computed from the eigenval-
model using experimentally measured time do-
ues of the A~ matrix for the discrete-time equiv-
main response data. The servo is again divided
alent of the continuous-time system.
into continuous and discrete sections.
The discrete-time components of the position
The continuous part of the system consists of
control loop consists of digital filter D(z) and
the velocity control loop (7) and the u p - d o w n
D / A converter gain K d. The velocity command
counter (6). Three states--the armature current
signal can be expressed in the z-domain as:
I~, the angular velocity W and the actual position
Xa - are derived from Fig. 4 as: z + a d [ Xr(z) - Xa( z )] . (16)
Vc(z ) = KpT-4--~K
a~c(t) =Acx~(t ) + Bcu~(t), (14)
The equation can be rearranged as:
where the state vector x~(t) and input vector u~(t)
are defined as
~ ( z ) =KpKd[Xr(z ) - Xa(z)] + Va(z), (17)
where
Xc(t ) = [Ia(t), W(t), Xa(t)] T,
Va(z)= K pK a za+- bb[t X ~ ( z ) - X a ( z ) ] . (18)
Uc(t) = [ < ( t ) , ~(tl] ~
A c and B~ are constant matrices: The new variables V~ and Va can be treated as
fourth state respectively. After rearranging (18)
KvK a + R~ K b + KvKiTgHg and (16) and taking their inverse z-transforms, the
0 following discrete-time state equations are ob-
La L~,
tained:
Ac= Kt B
0 '
J~ Jo Vd(k + 1) = -bVd(k ) + K p K d ( a - b)
0 K, 0
X[X~ik)-Xa(k)], (19)
KvK1Sg ] Vc(k ) = KpKd[Xr(k ) - Xa(k)] + Vd(k ).
La 0
=
1 .
The discrete-time state equation (19) can be com-
0 -Z~ bined with the state equation (15), which repre-
sents the discrete-time equivalent of the continu-
0 0 ous part of the feed drive servo. An algebraic
The state equation (14) represents the continuous rearrangement of the equations yields the follow-
part of the feed drive servo system, which has the ing complete state equations for the feed drive
following discrete equivalent solution for an ob- servo:
servation interval of T = 1 ms [7]: x ( k + 1) = G ( T ) x ( k ) + F ( T ) u ( k ),
(20)
xo(k+l)=~(T)xc(k)+H(T)u~(k), (15) y ( k ) = Cx(k) + Du(k),
Computers in Industry Y. Altintas, J. Peng / Modular CNC System 313
where state, input and output vectors are defined 5. Experimental Verification of the Feed Drive
respectively as: Servo Model
-6-
-8-
-I0
-12
-14
-18
Theoretical
-16
-39
-S4-
-39
-1 ................... i ................... i ................... i ................... i ................... i -39 ......... i ......... i ......... i ......... i ......... i ......... l ......... $ ......... i,
10 39 39 40 50 10 39 39 40 39 aO 70 90
~ 5 ~ -39 Theoretical
e
|
\
! ,
! 3-
u
o
d
~ z i-70
-39
-39
of the controller. The magnitude ratio M(o~) and The analyzer's random signal generator output
the phase angle q~(~0) of the closed velocity loop was fed to the input terminal of the amplifier, and
controller can be derived from (4) as: the velocity was measured from the tachogenera-
tor output. The simulated and measured frequency
M(co) = 20 log(K1/K3)
response results are shown in Fig. 6. Although the
- 20 log[(1- + 2, model and experimental responses agreed fairly
well, there were some deviations. A separate
(23) frequency response measurement was carried out
by removing the motor from the table. When the
0(~0) = - t a n - ~ [ ( 2 ~ ) / ( 1 - ( ~ ) 2 ) ] • model was modified to include only the motor's
shaft inertia and viscous damping, the measured
The frequency response measurements were car- and simulated frequency response results were in
ried out with a Bruel&Kjaer Fourier analyzer. perfect agreement. Hence, it is concluded that the
Computers in Industry Y. Altintas, J. Peng / Modular CNC System 315
o-
In addition to the velocity loop, the position
loop consists of an encoder, digital filter and 4-