4476 Writing A CNC Program
4476 Writing A CNC Program
Lecture Videos
Objective
Use a pointed engraving cutter to cut a light square into a piece of aluminum.
Workpiece: 5.0 wide by 2.0 tall by 6.0 long.
It will be mounted in a vise as shown in the next slide.
The square will be 3.0 x 3.0 (it will be offset 1.0 inches from the corner of the
workpiece).
Depth of the engraving: 0.020 inches deep.
The dimensional tolerance of the square is +/- 0.010 and the position tolerance
of the rectangle on the block is +/- 0.050.
Step 1 - Eliminate Assumption
Use a header to set
modal commands
that affect machine
motion and offsets.
This is the similar to the
standard mill header we will use
in this class.
G17 – Selects the plane in which arcs will be made.
G20 – Sets the units to inches.
G91 - Incremental
“Go this far”
Step 2 – Establish The Coordinate System
Setting G54-G59 on the Controller
G54-G59 – Work Coordinate System Offsets
Setting the G55 Y axis origin to be the top edge of the part.
T and H – Tool Numbers and Length Offsets
Mills use a separate tool and tool offset address,
for example: T08 H08
M08 - Coolant On
M09 - Coolant Off
G0 or G00 Rapid
Step 3- Program Toolpaths Move
Like the G01 command, G02 and G03 require a feedrate (F) as well as destination (or distance)
coordinates (X, Y, and/or Z). The feedrate will default to the current feedrate if it has been
commanded previously in the program. For full circles, the X, Y and Z can be omitted (see I, J, K
Method below).
Lecture video on arcs STARTS HERE
Any of these can
G02 & G03 - I, J, K Method be omitted. It’s rare
to use K in this
class.
OK!
NOT
OK!
I, J, K Example 2 - Full Circle
Sometime you have to use IJK
method. For instance, if you are
programming a full circle: