MASTERCAMCNC Programming Workbook - Mill PDF
MASTERCAMCNC Programming Workbook - Mill PDF
WORKBOOK
MILL
D t f le
n
p
io
no m
tr r
By Matthew Manton and Duane Weidinger
ut
is o
Sa
ib
CNC Programming Workbook - Mill
Published by
CamInstructor Incorporated
330 Chandos Crt.
Kitchener, Ontario
N2A 3C2
www.caminstructor.com
n
To order additional copies of the book contact:
CamInstructor Inc.
p
330 Chandos Crt, Kitchener, ON, N2A 3C2
io
Phone 1-877-873-6867
Fax 1-866-741-8421
no m
email sales@caminstructor.com
tr r
ut
is o
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
Sa
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
ib
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.
June 17, 2013
TABLE OF CONTENTS
n
EXAMPLE OF PROGRAM TOOL CHANGE BLOCKS .................................................... 14
p
io
RAPID (G00) AND LINEAR (G01) INTERPOLATION ................................................... 15
no m
n
LESSON-6 .. STRAIGHT LINE MILLING – LINEAR INTERPOLATION ..........................................49
p
io
EXERCISE #1 - ABSOLUTE & INCREMENTAL POSITIONING ...................................... 50
no m
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
D t f le
APPENDIX ..........................................................................................................................123
n
EXTRA CNC PROGRAMMING EXERCISES .................................................................. 124
p
io
PREPATORY FUNCTIONS – G-CODES........................................................................ 131
no m
tr r
MISCELLANEOUS FUNCTIONS – M-CODES .............................................................. 134
ut
is o
STANDARD DRILL SIZES – INCHES ............................................................................ 136
Sa
Table of Contents - 3
Sa
no m
D t f le p
is o
Table of Contents - 4
tr r
ib
ut
io
n
CNC PROGRAMMING
WORKBOOK
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
LESSON-1
ABSOLUTE & INCREMENTAL POSITIONING
Page 1
LESSON-1 – Introduction
The CNC Programming Student Workbook includes a DVD with the following Videos and support files on it.
1. Self-Learning Videos
2. Discriminator BackPlot 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.
D t f le
n
p
io
no m
tr r
ut
is o
The following Menu Screen should appear;
Sa
ib
Step 1: 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.
Step 2: The second item on the DVD is the Discriminator installation file. We have provided this to you free
of charge so you can install Discriminator onto your computer. Discriminator 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.
1. To access the Discriminator installation file put the DVD into your computer and locate the
Discriminator folder as shown below.
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
2. Double click on the Discriminator folder as shown above and then double click on the
Discriminator21017.exe file as shown below and follow the onscreen instructions.
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.
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
G90 ABSOLUTE PROGRAMMING
All axis motions are based on a fixed zero reference point, known as ABSOLUTE ZERO (part zero).
no m
STARTING AT THE POINT O (ORIGIN), DESCRIBE THE PATH FROM O THROUGH ALL 9 POINTS AND
ib
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
D t f le
n
p
io
G90 ABSOLUTE PROGRAMMING
All axis motions are based on a fixed zero reference point, known as ABSOLUTE ZERO (part zero).
no m
STARTING AT THE POINT O (ORIGIN), DESCRIBE THE PATH FROM O THROUGH ALL 9 POINTS AND
ib
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
D t f le
n
p
io
G90 ABSOLUTE PROGRAMMING
All axis motions are based on a fixed zero reference point, known as ABSOLUTE ZERO (part zero).
Each coordinate is in relation to this absolute zero using Cartesian Co-ordinates.
no m
tr r
G91 INCREMENTAL PROGRAMMING
ut
is o
All axis motions are based on the distance to the next location.
Each coordinate is based on how far the cutter is to move from start to finish.
Sa
STARTING AT THE POINT O (ORIGIN), DESCRIBE THE PATH FROM O THROUGH ALL 9 POINTS AND
BACK TO THE POINT O USING G90 & G91
ib
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
D t f le
n
p
io
no m
tr r
STARTING AT THE POINT O (ORIGIN), DESCRIBE THE PATH FROM O THROUGH ALL 9 POINTS AND
ut
is o
BACK TO THE POINT O USING G90 & G91
Sa
G90 X Y G91 X Y
O (Origin) 0 0 O→1 0.750 0.500
ib
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
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.
D t f le
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
n
model of the machine.
io
G03 Circular Interpolation, Counterclockwise
G04 Dwell
no m
tr r
G17 Circular Motion XY Plane Selection
ut
is o
G20 Verify Inch Coordinate Positions
Sa
LESSON-2
INTRODUCTION TO CNC CODES
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.
n
2 0.250” Diameter Flat End Mill
p
io
3 0.375” Diameter Flat End Mill
no m
tr r
4 0.500” Diameter Flat End Mill
ut
is o
Sa
10 #4 Center Drill
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.
n
G21 Verify Metric Coordinate Positions
p
Machine Home (Rapid traverse) G91 is required for rapid move to the G28 reference
io
G28
point.
G40 Cutter Compensation CANCEL
no m
tr r
G41 Cutter Compensation LEFT of the programmed path
G42 ut
Cutter Compensation RIGHT of the programmed path
is o
G43 Tool Length Compensation
Sa
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
D t f le
defined.
M03
n
The M03 is used to turn the spindle on at the beginning of program or after a tool
change.
p
io
M04 Starts the spindle COUNTERCLOCKWISE. Must have a spindle speed defined.
no m
tr r
STOPS the spindle.
M05 The M05 is used to turn the spindle off at the end of program or before a tool change.
ut
is o
If the coolant is on, the M05 will turn it off.
Sa
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
ib
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.
n
G90 - Absolute Programming
p
io
T8 - Tool number #8 to be loaded into the spindle.
N30 T8 M06
M06 - Tool Change
no m
tr r
ut
is o
G00 - Rapid Traverse
G90 - Activates control to be in ABSOLUTE.
Sa
n
N240 M30 M30 – End of Program and Reset
p
io
no m
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.
n
G00 is used when you are positioning the cutter in ‘fresh air’.
Retracting from a hole you have drilled.
p
io
Rapid traverse is not used when cutting the part.
Used incorrectly, rapid traverse will break a cutter very easily.
no m
tr r
ut
is o
G01 LINEAR INTERPOLATION
Sa
This G code provides for straight line (linear) motion with programmed feedrate for all axis motions
from point to point. Motion can occur up to three axes at once.
ib
All axes specified will start at the same time and proceed to their destination and arrive
simultaneously at the specified feedrate.
To program a feedrate, the F command is used. The F command is modal and may be specified in a
previous block.
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
G90 X Y
1
2
3
n
N30 T06 M06 (T6-Select tool number 6 to be loaded M06-Activates the tool changer)
N40 G00 G90 G54 X-1.0 Y-0.875 S2750 M03 – (Rapid to the X and Y position and turn on the spindle at
p
2750 RPM)
io
N50 G43 H06 Z0.1 (G43 - Activate the tool offset value stored in H06 and rapid to Z0.1)
N60 G01 Z-0.15 F11.0 (Hole #1 - Feed down to Z depth at 11 inches per minute)
no m
tr r
N70 G00 Z0.1 (G00- Retract out of hole #1 at rapid to 0.1 above the top of the work piece)
ut
is o
N80 X0 Y0 (G00 is modal - Move at rapid in the X and Y axis to hole #2)
Sa
N90 G01 Z-0.15 (Hole #2 - Feed down to Z depth at 11 inches per minute, Feed rate is modal)
N100 G00 Z0.1 (G00- Retract out of hole #2 at rapid to 0.1 above the top of the work piece)
ib
N110 X1.0 Y0.875 (G00 is modal - Move at rapid in the X and Y axis to hole #3)
N120 G01 Z-0.15 (Hole #3 - Feed down to Z depth at 11 inches per minute, Feed rate is modal)
N130 G53 G00 Z0 M05 (G53 – Machine Zero positioning, non modal. Rapid to machine zero in Z, switch
spindle off)
N140 G53 X-15.0 Y0 (G53 – Rapid in relation to machine zero X-15.0 and Y0)
N150 M30 (Program end rewind program to the beginning)
% (Program must begin and end with a %)
n
p
io
no m
tr r
ut
is o
Sa
ib
LESSON-3
CREATING CNC PROGRAMS - CNC PART #1
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.
n
(SPOT DRILL 0.25” HOLES)
p
N30 T06 M06 (T6-Select tool number 6 to be loaded M06-Activates the tool changer)
io
N40 G00 G90 G54 X-1.0 Y-0.875 S2750 M03 (Rapid to the X and Y position of Hole #1 and turn on the
spindle at 2750 RPM)
no m
tr r
N50 G43 H06 Z0.1 (G43 - Activate the tool offset value stored in H06 and rapid to Z0.1)
ut
N60 G01 Z-0.15 F11.0 (Hole #1 - Feed down to Z depth at 11 inches per minute)
is o
N70 G00 Z0.1 (G00- Retract out of hole #1 at rapid to 0.1 above the top of the work piece)
Sa
N80 X0 Y0 (G00 is modal - Move at rapid in the X and Y axis to Hole #2)
ib
N90 G01 Z-0.15 (Hole #2 - Feed down to Z depth at 11 inches per minute, Feed rate is modal)
N100 G00 Z0.1 (G00- Retract out of hole #2 at rapid to 0.1 above the top of the work piece)
N110 X1.0 Y0.875 (G00 is modal - Move at rapid in the X and Y axis to hole #3)
N120 G01 Z-0.15 (Hole #3 - Feed down to Z depth at 11 inches per minute, Feed rate is modal)
N130 G53 G00 Z0 M05 (G53 – Machine Zero positioning, non modal. Rapid to machine zero in Z, switch
spindle off)
N140 G53 X-15.0 Y0 (G53 – Rapid in relation to machine zero X-15.0 and Y0)
(DRILL 0.25” HOLES)
N160 T07 M06 (T7-Select tool number 7 to be loaded M06-Activates the tool changer)
N170 G00 G90 G54 X-1.0 Y-0.875 S4500 M03 (Rapid to the X and Y position of Hole #1 and turn on the
spindle at 4500 RPM)
N180 G43 H07 Z0.1 (G43 - Activate the tool offset value stored in H07 and rapid to Z0.1)
N190 G01 Z-0.35 F15.0 (Hole #1 - Feed down to Z depth at 15 inches per minute through part)
N200 G00 Z0.1 (G00- Retract out of hole #1 at rapid to 0.1 above the top of the work piece)
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)
D t f le
N270 M30 (Program end rewind program to the beginning)
n
% (Program must begin and end with a %)
p
io
no m
tr r
ut
is o
Sa
ib
Mill Lesson 3 - 4
tr r
ib
ut
io
n
CNC PROGRAMMING
WORKBOOK
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
LESSON-4
DRILLING USING CANNED CYCLES
Page 23
LESSON-4 DRILL CANNED CYCLE G81
n
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
p
io
Canned Cycle Drill.
All Z axis motions are in ABSOLUTE with any other axis motions unaffected.
no m
tr r
In a canned cycle drill, the cutter moves at rapid to the X and Y, then to a height above the part at
ut
is o
rapid rate to the R Plane, which is a point above the work surface. From the R Plane the cutter feeds
Sa
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
ib
starting plane.
n
This G code is similar to G81 but is used for drilling when the tool must be withdrawn periodically
p
io
to allow chips to be removed from the hole.
no m
This cycle allows the tool to rapid to the R Plane, feeds towards the Z depth in increments
tr r
(traversing to the R Plane and back to the point where drilling was interrupted after each
ut
is o
increment) until the tool reaches the final Z depth.
Sa
ib
n
N30 T06 M06 (T6-Select tool number 6 to be loaded M06-Activates the tool changer)
N40 G00 G90 G54 X-1.0 Y-0.875 S2750 M03 (Rapid to the X and Y position of Hole #1 and turn on the
spindle at 2750 RPM)
p
io
N50 G43 H06 Z0.1 (G43 - Activate the tool offset value stored in H06 and rapid to Z0.1)
N60 G99 G81 Z-0.15 R0.1 F11.0 (Hole #1 – G81 - Feed down to Z depth at 11 inches per minute,
no m
N80 X1.0 Y.875 (Hole #3 - Move at rapid in the X and Y axis to Hole #3. Feed down to Z depth at 11
inches per minute and then retract at rapid to Z0.1)
ib
N90 G80 (Cancel Canned Cycle Drill)
N100 G53 G00 Z0 M05 (G53 – Rapid to machine zero in Z, switch spindle off)
N110 G53 X-15.0 Y0 (G53 – Rapid in relation to machine zero X-15.0 and Y0)
(DRILL 0.25” HOLES)
N120 T07 M06 (T7-Select tool number 7 to be loaded M06-Activates the tool changer)
N130 G00 G90 G54 X-1.0 Y-0.875 S4500 M03 (Rapid to the X and Y position of Hole #1 and turn on the
spindle at 4500 RPM)
N140 G43 H07 Z0.1 (G43 - Activate the tool offset value stored in H07 and rapid to Z0.1)
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)
D t f le
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)
n
% (Program must begin and end with a %)
p
io
no m
tr r
ut
is o
Sa
ib
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
LESSON-5
DRILLING USING CANNED CYCLES - CONTINUED
Page 29
LESSON-5 - CNC - PART #2
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
G90 X Y
1
2
3
4
5
6
7
8
9
%
O4 ( Program #4 - CNC-PART-2-SPOT AND DRILLING USING CANNED CYCLE DRILL G81)
N10 G20
D t f le
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
n
N30
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
n
p
io
no m
tr r
ut 3. Browse to where you would like to save this file.
is o
4. Open up the Save as type drop down and change to All files.
5. Encoding should be set to ANSI.
Sa
6. In the File name section enter CNC-PART-2.NC This will give this file an extension of .NC
7. Click on the Save button
ib
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.
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!
D t f le
10. Select Edit>Find.
n
p
io
no m
tr r
ut
is o
Sa
ib
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.
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
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
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.
n
p
4. After selecting the CNC file it opens up in a separate window.
io
no m
tr r
ut
is o
Sa
ib
5. Now click on the show graphics icon at the toolbar at the top of the screen to launch a plot of
your CNC file.
D t f le
n
p
io
7. On the top toolbar select the icon to View Fit.
no m
tr r
ut
is o
Sa
ib
8. 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.
10. Return to a Top view by clicking the right mouse button on the main graphics plot screen and select
Views>Top.
11. Experiment with the various display functions at the top right of the screen.
D t f le
n
12. Review and experiment with the various toolbar options.
p
io
no m
tr r
13. You can use Discriminator instead of Windows Notepad to type up your CNC program. Select the New
ut
document icon to create a new file and type up your program in the new document window.
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
G90 X Y
1
2
3
4
5
6
7
8
9
%
O5 ( Program #5 - CNC-PART-3 - SPOT AND DRILLING USING CANNED CYCLE DRILL G81)
N10 G20
D t f le
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
n
N30
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
4. After selecting the CNC file it opens up in a separate window.
p
io
no m
tr r
ut
is o
Sa
ib
5. Now click on the show graphics icon at the toolbar at the top of the screen to launch a plot of
your CNC file.
6. When the plot screen opens up hit the Maximize button and selects the icon to View Fit.
7. 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.
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
G90 X Y
1 0 0
2
3
4
5
6
7
8
9
10
11
%
O99 (CNC-PART-4 - SPOT AND DRILLING USING CANNED CYCLE DRILL G81)
N10 G20
D t f le
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
n
N30
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
LESSON-6
STRAIGHT LINE MILLING – LINEAR
INTERPOLATION
Page 49
LESSON-6 – STRAIGHT LINE MILLING
LESSON-6 – EXERCISE #1 - ABSOLUTE & INCREMENTAL POSITIONING
D t f le
n
p
io
no m
DIRECTION OF CUT CW
tr r
ut
is o
STARTING AT THE POINT O (ORIGIN), DESCRIBE THE ENDMILL PATH FROM O THROUGH ALL THE POINTS
Sa
AND BACK TO THE POINT O USING G90 & G91. CUTTER DIAMETER = 0.5” RADIUS = 0.25’
ib
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
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
G90 X Y
1
2
3
n
N30 T4 M6 (T4-Select tool number 4 to be loaded M06-Activates the tool changer)
N40 G00 G90 G54 X0.75 Y2.5 S3050 M3 (Rapid to the X and Y to Position #1 and turn on the spindle at
p
3050 RPM)
io
N50 G43 H04 Z0.1 (G43 - Activate the tool offset value stored in H04 and rapid to Z0.1)
N70 G1 Z-0.125 F10. (Position #1 - Feed down to Z depth at 10 inches per minute)
no m
tr r
N80 Y0.75 F20.0 (Move to Position #2 - at 20 inches per minute)
ut
is o
N90 X2.375 (Move to Position #3 - at 20 inches per minute)
N100 Z0.1 F10.0 (Retract out of the part at feedrate to 0.1 above the top of the work piece)
Sa
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.
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
G90 X Y
1 -0.5 3.125
2
3
4
5
6
7
8
9
10
11
n
spindle at 3050 RPM)
N50 G43 H04 Z0.1 (G43 - Activate the tool offset value stored in H04 and rapid to Z0.1)
p
io
N60 G1 Z-0.125 F10. (Position #1 - Feed down to Z depth at 10 inches per minute)
N70 X1.375 F20.0 (Move to Position #2 - at 20 inches per minute)
no m
tr r
N80 Y1.75 (Move to Position #3)
ut
N90 X1.5 (Move to Position #4)
is o
N100 Y3.125 (Move to Position #5)
Sa
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
G90 X Y
1 -0.5 3.0
2
3
4
5
6
7
8
9
10
11
%
O009 ( Program #9 - CNC-PART-7 - STRAIGHT LINE MILLING)
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
D t f le
N30
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
G90 X Y
1 0 -0.375
2
3
4
5
6
7
8
9
10
11
%
O10 ( Program #10 - CNC-PART- 8 - STRAIGHT LINE MILLING)
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
D t f le
N30
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
LESSON-7
CIRCULAR INTERPOLATION
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.
n
When trying to figure out a circular interpolation move answer these three
p
questions:
io
I. What is the direction of travel, clockwise or counterclockwise – G02 or G03?
II. Where is the programmed end point?
no m
tr r
III. What is the incremental distance from the start of the arc to the center of the arc being machined –
I and J values?
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
What are the circular interpolation movements G02 or G03?
is o
1. A to B Circular Interpolation (CW) G02
Sa
Radius = 0.5
D t f le
n
p
io
no m
tr r
ut
is o
Sa
1. What are the coordinates at the center of the cutter for A, B, C, and D
ib
A: X0 Y3.0 B: X Y
D: X Y
C: X Y
Radius = 0.5
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
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
Radius = 0.5
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
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:
Radius = 0.5
D t f le
n
p
io
X5.0 Y5.0
no m
tr r
ut
is o
Sa
ib
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.
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
D t f le
Y-
.
G X Y I J
n
.
Y+
ABSOLUTE (COUNTER CLOCKWISE DIRECTION)
p
io
X- START/ FINISH (-10, -5) X+
START POINT X Y
END POINT X Y
no m
ABSOLUTE INCREMENTAL .
tr r
G X Y I J
ut .
is o
D=10
INCREMENTAL (CLOCKWISE DIRECTION)
Sa
START POINT X Y
ib
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
.
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)
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
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
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
Using I and J Values Using R for Radius Values
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.
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
Using I and J Values Using R for Radius Values
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
D t f le
n
p
io
Tool #4 (Ø.500” Flat End Mill) – Mill the profile
Spindle Speed RPM =
Feed Per Tooth (FPT) = 0.003 – 2 Flute Cutter
3.82xSFM/D= 3.82x400/0.5 =3056
no m
%
O11 ( G02-G03-EXAMPLE ) N60 X4.25
ib
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 %
D t f le
n
Material: Aluminum 6061
p
CS= 400 ft/min
io
no m
Depth of Cut = Z-0.150 Start from the top right hand corner
ib
%
O12
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
MILL-LESSON-8
CIRCULAR INTERPOLATION - CONTINUED
Page 77
LESSON-8 - CNC - PART #9
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE FOUR HOLES
Sa
ib
G90 X Y
1
2
3
4
D t f le
n
p
io
no m
tr r
ut
is o
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
Sa
%
O13 ( CNC PART #9)
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
D t f le
N30
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE FOUR HOLES
ib
G90 X Y
1
2
3
4
D t f le
n
p
io
no m
tr r
ut
is o
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
Sa
%
O003
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
D t f le
N30
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
Mill Lesson 8 - 14
tr r
ib
ut
io
n
CNC PROGRAMMING
WORKBOOK
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
LESSON-9
CIRCULAR INTERPOLATION - CONTINUED
Page 91
LESSON-9 - CNC - PART #11
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE FOUR HOLES
ib
G90 X Y
1
2
3
4
D t f le
n
p
io
no m
tr r
ut
is o
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS OF THE 0.5’ DIAMETER END MILL
Sa
G90 X Y
ib
1
2
3
4
5
6
7
8
9
10
%
O003
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
D t f le
N30
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE HOLES
is o
Sa
G90 X Y
1 0 0
ib
2
3
4
5
6
7
8
9
D t f le
n
p
io
no m
tr r
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
ut
is o
POSITIONS OF THE 0.5’ DIAMETER END MILL
Sa
%
O003
N10 G20
N20 G00 G17 G40 G49 G80 G90 (MACHINE DEFAULT SETTING)
D t f le
N30
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
Mill Lesson 9 - 14
tr r
ib
ut
io
n
CNC PROGRAMMING
WORKBOOK
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
LESSON-10
CUTTER COMPENSATION
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
D t f le
compensate for the radius of the tool. A Dnn must also be programmed to select the correct tool
n
size from the DIAMETER/RADIUS offset display register.
p
io
G42 CUTTER COMPENSATION RIGHT
no m
G42 will action cutter compensation right. The tool is moved to the right of the programmed path
tr r
to compensate for the size of the tool.
ut
is o
Sa
G41
ib
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)
D t f le
n
p
io
no m
tr r
Without Cutter Compensation Using Cutter Compensation
ut
is o
% %
O10011 O10012
Sa
N1 T12 M06 (3/4” Flat Endmill) N1 T12 M06 (3/4” Flat Endmill)
N2 G90 G54 G00 X-.575 Y-.200 S1500 M03 N2 G90 G54 G00 X-.575 Y-.200 S1500 M03
ib
N3 G43 H12 Z2. N3 G43 H12 Z2.
N4 Z.1 N4 Z.1
N5 G01 Z-.25 F10. N5 G01 Z-.25 F10.
N6 X-.375 (Point B) N6 G41 X0. D12 (Origin)
N7 Y?.???? (Point C) N7 Y1.0 (P1)
N8 X?.???? Y2.375 (Point D) N8 X1.732 Y2.0 (P2)
N9 X2.875 (Point E) N9 X2.875
N10 M05 N10 G40 M05
N11 G00 Z2. N11 G00 Z2.
N12 G91 G28 Z0. (Machine Home Z-Axis) N12 G91 G28 Z0. (Machine Home Z-Axis)
N13 G28 X0. Y0. (Machine Home X,Y-Axis) N13 G28 X0. Y0. (Machine Home X,Y-Axis)
N14 M30 N14 M30
% %
The Cutter Compensation (G41) will reflect the actual part geometry (O, P1, P2..) instead of Cutter
Centers (Point B,C,D & E)
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE TWO HOLES
ib
G90 X Y
1
2
D t f le
n
p
io
no m
tr r
ut
is o
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
POSITIONS OF THE 0.75’ DIAMETER END MILL TO MACHINE THE CONTOUR
Sa
G90 X Y G90 X Y
ib
1 12
2 13
3 14
4 15
5 16
6 17
7
8
9
10
11
D t f le
n
p
io
no m
tr r
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
ut POSITIONS OF THE 0.75’ DIAMETER END MILL TO MACHINE THE POCKET
is o
G90 X Y
Sa
1
ib
2
3
4
5
6
7
8
9
10
11
12
13
n
N30
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE TWO HOLES
ib
G90 X Y
1
2
D t f le
n
p
io
no m
tr r
WORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
ut
is o
POSITIONS OF THE 0.75’ DIAMETER END MILL TO MACHINE CONTOUR
G90 X Y G90 X Y
Sa
1 12
ib
2 13
3 14
4 15
5 16
6 17
7
8
9
10
11
D t f le
n
p
io
no m
tr r
utWORK OUT THE ABSOLUTE X AND Y COORDINATES FOR THE VARIOUS
is o
POSITIONS OF THE 0.75’ DIAMETER END MILL TO MACHINE POCKET
Sa
G90 X Y
1
ib
2
3
4
5
6
7
8
9
10
11
12
13
n
N30
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
Lesson 10 - 18
tr r
ib
ut
io
n
CNC PROGRAMMING
WORKBOOK - MILL
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
APPENDIX
Page 123
Appendix – Extra CNC Programming Exercises
Exercise #1
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
io
no m
tr r
ut
is o
Sa
ib
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
D t f le
13. Minimum of five letters
14. You can use the suggested letter shapes & size or create your own lettering design.
n
p
io
Suggested Lettering:
no m
tr r
ut
is o
Sa
ib
G04 DWELL
n
G17 CIRCULAR MOTION XY PLANE SELECTION (G02 or G03)
p
G18 CIRCULAR MOTION ZX PLANE SELECTION (G02 or G03)
io
G19 CIRCULAR MOTION YZ PLANE SELECTION (G02 or G03)
no m
tr r
G20 VERIFY INCH COORDINATE POSITIONING
ut
is o
G21 VERIFY METRIC COORDINATE POSITIONING
Sa
n
G55 WORK OFSET COORDIANTE POSITIONING #2
p
G56 WORK OFSET COORDIANTE POSITIONING #3
io
G57 WORK OFSET COORDIANTE POSITIONING #4
no m
tr r
G58 WORK OFSET COORDIANTE POSITIONING #5
ut
is o
G59 WORK OFSET COORDIANTE POSITIONING #6
Sa
n
G83 PECK DRILL CANNED CYCLE (X, Y, A, B, Z, I, J, K, Q, P, R, L, F)
p
G84 TAPPING CANNED CYCLE (X, Y, A, B, Z, J, R, L, F)
io
G85 BORE IN, BORE OUT CANNED CYCLE (X, Y, A, B, Z, R, L, F)
no m
tr r
G86 BORE IN, STOP, RAPID OUT CANNED CYCLE (X, Y, A, B, Z, R, L, F)
ut
is o
G87 BORE IN AND MANUAL RETRACT CANNED CYCLE (X, Y, A, B, Z, R, L, F)
Sa
M08 COOLANT ON
n
M21-M28 OPTIONAL USER M CODE INTERFACE WITH M-FIN SIGNAL
p
M30 PROGRAM END AN RESET
io
M31 CHIP AUGER FORWARD
no m
tr r
M32 CHIP AUGER REVERSE
ut
is o
M33 CHIP AUGER STOP
Sa
n
M80 AUTOMATIC DOOR OPEN
p
M81 AUTOMATIC DOOR CLOSE
io
M82 TOOL UNCLAMP
no m
tr r
M83 AUTO AIR JET ON
ut
is o
M84 AUTO AIR JET OFF
Sa
n
1/32 = .0313 31 = .120 D = .246 9/16 = .5625
67 = .032 1/8 = .1250 1/4 (E) = .250 37/64 = .5781
p
66 = .033 30 = .1285 F = .257 19/32 = .5938
io
65 = .035 29 = .136 G = .261 39/64 = .6094
64 = .036 28 = .1405 17/64 = .2656 5/8 = .625
no m
n
5/16-18 F 1/4-28 #3
3/8-16 5/16 5/16-24 I
p
7/16-14 U 3/8-24 Q
io
1/2-13 27/64 7/16-20 W
9/16-12 31/64 1/2-20 29/64
no m
n
3.5 x .6 2.9 10 x 1 9
4 x .7 3.3 10 x 1.25 8.8
p
4.5 x .75 3.7 11 x 1 10
io
5 x .8 4.2 12 x .75 11.25
6x1 5 12 x 1 11
no m
11 x 1.5 9.5 16 x 1 15
12 x 1.75 10.2 16 x 1.5 14.5
ib
14 x 2 12 18 x 1 17
16 x 2 14 18 x 2 16
18 x 2.5 15.5 20 x 1 19
20 x 2.5 17.5 20 x 1.5 18.5
22 x 2.5 19.5 20 x 2 18
24 x 3 21 22 x 1 21
27 x 3 24 22 x 1.5 20.5
30 x 3.5 26.5 22 x 2 20
24 x 1.5 22.5
24 x 2 22
26 x 1.5 24.5
27 x 1.5 25.5
27 x 2 25
28 x 1.5 26.5
30 x 1.5 28.5
30 x 2 28
CENTER DRILLING
Before most drilling operations take place a starting drill must be programmed to make a small
hole for the larger drill that will follow. The tool used to make the starting hole is known as a
center drill, sizes of center drills vary and the use of the different sizes is governed by the size of the
drill that will be used after. The following is a chart that will assist in choosing the proper size of
the center drill and programming the correct Z depth.
D t f le
n
p
io
no m
tr r
ut DRILL POINT LENGTH
is o
Sa
On most engineering drawings the finished depth of the hole will be given from the front edge of
the part to the end of the parallel part of the hole (not including the drill point). This poses a
ib
programming problem because we program from the point of the drill so any Z depth we specify
has to include the length of the drill point. To do this we have a calculation to perform based on
the diameter of the drill and the angle of the drill point (usually 118°). Quite simply the
calculation is as follows:
Drill Point Length = Diameter x Constant
Where DIA. refers to the drill diameter and the constant is stated in the following chart
DRILL ANGLE CONSTANTS
60°= 0.866 110°= 0.350
75°= 0.652 118°= 0.300
80°= 0.596 120°= 0.289
82°= 0.575 135°= 0.207
90°= 0.500 150°= 0.134
100°= 0.420 180°= 0.000
D t f le
n
p
io
4. Double click or open the Discriminator folder as shown below:
no m
tr r
ut
is o
Sa
ib
D t f le
n
p
Installation Instructions for Online Course users:
io
1. Go to the Course Intro page of the Online Course as shown below:
no m
tr r
ut
is o
Sa
ib
2. Locate the “What you need to complete this course” section on this page and click on the
Discriminator link to download the Discriminator 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 Discriminator.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 Discriminator21017.exe.
5. Follow the instructions on the screen.