Professional Documents
Culture Documents
2
Content
Introduction to CNC Machining
Program Planning
Current location
Introduction to CNC Machining
Points for geometry and reference
All absolute coordinates refer to a singular starting place which is called origin.
In CNC work it’s called program reference zero (PRZ). This is the origin of the grid.
The first thing during planning is to fined the PRZ relative to the part’s geometry.
Machine home (M/H): It is fixed location with the machine envelope. Not used for
program execution.
Introduction to CNC Machining
Points for geometry and reference
Local Reference Zero (LRZ) point is also used to simplify programming, repeating
same program at different positions and save time.
Introduction to CNC Machining
Axis moves
Rapid travel (rapid): fastest speed the machine can produce to reposition for
another cut or to change tools or parts. The tool must be slowed to feed rate at a
distance from the workpiece. The distance takes account clamps, vise, chuck jaws
and other holding tooling.
Retract Height (R): safe travel height above the work/tooling where the tool must
pull back several times, the move over the work surface as in drilling a series of holes
for example.
Introduction to CNC Machining
Axis moves
Introduction to CNC Machining
Axis moves
G01
G02 - Clockwise
G03 - Counterclockwise
Introduction to CNC Machining
Polar Coordinates
Introduction to CNC Machining
Commonly used codes from last year
• G00 Rapid positioning G01 Linear Interpolation
• G02 Circular Interpolation Clockwise
• G03 Circular Interpolation Anti-clockwise
• G90 Absolute Coordinates. G91 Incremental Coordinates
• M03 Spindle on clockwise
• M30 Program end and reset M04 Spindle on anti-clockwise
• See blackboard (Lab session 1) for full list of codes
Using a smaller cutter than that for which the path was written,
the offset must be a minus number equal to the difference in
actual tool radius and intended – a minus compensation to move
the cutter closer to the work by the offset amount.
Operating a CNC Machine
Cutter compensated programs
Here the program traces the shape
of the geometry. It is written with no
cutter values in the program but the
programmer had a size in mind, and
listed it on the setup sheet.
Without a stored radius comp value -
you might think of it as a cutter path, The Cutter Radius
but with a cutter of zero radius. A
pencil in the spindle would trace the is the offset
part profile. A Positive Value
As such all real cutters will require positive offset values equal to
their radius to be entered in tool radius comp. The control then
moves the cutter off the geometry by it’s real radius and makes a
correct part.
Operating a CNC Machine
Cutter compensated programs
In shops where they create their own programs, they do not mix
program types. Either part path or cutter center-line are used
exclusively.
But the big issue arises in a job shop where outside customers
provide jobs with programs. Then the setup person MUST know
which type and enter tool offsets accordingly.
At best, bad parts will be made missing this setup detail, but big
crashes can occur if you get this step wrong.
Operating a CNC Machine
Cutter compensated programs
What offset change amount and value (+/-) will bring each
exactly to size? They are not on the same object; each feature
is an individual problem.
Operating a CNC Machine
Lathe Tool Selection
Lathe cutter selection has another aspect, in that the shank shape
and the direction it is pointing must be considered too.
Otherwise tool interference can occur during program runs.
When choosing lathe tools, the shape and/or the way it is
orientated relative to the machine axes must also be part of the
compensation.
The control will not know how to approach and back away from
the geometry if this data is not included in the offset memory.
Tool shape and direction is selected in one of two ways depending
on the control: from a library or by an approach vector.
Operating a CNC Machine
Lathe Tool Selection
Cutting tool
Front Jaw
Fixed Jaw
Machine Vice
Machine Table
Operating a CNC Machine
Changing Tool and Tool Height Offset
Crash
Centerline X
Outer face Z
Program Planning
Turning Job PRZ
Sometimes, the outer face isn’t the functional basis for the object. There are
three PRZ options for this job:
Tool and Die is a rewarding, well-paid career that begins by learning basic machining!
Program Planning
Selecting holding methods
Often the greatest challenge is how will the work be held?
We’ve just looked at fixtures, a common industrial solution.
But remember, if they are planned, then one must also begin another chain
of events to get the fixture ready when the job goes to the machine!
In the drive to be creative, don’t dismiss the obvious simple solutions of:
Standard chucks
Standard Collets
Vises
Direct Bolt Downs (on mills)
Program Planning
Selecting holding methods
When deciding between standard tooling and custom made, consider how
many times this job is anticipated to be run.
Sometimes, a few hundred dollars spent on custom holding tools returns
thousands in quick machine setup and quick part changing, compared to
using standard tools.
Again, evidence of how critical planning can be to a company.
Don’t miss the tip of using the part program to make the jaws! It’s not a beginner
method because it requires editing part program compensation to cut to the other
side of the geometry line, along with changing or hiding other program details. But it
does work!
Program Planning
Selecting holding methods
How else would you hold this ball end clevis to cut the threads without a set of
soft jaws?
Program Planning
Selecting holding methods
Program Planning
Selecting holding methods
Program Planning
CAM Mill Programming for CNC Machinist
Geometry Acquisition
A CAM job today usually begins by importing a CAD engineering drawing as a
wireframe or solid model created with CNC in mind.
But the part geometry model can be created by using the draw utility in CAM
software.
CAM Mill Programming for CNC Machinist
Geometry Acquisition
• Unless the lathe features multi-axes, or live tooling, flat two-
dimensional geometry is all that’s needed for X-Z motion.
• However, for milling, both 2-D and 3-D part models are
useful. Some shapes are simple enough that 2-D wireframes
are fine.
• In CAM software, when the drawing is flat and two-
dimensional, we add cut depth during parameter entry.
• But by adding Z depth to the 3-D drawing, the toolpath
parameter for Z depth will be automatic.
CAM Mill Programming for CNC Machinist
Geometry Acquisition
Before starting to draw, scan these 10 definitions.
Coordinate position – (X, Y, Z relative to origin), End point – of another
existing entity, Middle point – along another entity, Relative point – X, Y, Z
distance from any other known point, Polar position – angular and radial
distance, Parallel distance – on a line a given distance from another entity,
Arc center – center of existing arc, Tangent or perpendicular – to another
entity, Point – selects a unique previously drawn, Mouse sketch
approximate – no finite location until after it’s placed on the drawing. At
placement, the software will show the position in X, Y, and Z.
They are the basics and transcend all CAD/CAM programs.
If you’ve drawn before, they will be the same on any software, for they are the
possibilities.
CAM Mill Programming for CNC Machinist
Geometry Acquisition
CAM Mill Programming for CNC Machinist
Geometry Acquisition
CAM Mill Programming for CNC Machinist
Geometry Acquisition
CAM Mill Programming for CNC Machinist
Tool path
The solid is done and the job has been planned to hold excess grip stock in
a vise—to be milled away later.
Note axis directions and part orientation.
Note the program segments.
PRZ
CAM Mill Programming for CNC Machinist
Tool path
To create an effective toolpath, the programmer must first plan the
sequence of operations.
They will become segments that, when linked together, form the
complete toolpath.
Segment 1: Cut Outer Profile(s)
Segment 2: Plunge and Cut Pocket
Segment 3: Drill the Central Hole
CAM Mill Programming for CNC Machinist
Tool path
It begins with major parameters
Chain Elements
End
Chain
OK
CAM Mill Programming for CNC Machinist
Tool path
Clicking
+ End Chain and
√ OK
Trochoidal Motion
No sharp corners
-Spiral entry
-Smooth entry/exit