Open CNC Chapter 09 Linear and Circular Interpolation
Open CNC Chapter 09 Linear and Circular Interpolation
Slide 3
Linear Interpolation
Linear interpolation:
Prior to modern CNC controls special codes were necessary to turn on the
built-in linear interpolation system
Some CNC controls also will interpolate rapid moves - while others simply
move the axes drive motors at maximum speed in rapid traverse mode
Slide 4
Linear Interpolation
The axis the spindle moves with basic orthogonal movements from the
beginning to the end of the path
The more lines, the better approximation is made of the actual path
The more lines, the more computational power required - No longer used for
non straight segments
Slide 5
Linear Interpolation
Linear interpolation:
When cutting an angle the MCU calculates the angle based on the
programmed coordinates
Since the MCU knows the current spindle location, it can calculate the
difference in the X coordinate between the current position and the
programmed location
Slide 6
Linear Interpolation
A move along the X axis only would cut an angled line of 0 degrees
Slide 7
Notes
Linear interpolation is not difficult
Aside from calculating the cutter offsets necessary to position the spindle - it is the same as
straight line milling
The real difference is that an X and a Y coordinate are specified for the ending point of the
angle since there is a change in position of both axes
Other cutter situations will present themselves in CNC part programming such as arcs tangent
to an angle or arcs tangent to other arcs
CAM programming systems automatically calculate cutter offsets with speed and accuracy
no programmer can match
For this reason CAM systems have become the preferred programming system in many shops
A good programmer or CNC operator must still know how to calculate cutter offsets in order to
edit programs in the machine control during the first piece setup
Slide 8
Linear Interpolation
For this reason CAM systems have become the preferred programming
system in many shops
Slide 9
Circular Interpolation
In cutting arcs, the MCU uses its ability to generate angles to approxi-
mate an arc
These chord segments are very small and practically indistinguishable from
a true arc
Slide 10
Circular Interpolation
Not used for interpolation in the space due to requirement of the combined
movement of three or more machining axes
Ideal for moving the axes when the path of the cutting tool in a plane
contains circles, half circles or arcs. In this case only the coordinates of the
ends of the arc, the radius and center are required
Slide 11
Circular Interpolation
These G codes are modal. A G17, for example, is cancelled only by a G18 or G19
The X/Y plane (using the X and Y axis) is the most common orientation for circular
interpolation, therefore, G17 will be used throughout the examples in this text
Slide 12
Circular Interpolation
Slide 13
Circular Interpolation
The MCU requires the spindle be positioned at the start of the arc when the G02/G03
command is given
The current spindle position is the beginning arc coordinates. The axis coordinates
given on the G02/G03 line are the spindle ending points of the arc motion
There are two methods used to specify arc centerpoints: arc vector method and
radius method (see Figure 9-8)
The arc vector method involves specifying the coordinates of the arc centerpoint as
X/Y values
In the radius method, the arc centerpoint is calculated internally by the MCU. The
programmer simply specifies the radius value required
Slide 14
Circular Interpolation
Since X, Y, and Z addresses are used to specify the end point of an arc,
secondary addresses are required to specify the centerpoint of an arc. The
following addresses are used to designate arc center points
Since circular interpolation occurs only in two axes, only two of these three codes
will be required to generate an arc. When using the X/Y plane for milling arcs, as this
text does, the I and J addresses are used
Slide 15
Circular Interpolation
Absolute Coordinates
In other words, the center of the arc is specified just as if it were a cutter
coordinate using absolute positioning
Slide 16
Circular Interpolation
Although the radius method is easier to use than the arc vector method, the
latter method is still common
This is most likely because the radius method became available only with
the advent of modern CNC controllers
Slide 17
Circular Interpolation
This example is typical of FANUC, General Numeric, and other FANUC- style controls:
Slide 18
Circular Interpolation
The following code uses the from circle center method to specify arc centerpoints:
Slide 19
Circular Interpolation
Radius Method
The following code mills the part using the radius method of specifying arc center coordinate:
Slide 20
Circular Interpolation
The programs just discussed deal with simple arcs which intersect a line
parallel to a machine axis
The cutter offsets for these situations can be found by using the formulas
Slide 21
Summary 1/3
Circular interpolation is the ability to cut arcs or arc segments. Arcs are
cut by means of a series of choral segments generated by the MCU to
approximate the arc curvature
Slide 22
Summary 2/3
G02 turns on clockwise interpolation. G03 turns on counterclockwise interpolation
There are two methods used to specify the arc center-points to the MCU: the arc
vector method and the radius method
When using the arc vector to specify center-points, some controls require the
center-points to be given in absolute coordinates, some in incremental
coordinates from the cutter center to the circle center, and other in incremental
coordinates from the circle center to the cutter center
The format for circular interpolation for the arc vector method is:
G17 G02
G18 G03 X… Y… Z… I… J… K…
G19
The format for circular interpolation for the radius method is:
G17 G02
G18 G03 X… Y… Z… R…
G19
G17 G02/G03 X… Y… R…
Slide 24
Vocabulary Introduced in this section
Arc center-points
Circular interpolation
Linear interpolation
Radius method
To circle center
Slide 25
End of Section
Reference Note
Copyright University of Patras, School of Engineering, Dept. of
Mechanical Engineering & Aeronautics, Dimitris Mourtzis. Dimitris
Mourtzis. «Computer Numerical Control of Machine Tools. Linear and
Circular Interpolation». Version: 1.0. Patras 2015. Available at:
https://eclass.upatras.gr/courses/MECH1213/
License Note
This material is provided under the license terms of Creative Commons
Attribution-NonCommercial-NoDerivatives (CC BY-NC-ND 4.0) [1] or newer,
International Version. Works of Third Parties (photographs, diagrams etc) are
excluded from this license and are referenced in the respective “Third Parties’
works Note”
[1] https://creativecommons.org/licenses/by-nc-nd/4.0/
The owner can provide the licensee a separate license for commercial use upon
request.
Notes Preservation
Any reproduction or modification of this material must
include:
the Reference Note
the License Note
the Notes Preservation statement
the Third Parties’ Works Note (if exists)
as well as the accompanying hyperlinks.