CNC/CAM Lecture Notes: Chapter 3 Interpolator
CNC/CAM Lecture Notes: Chapter 3 Interpolator
Chapter 3 Interpolator
By Yanuar Burhanuddin
Introduction
The interpolator plays the role of generator of axis
movement data from the block data generated by the
interpreter
The one of the key components of CNC accuracy
Two kinds of control methods:
The point-to-point control method: move the axis to the desired
position;
The contour control method: to move the axis along an arbitrary curve.
Tool movement should be divided into components
corresponding to each axis; the locus of the tool is
createdthrough combining the individual displacements for
each axis.
Introduction
Introduction
The requirement of interpolator characteristics
The data from the interpolator should be close to the actual part shape.
The interpolator should consider the limitation of speed due to the
machine structure and the servo specifications while calculating
velocity.
The accumulation of interpolation error should be avoided in order that
the final position should coincide as closely as possible to the position
commanded.
The interpolator classification:
hardware interpolator
Software interpolator
Hardware Interpolator
The hardware interpolator carries out the computation of
interpolation and generates pulses by using an electric circuit.
In the hardware interpolator high-speed execution, difficult
to adapt new algorithms or modify algorithms.
The typical method for hardware interpolation uses a
DDA(Digital Differential Analyzer) integrator based on
numerical integration physical: digital circuit
Hardware Interpolator
Hardware Interpolator
The integration processes:
1. Calculate current velocity by velocity summing at the previous time unit
and the velocity increment at the current time unit.
Vk =Vk−1+ ΔVk
2. Calculate the distance increment at the current time unit.
3. Calculate the total displacement by summing the displacement at the
previous time unit and the distance increment at the current time unit.
Sampled-Data Interpolation
The interpolation is executed in two stages.
An input contour is segmented into straight line segments within an
allowable tolerance rough interpolation.
The approximating line segments are interpolated and the interpolation
result sent to the related axis fine interpolation.
Reference Pulse Method
Sampled Data Method
Methods omparison
DDA Interpolation
The same as the behavior of
hardware DDAs.
The variable L is a linear
displacement
The variables A and B denote the
displacement of X and Y axes
the Q1 and Q2 are initial values
(default is zero)
The variable R is the radius of the
circle.
The variables P1 and P2 give the
center position.
DDA Interpolation
DX(i) and DY(i) are the increments along the X- and Y- axes. Vx(i) and
Vy(i) are the velocities for the X- and Y-axes respectively
Note: the velocities are called as reference wors
Two kinds of an error occur when a circle is approximated by line
segments: radial error (ER) and chord height error (EH).
ER is an error from a truncation effect.
EH is not accumulated. EH is computed using Equations
below
Based on the above, α should be determined such that the
value of ER or EH does not exceed a value equivalent to 1
BLU.
Euler algorithm
cos α and sin α are approximated by first-order Taylor series
Expansion with A = 1,B = α