Professional Documents
Culture Documents
Reference Pulse Circular Interpolators For CMC Systems
Reference Pulse Circular Interpolators For CMC Systems
Koren
O. Masory Reference-Pulse Circular
Faculty of Mechanical Engineering,
Technlon—Israel Institute of Technology,
Haifa, Israel Interpolators for CMC Systems
Interpolation techniques for CNC manufacturing systems are either of the Reference-
Pulse or Reference-Word type. Reference-Pulse interpolations emit a sequence of pulses
as reference signals to the control loops, whereas Reference-Word interpolators provide
binary words as references to Sampled-Data control loops. In. the present paper, a number
of Reference-Pulse interpolation methods are described, all of which function in an on-
line iterative mode controlled by an external interrupt source. These methods are com-
pared in terms of accuracy, maximum radius, uniformity of feedrate along the circular
path, and maximum feedrate attainable. Selection of the appropriate interpolation
method is found to depend on the specific application. Reference-Word interpolators will
be covered in a subsequent paper.
fnntrnl JUL kS
Y=ax
Inttrrupi Program \
Clock Motor Step
tfsSs Table
COMPUTER Drive Motor
tional to sin(cot) and cos(coi) for the X-axis and Y-axis, respec- Three Reference Pulse Methods will be described and com-
tively. pared:
All Reference-Pulse interpolations are based upon an iterative (1) Software DDA method;
technique controlled by an adjustable interrupt clock. At each in- (2) Stairs Approximation method;
terrupt, a single iteration of the routine is executed, which in turn can (3) Direct Search method
provide an output pulse. The relationship between the required It will be shown that each of these methods has a typical NIL value
feedrate V (the velocity of the X-Y table) and the interrupt frequency and therefore requires a different setting of F.
F in circular motions is given by:
Software DDA Method
F^V (1) The digital differential analyzer (DDA) method is an interpolation
L procedure which was developed for use in hardware interpolators (3,
where L is the arc length in BLU's, N is the number of iterations (or 6,7]. The method requires successive additions in order to create new
interrupt pulses) to complete the arc, and V is given in BLU's/sec. The interpolated points, and is therefore ideally suited to assembly lan-
maximum feed-rate is proportional to the maximum attainable in- guage simulation. The rate of additions in the hardware interpolator
terrupt rate, which in turn depends on the execution time of the al- is controlled by a high frequency clock. In order to adapt the clock
gorithm. frequency to a permitted interrupt rate, the software interpolator
requires some modification, essentially in the definition of register
length [8]. The register length is adapted to each segment of the
workpiece, which for a circular arc is equal to the radius R.
The flow-chart of the algorithm for generating the circle in Pig. 3
is given in Fig. 4. It can be seen that the DDA algorithm requires only
- Tachoqenerator Geor
COMPUTER AX = Y , AY = X , RX = X , RY = Y
O O O 0
'lllll Tnhia
'c
EXTERNAL CLOCK
Fig. 2 Single-axis closed loop system
1
RX = RX + AX
RY = RY + AY
RX = RX - R yes RX >R
AY = AY - 1
PULSE TO - Y
(Xs, Yo)
TZ
RY = RY - R yes
RY>R
AX = AX + 1
PULSE TO +X
"C
(Xf,Yf)
EXIT "°- J
Fig. 3 Initial conditions of a circle Fig. 4 Flowchart of software DDD method
R- VxJTYZ F = ^ - V =^ (7)
In order to eliminate the necessity of a FPU, R might be determined irR/2 -K
by the approximation The factor ir in equation (7) causes some computational difficul-
ties.
R = max (Xo Y0)+^mm(Xo,Yo) (2) Although the algorithm is simple, the execution of equation (5)
requires a multiplier, which may be a disadvantage. Moreover, the
which is derived by assembly language. The implementation of this computer word must contain the value of R2, which in practice means
approximation results in an error of less than 11%. This error only operating with double-precision, or even triple-precision. The max-
decreases the feedrate without affecting the accuracy of the algorithm. imum permitted radius with double-prescision is given by:
Alternatively, the radius can be added explicitly to the part-data
R„ ' V 2 2 " - 1 - 1 ^ \/2 2 " " 1 (8)
program on the perforated tape. However, the circle accuracy is
slightly affected by the initial conditions ofRX and RY. Note that In order to offset these unattractive features, improvements of the
inserting the initial values as RX = X0 and RY = Y0 is preferred to algorithm were developed [11, 12,13] which are shown here for one
setting the registers initially to zero. case from Table 1 (CW direction, first quadrant). By adding one more
As is seen from Fig. 4, the routine includes a comparison of the index, equation (5) for the Improved Stairs method can be rewritten
contents of RX and R Y to R. In the worst case, RX or R Y is equal to
(2R — 1). Therefore, in an rc-bit computer with one bit reserved for
the sign, the maximum allowable radius is: Du = Xf+Y] -R2 (9)
R„ •• 2 " - 2 - 1 (3) where i and j are the number of steps accomplished in the X- and
Y-direction, respectively. Upon executing an additional step in the
The number of iterations required to complete a quarter of a circle X-direction, equation (9) becomes
with a software DDA is given by [8]:
DHIJ = (Xi + l ) 2 + Yj - R2 = Du + 2Xi + 1 (10)
JV = (vr/2)fl (4)
To summarize, the Improved Stairs Method is executed as follows: (The residue of V2 cannot be expressed when assembly language is
at each iteration the determination of a single variable, D, is required. used.) As a consequence, equations (14) and (16) become:
The new D is evaluated from the previous D and an increment AX
or AY, which is calculated simply by an additional instruction ac- AX,+ i = AX,- + 1 (23a)
cording to equations (14) or (16). Since the multiplication is elimi-
AY; + 1 = AY; + 1 (23b)
nated, the computation speed is increased. Furthermore, the maxi-
mum contents of a word are now 2R + 1, rather than R2. Therefore, The maximum value of the new AX and AY is only R. Therefore, the
the maximum radius expressed in an n-bit word is maximum radius which can be expressed by an re-bit word is:
Rv : 2 n - 2 _ ]_ (19) p = on-i _ 1 (24)
The accuracy obtained (1 BLU) as well as number of iterations and In order to avoid the accumulation of the residue V2 which has been
the interrupt clock frequency Fc given again by equations (6) and neglected in equation (22) at each step, the following policy is
(7). used:
ID + 2""1 ^R /2F F
D
3 = AX + *v| DSM H (H^/J)*
Improved
DSM
2 n-l
>! /in L/2/2V /5F F
Improved
14142 0.50 0.261 1.41
DSM
Improved 103 R 75
73 15220 /2R
DSM
The maximum feedrates are calculated from V in Table 2 and DSM is recommended for manufacturing systems requiring large radii
equation (26). It is seen that the maximum feedrate can be achieved with single-word programming, accuracy and smoothness.
with the Stairs Method, while the Improved DSM gives the slowest
feedrate. It is worthwhile to note that the DDA method provides a Acknowledgment
maximum feedrate which is reasonable for most of today's manu- The authors would like to thank Professor S. Malkin for his detailed
facturing systems. For a BLU = 0.01 mm/pulse, the maximum feed-
comments and helpful suggestions.
rate with a PDP-11 is: 19230 X 0.01 X 60 = 11538 mm/min. (The ac-
tual feedrate is slightly smaller since a feedrate-subroutine is also
contained in the CNC control program.) In addition, Table 3 provides References
the number of computer words (of 16-bit) required by each method. 1 Koren, Y, "Computer Control of NC Systems," Spectrum, Vol. 14, No.
3, Mar. 1977.
As expected, all methods occupy a small number of memory locations,
2 EIA Standard RS-274-B: Interchangeable Perforated Tape Variable
and so the storage requirement can not be considered as an evaluation Block Format for Contouring and Contouring/Positioning NC Machine Tools.
criterion. May 1967.
One measure of the quality of the circle is the maximum error in 3 Koren, Y., and Ben-Uri, J., Numerical Control of Machine Tools. Ka-
hanna Publishers, Delhi, India, 1978.
the radius £ m a x . The circle quality can also be expressed by the 4 Koren, Y., "Design of Computer Control for Manufacturing Systems,"
standard deviation S, defined by: ASME-78-WA/PROD-14., Dec. 1978.
5 Poo, A. N., and Bollinger, J. B., Digital-Analog Servo System Design for
s (27)
=Vi-P CNC. IEEE-IAS, 9th Annual Meeting Proceedings, Oct. 1974, pp. 621-630.
6 Koren, Y., Shani, A., and Ben-Uri, J., "Numerical Control of a Lathe,"
IEEE Ind. and Gen. Appl, Vol. 6, No. 2, pp. 175-179, March 1970.
which is a measure of the smoothness of the generated circle. In Table 7 Danielson, P. E., "Incremental Curve Generation," IEEE Trans, on
4 it can be seen that the Direct Search Methods gave the best Computers, Vol. C-19, No. 9, Sept. 1970, pp. 783-793.
circle. 8 Koren, Y., Interpolator for a CNC system. IEEE Trans, on Computers,
Vol. 25, No. 1, Jan. 1976, pp. 32-37.
The four interpolator methods were simulated in producing a 9 Koren, Y., Design Concepts of a CNC system. IEEE Ind. Appl. Soc,
quarter of a circle with a radius of R = 10000 BLU's. The results, Annual Meeting, Atlanta, Proceedings, Oct. 1975, pp. 275-282.
presented in Table 4, are in agreement with the theoretical ones. 10 Kaiwa, T., and Inaba, S., "Latest Japanese Numerical Control Features,"
In summary, the selection of the Reference-Pulse interpolator Control Engineering, Oct. 1961, pp. 88-91.
11 Gorman, J. E., and Raamot, J., "Integer Arithmetic Technique for Digital
depends on the requirements of the system as follows: Control Computers, Computer Design, July 1970, pp. 51-57.
1. A uniformity of the feedrate along a circular path is obtained 12 Sudarshan, P. A., "Electronic Techniques for NC Contour Machining,"
only with the DDA method. (Note that all the methods discussed here 6th MTDR Conference, Dec. 1973.
provide uniform feedrate in linear motions.) 13 Angelov, A. S., Mihailov, A. D., and Nachev, G. N., "Simple Algorithm
for Curvilinear Interpolation," 11th Annual Meeting and Technical Conference
2. If the maximum feedrate is the only dominant factor in the Numerical Control Society, Proceedings, March 31-April 3, 1974, pp. 338-
system, the Stairs Method should be used. 348.
3. The Improved Direct Search Method permits radii twice as big 14 Masory, 0., and Koren, Y., "The Direct Search Method in CNC Inter-
as with the other methods with the same computer word-size. The polators," ASME-78-WA/PROD-40, Dec. 1978.
15 Jordan, B. W., Lenon, W. J., and Holm, B. D., "An Improved Algorithm
radial errors with this method are half as big with the other methods for Generation of Nonparametric Curves," IEEE Trans, on Computers, Vol.
and also the best smoothness is obtained. Therefore, the Improved C-22, No. 12, Dec. 1973, pp. 1052-1060.