CNC Programming Enhanced Learning System Mill
CNC Programming Enhanced Learning System Mill
CNC Programming Enhanced Learning System Mill
PROGRAMMING
ENHANCED LEARNING
SYSTEM
MILL
Limit of Liability/Disclaimer of Warranty: While the Publisher and Author have used their best efforts in
preparing this book, they make no representations or warranties with respect to the accuracy or
completeness of the contents of this book and specifically disclaim any implied warranties of
merchantability or fitness for a particular purpose. No warranty may be created or extended by
representatives. The advice and strategies contained in this book may not be suitable for the readers or
users situation. Neither the publisher nor author shall be liable for any damage, loss or any other damages,
including but not limited to special, incidental, consequential, or other damages including personal.
Notice
CamInstructor Inc. reserves the right to make improvements to this book at any time and without notice.
Trademarks
All brands are the trademark of their respective owners.
Printed in Canada
Requirements
Use of the Multi-media CD/DVD requires a computer with speakers, and CD/DVD ROM.
September 1, 2011
www.engineerref.com
TABLE OF CONTENTS
www.engineerref.com
TABLE OF CONTENTS
www.engineerref.com
Table of Contents - 2
TABLE OF CONTENTS
CNC PART #13 - CUTTER COMPENSATION CREATE THE PROGRAM ........................ 108
CNC PART #14 - CUTTER COMPENSATION CREATE THE PROGRAM ........................ 115
APPENDIX ..........................................................................................................................123
www.engineerref.com
Table of Contents - 3
www.engineerref.com
Table of Contents - 4
CNC PROGRAMMING
WORKBOOK
LESSON-1
ABSOLUTE & INCREMENTAL POSITIONING
www.engineerref.com
Page 1
LESSON-1 – Introduction
The CNC Enhanced Learning System includes the CNC Programming Student Workbook and a DVD with the
following Videos and support files on it.
1. Self-Learning Videos
2. NCPlot Installation Software
To view what’s on the DVD just follow the instructions below. We encourage you to take a few moments to
watch the Getting Started video on the DVD as it provides an overview of how the system works.
Just pop the DVD into your computer, the autorun feature should display the AutoPlay window. Click on the
Run CNC-Mill.exe file as shown below. Note, if this window is not displayed after putting the DVD into your
computer, go to the file manager feature on your computer and select the DVD drive and double click on the
Run CNC-Mill.exe file.
www.engineerref.com
Page 2 Lesson 1 - 2
The Menu is your easy access to the Instructional Videos that will guide you through the content and
provide you with all the information you need to get through this workbook. You will notice that there are
10 Lessons and a Getting Started link. Each Lesson matches the corresponding lesson in this workbook. Be
sure to watch the video first, it will guide you to refer to the workbook.
Your first task is to watch the Getting Started Video. Don’t worry about taking notes or filling out anything in
the workbook while you watch the Getting Started Video, it is just a preview of what to expect.
The second item on the DVD is the NCPlot installation file. We have provided this to you free of charge so
you can install NCPlot onto your computer. NCPlot Software enables you to type in the CNC Code (G Code)
and watch what it will do. It is a handy tool to see if your CNC Programs are correct. To access the NCPlot
installation file put the DVD into your computer and locate the NCPlot_V1-2 folder as shown below.
Double click on the folder and then double click on the NCPlot_v120.exe file and follow the onscreen
instructions.
www.engineerref.com
Lesson 1 - 3 Page 3
LESSON-1 – Introduction
Okay let’s get started.
Step 1 - Plug in your headphones or make sure your speakers are plugged in and turned on.
Step 2 - Put the DVD into your computer and launch the menu.
Step 3 - Click on Getting Started and watch the video through to the end. Feel free to pause and rewind the
video if you need to watch something again.
Step 4 - Click on Lesson 1 and then click on Lesson-1 – Unit-1, as indicated it is 9 minutes long.
Step 5 - Proceed through the Videos in the proper order and make sure to follow along with the Workbook.
Good luck and have fun.
www.engineerref.com
Page 4 Lesson 1 - 4
LESSON-1 – EXERCISE #1 - ABSOLUTE & INCREMENTAL POSITIONING
STARTING AT THE POINT O (ORIGIN), DESCRIBE THE PATH FROM O THROUGH ALL 9 POINTS AND
BACK TO THE POINT O USING G90 & G91
G90 X Y G91 X Y
O (Origin) 0 0 O→1 3 3
1 3 3 1→2 0 2
2 3 5 2→3 2 2
3 5 7 3→4 -6 0
4 -1 7 4→5 -2 -3
5 -3 4 5→6 -3 -6
6 -6 -2 6→7 4 -3
7 -2 -5 7→8 6 -1
8 4 -6 8→9 3 3
9 7 -3 9→O -7 3
www.engineerref.com
Lesson 1 - 5 Page 5
LESSON-1 – EXERCISE #2 - ABSOLUTE & INCREMENTAL POSITIONING
STARTING AT THE POINT O (ORIGIN), DESCRIBE THE PATH FROM O THROUGH ALL 9 POINTS AND
BACK TO THE POINT O USING G90 & G91
G90 X Y G91 X Y
O (Origin) O→1
1 1→2
2 2→3
3 3→4
4 4→5
5 5→6
6 6→7
7 7→8
8 8→9
9 9→O
www.engineerref.com
Page 6 Lesson 1 - 6
LESSON-1 – EXERCISE #3 - ABSOLUTE & INCREMENTAL POSITIONING
STARTING AT THE POINT O (ORIGIN), DESCRIBE THE PATH FROM O THROUGH ALL 9 POINTS AND
BACK TO THE POINT O USING G90 & G91
G90 X Y G91 X Y
O (Origin) O→1
1 1→2
2 2→3
3 3→4
4 4→5
5 5→6
6 6→7
7 7→8
8 8→9
9 9→O
www.engineerref.com
Lesson 1 - 7 Page 7
LESSON-1 – EXERCISE #4 - ABSOLUTE & INCREMENTAL POSITIONING
STARTING AT THE POINT O (ORIGIN), DESCRIBE THE PATH FROM O THROUGH ALL 9 POINTS AND
BACK TO THE POINT O USING G90 & G91
G90 X Y G91 X Y
O (Origin) 0 0 O→1 0.750 0.500
1 0.750 0.500 1→2 -0.200 1.875
2 0.550 2.375 2→3 0.400 -1.000
3 0.950 1.375 3→4
4 4→5
5 5→6
6 6→7
7 7→8
8 8→9
9 9→O
www.engineerref.com
Page 8 Lesson 1 - 8
CNC PROGRAMMING
WORKBOOK
CODE FUNCTION
Rapid traverse motion; This is used for non-cutting rapid moves of the machine axis, or
rapid retract moves after cuts have been completed.
G00
Maximum rapid motion (I.P.M.) of a CNC Machine will vary dependent on machine
model.
Linear interpolation motion; Used for cutting in a straight line under a controlled
G01 feedrate. Maximum feed rate (I.P.M.) of a CNC Machine will vary depending on the
model of the machine.
LESSON-2
INTRODUCTION TO CNC CODES
www.engineerref.com
Page 9
LESSON-2 - INTRODUCTION TO CNC CODES
AUTOMATIC TOOL CHANGER
STANDARD TOOL CAROUSEL
The CNC Machining Center used in this text is set-up with following tools.
All program examples and exercises in this workbook are using the tools and tool
numbers listed below.
10 #4 Center Drill
www.engineerref.com
Page 10 Lesson 2 - 2
COMMONLY USED PREPARATORY G CODES
CODE FUNCTION
Rapid traverse motion; This is used for non-cutting rapid moves of the machine axis, or
rapid retract moves after cuts have been completed.
G00
Maximum rapid motion (I.P.M.) of a CNC Machine will vary dependent on machine
model.
Linear interpolation motion; Used for cutting in a straight line under a controlled
G01 feedrate. Maximum feed rate (I.P.M.) of a CNC Machine will vary depending on the
model of the machine.
www.engineerref.com
Lesson 2 - 3 Page 11
COMMONLY USED MISCELLANEOUS M CODES
CODE FUNCTION
The M00 code is used for a Program Stop. The spindle stops and the coolant is turned
M00 off.
Pressing CYCLE START again will continue the program.
Starts the spindle CLOCKWISE used for most machining. Must have a spindle speed
defined.
M03
The M03 is used to turn the spindle on at the beginning of program or after a tool
change.
M04 Starts the spindle COUNTERCLOCKWISE. Must have a spindle speed defined.
The tool change command along with a tool number will action a tool change. This
command will automatically stop the spindle, Z-axis will move up to the machine zero
M06
position and the selected tool will be put in the spindle. The coolant pump will turn off
right before executing the tool change.
Note: Only one “M” code can be used per line. And the M-codes will be the last command to be executed in
a line, regardless of where it is located in that line.
www.engineerref.com
Page 12 Lesson 2 - 4
EXAMPLE OF PROGRAM START-UP BLOCKS
www.engineerref.com
Lesson 2 - 5 Page 13
EXAMPLE OF PROGRAM END BLOCKS
N120 G28 G91 Z0 ; / *N120 G53 Z0 Machine Zero Return - Z axis Send to machine
zero Z-axis first to
N130 G28 X0 Y0 / *N130 G53 X0 Y0 Machine Zero Return - X, Y axis avoid any crash.
N160 G00 G90 G54 X1.0 Y1.0 S4000 M03 Turn on the spindle and Rapid traverse to X1. Y1.
*G53 - Positions the machine axis relative to Machine Home. It is non modal.
www.engineerref.com
Page 14 Lesson 2 - 6
RAPID G00 AND LINEAR G01 INTERPOLATION
www.engineerref.com
Lesson 2 - 7 Page 15
LESSON-2 - CNC - PART #1
www.engineerref.com
Page 16 Lesson 2 - 8
LESSON-2 - CNC - PART #1
WORK OUT THE X AND Y COORDIANTES FOR HOLES 1,2 AND 3
X0Y0 is at the centre of the part
G90 X Y
1
2
3
www.engineerref.com
Lesson 2 - 9 Page 17
LESSON-2 - CNC - PART #1
PROGRAM TO SPOT DRILL THE THREE HOLES ONLY USING A COMBINATION OF
G00 AND G01 (CANNED CYCLE DRILL WILL BE USED LATER)
Below is the program to spot drill the three holes with an explanation of each block
Use a 0.375” diameter Spot Drill Tool # 6
Spindle Speed = 2750 Feed rate = 11 IPM
Spot Drill Depth = Z-0.150”
X0Y0 is at the centre of the part
Z=0 is the top of the part.
Information inside the parenthesis ( ) is a comment.
The CNC control will ignore all text between the parenthesis
www.engineerref.com
Page 18 Lesson 2 - 10
CNC PROGRAMMING
WORKBOOK
LESSON-3
CREATING CNC PROGRAMS - CNC PART #1
www.engineerref.com
Page 19
LESSON-3 - CNC - PART #1
PROGRAM TO SPOT AND DRILL THE THREE HOLES USING A COMBINATION OF
G00 AND G01 (CANNED CYCLE WILL BE USED LATER)
Below is the program to spot and drill the three holes with an explanation of each block
Use a 0.375” diameter Spot Drill Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Use a 0.250” diameter Drill Tool # 7
0.250” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Spot Drill Depth = Z-0.150”
Drill Depth = Z-0.350”
X0Y0 is at the centre of the part
Z=0 is the top of the part.
www.engineerref.com
Page 20 Lesson 3 - 2
LESSON-3 - CNC - PART #1 - Continued
N210 X0 Y0 (G00 is modal - Move at rapid in the X and Y axis to hole #2)
N220 G01 Z-0.35 (Hole #2 - Feed down to Z depth, at 15 inches per minute, Feed rate is modal)
N230 G00 Z0.1 (G00- Retract out of hole #2 at rapid to 0.1 above the top of the work piece)
N240 X1.0 Y0.875 (G00 is modal - Move at rapid in the X and Y axis to hole #3)
N250 G01 Z-0.35 (Hole #3 - Feed down to Z depth at 15 inches per minute, Feed rate is modal)
N260 G53 G00 Z0 M05 (G53 – Machine Zero positioning, non modal. Rapid to machine zero in Z, switch
spindle off)
N270 G53 X-15.0 Y0 (G53 – Rapid in relation to machine zero X-15.0 and Y0)
N270 M30 (Program end rewind program to the beginning)
% (Program must begin and end with a %)
www.engineerref.com
Lesson 3 - 3 Page 21
www.engineerref.com
Page 22 Lesson 3 - 4
CNC PROGRAMMING
WORKBOOK
LESSON-4
DRILLING USING CANNED CYCLES
www.engineerref.com
Page 23
LESSON-4 DRILL CANNED CYCLE G81
This G code permits the inclusion of multiple axis motions on one block of program. It is used to
reduce the length of program. The figure below shows the axis motions that are included with a
Canned Cycle Drill.
All Z axis motions are in ABSOLUTE with any other axis motions unaffected.
In a canned cycle drill, the cutter moves at rapid to the X and Y, then to a height above the part at
rapid rate to the R Plane, which is a point above the work surface. From the R Plane the cutter feeds
to the Z-depth at the specified feedrate. When the cutter reaches the Z depth, it retracts at rapid
rate to the R Plane. G99 returns the tool to the R Plane after each hole, G98 returns the tool to the initial
starting plane.
www.engineerref.com
Page 24 Lesson 4 - 2
DEEP HOLE PECK DRILL CANNED CYCLE G83
This G code is similar to G81 but is used for drilling when the tool must be withdrawn periodically
to allow chips to be removed from the hole.
This cycle allows the tool to rapid to the R Plane, feeds towards the Z depth in increments
(traversing to the R Plane and back to the point where drilling was interrupted after each
increment) until the tool reaches the final Z depth.
www.engineerref.com
Lesson 4 - 3 Page 25
LESSON-4 - CNC - PART #1
CREATE THE PROGRAM TO SPOT AND DRILL THE THREE HOLES USING CANNED
CYCLE G81
Use a 0.375” diameter Spot Drill Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Use a 0.250” diameter Drill Tool # 7
0.250” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Spot Drill Depth = Z-0.150”
Drill Depth = Z-0.350”
X0Y0 is at the centre of the part
Z=0 is the top of the part.
www.engineerref.com
Page 26 Lesson 4 - 4
LESSON-4 - CNC - PART #1 - Continued
N150 G99 G81 Z-0.35 R0.1 F15.0 (Hole #1 – G81 - Feed down to Z depth at 15 inches per minute,
and then retract at rapid to Z0.1, this is the R0.1 value.
G99 returns the drill tip to the R value after drilling each hole)
N160 X0. Y0. (Hole #2 - Move at rapid in the X and Y axis to Hole #2. Feed down to Z depth at 15
inches per minute and then retract at rapid to Z0.1)
N170 X1.0 Y.875 (Hole #3 - Move at rapid in the X and Y axis to Hole #3. Feed down to Z depth at 15
inches per minute and then retract at rapid to Z0.1)
N180 G80 (Cancel Canned Cycle Drill)
N190 G53 G00 Z0 M05 (G53 – Rapid to machine zero in Z, switch spindle off)
N200 G53 X-15.0 Y0 (G53 – Rapid in relation to machine zero X-15.0 and Y0)
N210 M30 (Program end rewind program to the beginning)
% (Program must begin and end with a %)
www.engineerref.com
Lesson 4 - 5 Page 27
LESSON-4 – WHAT COULD GO WRONG?
IDENTIFY SOME OF THE COMMON PROBLEMS THAT COULD RESULT IN A
SCRAPPED PART
www.engineerref.com
Page 28 Lesson 4 - 6
CNC PROGRAMMING
WORKBOOK
LESSON-5
DRILLING USING CANNED CYCLES - CONTINUED
www.engineerref.com
Page 29
LESSON-5 - CNC - PART #2
www.engineerref.com
Page 30 Lesson 5 - 2
LESSON-5 - CNC - PART #2
WORK OUT THE ABSOLUTE COORDINATES FOR THE NINE HOLES
X0Y0 is at the centre of the part
G90 X Y
1
2
3
4
5
6
7
8
9
www.engineerref.com
Lesson 5 - 3 Page 31
LESSON-5 - CNC - PART #2
CREATE THE PROGRAM TO SPOT AND DRILL THE NINE HOLES USING CANNED
CYCLE G81
Use a 0.375” diameter Spot Drill Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Use a 0.250” diameter Drill Tool # 7
0.250” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Spot Drill Depth = Z-0.150”
Drill Depth = Z-0.350”
X0Y0 is at the centre of the part
Z=0 is the top of the part.
Type up your program and check it for correctness using NCPlot
%
O4 ( Program #4 - CNC-PART-2-SPOT AND DRILLING USING CANNED CYCLE DRILL G81)
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Page 32 Lesson 5 - 4
LESSON-5 - CNC - PART #2 - Continued
www.engineerref.com
Lesson 5 - 5 Page 33
LESSON-5 - CNC - PART #2 – TYPING UP YOUR PROGRAM
USING WINDOWS NOTEPAD
Use Windows Notepad to type up your CNC program
1. Launch Windows Notepad Start>All Programs>Accessories>Notepad.
8. Start typing your program, ALL CAPITALS for the CNC program codes. Please note on the second line
of this program O4 this is a letter O.
www.engineerref.com
Page 34 Lesson 5 - 6
LESSON-5 - CNC - PART #2 – TYPING UP YOUR PROGRAM
USING WINDOWS NOTEPAD
9. When you have completed typing your program Save your file, File>Save or the shortcut Ctrl+S.
Now you can check for any Letter O’s in your CNC program. Please Note there should not be any
letter O’s in your CNC program, G00 is “G Zero Zero” not G Letter O!
11. Type in the Letter O in the Find what: space. Now hit the Find Next button. There will be some
letter O’s in your program, for example the Letter O in the program number at the start of the
program and any notes you have in your program enclosed by parenthesis ( ). But for the coding no
letter O’s.
www.engineerref.com
Lesson 5 - 7 Page 35
LESSON-5 - CNC - PART #2 – TYPING UP YOUR PROGRAM
USING WINDOWS NOTEPAD
13. When you have checked your program select File>Save your file or the shortcut Ctrl+S.
14. You may require a print of your CNC program to do this select File>Print or the shortcut Ctrl+P.
15. Select which printer you wish to send the file to and then hit the Print button
16. To open your CNC program at a later date launch Windows Notepad.
Start>All Programs>Accessories>Notepad.
17. Select File>Open.
18. Change the Files of type: to All Files and browse for your CNC program.
www.engineerref.com
Page 36 Lesson 5 - 8
LESSON-5 - CNC - PART #2 - BACKPLOTTING
Use NCPlot to check for correctness
Note: If you do not have NCPlot installed on your computer please go to the last page of the appendix for
installation instructions.
1. After typing up your program in Notepad launch the NCPlot application by clicking on the icon on
your desktop or Start>All Programs>NCPlot v1.3> NCPlot v1.3
2. Click on the open file icon and browse to your file location and select the CNC file to plot.
4. You plot should appear as below. The point on the left of the screen shot below is the G53 X-15.0 Y0
movement in the program.
www.engineerref.com
Lesson 5 - 9 Page 37
LESSON-5 - CNC - PART #2 - BACKPLOTTING
7. Review and experiment with the various pull down menu options:
8. Press the function F6 on your keyboard to action a Zoom Window. Zoom in on part of your plot.
9. Select Ctrl+F on your keyboard to open the Find dialog box. In the Find What section type in the
letter O and then hit the Find Next button to see if there are any letter O’s in the G and M codes.
10. You can use NCPlot instead of Windows Notepad to type up your CNC program.
www.engineerref.com
Page 38 Lesson 5 - 10
LESSON-5 - CNC - PART #3
PART #3 IS SIMILAR TO PART #2 BUT HAS DIFFERENT DIMENSIONS FOR THE
HOLE CENTRES
www.engineerref.com
Lesson 5 - 11 Page 39
LESSON-5 - CNC - PART #3
WORK OUT THE ABSOLUTE COORDINATES FOR THE NINE HOLES
X0Y0 is at the centre of the part
G90 X Y
1
2
3
4
5
6
7
8
9
www.engineerref.com
Page 40 Lesson 5 - 12
LESSON-5 - CNC - PART #3
CREATE THE PROGRAM TO SPOT AND DRILL THE NINE HOLES USING CANNED
CYCLE G81
Use a 0.375” diameter Spot Drill Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Use a 0.250” diameter Drill Tool # 7
0.250” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Spot Drill Depth = Z-0.150”
Drill Depth = Z-0.350”
X0Y0 is at the centre of the part
Z=0 is the top of the part.
Type up your program and check it for correctness using NCPlot
%
O5 ( Program #5 - CNC-PART-3 - SPOT AND DRILLING USING CANNED CYCLE DRILL G81)
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Lesson 5 - 13 Page 41
LESSON-5 - CNC - PART #3 - Continued
www.engineerref.com
Page 42 Lesson 5 - 14
LESSON-5 - CNC - PART #3 - BACKPLOTTING
Use NCPlot to check for correctness
1. After typing up your program in Notepad launch the NCPlot application by clicking on the icon on
your desktop or Start>All Programs>NCPlot v1.3> NCPlot v1.3
2. Click on the open file icon and browse to your file location and select the CNC file to plot.
www.engineerref.com
Lesson 5 - 15 Page 43
LESSON-5 - CNC - PART #4
www.engineerref.com
Page 44 Lesson 5 - 16
LESSON-5 - CNC - PART #4
WORK OUT THE ABSOLUTE COORDINATES FOR THE ELEVEN HOLES
X0Y0 is at the centre of the part
Use Trigonometry to work out the center positions of the holes or draw the part up on a CAD system
and then identify the center positions of each hole.
G90 X Y
1 0 0
2
3
4
5
6
7
8
9
10
11
www.engineerref.com
Lesson 5 - 17 Page 45
LESSON-5 - CNC - PART #4
CREATE THE PROGRAM TO SPOT AND DRILL THE ELEVEN HOLES USING CANNED
CYCLE G81
Use a 0.375” diameter Spot Drill Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Use a 0.250” diameter Drill Tool # 7
0.250” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Spot Drill Depth = Z-0.150”
Drill Depth = Z-0.350”
X0Y0 is at the centre of the part
Z=0 is the top of the part.
Type up your program and check it for correctness using NCPlot
%
O99 (CNC-PART-4 - SPOT AND DRILLING USING CANNED CYCLE DRILL G81)
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Page 46 Lesson 5 - 18
LESSON-5 - CNC - PART #4 - Continued
www.engineerref.com
Lesson 5 - 19 Page 47
www.engineerref.com
Page 48 Lesson 5 - 20
CNC PROGRAMMING
WORKBOOK
LESSON-6
STRAIGHT LINE MILLING – LINEAR
INTERPOLATION
www.engineerref.com
Page 49
LESSON-6 – STRAIGHT LINE MILLING
LESSON-6 – EXERCISE #1 - ABSOLUTE & INCREMENTAL POSITIONING
DIRECTION OF CUT CW
STARTING AT THE POINT O (ORIGIN), DESCRIBE THE ENDMILL PATH FROM O THROUGH ALL THE POINTS
AND BACK TO THE POINT O USING G90 & G91. CUTTER DIAMETER = 0.5” RADIUS = 0.25’
G90 X Y G91 X Y
O 0 0 O→1 0.5 0.25
1 0.5 0.25 1→2 0 2.5
2 0.5 2.75 2→3
3 3→4
4 4→5
5 5→6
6 6→1
1 1→O
O
www.engineerref.com
Page 50 Lesson 6 - 2
LESSON-6 - CNC - PART #5
www.engineerref.com
Lesson 6 - 3 Page 51
LESSON-6 - CNC - PART #5
WORK OUT THE ABSOLUTE COORDINATES FOR POSITION 1, 2 AND 3
X0Y0 is at the lower left corner of the part
These X and Y coordinates will be used to machine the L shaped slot
G90 X Y
1
2
3
www.engineerref.com
Page 52 Lesson 6 - 4
LESSON-6 - CNC - PART #5
PROGRAM TO MACHINE THE “L SHAPED” SLOT
Use a 0.5” diameter End Mill Tool # 4
Speed = 3050 Feed rate =20 IPM
X0Y0 is at the lower left corner of the part
Z=0 is the top of the part.
The slot depth is 0.125”
Enter the part at Position 1 and sink to depth using linear
interpolation G01
Then move to Position 2 and finally Position 3
In earlier programs we used G53 to return the machine to coordinates in relation to the Machine Zero
(home position). G28 is another code that will accomplish this. G28 is a more common way to send the
machine to machine zero, it will work on many different types of CNC machines.
As you can see above at block N130, G28 is activated in G91 incremental mode, and then at block N150 the
program is returned to G90 absolute mode.
www.engineerref.com
Lesson 6 - 5 Page 53
LESSON-6 - CNC - PART #6
www.engineerref.com
Page 54 Lesson 6 - 6
LESSON-6 - CNC - PART #6
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE CONTOUR
X0Y0 is at the lower left corner of the part
Use a 0.5” diameter End Mill Tool # 4
Start at X-0.5 Y3.125 and machine the contour in a clockwise direction – climb milling
G90 X Y
1 -0.5 3.125
2
3
4
5
6
7
8
9
10
11
www.engineerref.com
Lesson 6 - 7 Page 55
LESSON-6 - CNC - PART #6
PROGRAM TO MACHINE THE CONTOUR
Use a 0.5” diameter End Mill Tool # 4
Speed = 3050 Feed rate =20 IPM
X0Y0 is at the lower left corner of the part
Z=0 is the top of the part.
Machine the contour at a depth is 0.125”
www.engineerref.com
Page 56 Lesson 6 - 8
LESSON-6 - CNC - PART #7
www.engineerref.com
Lesson 6 - 9 Page 57
LESSON-6 - CNC - PART #7
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE CONTOUR
X0Y0 is at the lower left corner of the part
Use a 0.5” diameter End Mill Tool # 4
Start at X-0.5 Y3.0 and machine the contour in a clockwise direction – climb milling
G90 X Y
1 -0.5 3.0
2
3
4
5
6
7
8
9
10
11
www.engineerref.com
Page 58 Lesson 6 - 10
LESSON-6 - CNC - PART #7
CREATE THE PROGRAM TO MACHINE THE CONTOUR
Use a 0.5” diameter End Mill Tool # 4
Speed = 3050 Feed rate =20 IPM
X0Y0 is at the lower left corner of the part
Z=0 is the top of the part.
Machine the contour at a depth is 0.125”
Start at X-0.5 Y3.0 and machine the contour in a clockwise
direction – climb milling
Type up your program and check it for correctness using NCPlot
%
O009 ( Program #9 - CNC-PART-7 - STRAIGHT LINE MILLING)
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Lesson 6 - 11 Page 59
LESSON-6 - CNC - PART #8
www.engineerref.com
Page 60 Lesson 6 - 12
LESSON-6 - CNC - PART #8
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE CONTOUR
X0Y0 is at the lower left corner of the part
Use a 0.5” diameter End Mill Tool # 4
Start at X0 Y-0.375 and machine the contour in a clockwise direction – climb milling
G90 X Y
1 0 -0.375
2
3
4
5
6
7
8
9
10
11
www.engineerref.com
Lesson 6 - 13 Page 61
LESSON-6 - CNC - PART #8
CREATE THE PROGRAM TO MACHINE THE CONTOUR
Use a 0.5” diameter End Mill Tool # 4
Speed = 3050 Feed rate =20 IPM
X0Y0 is at the lower left corner of the part
Z=0 is the top of the part.
Machine the contour at a depth is 0.125”
Start at X-0.5 Y3.0 and machine the contour in a clockwise direction –
climb milling
Type up your program and check it for correctness using NCPlot
%
O10 ( Program #10 - CNC-PART- 8 - STRAIGHT LINE MILLING)
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Page 62 Lesson 6 - 14
CNC PROGRAMMING
WORKBOOK
LESSON-7
CIRCULAR INTERPOLATION
www.engineerref.com
Page 63
LESSON-7 - CIRCULAR INTERPOLATION - G02 & G03
In the next series of circular interpolation exercises you will explore how to
machine arcs and complete circles.
G02 and G03 allow the machining of circles and arcs
When the machine is required to move in a straight line under a controlled federate, linear interpolation is
used G01. When it is necessary to machine in a circular motion in any plane (XY, YZ, XZ) circular interpolation
is used G02 and G03.
All circular interpolation moves are defined using three pieces of information.
3. ARC CENTER: INCREMENTAL DISTANCE FROM START POINT TO ARC CENTER (I, J, K OR R
FOR RADIUS, I,J AND K ARE NOT USED)
When trying to figure out a circular interpolation move answer these three
questions:
I. What is the direction of travel, clockwise or counterclockwise – G02 or G03?
II. Where is the programmed end point?
III. What is the incremental distance from the start of the arc to the center of the arc being machined –
I and J values?
www.engineerref.com
Page 64 Lesson 7 - 2
CIRCULAR INTERPOLATION - DIRECTION OF TRAVEL
www.engineerref.com
Lesson 7 - 3 Page 65
CIRCULAR INTERPOLATION - PROGRAMED END POINT
Radius = 0.5
1. What are the coordinates at the center of the cutter for A, B, C, and D
A: X0 Y3.0 B: X Y
D: X Y
C: X Y
www.engineerref.com
Page 66 Lesson 7 - 4
CIRCULAR INTERPOLATION - ARC CENTER
I , J and K Values are measured from the tool start to the center of the arc
I , J and K values are INCREMENTAL
I= X Axis J = Y Axis K= Z Axis
Radius = 0.5
1. What are the incremental distances from the start of cut to the center of the programmed
arc?
I = The Incremental distance along the X axis from the start of the arc to the center of the
programmed arc
J = The Incremental distance along the Y axis from the start of the arc to the center of the
programmed arc
www.engineerref.com
Lesson 7 - 5 Page 67
LESSON-7 - CIRCULAR INTERPOLATION - G02 & G03
What does the block of code look like moving from D to B clockwise?
G02 X3.0 Y0 I3.0 J0
What does the block of code look like moving from A to D counterclockwise?
G03 X-3.0 Y0 I-3.0 J0
Radius = 0.5
When trying to figure out a circular interpolation move answer these three
questions:
I. What is the direction of travel, clockwise or counterclockwise – G02 or G03?
II. Where is the programmed end point?
III. What is the incremental distance from the start of the arc to the center of the arc being machined –
I and J values?
Work out the following circular interpolation blocks
C to D Clockwise: D to C Counterclockwise:
A to A Clockwise: B to C Counterclockwise:
www.engineerref.com
Page 68 Lesson 7 - 6
LESSON-7 - CIRCULAR INTERPOLATION - G02 & G03
The center of the circle has now been changed to X5.0 Y5.0
What does the block of code look like moving from D to B clockwise?
G02 X8.0 Y5.0 I3.0 J0
What does the block of code look like moving from A to D counterclockwise?
G03 X2.0 Y5.0 I-3.0 J0
1.0” Diameter End Mill
Radius = 0.5
X5.0 Y5.0
When trying to figure out a circular interpolation move answer these three
questions:
I. What is the direction of travel, clockwise or counterclockwise – G02 or G03?
II. Where is the programmed end point?
III. What is the incremental distance from the start of the arc to the center of the arc being machined –
I and J values?
Work out the following circular interpolation blocks
C to D Clockwise: D to C Counterclockwise:
A to A Clockwise: B to C Counterclockwise:
To cut a complete circle of 360°, you do not need to specify an end point X, Y, or Z. Just program I, J, or K to
define the centre of the circle.
www.engineerref.com
Lesson 7 - 7 Page 69
LESSON-7 - CIRCULAR INTERPOLATION - G02 & G03
Work out the following circular interpolation blocks
Y+ ABSOLUTE
X- X+ START POINT X Y
(0, 0) END POINT X Y
.
G X Y I J
R=2
INCREMENTAL
START POINT X Y
START FINISH
END POINT X Y
Y-
.
G X Y I J
.
Y+
ABSOLUTE (COUNTER CLOCKWISE DIRECTION)
START POINT X Y
END POINT X Y
.
Y-
G X Y I J
.
Y+
ABSOLUTE
FINISH
X- (5, 2) X+ START POINT X Y
END POINT X Y
.
G X Y I J
.
R=1.414 INCREMENTAL
START POINT X Y
START
END POINT X Y
Y-
.
G X Y I J
.
www.engineerref.com
Page 70 Lesson 7 - 8
LESSON-7 – CIRCULAR INTERPOLATION G02
Review the CNC program below that machines the contour.
All circular interpolation moves are defined using three pieces of information.
3. ARC CENTER: INCREMENTAL DISTANCE FROM START POINT TO ARC CENTER (I, J, K)
N160 G1 X-.25 Y-.25 (start position) I = The Incremental distance along the X axis
N170 Y1.5 from the start of the arc to the center of the
N180 G2 X.5 Y2.25 I.75 J0. (OR R0.5) programmed arc
N190 G1 X2.75
N200 Y.25 J = The Incremental distance along the Y axis
N210 G2 X2.25 Y-.25 I-.5 J0. (OR R0.25) from the start of the arc to the center of the
N220 G1 X-.25 programmed arc
www.engineerref.com
Lesson 7 - 9 Page 71
LESSON-7 – CIRCULAR INTERPOLATION G02
Review the CNC program below that machines the contour.
N160 G1 X1.5 Y1.0 (start position) N160 G1 X1.5 Y1.0 (start position)
N170 Y-.25 N170 Y-.25
N180 G2 X.25 Y-1.5 I-1.25 J0. N180 G2 X.25 Y-1.5 R1.25
N190 G1 X-.75 N190 G1 X-.75
N200 G2 X-1.5 Y-.75 I0. J.75 N200 G2 X-1.5 Y-.75 R.75
N210 G1 Y.875 N210 G1 Y.875
N220 G2 X-.875 Y1.5 I.625 J0. N220 G2 X-.875 Y1.5 R.625
N230 G1 X1. N230 G1 X1.
N240 G2 X1.5 Y1. I0. J-.5 N240 G2 X1.5 Y1. R.5
To cut a complete circle of 360°, you do not need to specify an end point X, Y, or Z. Just program I, J, or K to
define the centre of the circle.
www.engineerref.com
Page 72 Lesson 7 - 10
LESSON-7 – CIRCULAR INTERPOLATION G03
Review the CNC program below that machines the contour around the inside of the pocket.
N40 G0 G90 G54 X.75 Y1. A0. S2500 M3 N40 G0 G90 G54 X.75 Y1. A0. S2500 M3
N50 G43 H4 Z.35 N50 G43 H4 Z.35
N60 G1 Z.125 F15. N60 G1 Z.125 F15.
N70 X-.875 N70 X-.875
N80 G3 X-1. Y.875 I0. J-.125 (0.375 Radius) N80 G3 X-1. Y.875 R.125 (0.375 Radius)
N90 G1 Y-.75 N90 G1 Y-.75
N100 G3 X-.75 Y-1. I.25 J0. (0.5 Radius) N100 G3 X-.75 Y-1. R.25 (0.5 Radius)
N110 G1 X.25 N110 G1 X.25
N120 G3 X1. Y-.25 I0. J.75 (1.0 Radius) N120 G3 X1. Y-.25 R.75 (1.0 Radius)
N130 G1 Y.75 N130 G1 Y.75
N140 G3 X.75 Y1. I-.25 J0. (0.5 Radius) N140 G3 X.75 Y1. R.25 (0.5 Radius)
N150 G0 Z.35 N150 G0 Z.35
www.engineerref.com
Lesson 7 - 11 Page 73
LESSON-7 – CIRCULAR INTERPOLATION G02 & G03
Review the program to machine the contour shown below.
%
O11 ( G02-G03-EXAMPLE ) N60 X4.25
N10 G20 N65 Y0.
N15 G0 G17 G40 G49 G80 G90 N70 G2 X3. Y-1.25 I-1.25 J0.
N20 T4 M6 N75 G1 X-.25
N25 G0 G90 G54 X-.25 Y.25 S3056 M3 N80 Y.25
N30 G43 H4 Z2. N85 G0 Z2.
N35 Z.1 N90 M5
N40 G1 Z-.2 F18. N95 G91 G28 Z0.
N45 X2.5 N100 G28 X0. Y0.
N50 G3 X2.75 Y.5 I0. J.25 N105 M30
N55 G1 Y1.75 %
www.engineerref.com
Page 74 Lesson 7 - 12
LESSON-7 – CIRCULAR INTERPOLATION G02 & G03
Create the program to machine the contour shown below.
Depth of Cut = Z-0.150 Start from the top right hand corner
%
O12
www.engineerref.com
Lesson 7 - 13 Page 75
LESSON-7 – CIRCULAR INTERPOLATION G02 & G03
www.engineerref.com
Page 76 Lesson 7 - 14
CNC PROGRAMMING
WORKBOOK
MILL-LESSON-8
CIRCULAR INTERPOLATION - CONTINUED
www.engineerref.com
Page 77
LESSON-8 - CNC - PART #9
www.engineerref.com
Page 78 Lesson 8 - 2
LESSON-8 - CNC - PART #9
The Machining Process
Ø.500” Endmill - Tool # 4 - 3056 RPM Feedrate 18 IPM
Machine the 2.25” square with the 0.375” corner radii - 0.0625” depth
Machine the circular 2.25” and 1.25”diameter circular profile - 0.125” depth
Ø.125” Endmill - Tool # 1- 5000 RPM Feedrate 7 IPM
Drill the Ø .125” holes through the part (4 places)
Note: The Ø.125” Endmill is designed for center cutting machining. No center drilling or pilot hole is
required.
www.engineerref.com
Lesson 8 - 3 Page 79
LESSON-8 - CNC - PART #9
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the center of the part
Use a 0.5” diameter End Mill Tool # 4 and a 0.125” diameter End Mill Tool # 1
Climb mill the inside contours
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE FOUR HOLES
G90 X Y
1
2
3
4
www.engineerref.com
Page 80 Lesson 8 - 4
LESSON-8 - CNC - PART #9
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the center of the part
Use a 0.5” diameter End Mill Tool # 4 and a 0.125” diameter End Mill Tool # 1
Climb mill
G90 X Y
1
2
3
4
5
6
7
8
9
10
11
www.engineerref.com
Lesson 8 - 5 Page 81
LESSON-8 - CNC - PART #9
CREATE THE PROGRAM TO MACHINE THE PART
Use a 0.5” diameter End Mill Tool # 4
Speed = 3050 Feed rate =20 IPM
Use a 0.125” diameter End Mill Tool # 1
Speed = 5000 Feed rate =7 IPM
X0Y0 is at the center of the part
Z=0 is the top of the part.
Climb mill
Type up your program and check it for correctness using NCPlot
%
O13 ( CNC PART #9)
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Page 82 Lesson 8 - 6
LESSON-8 - CNC - PART #9 - Continued
www.engineerref.com
Lesson 8 - 7 Page 83
LESSON-8 - CNC - PART #10
www.engineerref.com
Page 84 Lesson 8 - 8
LESSON-8 - CNC - PART #10
The Machining Process
Ø.500” Endmill - Tool # 4 - 3056 RPM Feedrate 18 IPM
Machine the open slot with the 0.375” fillet radii - 0.125” depth
Ø.125” Endmill - Tool # 1 - 5000 RPM Feedrate 7 IPM
Drill the Ø .125” holes through the part (4 places)
Note: The Ø.125” Endmill is designed for center cutting machining. No center drilling or pilot hole is
required.
www.engineerref.com
Lesson 8 - 9 Page 85
LESSON-8 - CNC - PART #10
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the center of the part
Use a 0.5” diameter End Mill Tool # 4 and a 0.125” diameter End Mill Tool # 1
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE FOUR HOLES
G90 X Y
1
2
3
4
www.engineerref.com
Page 86 Lesson 8 - 10
LESSON-8 - CNC - PART #10
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the center of the part
Use a 0.5” diameter End Mill Tool # 4 and a 0.125” diameter End Mill Tool # 1
Climb mill
www.engineerref.com
Lesson 8 - 11 Page 87
LESSON-8 - CNC - PART #10
CREATE THE PROGRAM TO MACHINE THE PART
Use a 0.5” diameter End Mill Tool # 4
Speed = 3050 Feed rate =20 IPM
Use a 0.125” diameter End Mill Tool # 1
Speed = 5000 Feed rate =7 IPM
X0Y0 is at the center of the part
Z=0 is the top of the part.
Climb mill
Type up your program and check it for correctness using NCPlot
%
O003
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Page 88 Lesson 8 - 12
LESSON-8 - CNC - PART #10
www.engineerref.com
Lesson 8 - 13 Page 89
www.engineerref.com
Page 90 Lesson 8 - 14
CNC PROGRAMMING
WORKBOOK
LESSON-9
CIRCULAR INTERPOLATION - CONTINUED
www.engineerref.com
Page 91
LESSON-9 - CNC - PART #11
www.engineerref.com
Page 92 Lesson 9 - 2
LESSON-9 - CNC - PART #11
The Machining Process
Ø.500” Endmill - Tool # 4
Machine the profile with the .125” radii at Z‐.125” deep – 1 Cut
Machine the circular 2.5” diameter circular profile – 1 Cut
Ø.125” Endmill - Tool # 1
Drill the Ø .125” holes through the part (4 places)
Note: The Ø.125” Endmill is designed for center cutting machining. No center drilling or pilot hole is
required.
www.engineerref.com
Lesson 9 - 3 Page 93
LESSON-9 - CNC - PART #11
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the center of the part
Use a 0.5” diameter End Mill Tool # 4 and a 0.125” diameter End Mill Tool # 1
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE FOUR HOLES
G90 X Y
1
2
3
4
www.engineerref.com
Page 94 Lesson 9 - 4
LESSON-9 - CNC - PART #11
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the center of the part
Use a 0.5” diameter End Mill Tool # 4 and a 0.125” diameter End Mill Tool # 1
Climb mill
www.engineerref.com
Lesson 9 - 5 Page 95
LESSON-9 - CNC - PART #11
CREATE THE PROGRAM TO MACHINE THE PART
Use a 0.5” diameter End Mill Tool # 4
Speed = 3050 Feed rate =20 IPM
Use a 0.125” diameter End Mill Tool # 1
Speed = 5000 Feed rate =7 IPM
X0Y0 is at the center of the part
Z=0 is the top of the part.
Climb mill
Type up your program and check it for correctness using NCPlot
%
O003
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Page 96 Lesson 9 - 6
LESSON-9 - CNC - PART #11 - Continued
www.engineerref.com
Lesson 9 - 7 Page 97
LESSON-9 - CNC - PART #12
www.engineerref.com
Page 98 Lesson 9 - 8
LESSON-9 - CNC - PART #12
The Machining Process
Ø.500” Endmill - Tool # 4- 3050 RPM Feedrate 20 IPM
Machine the profiles with the .125” and .25 radii.
Machine the circular 0.625” diameter through hole. Sink to depth at center and use circular
interpolation to finish the bore.
Ø.125” Endmill - Tool # 1- 5000 RPM Feedrate 7 IPM
Drill the Ø .125” holes through the part (8 places)
Note: The Ø.125” Endmill is designed for center cutting machining. No center drilling or pilot hole is
required.
www.engineerref.com
Lesson 9 - 9 Page 99
LESSON-9 - CNC - PART #12
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the center of the part
Use a 0.5” diameter End Mill Tool # 4 and a 0.125” diameter End Mill Tool # 1
G90 X Y
1 0 0
2
3
4
5
6
7
8
9
www.engineerref.com
Page 100 Lesson 9 - 10
LESSON-9 - CNC - PART #12
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the center of the part
Use a 0.5” diameter End Mill Tool # 4 and a 0.125” diameter End Mill Tool # 1
Climb mill
www.engineerref.com
Lesson 9 - 11 Page 101
LESSON-9 - CNC - PART #12
CREATE THE PROGRAM TO MACHINE THE PART
Use a 0.5” diameter End Mill Tool # 4
Speed = 3050 Feed rate =20 IPM
Use a 0.125” diameter End Mill Tool # 1
Speed = 5000 Feed rate =7 IPM
X0Y0 is at the center of the part
Z=0 is the top of the part.
Climb mill
Type up your program and check it for correctness using NCPlot
%
O003
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Page 102 Lesson 9 - 12
LESSON-9 - CNC - PART #12 - Continued
www.engineerref.com
Lesson 9 - 13 Page 103
www.engineerref.com
Page 104 Lesson 9 - 14
CNC PROGRAMMING
WORKBOOK
LESSON-10
CUTTER COMPENSATION
www.engineerref.com
Page 105
LESSON-10 - G40, G41, & G42 CUTTER COMPENSATION
Cutter Compensation is used to offset the center of the cutter and move the cutter either to
the left or right the distance of the cutter radius. When cutting angled geometry, substantial
computations are required to determine the center of the cutter. Using Cutter Compensation, you
can program the part as if the center of the cutter will be travelling along the geometry.
G41 will action cutter compensation left. The tool is moved to the left of the programmed path to
compensate for the radius of the tool. A Dnn must also be programmed to select the correct tool
size from the DIAMETER/RADIUS offset display register.
G42 will action cutter compensation right. The tool is moved to the right of the programmed path
to compensate for the size of the tool.
G41
G41
G41 Left of the Line G42 Right of the Line
G41 : Tool is moved to the left of the profile (e.g. Outside Profile shown as above)
G42 : Tool is moved to the right of the profile (e.g. Inside Profile shown as above)
www.engineerref.com
Page 106 Lesson 10 - 2
LESSON-10 - G40, G41, & G42 CUTTER COMPENSATION
The Cutter Compensation (G41) will reflect the actual part geometry (O, P1, P2..) instead of Cutter
Centers (Point B,C,D & E)
www.engineerref.com
Lesson 10 - 3 Page 107
LESSON-10 - CNC - PART #13
www.engineerref.com
Page 108 Lesson 10 - 4
LESSON-10 - CNC - PART #13
The Machining Process
Ø.750” Endmill - Tool # 6
Machine the profile and pocket using cutter compensation
0.750” diameter end mill Spindle Speed = 2100 Feed rate = 25 IPM
Ø.375” Spot Drill - Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Ø.201” Drill - Tool # 8
0.201” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Ø.25”-20 UNC Tap - Tool # 9
0.250-20 UNC Tap Spindle Speed = 1000 Feed rate = 50 IPM
www.engineerref.com
Lesson 10 - 5 Page 109
LESSON-10 - CNC - PART #13
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the lower left corner of the part
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE TWO HOLES
G90 X Y
1
2
www.engineerref.com
Page 110 Lesson 10 - 6
LESSON-10 - CNC - PART #13
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART - CONTOUR
X0Y0 is at the lower left of the part
www.engineerref.com
Lesson 10 - 7 Page 111
LESSON-10 - CNC - PART #13
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART - POCKET
X0Y0 is at the lower left of the part
www.engineerref.com
Page 112 Lesson 10 - 8
LESSON-10 - CNC - PART #13
CREATE THE PROGRAM TO MACHINE THE PART
The Machining Process
Ø.750” Endmill - Tool # 6
Machine the profile and pocket using cutter compensation
0.750” diameter end mill Spindle Speed = 2100 Feed rate = 25 IPM
Ø.375” Spot Drill - Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Ø.201” Drill - Tool # 8
0.201” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Ø.25”-20 UNC Tap - Tool # 9
0.201” diameter Drill Spindle Speed = 1000 Feed rate = 50 IPM
%
O888
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Lesson 10 - 9 Page 113
LESSON-10 - CNC - PART #13 - Continued
www.engineerref.com
Page 114 Lesson 10 - 10
LESSON-10 - CNC - PART #14
www.engineerref.com
Lesson 10 - 11 Page 115
LESSON-10 - CNC - PART #14
The Machining Process
Ø.750” Endmill - Tool # 6
Machine the profile and pocket using cutter compensation
0.750” diameter end mill Spindle Speed = 2100 Feed rate = 25 IPM
Ø.375” Spot Drill - Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Ø.201” Drill - Tool # 8
0.201” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Ø.25”-20 UNC Tap - Tool # 9
0.201” diameter Drill Spindle Speed = 1000 Feed rate = 50 IPM
www.engineerref.com
Page 116 Lesson 10 - 12
LESSON-10 - CNC - PART #14
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART
X0Y0 is at the lower left of the part
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE TWO HOLES
G90 X Y
1
2
www.engineerref.com
Lesson 10 - 13 Page 117
LESSON-10 - CNC - PART #14
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART - CONTOUR
X0Y0 is at the lower left of the part
www.engineerref.com
Page 118 Lesson 10 - 14
LESSON-10 - CNC - PART #14
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS TO MACHINE THE PART - POCKET
X0Y0 is at the lower left of the part
www.engineerref.com
Lesson 10 - 15 Page 119
LESSON-10 - CNC - PART #14
CREATE THE PROGRAM TO MACHINE THE PART
The Machining Process
Ø.750” Endmill - Tool # 6
Machine the profile and pocket using cutter compensation
0.750” diameter end mill Spindle Speed = 2100 Feed rate = 25 IPM
Ø.375” Spot Drill - Tool # 6
Spot Drill Spindle Speed = 2750 Feed rate = 11 IPM
Ø.201” Drill - Tool # 8
0.201” diameter Drill Spindle Speed = 4500 Feed rate = 15 IPM
Ø.25”-20 UNC Tap - Tool # 9
0.201” diameter Drill Spindle Speed = 1000 Feed rate = 50 IPM
%
O003
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
N30
www.engineerref.com
Page 120 Lesson 10 - 16
LESSON-10 - CNC - PART #14 - Continued
www.engineerref.com
Lesson 10 - 17 Page 121
www.engineerref.com
Page 122 Lesson 10 - 18
CNC PROGRAMMING
WORKBOOK
APPENDIX
www.engineerref.com
Page 123
Appendix – Extra CNC Programming Exercises
Exercise #1
www.engineerref.com
Page 124 Appendix - 2
Extra CNC Programming Exercise #2
www.engineerref.com
Appendix - 3 Page 125
Extra CNC Programming Exercise #3
www.engineerref.com
Page 126 Appendix - 4
Extra CNC Programming Exercise #4
www.engineerref.com
Appendix - 5 Page 127
Extra CNC Programming Exercise #5
www.engineerref.com
Page 128 Appendix - 6
Extra CNC Programming Exercise #6
www.engineerref.com
Appendix - 7 Page 129
Extra CNC Programming Exercise #7
Instructions:
1. Create your own design.
2. The material size: 6” x 1.5” x .125” Aluminum
3. The part is held in the vise.
4. Locate the part flush with the left hand side of the vise jaw.
5. X0 Y0 is the top left hand corner of the material.
6. Z0 is the top of the material.
7. Center Drill is used as an engraving tool to machine the letters.
8. Spindle Speed: 5000 rpm
9. Feedrate: 12 in/min
10. Depth of Cut : -0.025”
11. Center Drill 2 mounting holes using Canned Cycle
12. Depth of Cut: -0.25
13. Minimum of five letters
14. You can use the suggested letter shapes & size or create your own lettering design.
Suggested Lettering:
www.engineerref.com
Page 130 Appendix - 8
Appendix – Preparatory Functions – G-Codes
G04 DWELL
www.engineerref.com
Appendix - 9 Page 131
Appendix – Preparatory Functions – G-Codes
www.engineerref.com
Page 132 Appendix - 10
Appendix – Preparatory Functions – G-Codes
www.engineerref.com
Appendix - 11 Page 133
Appendix – Miscellaneous Functions – M-Codes
M08 COOLANT ON
www.engineerref.com
Page 134 Appendix - 12
Appendix – Miscellaneous Functions – M-Codes
www.engineerref.com
Appendix - 13 Page 135
Standard Drill Sizes - Inches
www.engineerref.com
Page 136 Appendix - 14
Inch Tap Drill Sizes
www.engineerref.com
Appendix - 15 Page 137
Metric Tap Drill Sizes
www.engineerref.com
Page 138 Appendix - 16
NCPlot Installation Instructions
www.engineerref.com
Appendix - 17 Page 139
NCPlot Installation Instructions Continued
5. Double-click the NCPlot.exe file as shown below. This will start the installation process. Follow the
instructions on the screen to complete the installation.
2. Locate the “What you need to complete this course” section on this page and click on the NCPlot
link to download the NCPlot installation file. Make sure you save the file to a place on the hard drive
that you can be easily located.
3. Once the file has downloaded locate it and double-click the NCPlot.zip file to extract the installation
files onto your hard drive. Make sure you extract the files into a new folder on your hard drive and
remember where the folder is located.
4. Open the folder the files were extracted to and double click on NCPlot.exe.
5. Follow the instructions on the screen.
www.engineerref.com
Page 140 Appendix - 18