Interpolation
Interpolation
Interpolation
𝑡 𝑘
∫ 𝑉𝑑𝑡 ≅ ∑ 𝑉𝑖∆𝑡
0 𝑖 =0
The micro-increments of the moving point along X axis and Y axis in Δt are
• An integrator is a system whose output signal is the time integral of its input signal
• The total number of overflow pulses generated by the incremental process is equal to the total area to
be solved
• Accumulator capacity is valued as a unit area; each additional one unit area produces an overflow pulse
Stepper motor calculation
For moving the table 5 mm with a feed of 6mm per minute (If
the BLU=0.001)
Pulse count=
The instantaneous values of the quantities are formed by summing the increments throughout the
whole time.
Where
-- total displacement by summing the displacement at the previous time unit and the distance
increment at the current time unit using equation
The value of x,y and z in next step will figured out after adding a small
increment to the previous values of x,y and z
Circular Interpolation
The interpolator computes the axial velocity components and produces a sequence of reference pulses for each
control axis of motion.
Curves that can not be defined mathematically can only be approximated by using linear interpolation
NC and CNC machines
• The program of instructions is the step-by-step set of instructions that tells the machines what
it has to do.
• It reads and interprets the program of instructions and converts them in the mechanical
actions of the machine tool
• Electric inputs to individual motor for respective axis movements
CNC machine → Program→ Control unit→ Motor→ Motion
.
Zero and reference points on CNC
Automatic control is to control the overall machine
functions.
• Displacement of slide members
• Angular rotation of circular tables
• Stop/start of the main spindle
• Change the spindle speed
• Reverse spindle
• Change feed rate of slide members
• Rotate tool turret
• Change tool
• Cutting fluid, ON/OFF
• Lock table in position
A linear function for time can be represented by
x=Vt+x0
where
x =final position
x0=initial position
t=time
V= speed
This equation is similar to straight line equation
i
In the digital system, the time is divided into small
increments called cloak cycles Δt (pulses) xi V t x0
j 1
This equation can be written
xi 1 Vt
Depending on the (+/-) input selected, the P register is incremented or
decremented as the interpolation operation progresses and generates new
interpolated points. The integration process is activated by an iteration clock
with frequency. For each iteration pulse from the iteration clock, the DDA
integrator adds the value of the P register into an accumulator (Q), which is
initially set to zero.
If the displacement at time
Equations can be written as
----3
The following three process are necessary for integration
1. Calculate current velocity by velocity summing at the previous time unit and
the velocity increment at the current time unit using equation
2. Calculate the distance increment at the current time unit using equation ------
3
3. Calculate the total displacement by summing the displacement at the
previous time unit and the distance increment at the current time unit using
equation…. 2
The above integration process is repeated for every constant time interval and
the iteration frequency
Linear Interpolator
In two-axis linear interpolation, the interpolator calculates the speed commands, in pulses per second, for
the X and Y axes in such a way that it maintains the speed ratio between the X and Y axes equal to the
ratio of the required incremental distance (dx / dy).