Haas Lathe
Haas Lathe
Haas Lathe
JANUARY 2006
PROGRAMMING
HAAS AUTOMATION INC. 2800 Sturgis Road Oxnard, California 93030 Phone: 805-278-1800 www.HaasCNC.com
The information in this workbook is reviewed regularly and any necessary changes will be incorporated in the next revision. This material is subject to change without notice. Warning: This workbook is for the exclusive use of Haas Customers, Distributors and Trainers and is protected by copyright law. The reproduction, transmission or use of this document or its contents for profit is not permitted. All content is the property of Haas Automation, Inc., copyright 2006. This Workbook may not be copied,distributed or reproduced for profit, in full or in part, without written permission from Haas Automation, Inc. This training information is being supplied for free to all Haas customers and schools that are learning to use Haas equipment. Haas information should never be modified unless you have written permission by Haas Automation. Enquiries to Haas Automation about training information or a letter of authorization to copy, contact [email protected]
PROGRAMMING
JANUARY 2006
If you wish to write Haas Automation, please use this address: Haas Automation, Inc. 2800 Sturgis Road Oxnard, CA 93030 Att: Customer Satisfaction Manager e-mail: [email protected] Once you contact the Haas Automation Customer Service Center, we will make every effort to work directly with you and your distributor to quickly resolve your concerns. At Haas Automation, we know that a good Customer-Distributor-Manufacturer relationship will help ensure continued success for all concerned. NOTE: Should you have a problem with your machine, please consult your operator's manual first. If this does not resolve the problem, call your authorized Haas distributor. As a final solution, call Haas directly at the number indicated below.
Haas Automation, Inc. 2800 Sturgis Road Oxnard, California 93030-8933 Phone: (805) 278-1800
USA
II
JANUARY 2006
PROGRAMMING
CONTENTS
INTRODUCTION ........................................................................................................ 1 HAAS LATHE SPECIFICATIONS ..................................................................................... 2 THE COORDINATE SYSTEM ......................................................................................... 3 MACHINE HOME ...................................................................................................... 4 ABSOLUTE AND INCREMENTAL POSITIONING ................................................................... 5 TYPICAL LATHE PART ................................................................................................ 7 PROGRAMMING WITH CODES ..................................................................................... 10 PROGRAM FORMAT ................................................................................................. 11 DEFINITIONS WITHIN THE FORMAT .............................................................................. 13 SAFE START UP LINE??? ........................................................................................... 14 OFTEN USED PREPARATORY "G" CODES ........................................................................ 16 OFTEN USED PREPARATORY "M" CODES ........................................................................ 17 PROGRAM STRUCTURE ............................................................................................ 18 MISCELLANEOUS FUNCTIONS "M" CODES ...................................................................... 20 PREPARATORY FUNCTIONS "G" CODES ......................................................................... 22 MACHINE DEFAULTS ................................................................................................ 25 MACHINE CYCLES FOR THE LATHE ............................................................................... 26 ALPHABETICAL ADDRESS CODES ................................................................................ 28 RAPID POSITION COMMAND (G00) .............................................................................. 31 LINEAR INTERPOLATION COMMAND (G01) ..................................................................... 32 LINEAR INTERPOLATION EXERCISE.............................................................................. 33 CIRCULAR INTERPOLATION COMMANDS (G02 G03) .......................................................... 34 CIRCULAR INTERPOLATION EXERCISES ......................................................................... 38 CHAMFERING AND CORNER ROUNDING WITH G01 ........................................................... 41 CHAMFERING AND CORNER ROUNDING WITH G01 EXERCISE .............................................. 45 MISCELLANEOUS G CODES (G04) ................................................................................ 46 INCH / METRIC SELECTION (G20, G21) .......................................................................... 46 REFERENCE POINT RETURN COMMANDS (G28 G51) ......................................................... 47 SPINDLE SPEED COMMANDS (G50, G96, G97) ................................................................ 48 WORD COORDINATE SYSTEM COMMANDS (G52 G53 G54-G59 G110-G129) ............................. 49 FEED COMMANDS (G98 G99) ...................................................................................... 50
III
PROGRAMMING
JANUARY 2006
CONTENTS
MANUALLY PROGRAMMING TNC FOR A RADIUS .............................................................. 50 MANUALLY PROGRAMMING TNC FOR AN ANGLE ............................................................. 53 TOOL NOSE COMPENSATION (G40, G41, G42) ................................................................. 56 TOOL TIP DIRECTION DIRECTION CHARTS ...................................................................... 68 EXAMPLE PROGRAM USING TOOL NOSE COMPENSATION ................................................... 74 MACHINE CYCLES FOR TURNING AND GROOVING ............................................................ 78 O.D. AND I.D. STOCK REMOVAL CYCLE (G71) ................................................................. 79 TYPE I ROUGHING MACHINING DETAILS (G71) ................................................................. 81 FINISHING CYCLE (G70) ............................................................................................ 83 G71/G70 TYPE I ROUGHING & FINISHING AN O.D. WITH TNC EXERCISE .................................. 86 G71/G70 TYPE I ROUGHING & FINISHING AN I.D. WITH TNC EXAMPLE .................................... 88 TYPE II ROUGH MACHINING DETAILS (G71)..................................................................... 89 TYPE II ROUGHING EXAMPLE (G71) .............................................................................. 90 71/G70 TYPE II ROUGHING & FINISHING AN O.D. WITH TNC EXERCISE ................................... 92 END FACE STOCK REMOVAL CYCLE (G72) ....................................................................... 94 TYPE I ROUGHING MACHINING DETAILS (G72) ................................................................. 95 G72/G70 TYPE I ROUGHING & FINISHING A FACE WITH TNC EXERCISE.................................... 98 IRREGULAR PATH STOCK REMOVAL CYCLE (G73) ............................................................ 100 G73/G70 TYPE I IRREGULAR STOCK REMOVAL & FINISHING AN O.D. WITH TNC EXERCISE .......... 102 END FACE GROOVING CYCLE OR HIGH SPEED PECK DRILLING (G74) ..................................... 104 G74 SINGLE PASS PROGRAM EXAMPLE ....................................................................... 105 G74 MULTIPLE PASS PROGRAM EXAMPLE .................................................................... 106 G74 HIGH SPEED PECK DRILLING EXAMPLE ................................................................... 107 O.D. / I.D. GROOVING CYCLE (G75) ............................................................................. 108 G75 SINGLE PASS PROGRAM EXAMPLE ....................................................................... 109 G75 MULTIPLE PASS PROGRAM EXAMPLE .................................................................... 110 MULTIIPLE PASS THREAD CUTTING CYCLE (G76) ............................................................. 111 G76 MULTIIPLE PASS THREAD CUTTING CYCLE EXAMPLE .................................................. 113 THREAD CHARTS ................................................................................................... 115 G76 O.D. THREADING EXERCISE ................................................................................ 117 DRILLING BORING AND TAPPING CANNED CYCLES .......................................................... 118
IV
JANUARY 2006
PROGRAMMING
CONTENTS
CANCEL CANNED CYCLE (G80) ................................................................................... 119 DRILL CANNED CYCLE (G81) ..................................................................................... 119 SPOT DRILL/COUNTERBORE CANNED CYCLE (G82) .......................................................... 120 DEEP HOLE PECK DRILLING CANNED CYCLE (G83)........................................................... 121 TAPPING CANNED CYCLE (G84) .................................................................................. 123 REVERSE TAPPING CANNED CYCLE (G184) .................................................................... 124 BORE IN BORE OUT CANNED CYCLE (G85) ..................................................................... 125 BORE IN STOP RAPID OUT CANNED CYCLE (G86) ............................................................ 126 BORE IN MANUAL RETRACT CANNED CYCLE (G87) .......................................................... 127 BORE IN DWELL MANUAL RETRACT - CANNED CYCLE (G88) ............................................... 128 BORE IN DWELL BORE OUT CANNED CYCLE (G89) ........................................................... 129 O.D./I.D. TURNING CYCLE MODAL (G90) ....................................................................... 130 G90 MODAL TURNING CYCLE WITH TNC EXAMPLE........................................................... 131 THREAD CUTTING CYCLE MODAL (G92) ........................................................................ 132 END FACE TURNING CYCLE MODAL (G94) ..................................................................... 134 G94 MODAL TURNING CYCLE WITH TNC EXAMPLE........................................................... 135 MISCELLANEOUS CODES SUMMARY (M CODES) ............................................................. 136 M CODE DETAILED DESCRIPTION ................................................................................ 138
PROGRAMMING
JANUARY 2006
VI
JANUARY 2006
PROGRAMMING
INTRODUCTION
This workbook provides basic programming principles necessary to begin programming the HAAS C.N.C. Lathe. In a CNC (Computerized Numerical Control) machine, the tool is controlled by a computer and is programmed with a machine code system that enables it to be operated with minimal supervision and with a great deal of repeatability. The same principles used in operating a manual machine are used in programming a CNC machine. The main difference is that instead of cranking handles to position a slide to a certain point, the dimension is stored in the memory of the machine control once. The control will then move the machine to these positions each time the program is run. In order to operate and program a CNC controlled machine, a basic understanding of machining practices and a working knowledge of math is necessary. It is also important to become familiar with the control console and the placement of the keys, switches, displays, etc., that are pertinent to the operation of the machine. This Haas lathe workbook can be used for both operators and programmers. It is meant as a supplementary teaching aid for the user of HAAS Lathes. The information in this workbook may apply in whole or in part to the programming of other CNC machines. It is intended to give a basic understanding of CNC programming and its applications. It is not intended as an in-depth study of all ranges of the machine use, but as an overview of common and potential situations facing CNC programmers. Much more training and information is necessary before attempting to program on the machine. For a complete explanation and an in-depth description, refer to the Programming and Operation Manual that is supplied with your HAAS lathe.
PROGRAMMING
JANUARY 2006
SL-10
SL-20
TL-15*
SL-30
TL-25*
SL-40
SPINDLE
Peak Horsepower Max. RPM Spindle Nose Spindle Bore Dia. Draw Tube Bore Dia.
7.5Hp 6,000 rpm A2-5 1.38" 15Hp 6,000 rpm A2-5 2.31" 20Hp 4,000 rpm A2-6 3.00" 20Hp 4,000 rpm A2-6 3.00" 30Hp 3,400 rpm A2-6 3.50" 30Hp 3,400 rpm A2-6 3.50" 3.03" 40Hp 2,400 rpm A2-8 4.62"
1.18"
1.81"
2.06"
2.06"
3.03"
4.06"
SWING DIAMETER
Over front apron Over cross slide
5.8" 16.25" 8.0" 23.0" 9.5" 20.0" 9.5" 30.0" 14.5" 30.0" 14.5" 40.0" 25.0"
TRAVELS
X-Axis Z-Axis
12.0" 12.0" 6.25" 14.0 8.45" 20.0" 7.5" 17.5 11.3" 34.0" 11.3" 23.0" 17.0" 44.0"
FEED RATES
Axis Motors Max. Thrust 2000 Ibs. Rapid - AC Brushless 600 ipm
3400 Ibs. 710 ipm Turret 12 3400 Ibs. 710 ipm Turret 10 3400 Ibs. 710 ipm Turret 12
SL-30, 25, 40 X=3400 Ibs. Z=5400 Ibs. 710 ipm 710 ipm 710 ipm
For
TOOLS
Number Of Tools
Gang style up to 10
Turret 12
Turret 12
Turret 10
MISCELLANEOUS
Coolant (U.S. Gallons)
24 15 40 40 50 50 77
TAILSTOCK
Taper Travel Thrust
* Live
Tooling Lathe
MT3 4.0"
MT4 20"
MT4 33.5"
300-1500 Ibs.
MT5 44"
300-1500 Ibs.
JANUARY 2006
PROGRAMMING
PROGRAMMING
JANUARY 2006
The zero position may be placed at any point along each of the two number lines, and in fact will probably be different for each setup of the machine. It is noteworthy to mention here that the X-axis is usually set with the machine zero position on the center line of the spindle, while the Z axis zero is usually set at the finished right end surface of the part being machined. This places all X axis cutting in a positive range of travel, whereas the Z axis cutting would be in the negative range of travel. The diagram at left shows a front view of the grid as it would appear on the lathe. This view shows the X and Z axes as the operator faces the lathe. Note that at the intersection of the two lines, a common zero point is established. The four areas to the sides and above and below the lines are called QUADRANTS and make up the basis for what is known as rectangular coordinate programming.
1 2 3 4
is is is is
on on on on
Top Right at X+, Z+ Top Left at X+, ZBottom Left at X-, ZBottom Right at X-, Z+
Whenever we set a zero somewhere on the X axis and somewhere on the Z axis, we have automatically caused an intersection of the two lines. This intersection where the two zeros come together will automatically have the four quadrants to its sides, above, and below it. How much of each quadrant that is accessible is determined by where we place the zeros on the travel axes of the lathe. For example, if we set zero exactly in the middle of the Z axis and if we set the X axis zero on the spindle center line, we have created four quadrants. For an SL-20 for example, the upper two quadrants of the Z travel is 10 inches and the X travel is 7.45 inches. The lower two quadrants will have Z travel of 10 inches and X travel of 1 inch. The HAAS lathes have 1 inch of negative travel beyond the center line of the spindle.
MACHINE HOME
The principal of machine home may be seen when doing a reference return of all machine axes at machine startup. A zero return (POWER UP/RESTART) is performed when you power on machine. All axes will then move to the furthest positive locations, to the upper right of machine, until the limit switches are reached. When this condition is satisfied, the only way to move any of the axes is in the negative direction. This is because the machine zero, is set to the furthest positive point to the upper right of the machine, when the machine was sent Home with a POWER UP/RESTART. Machine Home is placed at the edge of each axes travel. In effect, now the positive quadrants cannot be reached, and all the X and Z moves will be found to be in the X-, Zquadrant. It is only by setting a new location with, Tool Geometry and Work Zero Offsets somewhere within the travel of each axis that other quadrants are able to be reached.
JANUARY 2006
PROGRAMMING
X+
Z-
Z+
XIt would not be convenient to program our parts from the machine zero, so secondary floating zero point is established with offsets. This floating zero is referred to by either, PART ZERO or PART ORIGIN, both having the same meaning. To create the new part zero location, each tool is manually touched off of the part being setup, on the diameter and the length. Then through a series of control key strokes, that distance from machine zero to the part zero is stored for X & Z axes, in tool offsets, and activated later, from the part program, when that tool is used for cutting a part. Centerline of the lathe spindle will always be "X" zero and the "Z zero location will "float" to the face on the part that reflects most of the part length dimensions. Normally the front face is used, because its usually easier to access for touch-off procedure and also easier to program.
PROGRAMMING
JANUARY 2006
An example of the use of the incremental system is shown below. Note that to move from Z-3.375 to Z-.625 on the scale, a positive incremental move of W2.750 was made, even though the move W still places the tool on the minus side of the Z scale. Therefore the move was determined from the start point position, with no regard for the fixed zero reference point. The + and - signs are used in terms of direction from the starting point, and are not defined in regard to the part zero point.
An example of an incremental move. Keep in mind that when positioning in absolute, we are concerned with distance and direction from a fixed part zero reference point, and when positioning in incremental we are concerned with distance and direction from the last point. Absolute mode should be your positioning mode of choice for most applications. There are times when incremental mode can be quite helpful. Repeating motions within a subroutine, for example, is one excellent example. If you have six identical grooves to turn on a Haas lathe, you can save programming effort if you specify the motions incrementally to machine one groove. Then just call up the subroutine again to repeat the commands to do another groove at a new location. There are even times when it is helpful to command one axis move in the absolute mode while another moves in incremental mode. Any turning center using U and W to specify incremental motions in X and Z easily allows this. Say youre experiencing some unwanted taper on a diameter and you want to program a tapering movement to counteract the problem. In the command that turns the diameter that is experiencing unwanted taper, you can specify the Z endpoint in absolute mode from program zero and the X endpoint as an incremental move. Here is an example: N040 G01 U0.002 Z-2.5 F0.005 In this command, the tool will move 0.002 inch, on the diameter, in the X positive direction while the Z axis moves to an endpoint of minus 2.5 inches relative to program zero. Note: The Haas lathe used absolute X dimensions based on the part diameter, not the radius. Thus an X move from 0. to 1.0 (X1.0) will only move the tool up .5 on the X axis. Like X axis absolute moves, incremental U movements are specified for the part diameter, not the radius. Thus a U move from 0. to 1.0 (U1.0) will only move the tool up .5 incrementally on the X axis.
JANUARY 2006
PROGRAMMING
PROGRAMMING
JANUARY 2006
We can now take our TYPICAL LATHE PART and record the geometry points needed to program this part. Diameters are defined as the actual diameter value and not the radius from center.
X
(Diameter not Radius)
Z
______________ ______________ ______________ ______________ ______________
JANUARY 2006
PROGRAMMING
Calculate and record the X-axis diameters and Z-axis lengths for the part shown below. The values between (parenthesis) would be points where the tool is already located, and those points in a program, would not need to be defined again.
Pt 1 Pt 2 Pt 3 Pt 4 Pt 5 Pt 6 Pt 7 Pt 8 Pt 9
Z ________
( _______ )
________ ________
( _______ )
________
( _______ )
________
( _______ )
________ ________
PROGRAMMING
JANUARY 2006
and so on. But our machine control understands only these messages when given in machine code, also referred to as G and M code programming. Before considering the meaning and the use of codes, it is helpful to lay down a few guidelines.
10
JANUARY 2006
PROGRAMMING
PROGRAM FORMAT
There is no positional requirement for the address codes. They may be placed in any order within the block. Each individual can format their programs many different ways. But, Program format or program style is an important part of CNC machining. There are some program command formats that can be moved around, and some commands need to be a certain way, and there are some standard program rules that are just good to follow. The point is that a programmer needs to have an organized program format thats consistent and efficient so that any CNC machinist in your shop can understand it. Some standard program rules to consider are: Program X and Z in alphabetical order on any block. The machine will read Z or X in any order, but we want to be consistent. If both X and Z are on a command line in a program, they should be listed together and in order. Write X first, and Z second. You can put G and M codes anywhere on a line of code. But, in the beginning when N/C programming was being developed G codes had to be in the beginning of a program line and M codes had to be at the end. And this rule, a lot of people still follow and is a good standard to continue. Some CNC machines allow you to write more the one M code per line of code and some wont. On the HAAS, only one M code may be programmed per block and all M codes are activated or cause an action to occur after everything else on the line has been executed. Program format is a series and sequence of commands that a machine may accept and execute. Program format is the order in which the machine code is listed in a program that consist of command words. Command words begin with a single letter and then numbers for each word. If it has a plus (+) value, no sign is needed. If it has a minus value, it must be entered with a minus (-) sign. If a command word is only a number and not a value, then no sign or decimal point is entered with that command. Program format defines the "language of the machine tool." ... ... G82 Z-0.2 P0.3 R0.1 F0.003 G80 G00 Z1. M09 G28 MO1 N4 (Drill .312 Dia. x 1.5 Depth) G28 T404 (5/16 DIA. DRILL) G97 S2400 M03 G54 G00 X0. Z1. M08 G83 Z-1.5 Q0.3 R0.1 F0.006 G80 G00 Z1. M09 G28 MO1 ... ... 11
PROGRAMMING
JANUARY 2006
G28 ; T101 (O.D. TOOL x .031 TNR); G50 S2800 ; G97 S650 M03 ; G54 G00 X1.85 Z1. M08; G96 S315 ;
G28 ; T101 (.750 DIA. DRILL); G97 S1600 M03 ; G54 G00 X0. Z1. M08;
All the necessary codes for each operation are listed in the following pages. This tool startup format is a good example and defines a commonly used program style.
12
JANUARY 2006
PROGRAMMING
13
PROGRAMMING
JANUARY 2006
(X)
(Z)
(B)
52 0. 0. 0. 54 0. -0.015 0. 55 0. 0. 0. ... Another main reason to use a work offset on a lathe, is when youre touching off your tools on a tool probe. The X axis value is usually always good to the center of the spindle using the value touched off in the X axis on a tool probe along with the value in Setting 59 or 60. The problem is the distance from the edge of the tool probe in the Z axis to the face of the part. So compensate for that difference in the Work Zero Offset, that has in it, the extra distance from the edge of the tool probe to the face of the part, in the Z axis.
14
JANUARY 2006
PROGRAMMING
Be aware that even if youre not using a work offset command in a program, G54 is still active as a default G code. This is why you see G54 is in the program examples of this book, as a reminder that this work offset is active wether you program it in or not. If youre never using work offsets, you may choose to leave this G54 command out. G40 Cancels Tool Nose Compensation - You may see a G40 in the beginning of every program. And some even put it in at the beginning of every tool, to be sure cutter compensation is off, before they start a program. You should always cancel cutter compensation (G40) when youre done using it. If you forget to cancel cutter compensation on a lathe, and you run a program in graphics, youll get a 349PROG STOP W/O CANCEL CUTTER COMP alarm. To let you know, that you ended a program without canceling cutter compensation. Pressing RESET or POWER OFF will also cancel cutter compensation. Because of these conditions that cancel cutter compensation, you dont need to put a G40 at the beginning of every program. G80 Cancels Canned Cycles - If you forget to cancel a canned cycle with a G80, RESET, G00, G01, M30 and Power Down will also cancel any active canned cycle. G97 Constant Non-Varying Spindle Speed - For safety reasons you should program in a G97 at the beginning and end of every tool cycle, with a spindle speed. G99 Feed Per Revolution - This command changes how the F address is interpreted. The F command indicates inches per spindle revolution when Setting 9 is set to INCH. If Setting 9 is set to METRIC, F indicates millimeters per revolution. G99 and G98 are modal commands. G99 is the default command, and the one youll usually want. In certain situations you may choose G98 for Feed Per Minute, and then switch back to G99. But most customers, will already be in G99 and never switch to G98, so theres usually no need to have it in a safe start line. If a mistake is made, using the wrong feed command, youll easily see it when it happens, when running the program on the machine. Example: If you program a feed of F0.005 to feed per revolution, and you accidentally program in a G98 (Feed Per Minute), then it would take forever to feed .005 a minute. If you programmed F10. for feed per minute (G98), and you were accidentally in Feed Per Revolution (G99), and you had the spindle on, lets say at a low speed of S200. The calculated feedrate for this would be 2000ipm, which is above the machine maximum feed rate. The machine would stop and give you an alarm. There might be good reasons why you want a safe start line at the beginning of every program, and some programers like having it at the beginning of every tool, as a safety precaution. You may have other machines running these same programs that may need safe start up lines. But for many, it may not be necessay. Because of these reasons listed above. Its up to the programer to decide if they want safe start up lines in their programs.
15
PROGRAMMING
JANUARY 2006
G01
G02 G03 G28 G40 G41 G42 G50 G70 G71 G72 G76 G80 G81 G82 G83 G84 G96 G97 G98 G99
16
JANUARY 2006
PROGRAMMING
M01
NOTE: Only one "M" code can be used per line. And the "M" codes will be the last command executed in a line, regardless of where it's located in that line.
17
PROGRAMMING
JANUARY 2006
PROGRAM STRUCTURE
A CNC part program consists of one or more blocks of commands. When viewing the program, a block is the same as a line of text. Blocks shown on the CRT are always terminated by the ; symbol which is called an EOB (End Of Block). Blocks are made up of alphabetical address codes which are always an alphabetical character followed by a numeric value. For instance, the specification to move the X-axis would be a number proceeded by the X symbol. Programs must begin and end with a percent (%) sign. After the first percent (%) sign with nothing else on that line, the next line in a program must have a program number beginning with the letter O (not zero) and then the number that defines that program. Those program numbers are used to identify and select a main program to be run, or as a subprogram called up by the main program. The % sign will "not" be seen on the control. But they must be in the program when you load a program into the control. And they will be seen when you download a program from the machine. The % signs are automatically entered in for you, if you enter a program in on the HAAS control. A program may also contain a / symbol. The / symbol, sometimes called a slash, is used to define an optional block. If a block contains this symbol, any information that follows the slash in a program block, will be ignored when the BLOCK DELETE button is selected when running a program. On the following page is a sample program as it would appear on the CRT. The words following the : are not part of the actual program but are put there as further explanation. This program will rough and finish turn and face for a part with two diameters along with drilling and tapping for a 3/8-16 x 1.0 deep threaded hole one end. % O00018 ; (CNC LATHE PROGRAM EXAMPLE) ; N1 (Rough O.D.) ; G28 ; T101 (O.D. TOOL x .031 TNR) ; G50 S2600 ; G97 S414 M03 ; G54 G00 X3.6 Z0.1 MO8 ; G96 S390 ; G00 Z0.005 ; G01 X-0.063 F0.005 ; G00 X3.6 Z0.1 ; G71 P10 Q20 U0.01 W0.005 D0.1 F0.01 :Program must begin and end with a % :Letter O and a five digit program number :Comment statement between parenthesis :First operation :Return to machine zero for a tool change, cancel tool offset :Select tool 1 with offset 1 :Set spindle speed max. clamp 2600 RPM :Cancel CSS, 415 spindle speed, on forward :Work offset, rapid X, Z axes, coolant on :CSS on at 390 SFM, coolant on :Rapid to .005 from the end of part :Rough face end of part :Rapid to start point above part ;:Rough turning G71 canned cycle using the path defined :between N10 thru N20, leaving .010 stock on the X-axis :diameters, .005 stock on the linear faces, with 0.1 depth :of cut each pass, feeding .010 per revolution. :N10 is the starting block called by the P block in the G71 :line that difines in it the geometery to rough out.
JANUARY 2006
PROGRAMMING
X0.9 ; :Lines that defines the part geometery to rough out G03 X1. Z-0.05 R0.05 ; / G01 Z-1.75 ; / X1.75 ; / G03 X2.25 Z-2. R.25 ; G01 Z-3.25 F0.004 ; X2.94 ; X3. Z-3.28 ; Z-4.1 ; N20 G40 X3.6 ; :End of geometery with Q20 in G71 line, cancel cutter comp. G97 S414 M09 ; :Cancel CSS, coolant off G28 ; :Return to machine zero for a tool change, cancel tool offset MO1 ; :Optional program stop ; N2 (FINISH O.D.) ; :Second operation G28 ; :Return to machine zero for a tool change, cancel tool offset T202 (O.D. TOOL x .031 TNR) ; :Select tool 2 with offset 2 G50 S2600 ; :Spindle speed max. of 2600 RPM G97 S1354 M03 ; :Cancel CSS, 1350 spindle speed, on forward G54 G00 X1.1 Z0.1 M08 ; :Work offset, rapid X and Z axis, coolant on G96 S390 ; :CSS on at 390 SFM G00 Z0. ; :Rapid to end of part G01 X-0.032 F.003 ; :Finish face end of part G00 X3.6 Z0.1 ; :Rapid to start point above part G70 P10 Q20 ; :Finishing cycle calling N10thru N20 to do a finish pass G97 S414 ; :Cancel CSS, 475 spindle speed G00 Z1.0 M09 ; :Rapid Z axis, coolant off G28 ; :Return to machine zero for a tool change, cancel tool offset M01 ; :Optional program stop ; N3 (Drill .750 Dia. x 2.5 Depth) ; :Third operation G28 ; :Return to machine zero for a tool change, cancel tool offset T303 (3/4 DIA. DRILL) ; :Select tool 3 with offset 3 G97 S1986 M03 ; :Cancel CSS, 1950 spindle speed, on forward G54 G00 X0. Z1. M08 ; :Work offset, rapid X and Z axis, coolant on G83 Z-2.5 Q0.3 R0.1 F0.005 ; :Deep hole peck drill 2.5 deep with a 0.3 peck G80 G00 Z0.1 M09 ; :Cancel canned cycle, rapid Z axis, coolant off G28 ; :Return to machine zero for a tool change, cancel tool offset T100 ; :Select tool 1 to get ready for the next part M30 ; :Stop program, rewind to beginning % :Program must end with a % It is common to begin each tool in a part program with preparatory codes, turning on commands associated for that tool, and then ending by returning to machine home, or a safe location, to position for a tool change. There might be a number of commands that are repeated throughout the program. This is done for safety to insure that the proper commands are attained if the operator has to begin, at the start of a tool in the middle of a program, in the event of tool breakage, to rerun a tool, or finish a part after powering up the machine. This is a common programming practice. 19
PROGRAMMING
JANUARY 2006
M00 Program Stop (Setting 42) M01 Optional Program Stop (Setting 17) M02 Program End M03 Spindle On Forward (S) (Setting 144) M04 Spindle On Reverse (S) (Setting 144) M05 Spindle Stop M08 Coolant On (Setting 32) M09 Coolant Off M10 Chuck Clamp (Setting 92) M11 Chuck Unclamp (Setting 92) M12** Auto Air Jet On M13 ** Auto Air Jet Off M14** Main Spindle Clamp M15** Main Spindle Unclamp M17 Rotate Turret Forward (T) (Setting 97) M18 Rotate Turret Reverse (T) (Setting 97) M19** Orient Spindle (R, P) M21** Tailstock Advance (Setting 93, 94, 106, 107, 121, 145) M22** Tailstock Retract (Setting 105) M23 Angle Out of Thread On (Setting 95, 96) M24 Angle Out of Thread Off M30 Program End and Reset (Setting 2, 39, 56, 83) M31 ** Chip Auger Forward (Setting 114, 115) M33 Chip Auger Stop M36** Parts Catcher On M37** Parts Catcher Off M41 Spindle Low Gear Override M42 Spindle High Gear Override M43 Turret Unlock (For Service Use Only) M44 Turret Lock (For Service Use Only) M51-M58 Optional User M Code Set M59 Output Relay Set M61-M68 Optional User M Code Clear
20
JANUARY 2006
PROGRAMMING
M69 Output Relay Clear M76 Program Displays Active M77 Program Displays Inactive M78 Alarm if skip signal found M79 Alarm if skip signal not found M85** Automatic Door Open (Setting 131, 51) M86** Automatic Door Close (Setting 131, 51) M88** High Pressure Coolant On (Setting 32) M89** High Pressure Coolant Off M93** Axis Position Capture Start M94** Axis Position Capture Stop M95 Sleep Mode (hh:mm) M96 Jump If No Signal (P,Q) M97 Local Sub-Routine Call (P,L) M98 Sub-Program Call (P,L) M99 Sub-Program/Routine Return Or Loop (Setting 118) M110** Tailstock Chuck Clamp (Setting 122) M111** Tailstock Chuck Unclamp (Setting 122) M119** Sub-Spindle Orient (P,R) M121-M128 Optional User M Code Interface with M-Fin Signal M133** Live Tool Drive Forward (P) M134** Live Tool Drive Reverse (P) M135** Live Tool Drive Stop M143** Sub-Spindle Forward (P) M144** Sub-Spindle Reverse (P) M145** Sub-Spindle Stop M154** C-Axis Engage (Setting 102) M155** C-Axis Disengage
** Options
21
PROGRAMMING
JANUARY 2006
Code Group G00* 01 G01 01 G01 01 G02 01 G03 01 G04 00 G05 ** 00 G09 00 G10 00 G14 ** 00 G15** 00 G17** 02 G18* 02 G19** 02 G20 * 06 G21 06 G28 00 G29 00 G31 ** 00 G32 01 G40 * 07 G41 07 G42 07
Function Rapid Motion (Setting 10, 56, 101) Linear Interpolation Motion Linear Interpolation Motion with Chamfering and Corner Rounding CW Interpolation Motion CCW Interpolation Motion Dwell (P) (P=seconds.milliseconds) Fine Spindle Control Motion (Live Tooling) Exact Stop, Non-Modal Programmable Offset Setting Main Spindle/Sub Spindle Swap Main Spindle/Sub Spindle Swap Cancel Circular Motion XY Plane Selection (G02, G03) (Live Tooling) Circular Motion ZX Plane Selection (G02, G03) (Setting 56) Circular Motion YZ Plane Selection (G02, G03) (Live Tooling) Verify Inch Coordinate Positioning (Setting 9 will need to be INCH) (Setting 56) Verify Metric Coordinate Positioning (Setting 9 will need to be METRIC) Rapid to Machine Zero Thru Reference Point, Cancel Offsets (Fanuc) Move to Location Thru G29 Reference Point (Fanuc) Feed Until Skip Function Thread Cutting Path, Modal Tool Nose Compensation Cancel (Setting 56) Tool Nose Compensation Left (Setting 43, 44, 58) Tool Nose Compensation Right (Setting 43, 44, 58)
(G codes continued next page)
22
JANUARY 2006
PROGRAMMING
Code Group G50 11 G51 11 G52 00 G52 00 G53 00 G54* 12 G55 12 G56 12 G57 12 G58 12 G59 12 G61 13 G64* 13 G65 ** 00 G70 00 G71 00 G72 00 G73 00 G74 00 G75 00 G76 00 G77 ** 00 G80* 09 G81 09 G82 09 G83 09 G84 09 G85 09 G86 09 G87 09 G88 09 G89 09 G90 01 G92 01 G94 01 G95 ** 09 G96 12 G97 12 G98 05 G99* 05 G100 00 G101 00
Function Spindle Maximum RPM Limit Rapid to Machine Zero, Cancel Offsets (YASNAC) Work Offset Positioning Coordinate (Setting 33, YASNAC) Global Work Coordinate System Shift (Setting 33, FANUC) Machine Zero Positioning Coordinate Shift, Non-Modal Work Offset Positioning Coordinate #1 (Setting 56) Work Offset Positioning Coordinate #2 Work Offset Positioning Coordinate #3 Work Offset Positioning Coordinate #4 Work Offset Positioning Coordinate #5 Work Offset Positioning Coordinate #6 Exact Stop, Modal Exact Stop G61 Cancel (Setting 56) Macro Sub-Routine Call Finishing Cycle O.D./I.D. Stock Removal Cycle (Setting 72, 73) Face Stock Removal Cycle (Setting 72, 73) Irregular Path Stock Removal Cycle Face Grooving Cycle or High Speed Peck Drill Cycle (Setting 22) O.D./I.D. Grooving Cycle (Setting 22) Threading Cycle, Multiple Pass (Setting 86, 95 ,96, 99) Flatting Cycle (Live Tooling) Canned Cycle Cancel (Setting 56) Drill Canned Cycle Spot Drill / Counterbore Canned Cycle Peck Drill Deep Hole Canned Cycle (Setting 22, 52) Tapping Canned Cycle Bore in~Bore out Canned Cycle Bore in~Stop~Rapid out Canned Cycle Bore in~Manual Retract Canned Cycle Bore~Dwell~Manual Retract Canned Cycle Bore~Dwell~Bore out Canned Cycle O.D./I.D. Turning, Modal Threading Cycle, Modal (Setting 95, 96) End Facing Cycle, Modal End Face Rigid Tap (Live Tooling) Constant Surface Speed, CSS On Constant Non-Varying Spindle Speed, CSS Off (Setting 56) Feed Per Minute Feed Per Revolution (Setting 56) Mirror Image G101 Cancel Mirror Image (Setting 45, 47)
(G codes continued next page)
23
PROGRAMMING
JANUARY 2006
Code Group G102 00 G103 00 G105 00 G110 12 G111 12 G112** 00 G113** 00 G114 12 G115 12 G116 12 G117 12 G118 12 G119 12 G120 12 G121 12 G122 12 G123 12 G124 12 G125 12 G126 12 G127 12 G128 12 G129 12 G154 12 G159** 00 G160** 00 G161** 00 G184** 00 G186 00 G187** 00 G194 00 G195** 00 G196** 00 G200 00
Function Programmable Output to RS-232 Limit Block Lookahead (P0-P15 max. for number control looks ahead) Servo Bar Command Work Offset Positioning Coordinate #7 Work Offset Positioning Coordinate #8 Live Tooling Cartesian to Positioning Polar Transformation Live Tooling Cartesian to Positioning Polar Transformation Cancel Work Offset Positioning Coordinate #11 Work Offset Positioning Coordinate #12 Work Offset Positioning Coordinate #13 Work Offset Positioning Coordinate #14 Work Offset Positioning Coordinate #15 Work Offset Positioning Coordinate #16 Work Offset Positioning Coordinate #17 Work Offset Positioning Coordinate #18 Work Offset Positioning Coordinate #19 Work Offset Positioning Coordinate #20 Work Offset Positioning Coordinate #21 Work Offset Positioning Coordinate #22 Work Offset Positioning Coordinate #23 Work Offset Positioning Coordinate #24 Work Offset Positioning Coordinate #25 Work Offset Positioning Coordinate #26 Select Work Offset Positioning Coordinate P1-99 (P) Background Pickup / Part Return APL Axis Command ON APL Axis Command OFF Reverse Tapping Canned Cycle Live Tooling Reverse Rigid Tapping Accuracy Control for High Speed Machining (Setting 85) Sub-Spindle / Tapping Canned Cycle Live Tooling Radial Tapping Live Tooling Radial Tapping Reverse Index on the fly
*Defaults ** Options
Each G code is a part of a group of G codes. The Group 0 codes are nonmodal; that is, they specify a function applicable to this block only and do not affect other blocks. The other groups are modal and the specification of one code in the group cancels the previous code applicable from that group. A modal G code applies to all subsequent blocks so those blocks do not need to re-specify the same G code. There is also one case where the Group 01 G codes will cancel the Group 9 (canned cycles) codes. If a canned cycle is active (G81 through G89), the use of G00 or G01 will cancel the canned cycle. 24
JANUARY 2006
PROGRAMMING
MACHINE DEFAULTS
A DEFAULT is an automatic function of the machine tool control. After powering up the machine, the control will recognize the default G code values. The machine will go to the part zero that was entered in for G54 if no other work coordinate code was specified in the actual program, because the machine automatically recognizes the G54 column upon start-up. That is a DEFAULT. The defaults for the Haas mill are indicated by an asterisk ( * ) in the "Preparatory Functions (G Codes)" list of this workbook. The control automatically recognizes these G codes when your HAAS lathe is powered up:
Rapid Traverse XZ Circular Plane Selection Cutter Compensation Cancel Work Coordinate Zero #1 (1 of 26 available) Exact Stop Cancel Canned Cycle Cancel Constant Surface Speed Cancel Feed Per Revolution
There is no default feedrate (F code) or spindle speed (S code) , but once an F or S code is programmed, it will apply until another feedrate or spindle speed is entered or the machine is turned off.
25
PROGRAMMING
JANUARY 2006
G70 G71 G72 G73 G74 G75 G76 G90 G92 G94
MACHINING CYCLES Finishing Cycle O.D./I.D. Stock Removal Cycle End Face Stock Removal Cycle Irregular Path Stock Removal Cycle End Face Grooving or Z axis turn with a Chip Break Cycle O.D./I.D. Grooving or X axis turn with a Chip Break Cycle Thread Cutting Cycle, Multiple Pass O.D./I.D. Turning Cycle Modal Thread Cutting Cycle Modal End Face Cutting Cycle Modal
A Machine Cycle is used to simplify programming of a part. Machine Cycles are used for the most common repetitive operations such as turning, facing, threading, and grooving. Theyre both modal and non-modal machine cycles. Modal cycles G90, G92 and G94 remain in effect after they are defined. After any subsequent X or Z axis positioning, the canned cycle is executed again. Modal machining cycles remain in effect until canceled by a G80, G00, an End of Program (M30), or RESET. Non-modal G71, G72, G73, G74, G75 and G76 Machine cycles are effective for only the block that contains them, but will be performing a series of machining moves to execute that command block.
26
JANUARY 2006
PROGRAMMING
These cycles are Modal, which remain in effect after they are defined and are executed in the Z axis for each positioning of X axes in a program. Some of the cycle command values can also be changed after these cycle have been defined. The command values most often changed during a cycle are the R plane value and the Z depth value. These modal cycles will be canceled with the G80, G01 or G00 commands. The X axis moves in these modal machine cycles are performed as a rapid moves. The operation of a canned cycle will vary according to whether incremental (U,W) or absolute (X,Z) is specified. Incremental motion is often useful in a canned cycle. If a loop count (Lnn code number) is defined within the block, the canned cycle will repeat that many times with an incremental U (X axis) move between each cycle. The following is a list of the canned cycles that can be used on the HAAS lathe.
CANNED CYCLES G80 * Canned Cycle Cancel G 8 1 Drill Canned Cycle G 8 2 Spot Drill Canned Cycle G 8 3 Peck Drill Canned Cycle G 8 4 Tapping Canned Cycle G 8 5 Bore in Bore out Canned Cycle G 8 6 Bore in Rapid out Canned Cycle G 8 7 Bore with Manual Retract Canned Cycle G 8 8 Bore in Dwell with Manual Retract Canned Cycle G 8 9 Bore in Dwell Bore out Canned Cycle
27
PROGRAMMING
JANUARY 2006
B LINEAR B-AXIS MOTION (Tailstock) (Setting 93, 94, 105, 106, 107, 121, 145)
The B address character is currently reserved for the tailstock. It is used to specify absolute position or motion for the tailstock along the B axis. B axis commands in the negative direction moves the tailstock toward the spindle, and a B axis command in the positive direction moves it away from the spindle.
28
JANUARY 2006
PROGRAMMING
N LINE/BLOCK NUMBER
The N address character is entirely optional. The only function of a N number is to identify and locate a certain block or line within a program.
P DELAY OF TIME / M97 SEQUENCE NUMBER CALL / M98 PROGRAM NUMBER CALL / LIVE TOOLING SPINDLE SPEED
The P address character is used as a delay of time in seconds for a dwell command, or as a P number to search for a sequence number in a local subroutine call, or as a P number to search for a program number in your list of programs for a subprogram call. P is also defined with Q, and is used in canned cycles G70, G71, G72 and G73 to specify the starting block number of the part geometry defined for machining with these cycles.
29
PROGRAMMING
JANUARY 2006
30
JANUARY 2006
PROGRAMMING
This G code is used for rapid traverse of the two axes of the machine from one program point to the next program point. The auxiliary (tailstock) B axis, can also be moved in rapid with a G00. This G code is modal so that all following blocks will be in rapid motion until another group 01 G code is specified. Generally, rapid motion done in both X and Z axes will not be in a straight line from one program location to the next program location. All the axes specified are moved at the maximum speed and will not necessarily complete each axis move at the same time. So you need to be careful of any obstructions to avoid with this type of rapid move. The tool will first move from the current position in a straight line along a 45 degree angle to an intermediate location, until one of these axes has completed its move. Then the machine will move parallel to the X or Z axis to complete the rapid move to the final location. These rapid moves may be in ABSOLUTE or INCREMENTAL coordinate command values which will change how those values are interpreted. The "U" letter address relates to X-axis incremental moves and the "W" letter address relates to Z-axis incremental moves.
To move from point "A" to point "B", the programmed line can be either: G00 G00 G00 G00 X2.2 Z-3.0 U-1.8 W-3.1 X2.2 W-3.1 U-1.8 Z-3.0
or or or
31
PROGRAMMING
JANUARY 2006
This G code provides for straight line (linear) motion from point to point. Motion can occur in 1 or 2 axes. Both axes will start and finish motion at the same time to move the tool along a straight line path parallel to an axis or at a slope (angled) line. The speeds of all axes are controlled so that the feedrate specified is achieved along the actual path. The F (Feedrate) command is modal and may be specified in a previous block. These moves may be made in ABSOLUTE or INCREMENTAL coordinate command values which change how those values are interpreted. The "U" letter address relates to X-axis incremental moves, and the "W" letter address relates to Z-axis incremental moves. Only those axes specified are moved in either absolute X Z, or incremental U W commands. When feeding to a location using G01, it should be using a previously defined tool geometry Txxyy offset commanmd. The Txxyy code defines the tool and offset that are being used. This T command differs slightly depending on Setting 33 FANUC or YASNAC coordinate system. Most people set if for FANUC. When set to FANUC, xx is the tool number (any xx leading zero is ommitted); and yy is the tool geometry and wear offset that is being used for that tool. T101 would be recognized as tool 1 offset 1 and T323 would be recognized as tool 3 offset 23. G00 X0.9106 Z0.1 (ABSOLUTE) G01 X1.5 Z-1. F0.006 Z-3. X2. G00 X0.9106 Z0.1 (INCREMENTAL) G01 U.5894 W-1.1 F0.006 W-1.9 U0.5 G00 X0.9105 Z0.1 (ABS. AND INC.) G01 X1.5 W-1.1 F0.006 Z-3. U0.5
32
JANUARY 2006
PROGRAMMING
7 6 5 4 3 2 1
ABSOLUTE PROGRAMMING N... G00 X0.25 Z0.1 N11 G___ Z0. F0.006 N12 X_____ N13 X_____ Z-_____ N14 Z-_____ N15 X_____ Z-_____ N16 X_____ N17 X_____ Z-_____ N18 Z-_____ N19 G00 X3.01 Z0.1
ABSOLUTE AND INCREMENTAL PROGRAMMING N... G00 X0.25 Z0.1 N21 G___ Z0. F0.006 N22 X_____ N23 U_____ W-_____ N24 W-_____ N25 U_____W-_____ N26 U_____ N27 U_____ W-_____ N28 W-_____ N29 G00 U0.01 Z0.1
33
PROGRAMMING
JANUARY 2006
G03 CIRCULAR INTERPOLATION MOTION CCW * X Absolute X-axis arc end point motion command * Z Absolute Z-axis arc end point motion command * U Incremental X-axis arc end point motion command * W Incremental Z-axis arc end point motion command * I X-axis incremental distance from the start point to arc center (If R is not used) * K Z-axis incremental distance from the start point to arc center (If R is not used) * R Radius of the arc (If I and K are not used) * F Feed rate in inches (or mm) per minute
*indicates optional
G03 will generate counterclockwise circular motion but is otherwise defined the same as G02 clockwise circular motion. Circular interpolation commands are used to move a tool along a circular arc to the commanded end position. Five pieces of information are required for executing a circular interpolation command: Plane selection, arc start position coordinates, rotation direction, arc end position coordinates, and arc center coordinates or arc radius. There are two ways to define a circular interpolation move. The first way is using I and K method, which defines the distance and direction from the start point to the arc center. The R method, is easier to define, and is the actual arc radius value your interpolating. When using I and K, it does not need to be entered in the porgram if either one has a zero value. It will be recognized as zero if its not listed in the G02 or G03 line. R: Using an R is the distance from the starting point to the arc center. With a positive R value, the control will generate a circular path of 180 degrees or less, but to generate a circular path of over 180 degrees, you specify a negative R. When feeding to a location using G02 or G03, it should be using a previously defined tool geometry Txxyy offset commanmd. The Txxyy code defines the tool and offset that are being used.
34
JANUARY 2006
PROGRAMMING
R K
Five pieces of information are required for executing a circular interpolation command.
I EM T
a e i 1. P l ne sel cton com m and P l ne sel cton com m and a e i P l ne sel cton com m and a e i c at to dn e 2. A r st r posii n coor i at ai r i 3. R ot ton diecton c to ue 4. A r end posii n A bsol t
COM M AND
G17 G18 G19 X, Z G02 G03 X,Z
Rem ar k
A r par lelt X Y - l ne ( O T A V A I A B LE ) c al o pa N L A r par lelt Z X - l ne ( E FA U LT ) c al o pa D A r par lelt Y Z - l ne ( O T A V A I A B LE ) c al o pa N L C oor i at s t t e st r posii n ofar dn e o h at to c C l ckw i e i t r ol ton diecton o s nep ai r i C ount r l ckw i e i t r pol ton diecton e co s nee ai r i E nd posii n coor i at s oft e ofar defned to dn e h c i fom par orgi zer poi t r t i n o n. E nd poi t i cr m ent ldi t nce and diecton defned fom n,n e a sa r i i r te h st r poi tofar t t e end poi ti t e X and Z axi . at n c o h n n h s I cr m ent ldi t nce and diecton fom st r poi tofar t n e a sa r i r at n c o t e ar cent r f r X and Z axes usi g " f r t e X axi ,and h c e o n I o h s f r t e Z axi . K o h s
U,W
h ac e dn e 5. Iand K m et od ( r cent r coor i at s) ( I i t e X axi i cr m ent ldi t nce and diecton s h s n e a sa r i fom t e ar st r poi tt t e cent r oft e r di s) r h c at n o h e h a u ( K i t e Z axi i cr m ent ldi t nce and diecton s h s n a a sa r i fom t e ar st r poi tt t e cent r ofr di s) r h c at n o h e a u R m et od ( ct alpar ar pat r di s val e) h a u t c h a u u
IK ,
R K
35
PROGRAMMING
JANUARY 2006
This program example starts machining with the tool at the beginning of the .250 radius to machine in a counterclockwise direction. Then moves cutter to the start of 1.500R and around in a clockwise direction from START POINT to END POINT. For each radius, the programming code would look like this: N3 ...... N4 ...... N5 G00 X1.4 Z0.1 N6 G01 Z0. F0.008 N7 X1.5 N8 G03 X2. Z-0.25 R0.25 or G03 X2. Z-0.25 I0. K-0.25 N9 G01 Z-1. N10 G02 X5. Z-2.5 R1.5 or G02 X5. Z-2.5 I1.5 K0. N11 G01 X6.0 N12 G00 Z0.1 N... (Tool nose compensation is not being used in this example. This program example is defined to a sharp tool point.) (Tool rapids to X1.4 Z0.1 in front of part.) (Tool feeds to Z0. face of part.) (Tool feeds up to 1.5 dia. in X-axis to the start of .250 radius.) (CCW .25 Radius to the arc end point using R.) (or, CCW .25 Radius to the arc end point X2. Z-.25 with I and K) (Machines the 2 dia. to the arc start point at Z-1.) (CW 1.5 Radius to the arc end point using R.) (or, CW 1.5 Radius to the arc end point X5. Z-2.5 with I and K) (Feeds up X-axis to 6. dia.)
36
JANUARY 2006
PROGRAMMING
37
PROGRAMMING
JANUARY 2006
(I is for the X axis incr. distance and direction from start point to arc center, and K is for the Z axis incr. distance and direction from start point to arc center.)
N11 G___ Z______ F0.01 N12 G___ X______ Z______ I______ K______ N13 G___ X______
From the tools current position, feed into the face and down to the START POINT of radius. Then machine the radius down into the bore, and bore thru to the end of part.
G___ Z0. F0.01 X______ G___ X______ Z______ I______ K______ G___ Z______
JANUARY 2006
PROGRAMMING
From the tools current position, program the tool path to feed up the face to the START POINT of the 1.0 radius. Then machine radius and turn the 4.000 diameter to the end of part. (I is for the X axis incr. distance and direction from start point to arc center, and K is for the Z axis incr. distance and direction from start point to arc center.)
N31 G___ X______ F0.01 N32 G___ X______ Z______ I______ K______ N33 G___ Z______
From the tools current position, feed into the face of the part. Feed up the face to the 45 degree angle to the START POINT of radius. Then machine 1.00 radius and the 5.422 dia. to the end of part.
G01 Z______ F0.01 X______ X______ Z______ G___ X______ Z______ I_____ K_____ G___ Z______
39
PROGRAMMING
JANUARY 2006
40
JANUARY 2006
PROGRAMMING
This G code provides for straight line (linear) motion from point to point that can have a chamfer or radius between 2 blocks of linear motion that intersect at a 90 degree angle. This type of command is programmed with a chamfer or corner rounding move by providing a letter command of I, K, R, or A in the G01 command block. The speeds of all axes are controlled so that the feed rate specified is achieved along the actual path. The F command is modal and may be specified in a previous block. Only the axes specified are moved and the incremental (U, W) or absolute (X, Z) commands will change how those values are interpreted. When specifying an angle with A use only one of the other axes, the corresponding X or Z destination is calculated based on the angle from the start point. Angles are define from 0 to 360 degrees from 3 oclock going counterclockwise. Minus values can be used to reverse this definition clockwise from 3 oclock. Decimal points are needed for degrees.
CAUTION:
This G01 Code using I, K, R, or A, to do an arc or angle is NOT recognized in the roughing passes of the G71 or G72 canned cycles. However, the last pass of the G71/G72 will be executed with the radius or chamfer defined with I, K, R, or A, in the G01 command. Smaller outside corner radius or chamfers could be done on the last pass. But fillet, inside corner radius or chamfers would not be there. What would be there is the radius left behind by the tool nose. The G73 or G70 commands will support this type of chamfer or radius command.
41
PROGRAMMING
JANUARY 2006
(The R command is for a 90-degree corner radius from X into Z, or Z into X.) (R+ is to machine a radius into the plus direction on an axis.) (R- is to machine a radius into the minus direction on an axis.)
Rules: 1) The linear G01 block must be a single X(U) or Z(W) move with an R that is perpendicular to the previous move for corner rounding. 2) When using R for corner rounding, do not use I, K, or A. 3) Caution: This Radius (R) command is not supported in any of the roughing passes of a G71 or G72 canned cycles. The last pass of the G71 and G72 will be executed with the radius defined with R in the G01 command . 4) A G70 or G73 will support this type of radius command. 5) The + or - sign define the direction of the axis your moving into at the end of the arc move.
42
JANUARY 2006
PROGRAMMING
43
PROGRAMMING
JANUARY 2006
44
JANUARY 2006
PROGRAMMING
Interpolation with G01, G02 and G03 O00045 N11 G53 G00 X0. Z0. T0 N12 T101 (O.D. TOOL x .031 TNR) N13 G50 S2600 N14 G97 S2057 M03 N15 G54 G00 X0.65 Z0.1 N16 G96 S350 N17 G01 G42 Z0. F0.006 N18 X.75 N19 X1.25 Z-0.25 N20 Z-1.0 N21 X1.75 Z-1.25 N22 X2.75 N23 X3. Z-1.5934 (Calculated Z move) N24 Z-1.875 N25 G02 X3.25 Z-2.0 R0.125 N26 G01 X3.3 N27 G03 X3.5 Z-2.1 R0.1 N28 G01 Z-2.375 N29 G00 G40 U0.01 Z0.1 M09 N30 G53 G00 X0. Z0. T0
Interpolation with G01 using I, K, R & A O00050 N31 G53 G00 X0. Z0. T0 N32 T101 (O.D. TOOL x .031 TNR) N33 G50 S2600 N34 G97 S2057 M03 N35 G54 G00 X0.65 Z0.1 N36 G96 S350 N37 G42 G___ Z0. F0.006 N38 X_____ K______ (K+ or - ?) N39 Z_____ I______ (I+ or - ?) N40 X_____ (To X start point for A) N41 X_____ A______ (A+ or - ?) N42 Z_____ R_____ (R+ or - ?) N43 N44 N45 N46 X_____ R_____ (R+ or - ?) Z______ G40 G00 U0.01 Z0.1 M09 G53 G00 X0. Z0. T0
45
PROGRAMMING
JANUARY 2006
MISCELLANEOUS G CODES
G04 Dwell P The dwell time in seconds or milliseconds G04 is used to cause a delay or dwell in the program. The block containing G04 will delay for the time specified in the P code, coolant and spindle will remain on. If the P has a fraction part, the delay is in milliseconds (0.001 seconds); otherwise the delay is in seconds.
EXAMPLE: G04 P1.0 (for a delay of 1.0 second) -orG04 P2.5 (for a delay of 2.5 seconds)
46
JANUARY 2006
PROGRAMMING
G51
G51 is used on a YASNAC control, to cancel out any existing tool shift and tool wear offsets and then return to machine zero position.
47
PROGRAMMING
JANUARY 2006
N1 N2
(SPINDLE RPM WILL NOT EXCEED 2500 RPM) (ENTER CONSTANT SURFACE SPEED MODE, SPINDLE ON)
The MAXIMUM spindle speed is designated by the "S" word along with the preparatory G50 command with the "S" word in the same block with no other commands. Once the MAXIMUM spindle speed is established, any direct RPM programmed in G97 (direct revolution per minute) or control calculated RPM from the G96 (constant surface footage mode) that exceeds the RPM established by the G50 block, is ignored and the G50 S word spindle speed is used. The second use of G50 is for older equipment that does not have work zero and geometry offset capabilities. This will not be covered in this workbook because its not desirable anymore because its not as easy to use as what is now available.
G96
A G96 commands the control to maintain a constant surface speed, with the spindle speed and where the tool tip is relative to the part diameter. Surface speed is based on the distance of the tool tip to the spindle centerline. This is the radius of cut. Surface speed is maintained by adjusting the spindle speed based on the radius of cut. The current S code is used to determine the surface speed. G96 is modal. The formula the machine performs while machining up or down a diameter with G96 on a . part is calculating this formula: (SFM x 3.82) . Dia. = RPM . Example on a 3/4 part diameter: (225 x 3.82) . .750 = 1146
JANUARY 2006
PROGRAMMING
G53
This code temporarily cancels work coordinates offset and uses the machine zero coordinate location. Its non-modal, so the next block will revert to the work coordinate that was previously active.
49
PROGRAMMING
JANUARY 2006
FEED COMMANDS
G 9 8 FEED PER MINUTE
This command changes how the F address code is interpreted. The value of F indicates inches per minute when Setting 9 is set to INCH, and F indicates millimeters per minute when Setting 9 is set to METRIC. This code is modal.
50
JANUARY 2006
PROGRAMMING
Refer to the illustrations below while reading the text: For a 90 degree corner radius, to calculate the correct tool path position for a tool with a .031 TNR in your program. Manually calculate the compensated path by adding .031 to the radius to be machined. You will also need to recalculate the start point and end point of this larger programmed radius.
For a 90 degree fillet radius, to calculate the correct tool path position for a tool with a .031 TNR in your program. Manually calculate the compensated path by subtracting .031 from the radius to be machined. You will also need to recalculate the start point and end point of this smaller programmed radius.
51
PROGRAMMING
JANUARY 2006
Manual Program and compensation of a part radius with a tool that has .031 TNR For G02 and G03 using I and K: For G02 and G03 using R:
O00052 N101 G53 G00 X0. Z0. T0 N102 T101 (O.D. TOOL) N103 G97 S1450 M03 N104 G54 G00 X0.91 Z0.1 N105 G01 Z0. F0.01 N106 X0.948 F0.006 N107 G03 X1.25 Z-0.151 I0. K-0.151 N108 G01 Z-0.921 N109 G02 X1.668 Z-1.13 I.209 K0. N110 G01 X2.218 N111 G03 X3. Z-1.521 I0. K-0.391 N112 G01 Z-2.375 N113 G00 U0.01 Z1.0 N114 G54 G00 X0. Z0. T0 N115 M30 O00052 N201 G53 G00 X0. Z0. T0 N202 T101 (O.D. TOOL) N203 G97 S1450 M03 N204 G54 G00 X0.91 Z0.1 N205 G01 Z0. F0.01 N206 X0.948 F0.006 N207 G03 X1.25 Z-0.151 R0.151 N208 G01 Z-0.921 N209 G02 X1.668 Z-1.13 R0.209 N210 G01 X2.218 N211 G03 X3. Z-1.521 R0.391 N212 G01 Z-2.375 N213 G00 U.01 Z1.0 N214 G54 G00 X0. Z0. T0 N215 M30
52
JANUARY 2006
PROGRAMMING
53
PROGRAMMING
JANUARY 2006
In the Lathe programming and operation manual there is a section for manually calculating tool nose radius compensation with various charts and illustrations for different angles for 1/32 and 1/64 insert radiuses.
ANGLE 15 30 45 60
54
JANUARY 2006
PROGRAMMING
Program is manually adding in compensation for a finish pass using a tool with a .031 TNR
O00055 (LINEAR INTERPOLATION WITHOUT CUTTER COMP.) N1 G53 G00 X0. Z0. T0 N2 T101 (O.D. TURNING TOOL .031 TNR) N3 G97 S1450 M03 N4 G54 G00 X0.85 Z0.1 M08 N5 Z0. N6 G01 X-.062 F0.01 (Face down end of part) N7 G00 X.7134 Z0.02 (Rapid to start point of angle subtracting X comp. value) N8 G01 Z0. F0.006 (Feed into face) N9 X1.250 Z-.2683 (Feed up angle adding Z compensation amount) N10 Z-1.0183 (Feed to angle adding Z compensation amount) N11 X1.7134 Z-1.250 (Feed up angle subtracting X compensation amount) N12 X2.3634 (Feed up to angle subtracting X compensation amount) N13 X3.0 Z-1.5683 (Feed up angle adding Z compensation amount) N14 Z-2.375 (Feed to finish to end in Z axis) N15 G00 U0.01 Z1.0 M09 N16 G53 G00 X0. Z0. T0 N17 M30
55
PROGRAMMING
JANUARY 2006
A Programmed part line not using cutter compensation showing cutting error
Note: The figure above shows that the programmed path coincides with the final part dimension, and the radiuses and angles are not quite right. Although parts dont have to be programmed using tool nose compensation, its the preferred method because its easier to program a part and problems are easier to detect and resolve.
56
JANUARY 2006
PROGRAMMING
57
PROGRAMMING
JANUARY 2006
58
JANUARY 2006
PROGRAMMING
Compensating the tool path on either the left or right is based on the direction of the tool movement relative to the part, and which side of the part its on. When thinking about which side of the part the compensation will occur, imagine yourself standing on the line of the part to be cut, looking in the direction the cutter is traveling, what side of the line will the cutter pass you on, left or right. Programming G41 will compensate for the tool tip on the left and a G42 will compensate for the tool tip on the right. For a lathe, this means that normal O.D. turning, which is machining from the face of the part toward the chuck, will require a G42 cutter right of the program path, while normal I.D. turning will require a G41 cutter left of the program path. Does it sound complicated? Its not if you follow the next seven steps when using tool nose compensation.
59
PROGRAMMING
JANUARY 2006
2. DEPARTURE MOVES
Be sure there is a departure move for each compensated tool path by using a G40 command to cancel tool nose compensation.
60
JANUARY 2006
PROGRAMMING
1. APPROACH MOVES
The first X or Z motion in the same line that contains a G41 or G42 is called the APPROACH move. The first move must be a linear move, that is a G01 or G00. At the start of an approach move the current position is not compensated. At the end of the approach move the machine position will be fully compensated.
2. DEPARTURE MOVES
Any line that contains a G40 will cancel tool nose compensation and is called the DEPARTURE move. The last move must be a linear move, that is a G01 or G00. At the start of a departure move, the current position is fully compensated. At the end of the departure move the machine position is not compensated.
Note : You cannot activate or cancel cutter compensation in a G02 or G03 circular move,
it must be turned on or off in a linear Feed (G01) or Rapid (G00) straight line move.
61
PROGRAMMING
JANUARY 2006
G41
TOOL NOSE COMPENSATION LEFT *X Absolute X-axis approach move *Z Absolute Z-axis approach move *U Incremental X-axis approach move *W Incremental Z-axis approach move *F Feed rate
* indicates optional
G41 will select tool nose compensation left; that is, the tool is programmed to the left of a tool path part line, to compensate for the tool tip radius. A tool offset must be selected with a Tnnxx code, where xx corresponds to the offsets that are to be used for the nn tool turret location.
62
JANUARY 2006
PROGRAMMING
G42
TOOL NOSE COMPENSATION RIGHT *X Absolute X-axis approach move *Z Absolute Z-axis approach move *U Incremental X-axis approach move *W Incremental Z-axis approach move *F Feed rate
* indicates optional
G42 will select tool nose compensation right; that is, the tool is programmed to the rightof a tool path part line, to compensate for the tool tip radius. A tool offset must be selected with a Tnnxx code, where xx corresponds to the offsets that are to be used for the nn tool turret location.
63
PROGRAMMING
JANUARY 2006
G40 TOOL NOSE COMPENSATION CANCEL *X Absolute X-axis departure move *Z Absolute Z-axis departure move *U Incremental X-axis departure move *W Incremental Z-axis departure move *I X axis intersection vector direction, (radius) *K Z axis intersection vector direction *F Feed rate
* indicates optional
G40 cancels G41 or G42. Programming Txx00 or just T0 will also cancel tool nose compensation. You must always cancel tool nose compensation before the end of a program. The G40 departure move, off of the part, usually does not correspond with any point on the part. In many cases overcutting or undercutting could occur if tool is still on the part when you cancel cutter compensation.
64
JANUARY 2006
PROGRAMMING
NOTE: Some conditions of a cancellation of tool nose compensation geometries will result in over or undercutting of the part. The programmer can control this by including an I and K in the G40 cancellation block. The I and K address codes in a G40 block define a vector that the control will use in determining the compensated target position of the previous block. The vector is usually aligned with an edge or wall of the completed part. The Figure below shows how I and K can correct undesired cutting in a departure move.
When address codes I and K are used in a G40 departure move, the control will use these values as an intersection vector for the end point of the last completely compensated motion stroke. The illustration below shows where I and K lie in relation to the departure stroke. Usually I and K lie along a face of a machined part.
65
PROGRAMMING
JANUARY 2006
66
JANUARY 2006
PROGRAMMING
67
PROGRAMMING
JANUARY 2006
Zero (0) indicates no specified direction. It is usually not used when tool nose compensation is desired.
68
JANUARY 2006
PROGRAMMING
SAME AS TIP 0
69
PROGRAMMING
JANUARY 2006
70
JANUARY 2006
PROGRAMMING
2.
3.
2.
3.
71
PROGRAMMING
JANUARY 2006
O00072 (An example of incorrectly canceling cutter compensation) ; N1 G28 N2 T808 ; (BORING BAR .015 TNR) N3 G97 S2400 M03 ; N4 G54 G00 X0.49 Z0.1 ; N5 G41 G01 X0.5156 F0.02 ; N6 Z-0.05 F0.004 ; N7 X0.3438 Z-0.25 ; N8 Z-0.5 ; N9 X0.33 ; (NOTE: Move is less than .031, which is the value required to avoid cut-in with a departure move before TNC is cancelled.) N10 G40 G00 X0.25 ; N11 Z0.05 ; N12 G28 ; N13 M30 ;
72
JANUARY 2006
PROGRAMMING
END FACE GROOVING CYCLE, PECK DRILLING O.D./I.D. GROOVING CYCLE THREAD CUTTING CYCLE, MULTIPLE PASS THREAD CUTTING CYCLE, MODAL
THE FOLLOWING CANNED CYCLES PERFORM THEIR OWN SPECIAL CUTTER COMPENSATION
G90 O.D./I.D. MODAL TURNING CYCLE
G90 performs tool nose compensation independently. Since G90 executes only linear moves, some of the compensation overhead can be eliminated to produce more accurate results on tapered cuts.
G94
G94 performs tool nose compensation independently. Since G94 executes only linear moves, some of the compensation overhead can be eliminated to produce more accurate results on tapered cuts.
73
PROGRAMMING
JANUARY 2006
PREPARATION
TOOL DESCRIPTION TOOL 1 - O.D. Rough Tool with a 55 Degree Insert and a .0312 radius. TOOL 2 - O.D. Finish Tool with a 55 Degree Insert and a .0312 radius. TOOL 3 - .250 Wide grooving tool with .016 corner radius. SETTING 33 IS FANUC
TOOLS
T1 T2 T3
OFFSETS
01 02 03
X
-7.9650 -7.9010 -7.8400
Z
-9.8470 -9.8450 -9.5880
RADIUS
.0312 .0312 .016
TIP
3 3 4
74
JANUARY 2006
PROGRAMMING
PROGRAM EXAMPLE % O00075 (GENERAL TNC EXAMPLE) (T101 - O.D. Rough Tool) (55 Deg. x .031 TNR, TIP Direction 3) (T202 - O.D. Finish Tool) (55 Deg. x .0312 TNR TIP Direction 3) (T303 - O.D. Groove Tool) (.250 wide x .016 Radius Corner Radius) (TIP Direction 4)
(DESCRIPTION)
N101 (ROUGH O.D.) N102 G28 (Return to Machine Home reference point) N103 T101 (55 Deg. O.D. TOOL x .0312 TNR)(Select tool 1, offset 1) N104 G50 S2500 N105 G97 S591 M03 N106 G54 G00 X2.1 Z0.1 M08 (Rapid to start point) N107 G96 S325 N108 Z0.005 N109 G01 X-0.063 F0.01 N110 G00 X2.1 Z0.1 N111 G71 P112 Q124 U0.02 W0.005 D0.1 F0.012 (Rough P to Q using G71 and TNC) (Define part path PQ sequence) N112 G42 G00 X0.55 Z0.1 (P) (G71 Type II, TNC approach) N113 G01 Z0. F0.004 N114 X0.65 N115 X0.75 Z-0.05 N116 Z-0.75 N117 G02 X1.25 Z-1. R0.25 N118 G01 Z-1.5 N119 Z-1.72 X1. F0.006 N120 G01 Z-2.5 N121 G02 X1.25 Z-2.625 R0.125 N122 G01 Z-3.5 F0.004 N123 X2. Z-3.75 F0.008 N124 G40 G00 X2.1 (Cancel TNC Departure move) N125 G97 S591 N126 M09 N127 G28 (Return to Machine Home reference point) N128 M01 (Program is continued on next page)
75
PROGRAMMING
JANUARY 2006
N201 (FINISH O.D.) N202 G28 (Return to Machine Home reference point) N203 T202 (55 Deg. O.D. TOOL x .0312 TNR) (Select tool 2, offset 2) N204 G50 S2500 N205 G97 S1655 M03 N206 G54 G00 X0.75 Z0.1 M08 (Rapid to point S) N207 G96 S325 N208 Z0. N209 G01 X-0.063 F0.01 N210 G00 X2.1 Z0.1 N211 G70 P112 Q124 (Finish turn P to Q using G70) N212 G97 S591 N213 M09 N214 G28 (Return to Machine Home reference point) N215 M01 N301 N302 N303 N304 N305 N306 N307 N308 N309 N310 N311 N312 N313 N314 N315 N316 N317 % (O.D. GROOVE) G28 (Return to Machine Home reference point) T303 (.250 WIDE x .016R GROOVE TOOL) (Select tool 3, offset 3) G50 S2500 G97 S920 M03 G54 G00 X1.35 Z0.1 M08 (Rapid to start point) G96 S325 G00 Z-1.8 (Rapid to point A) G41 G01 X1.25 F0.02 (TNC approch move) X1. F0.006 (Move to point B with TNC approch move) Z-1.625 F0.003 G03 X1.25 Z-1.5 R0.125 (Move to point A) G40 G00 X1.35 (Cancel TNC with a departure move) G97 S920 M09 G28 (Return to Machine Home reference point) M30
Note: Tip Direction 4, for tool 3 using cutter compensation, since the corner that is cutting is pointing down in the X- Z+ direction .
76
JANUARY 2005
PROGRAMMING
77
PROGRAMMING
JANUARY 2005
G70 G71 G72 G73 G74 G75 G76 G90 G92 G94
Finishing Cycle O.D./I.D. Stock Removal Cycle End Face Stock Removal Cycle Irregular Path Stock Removal Cycle End Face Grooving Cycle, or Peck Drilling O.D./I.D. Grooving Cycle O.D./I.D. Thread Cutting Cycle, Multiple Pass Turning Cycle, Modal Thread Cutting Cycle, Modal End Face Cutting Cycle, Modal
Group Group Group Group Group Group Group Group Group Group
00 00 00 00 00 00 00 01 01 01
78
JANUARY 2005
PROGRAMMING
G71
This canned cycle will rough out material on a part defining the finished part shape. All a programmer needs to do is to define the shape of a part by programming the finished tool path and then submitting the part path definition to the G71 call by means of a PQ block designation. Any feeds, spindle speed, or tool offset commands on the blocks defining the path are ignored by the G71 call. Any F, S or T commands on the G71 line, or the active ones at that time of the G71 call, are used throughout the G71 roughing cycle. A call to the same PQ block using a G70 will finish the part path with the programmed feeds, speed and offsets that are defined within the PQ block definition. There are two ways to define the part geometry for machining a path using a G71 command. The first type is a TYPE I geometry path and is when the X-axis of the
79
PROGRAMMING
JANUARY 2005
programmed path does not change direction. This type of path is called monotonic. The second type is a TYPE II geometry path and allows the X-axis to change direction. For both types the programmed path for the Z-axis, must be monotonic, that is it cannot change direction in the Z axis. For FANUC, the Type I path is selected by having only an X-axis motion command in the N block thats specified by the P in the G71 command line. For FANUC, the Type II path is selected by having both an X-axis and Z-axis motion command in the N block thats specified by the P in the G71 command line, then TYPE II roughing is recognized. When in the YASNAC mode, Type II roughing is selected by including an R1 on the G71 command line. NOTE: A part using Tool Nose Compensation with a G71 will usually be a Type I path. When using TNC it is very difficult to have a Type II path. This is because for the machines current compensation methods, you can only compensate for a tool tip in one direction. Because of this, the Type II geometry using TNC for a part program may not be accurate. This is because the tip direction would need to change to another tip direction during the cycle. So to be able to use TNC for a Type II part program you may need to modify the program for this TNC situation by editing your program geometry to bring this condition within size. G71 consists of a roughing phase and a finishing phase. The roughing and finishing phase are handled slightly differently for types I and types II. Generally the roughing phase consists of repeated passes along the Z-axis at the specified G71 command line feed rate. The finishing phase consists of a pass along the programmed tool path to remove excess material left by the roughing phase, with perhaps a finishing tool to finish machine using a G70 command block that will use the programmed feeds, speeds and offsets defined within the PQ block definition. The final motion in either type I or Type II is a return to the starting clearance point C. The starting clearance point C is the position of the tool at the time of the G71 is called. This point is usually above the outside diameter or below the inside diameter and in front of that area you want to rough machine away using this G71 cycle .
80
JANUARY 2005
PROGRAMMING
81
PROGRAMMING
JANUARY 2005
O00082 N1 G28 (G71 ROUGHING O.D.) N2 T101 (O.D. TOOL x .032 TNR) N3 G50 S3000 N4 G97 S450 M03 N5 G54 G00 X3.1 Z0.1 M08 (Rapid to a start point above part stock) N6 G96 S370 N7 Z0.005 (Position to face part) N8 G01 X-0.062 F0.01 (Face down part adding in compensation for the tool radius) N9 G00 X3.1 Z0.1 N10G71 P11 Q24 U0.01 W0.005 D0.125 F0.012 (G71 Roughing Cycle with TNC) N11 G42 G00 X0.325 (P) (G42 with the start of geometry with the P number in G71) N12 G01 Z0. F0.01 N13 X0.425 N14 X0.625 Z-0.1 F0.005 N15 Z-0.375 N16 X0.75 N17 G03 X1. Z-0.5 R.125 N18 G01 Z-1. N19 G02 X1.25 Z-1.125 R.125 N20 G01 X1.825 N21 X2.125 Z-1.275 N22 Z-2.5 N23 X3. N24 G40 G00 X3.1 (Q) (End of geometry defined by Q number in G71 and a G40) N25 G97 S450 M09 N26 G28 (Return to Machine Zero) N27 M01 (Optional Stop)
82
JANUARY 2005
PROGRAMMING
G 7 0 FINISHING CYCLE
P Q Starting block number of the part geometry to machine Ending block number of the part geometry to machine
The G70 Finishing cycle can be used to finish cut paths that are defined and roughed out with stock removal cycles G71, G72 and G73. The G70 requires that a beginning block number (P code) and an ending block number (Q code) be specified for the machine code that defines the part geometry to be machined. The G70 cycle is usually used after a G71, G72 or G73 has been performed using the blocks specified by P and Q. All codes in the block defined by P and Q are executed. Any F, S or T codes between the P and Q block are effective. The PQ sequence is searched for in the current program starting from the beginning of the program. The current machine position is saved and remembered as the start position. Then the block starting at P is executed. Processing continues in a normal fashion with blocks following P until a block is found and executed that contains an N code that matches the Q code in the G70 calling block. After execution of the Q block, a rapid (G00) is executed returning the machine to the start position that was saved earlier during G70 initialization. The program then returns to the block following the G70 call. EXAMPLE: G70 Finishing Cycle A traditional calling sequence using G70 appears below. Rough cycle feedrate to rough out part between N10 and N80 for the G71 roughing cycle will be F.012 which is defined in the G71 block. Finish feed rate for the G70 finish cycle will be whatever is defined between N10 and N80.
G71 P10 Q80 U.01 W.005 D.08 F.012 (Roughing cycle feedrate will be F.012 which is defined in this block.) N10 G00 (machine code that defines part path geometry ) N20 G01.... F.005 N30 .... N40 G03.... N50 G01.... N60 G02.... F.003 N70 G01.... F.008 N80 .... G70 P10 Q80(Finish cycle feedrate is defined on lines between N10 to N80).
This example demonstrates tool nose compensation with the G70 finishing cycle. The basic shape has been roughed out using a G71 roughing cycle.
83
PROGRAMMING
JANUARY 2005
G71 & G70 O.D. TYPE I ROUGHING AND FINISHING USING TNC WITH 1 TOOL
O00084 G28 (G71 ROUGHING O.D.) T101 (O.D. TOOL x .032 TNR) G50 S3000 G97 S450 M03 G54 G00 X3.1 Z0.1 M08 (Rapid to start point above part stock) G96 S370 Z0. (Position to Z0 to face part) G01 X-0.062 F0.01 (Face down part adding in compensation for the tool radius) G00 X3.1 Z0.1 G71 P10 Q20 U0.01 W0.005 D0.125 F0.012 (G71 Roughing Cycle with TNC) N10 G42 G00 X0.325 (P) (Start of geometry defined by P number in G71 and a G42) G01 Z0. F0.01 X0.425 X.625 Z-0.1 F0.005 Z-0.375 X0.75 G03 X1. Z-0.5 R0.125 G01 Z-1. G02 X1.25 Z-1.125 R0.125 G01 X1.825 X2.125 Z-1.275 Z-2.5 X3. N20 G40 G00 X3.1 (Q) (End of geometry defined by Q number in G71 and a G40) G70 P10 Q20 (G70 Finishing O.D.) G97 S450 M09 G28 (Return to Machine Zero) M30 (End of Program)
84
JANUARY 2005
PROGRAMMING
G71 & G70 O.D. TYPE I ROUGHING AND FINISHING USING TNC WITH 2 TOOLS
O00085 N1 G28 (G71 ROUGHING O.D.) N2 T101 (Tool 1 Offset 1) N3 G50 S3000 N4 G97 S450 M03 N5 G54 G00 X3.1 Z0.1 M08 (Rapid to start point above part stock) N6 G96 S370 N7 Z0.005 (Position to face part) N8 G01 X-0.062 F0.01 (Face down part adding in compensation for the tool radius) N9 G00 X3.1 Z0.1 N10 G71 P11 Q24 U0.01 W0.005 D0.125 F0.012 (G71 Roughing Cycle with TNC) N11 G42 G00 X0.325 (P) (Start of geometry defined by P number in G71 and a G42) N12 G01 Z0. F0.01 N13 X0.425 N14 X.625 Z-0.1 F0.005 N15 Z-0.375 N16 X0.75 N17 G03 X1. Z-0.5 R0.125 N18 G01 Z-1. F0.003 N19 G02 X1.25 Z-1.125 R0.125 N20 G01 X1.825 N21 X2.125 Z-1.275 N22 Z-2.5 F0.008 N23 X3. N24 G40 G00 X3.1 (Q) (End of geometry defined by Q number in G71 and a G40) N25 G97 S450 M09 N26 G28 (Return to Machine Zero) N27 G28 (G70 FINISHING O.D.) N28 T202 (Tool 2 Offset 2) N29 G50 S3000 N30 G97 S1950 M03 N31 G54 G00 X0.725 Z0.1 M08 (Rapid to start point above part stock) N32 G96 S370 N33 Z0. (Position to face part) N34 G01 X-0.062 F0.01 (Face down part adding in compensation for the tool radius) N35 G00 X3.1 Z0.1 N36 G70 P11 Q24 (G70 Finishing Cycle with TNC in between N10 and N20) N37 G97 S450 M09 N38 G28 (Return to Machine Zero) N39 M30 (End of Program)
85
PROGRAMMING
JANUARY 2005
G71/G70 TYPE I ROUGHING & FINISHING AN O.D. WITH TOOL NOSE COMPENSATION EXERCISE
Fill in the blank lines for tool #1 using a G71 Roughing cycle command, to define Roughing passes for the part geometry defined between N10 and N20. Then define a G70 Finishing cycle command, with tool #2, to define a finish pass for the part geometry defined between N10 and N20. On the G71 command line leave .010 stock on diameters and .005 on the faces. Define a .120 depth of cut at .010 roughing feedrate. Use cutter compensation in the controls offset display for both tools #1 and #2 and enter a .031 radius and tip direction. NOTE: When starting to define part geometry to position the tool nose radius below the radius or angle on an O.D. of a part, or above the radius or angle of an I.D. of a part. The amount to position above or below should be the radius size of tool tip times two (.0315 x 2=.063 above or below). This needs to be done so that the start of the radius of the tool will start at the beginning of the radius on the part at the beginning sequence number after the G71 to start defining the part geometry.
TOOLS T1 T2
OFFSETS 01 02
TIP 3 3
86
JANUARY 2005
PROGRAMMING
O00060 (Program number) N1(ROUGH O.D.) (Rough O.D.) G53 G00 X0. Z0. T0 (Sending home for a tool change) T101 (O.D. TOOL x .031 TNR) (Tool #1 and Offset #1) G50 S3200 (Spindle speed clamp at 3200 RPM) G97 S500 M03 (Cancel CSS, 500 RPM, spindle ON forward) G54 G___ X_____ Z____ M08 (Rapid X3.2, Z0.1 to start point, coolant ON) G____ S______ (CSS ON, at 420 surface speed) Z______ (Position .005 from end of part) G____ X______ F.008 (Feed down X-.063 to face end of part) G____ X______ Z______ (Rapid to X3.2, Z0.1 start point above part) G____ P___ Q___ U____ W____ D____ F____ (G71 Rough cycle) N___ G____ G____ X______ (Pnn start # Cutter Comp. ON, rapid X1.4,) G____ Z_____ F0.006 (Feed onto face of part a Z0.) X______ (Move up in X axis to the start of radius) G____ X______ Z______ R_____ (Define move around .125 Radius) G_____ Z_______ (Define remaining G71 Part Geometry) G____ X______ Z______ R_____ ( " " " " " " ) G____ X______ ( " " " " " " ) G____ X______ Z______ R_____ ( " " " " " " ) G____ Z______ F.004 ( " " " " " " ) N___ G____ X_____ F.02 (Qnn end #, cancel Cutter Comp. feed X to 3.2) G____ S_____ M____ (Cancel CSS, 500 RPM, Coolant Off) G53 G00 X0. Z0. T0 (Sending home for a tool change) M____ (Optional stop command) N2 (FINISH O.D.) G53 G00 X0. Z0. T0 (Sending home for a tool change) T_____ (O.D. TOOL x .031 TNR) (Tool #2 and Offset #2) G____ S_____ (Spindle speed clamp at 3200 RPM) G____ S_____ M____ (Cancel CSS, 890 RPM, spindle on) G54 G____ X_____ Z_____ M____ (Rapid, X1.8, Z.1 location, coolant ON) G____ S_____ (Turn on CSS to 420) Z______ (Position to Z0 end of part) G____ X______ F0.005 (Feed down face of part) G____ X______ Z______ (Rapid to X3.2, Z0.1 start point above part) G____ P_____ Q_____ (Define a G70 finish pass of part geometry) G____ S_____ M____ (Cancel CSS, define 500 RPM, Coolant Off) G53 G00 X0. Z0. T0 (Sending home for a tool change) M____ (End of program and reset)
87
PROGRAMMING
JANUARY 2005
NOTE: Be sure the tools start position is positioned below the diameter of the part you wish to start roughing out, before defining a G71 on an I.D. with this cycle. TOOL 4 OFFSET 04 RADIUS .032 TIP 2
O00088
N2 T404 (Select Tool 4 Offset 4) N3 G50 S3000 N4 G97 S1780 M03 N5 G54 G00 X0.9 Z0.1 M08 (Rapid to start point below the I.D. stock diameter) N6 G96 S420 N7 G71 P8 Q18 U-0.01 W0.005 D0.12 F0.012 (U is minus for G71 I.D. Roughing) N8 G41 G00 X2.83 (N8, Start of part path geometry defined by P8 in G71 line) N9 G01 Z0. F0.02 N10 X2.73 F0.005 N11 G02 X2.63 Z-.05 R0.05 N12 G01 Z-.725 N13 G03 X2.43 Z-.825 R.1 N14 G01 X2.25 N15 G02 X1.25 Z-1.325 R0.5 N16 G01 Z-3.25 N17 G03 X.75 Z-3.5 R0.25 N18 G01 G40 X0.7 (N18 End of part path geometry defined by Q18 in G71 line) N19 G70 P8 Q18 N20 G97 S1780 M09 N21 G53 G00 X0. Z0. T0 (Sending home for a tool change) N22 M30 (End of Program)
88
JANUARY 2005
PROGRAMMING
89
PROGRAMMING
JANUARY 2005
G71 & G70 O.D. TYPE II ROUGHING & FINISHING WITH TNC USING 2 TOOLS
O00090 N101 G28 (FANUC TYPE II G71 ROUGHING CYCLE) N102 T101 (Roughing Tool) N103 G50 S3000 N104 G97 S746 M03 N105 G54 G00 X2.1 Z0.1 (Start Position) N106 G96 S410 N107 G71 P108 Q113 U0.02 W0.005 D0.05 F0.01 N108 G00 X1.75 Z0.1 (A W0. will also work, on N109 G01 Z0-.25 F0.006 the P block number, instead N110 X1. Z-1. of using a Z0.1 to define a N111 X1.5 Z-1.5 G71 type II geometry.) N112 Z-2.25 N113 G01 X2.1 (Q block number of the PQ part Definition) N114 G97 S746 M09 N115 G28 N116 N117 N118 N119 N120 N121 N122 N123 N124 N125 G28 (G70 FINISHING O.D.) T202 (Finishing Tool) G50 S2500 G97 S746 M03 G54 G00 X2.1 Z0.1 (Start Position) G96 S410 G70 P108 Q113 (G70 Finishing Cycle) G97 S746 M09 G28 M30 (In the P block number for a G71 type-I geometry you only have a one axis move in X axis. In a G71 type-II geometry you have a two axis moves in both X and Z in the P block number.)
90
JANUARY 2005
PROGRAMMING
91
PROGRAMMING
JANUARY 2005
Fill in the blank line for tool #1 using a G71 Roughing Type II cycle command, to define Roughing passes for the part geometry defined between N10 and N20. Then define a finish pass using a G70 Finishing cycle command, with tool #2. Define a finish pass for the part geometry defined between N10 and N20. On the G71 command line leave .010 stock on diameters and .005 on the faces. Take .120 depth of cut at .012 feed. NOTE: The problem with type II geometery is that the part geometery that you program in with tool nose compensation is compensating with a tip direction 3. And so the angle going from the linear dimension .500 to 1.000 needs to have a tip direction 4. So the linear dimensions for angles or arcs that change tip direction will not be correct since its not using the tip direction that is needed for those arcs or angles. For this condition, the program will have to be modified (add in the compenation to those program moves to bring within size) for the angles and arcs that change tip direction.
TOOLS T1 T2
TIP 3 3
*Duplicate the part program that is similar to this part on page 86 and add in the values to the blank lines for this Type II part geometry.
O00070 N1 (ROUGH O.D.) G53 G00 X0. Z0. T0 T101 (O.D. TOOL .031 TNR) G50 S3200
92
(Program number) (G71 type II roughing operation) (Sending home for a tool change) (Tool #1 and offset #1) (Spindle speed max. clamp at 3200 RPM)
JANUARY 2005
PROGRAMMING
G97 S500 M03 (Cancel CSS, 500 RPM, spindle ON forward) G54 G00 X3.2 Z1. M08 (Rapid X and Z to start location, coolant ON) G96 S425 (CSS on at 420) Z0.005 (Position .005 from end of part) G01 X-0.063 F0.008 (Feed down to rough face end of part) G00 X3.2 Z0.1 (Rapid to start position above part) G71 P10 Q20 U0.01 W0. D0.12 F0.01 (Rough O.D. G71 cycle command) *N10 G42 G00 X1.4 Z_____ (P start number, G42 cutter comp ON, rapid with G00 X and Z axis or enter W0 instead of Z.1 for G71 type II roughing) G01 Z0. F0.006 (G71 Part Geometry) X1.5 ( ) G03 X1.75 Z-0.125 R0.125 (G71 Part Geometry) *G_____ Z_______ (Type II G71 Geometry changes direction in X axis) *X______ Z______ F.01 ( ) *Z______ ( ) *X______ Z______ ( ) Z-2.5 F.006 (G71 Part Geometry) G02 X2.25 Z-2.75 R0.25 ( ) G01 X2.5 ( ) G03 X3. Z-3. R0.25 ( ) G01 Z-4.125 F0.004 ( ) N20 G40 X3.2 F0.02 (Qnn ending number, cancel Cutter Comp. to X3.2) G97 S500 M09 (Cancel CSS, 500 RPM, coolant Off) G53 G00 X0. Z0. T0 (Sending home for a tool change) M01 (Optional stop command) N2 (FINISH O.D.) G53 G00 X0. Z0. T0 T202 (O.D. TOOL .031 TNR) G50 S3200 G97 S890 M03 G54 G00 X1.8 Z1. M08 G96 S420 Z0. G01 X-.062 F0.006 G00 X3.2 Z.1 G70 P10 Q20 G97 S500 M09 G53 G00 X0. Z0. T0 M30 (G71 type II finishing operation) (Sending home for a tool change) (Tool #2 and Offset #2) (Spindle speed clamp at 3200 RPM) (Cancel CSS, 890 RPM, spindle ON forward) (Rapid, X,Z location, coolant ON) (Turn on CSS to 420) (Position to end of part) (Feed down face of part) (Rapid to start position above part) (G70 finish pass using part geometry) (Cancel CSS, 500 RPM, coolant Off) (Sending home for a tool change) (End program and rewind)
93
PROGRAMMING
JANUARY 2005
This canned cycle will rough out material on a part given the finished part shape. It is similar to G71 but roughs out material along the face of a part. All a programmer needs to do is to define the shape of a part by programming the finished tool path and then submitting the path definition to the G72 call by means of a PQ block designation. Any feeds, spindle speeds or tools within the block defining the path are ignored by the G72 call. Any F,S or T commands on the G72 line or in effect at the time of the G72 is used throughout the G72 roughing cycle. Usually a G70 call to the same PQ block definition is used to finish the shape using the programmed feeds, speeds tools and offsets.
94
JANUARY 2005
PROGRAMMING
Two types of machining paths are addressed with a G72 command. The first type of path (TYPE I) is when the Z-axis of the programmed path does not change direction. This type of path is called a monotonic path. The second type of path (TYPE II) allows the Z-axis to change direction. For both the first type and the second type of programmed path the X-axis must be monotonic, that is it cannot change direction. Type I is selected by having only an X-axis motion in the block specified by P in the G71 call. When both an X-axis and Z-axis motion are in the P block then TYPE II roughing is assumed. The G72 consists of a roughing phase and a finishing phase. The roughing and finishing phase are handled slightly differently for types I and types II. Generally the roughing phase consists of repeated passes along the X-axis at the specified feed rate. The finishing phase consists of a pass along the programmed tool path to remove excess material left by the roughing phase but to leave finish material for a G70 block with perhaps a finishing tool. The final motion in either types is a return to the starting position S. In the following the start position S is the position of the tool at the time of the G72 call. The X clearance plane is derived from the X-axis start position and the sum of U and optional I finish allowances.
95
PROGRAMMING
JANUARY 2005
G72 & G70 TYPE I ROUGH AND FINISH FACING USING TNC WITH 2 TOOLS
O00096 N1 (G72 ROUGHING FACE) N2 G53 G00 X0. Z0. T0 (Sending home for a tool change) N3 T101 (O.D. TOOL x .031 TNR) (Select Tool 1 Offset 1) N4 G50 S3000 N5 G97 S450 M03 N6 G54 G00 X3.1 Z0.1 M08 (Rapid to start point above part stock) N7 G96 S370 N8 G72 P9 Q18 U0.01 W0.01 D0.06 F0.012 (G72 Rough Facing Cycle with TNC) N9 G41 G00 Z-1.6 (Starting sequence number defined by P8 in G72 and G70) N10 G01 X2. F0.008 N11 X1.4 Z-0.9 N12 X1. N13 Z-0.6 N14 G03 X0.8 Z-0.5 R0.1 N15 G01 Z-0.1 N16 X0.6 Z0. N17 X-0.062 N18 G40 G00 Z0.1 (End of part path geometry defined with P17 in G72 and G70) N19 G97 S450 M09 N20 G53 G00 X0. Z0. T0 (Sending home for a tool change) N21 M01 (Optional Stop)
96
JANUARY 2005
PROGRAMMING
N22 N23 N24 N25 N26 N27 N28 N29 N30 N31 N32
(G70 FINISHING FACE) G53 G00 X0. Z0. T0 T202 (O.D. TOOL x .015 TNR) G50 S3000 G97 S450 M03 G54 G00 X3.1 Z0.1 M08 G96 S420 G70 P9 Q18 G97 S450 M09 G53 G00 X0. Z0. T0 M30
(Rapid to start point) (Finish Facing with G70 Finish Cycle) (Sending home for a tool change) ( End of Program and Reset)
G72 is more efficient to use instead of G71 if the roughing cuts in the X axis are longer than the roughing cuts in the Z axis.
97
PROGRAMMING
JANUARY 2005
G72/G70 TYPE I ROUGHING & FINISHING A FACE WITH TOOL NOSE COMPENSATION EXERCISE
Fill in the blank lines for Tool #1 using a G72 Roughing cycle command to define multiple rough passes facing part geometry defined between N10 and N20. Define tool #2 to do a finish pass using G70 finishing cycle command. For the G72 command line, leave .010 stock on diameter and .010 on the faces. Take .100 depth of cut at .012 feed.
TIP 3 3
98
JANUARY 2005
PROGRAMMING
O00080 (Program number) N1 (G72 ROUGH FACE) G53 G00 X-3. Z-4. T0 (Return to tool change location) T101 (O.D. TOOL x .031 TNR) (Tool #1 and Offset #1) G50 S2800 (Spindle speed clamp at 2800 RPM) G97 S500 M03 (Cancel CSS, spindle on, 500 RPM) G54 G00 X_____ Z_____ M____ (Rapid, X3.2 Z1. location, Coolant ON) G____ S______ (Turn on CSS to 420) Z______ (Position to Z0.1 from end of part) G___ P___ Q___ U____ W____ D___ F___ (G72 Facing cycle command) N10 G____ G____ Z______ (Pnn, Cutter Comp ON, Rapid to Z-0.55) G____ X_____ F.006 (Define down part geometry) X______ Z______ ( " " " ) X_______ ( " " " ) X______ Z______ ( " " " ) X______ (Face down to X-.063) N20 G____ G____ Z____ (Ending number, Cancel CC, Rapid Z0.1) G____ S_____ M____ (Cancel CSS, 500 RPM, coolant off) G53 G00 X-3. Z-4. T0 (Return to tool change location) M____ (Optional stop command) N2 (G70 FINISH FACE) G53 G00 X-3. Z-4. T0 T_____ (O.D. TOOL x .031 TNR) G____ S_____ G____ S_____ M____ G54 G00 X_____ Z_____ M____ G____ S_____ Z______ G____ P_____ Q_____ G____ S_____ M____ G53 G00 X-3. Z-4. T0 M____
(Return to tool change location) (Tool #2 and Offset #2) (Spindle speed clamp at 2800 RPM) (Cancel CSS, 500 RPM, spindle on CW) (Rapid to X3.2 and Z1.0, coolant ON) (Turn on CSS at 420) (Position to Z0.1 from end of part) (Define a G70 finish pass on part) (Cancel CSS, 500 RPM, coolant off) (Return to tool change location) (End of Program and Reset)
99
PROGRAMMING
JANUARY 2005
G73
P Q U* W* I K D F S** T **
The G73 canned cycle can be used for rough cutting of castings or a forging. The canned cycle assumes that material has been relieved or is missing a certain known distance from the programmed tool path P thru Q. Machining starts at the start position S, and either rapids or feeds to the first rough cut. The nature of the approach move is based on whether a G00 or G01 is programmed in block P. Machining continues parallel to the programmed tool path. When block Q is reached a rapid departure move is executed to the Start position plus the offset for the second roughing pass. Roughing passes continue in this manner for the number of rough passes specified in D. After the last rough pass, the tool returns to starting position S. Any feed (F), spindle speed (S) or tool change (T) commands on the lines from P to Q are ignored and any F, S and T prior to or in the G73 block are in effect. The programmed tool path PQ does not have to be monotonic in X or Z, but care has to be taken to insure that existing material does not interfere with tool movement during approach and departure moves. This canned cycle is intended for use with the G70 finishing canned cycle.
100
JANUARY 2005
PROGRAMMING
G73 & G70 O.D. ROUGHING AND FINISHING USING TNC WITH 2 TOOLS
O00101 (G73 O.D. ROUGHING) N101 G53 G00 X-3. Z-4. T0 (Rapid to tool change location) N102 T101 (Tool 1 Offset 1) N103 G50 S3000 N104 G97 S450 M03 N105 G54 G00 X3.1 Z.1 M08 (Rapid to Start Point) N106 G96 S370 N107 G73 P108 Q121 U.01 W.005 I0.3 K0.15 D4 F.012 (G73 Stock Removal) N108 G42 G00 X0.325 (P) (Start of geometry P number in G73 line. G42 C.C. right) N109 G01 Z0. F0.01 N110 X0.425 N111 X.625 Z-0.1 F0.005 N112 Z-0.375 N113 X0.75 N114 G03 X1. Z-0.5 R.125 N115 G01 Z-1. F0.003 N116 G02 X1.25 Z-1.125 R.125 N117 G01 X1.825 N118 X2.125 Z-1.275 N119 Z-2.5 F0.008 N120 X3. N121 G40 G00 X3.1 (Q) (End of geometry Q number in G71 line. G40 cancels C.C.) N122 G70 P108 Q121 (G70 Finishing cycle N108 thru N121) N123 G97 S450 M09 N124 G53 G00 X-3. Z-4. T0 (Rapid to tool change location) N125 M30 (End of Program)
101
PROGRAMMING
JANUARY 2005
Fill in the blank line for tool #1 using a G73 Roughing cycle command, to define Roughing passes for the part geometry defined between N10 and N20. Define a finish pass using a G70 Finishing cycle command, with tool #2 to do a finish pass of the part geometry defined between N10 and N20. On G73 command line leave .010 stock on diameters and .005 on the face for a G70 finish cycle pass. Take 5 passes on a casting that has .300 stock on the diameter (I will be half that amount). Part has .160 stock on linear dimensions defined with K. Use Rough part with .012 feed rate.
TOOLS T1 T2
OFFSETS 01 02
TIP 3 3
102
JANUARY 2005
PROGRAMMING
O00090 (Program number) N1 (G73 O.D. ROUGHING) (Rough O.D. with a G73) G53 G00 X-3. Z-4. T0 (Rapid to tool change location) T101 (O.D. TOOL x.031 TNR) (Tool #1 and Offset #1) G50 S2800 (Spindle speed clamp at 2800 RPM) G97 S500 M03 (Cancel CSS, 730 RPM, spindle ON forward) G54 G00 X3.2 Z0.1 M08 (Rapid X and Z to start location, coolant ON) G96 S420 (CSS on at 420) Z0.005 (Position .005 from end of part) G01 X-0.063 F0.01 (Feed down X-.063 to face end of part) G00 X3.2 Z0.1 (Rapid to X3.2, Z0.1 start point above part) G___P___ Q___ U____ W____ I____ K____ D___ F____ (Rough O.D. with G73) N____ G___G____ X______ (P start number, Cutter Comp ON, Rapid to X0.650) G____ Z_____ F0.006 (Feed onto part to Z0.) X______ (Move up in X axis to the start of radius) G____ X______ Z______ R_____ (Define move around 0.5 Radius) G01 Z-2.5 (Define remaining G73 Part Geometry) G02 X2.25 Z-2.75 R0.25 ( " " " " " " ) G01 X2.5 ( " " " " " " ) G03 X3. Z-3. R0.25 ( " " " " " " ) G01 Z-4.125 F0.004 ( " " " " " " ) N____ G40 G00 X3.2 (Q Ending number, Cancel Cutter Comp.) G97 S500 M09 (Cancel CSS, 500 RPM, Coolant Off) G53 G00 X-3. Z-4. T0 (Rapid to tool change location) M01 (Optional stop command) N2 (G70 O.D. Finish) G53 G00 X-3. Z-4. T0 T202 (O.D. TOOL x .031 TNR) G50 S2800 G97 S890 M03 G54 G00 X1.8 Z1.0 M08 G96 S420 Z0. G01 X-.062F0.005 G00 X3.2 Z1.0 G____ P_____ Q_____ G97 S500 M09 G53 G00 X-3. Z-4. T0 M30 (Finish O.D.) (Rapid to tool change location) (Tool #2 and Offset #2) (Spindle speed clamp at 2800 RPM) (Cancel CSS, turn on spindle 890 RPM) (Rapid, X,Z location, coolant ON) (CSS on at 420) (Position to Z0. face end of part) (Feed down the face of part) (Rapid to clearance point above part) (Define finish pass using part geometry) (Cancel CSS, 500 RPM, Coolant Off) (Rapid to tool change location) (End of program rewind)
103
PROGRAMMING
JANUARY 2005
* Indicates optional
The G74 canned cycle can be used for grooving on the face of a part, turning with a chip break or high speed peck drilling. With this canned cycle either a single groove peck cycle can be executed, or you can perform a series of pecks in this cycle to machine a wide groove, or a high speed peck drilling on the spindle centerline. When an X, or U, code is added to a G74 block and X is not the current position, then a minimum of two pecking cycles will occur. One at the current location and another at the X location. The I code is the incremental distance between X axis pecking cycles. Adding an I will perform multiple, evenly spaced, pecking cycles between the starting position S and X. If the distance between S and X is not evenly divisible by I then the last interval along X will be less than I. When K is added to a G74 block, then pecking will be performed at each interval distance specified by K. At each peck depth, a rapid move opposite the direction of feed and the distance the tool pulls back is entered into Setting 22. ***Warning: The D code command is rarely used and should only be used if the wall on the outside of groove does not exist like the diagram above shows. The D code can be used in grooving and turning to provide a tool clearance shift, in the X axis, before returning in the Z axis to the C clearance point. But, if both sides to the groove exist during the shift, then the groove tool would break. So you wouldnt want to use the D command.
104
JANUARY 2005
PROGRAMMING
O00105 (G74 Single Pass End Face Grooving Cycle) (Machine a .25 Wide Groove with a .25 Groove Tool) N1 G28 N2 T404 (.25 END FACE GROOVE TOOL) N3 G97 S1150 M03 N4 G54 G00 X1.5 Z0.1 M08 (Rapid to a start point) N5 G74 Z-0.375 K0.1 F0.005 (Feed to a Z-.375 depth with a .1 peck) N6 M09 N7 G28 N8 M30
SETTING 22 (CAN CYCLE DELTA Z) - As the groove tool pecks deeper into the part, with each peck value of K, it pulls back a constant specified distance above the bottom of the groove created by the previous peck to break the chip. That specified distance it pulls back is defined in Setting 22.
105
PROGRAMMING
JANUARY 2005
O00106 (G74 Multiple Pass End Face Grooving Cycle) (Machine a .500 Wide Groove with a .25 Groove Tool) N1 G28 N2 T404 (.25 WIDE GROOVE TOOL) N3 G97 S1150 M03 N4 G54 G00 X1.75 Z0.1 M08 (Rapid to Start Point) N5 G74 X1.25 Z-.375 I0.2 K0.05 F.005 (G74 Multiple pass groove .05 peck Z-.375 depth) N6 M09 N7 G28 N8 M30
SETTING 22 (CAN CYCLE DELTA Z) - As the groove tool pecks deeper into the part, with each peck value of K, it pulls back a constant specified distance above the bottom of the groove created by the previous peck to break the chip. That specified distance it pulls back is defined in Setting 22.
106
JANUARY 2005
PROGRAMMING
O00107 (G74 High Speed Peck Drilling example) (Drill a .500 Diameter to a .525 Depth) N1 G28 N2 T404 (1/2 DIA. DRILL) N3 G97 S2445 M03 N4 G54 G00 X0. Z0.1 M08 (Rapid to X0 and Z start point) N5 G74 Z-.525 K0.1 F0.006 (Drills to Z-.525 depth, pecking every .1 to pull) N6 G00 Z1.0 M09 (back after each peck the amount in Setting 22.) N7 G28 N8 M30
SETTING 22 (CAN CYCLE DELTA Z) - As the drill pecks deeper into the part, with each peck value of K, it pulls back a constant specified distance above the bottom of the hole created by the previous peck to break the chip. That specified distance it pulls back is defined in Setting 22.
107
PROGRAMMING
JANUARY 2005
G75
X Z* U* W* I * K* D* F
The G75 canned cycle can be used for grooving an outside diameter with a chip break. With this canned cycle either a single pecking cycle can be executed, as for a single groove, or a series of pecking cycles can be performed, for multiple grooves. When an Z, or W, code is added to a G75 block and Z is not the current position, then a minimum of two pecking cycles will occur. One at the current location and another at the Z location. The K code is the incremental distance between Z axis pecking cycles. Adding a K will perform multiple, evenly spaced, pecking cycles between the starting position S and Z. If the distance between S and Z is not evenly divisible by K then the last interval along Z will be less than K. When I is added to a G75 block, then pecking will be performed at each interval specified by I, the peck is a rapid move opposite the direction of feed and the peck distance is obtained from Setting 22. ***Warning: The D code command is rarely used and should only be used if the wall on the outside of groove does not exist like the diagram above shows. The D code can be used in grooving and turning to provide a tool clearance shift, in the Z axis, before returning in the X axis to the C clearance point. But, if both sides to the groove exist during the shift, then the groove tool would break. So you wouldnt want to use the D command.
108
JANUARY 2005
PROGRAMMING
O00109 (G75 O.D./I.D. SINGLE PASS GROOVE CYCLE) (Machine a .25 wide O.D. Groove with .25 Groove Tool) N1 G28 N2 T505 (.25 WIDE O.D. GROOVE TOOL) N3 G97 S960 M03 N4 G54 G00 X2.1 Z0.1 M08 (Rapid to clearance point) N5 Z-0.75 (Rapid to a start point of groove) N6 G75 X1.75 I0.05 F0.005 (G75 Single pass O.D. grooving cycle) N7 M09 N8 G28 N9 M30
SETTING 22 (CAN CYCLE DELTA Z) - As the groove tool pecks deeper into the part, with each peck value of I, it pulls back a constant specified distance above the bottom of the groove created by the previous peck to break the chip. That specified distance it pulls back is defined in Setting 22.
109
PROGRAMMING
JANUARY 2005
(Machine a 1. wide O.D. Groove with .25 Groove Tool) O00110 (G75 O.D./I.D. MULTIPLE PASS GROOVING CYCLE) N1 G28 N2 T505 (.25 WIDE O.D. GROOVE TOOL) N3 G97 S960 M03 N4 G54 G00 X2.1 Z0.1 M08 (Rapid to front of part) N5 Z-0.75 (Rapid to start point of groove) N6 G75 X1.75 Z-1.5 I0.05 K0.2 F0.005 (G75 Multiple pass O.D. grooving cycle) N7 M09 N8 G28 N9 M30
SETTING 22 (CAN CYCLE DELTA Z) - As the groove tool pecks deeper into the part, with each peck value of I, it pulls back a constant specified distance above the bottom of the groove created by the previous peck to break the chip. That specified distance it pulls back is defined in Setting 22.
110
JANUARY 2005
PROGRAMMING
G76
X* Z* U* W* K I * D P A* F
(0 to 120 degrees, If not used then 0 degrees is assumed) Feed rate (Threading feed rate, is the thread distance per revolution) * Indicates optional
The G76 canned cycle can be used for threading both straight or tapered (pipe) threads. With G76 a programmer can easily command multiple cutting passes along the length of a thread. The height of the thread is specified in K. The height of the thread is defined as the distance from the crest of the thread to the root. The calculated depth of the thread will be K less the finish allowance. Setting 86 (THREAD FINISH ALLOWANCE) is this stock allowance for a finish pass allowance, if needed. The depth of the first cut of the thread is specified in D. This also determines the number of passes over the thread based on the value of K and the cutting method used. The depth of the last cut on the thread can be controlled with Setting 99 (THREAD MINIMUM CUT). The last cut will never be less than this value. The default value is .001 inches/.01 mm. The feed rate is the Lead of thread. The F feed rate in a G76 threading cycle is 1.0 divided by the number of threads per inch = F. (1.0 : 12 tpi = F.083333)
111
PROGRAMMING
JANUARY 2005
The thread taper distance amount is specified with the I command. It is measured from the target end position in X and Z axis down to the point in X axis where this cycle begins and is a radius amount. A conventional O.D. taper thread will have a negative I value and a conventional I.D. taper thread will have a positive I value.
112
JANUARY 2005
PROGRAMMING
O00113 (G76 Multiple threading cycle to machine a 3/4-16 O.D. thread) N10 G28 N20 T606 (O.D. THREADING TOOL) N30 G97 S720 M03 N40 G54 G00 X0.85 Z1. M08 (Rapid to start point above diameter of the part) N50 Z0.2 M23 (Z start point, chamfer at end of thread ON) N60 G76 X0.674 Z-1.25 K0.0383 D0.0122 F0.0625 (G76 Multiple pass O.D. thread) N70 M09 N80 G28 N90 M30
M23 Chamfer (angle out of thread) at End of Thread is ON An angle out of thread move can improve the appearance and functionality of a thread. This M23 commands the control to exit the thread with angle out move on a thread executed by a G76 or G92. This M code is modal and is also the default. It remains in effect until changed by M24. Refer to Settings 95 and 96 to control the move distance and angle. M23 will again be active, with an M30, RESET, or a POWER ON condition. SETTING 95 (THREAD CHAMFER SIZE) - The distance of angling out of the thread. The distance is designated thread pitch, so that if 1.0 is in Setting 95 and the threading feedrate is .05, then the angle out distance will be .0500. The default in Setting 95 is 1.000. SETTING 96 (THREAD CHAMFER ANGLE) - Angle out of thread chamfer. The default angle of 45 degrees is in Setting 96. M24 Chamfer (angle out of thread) at End of Thread is OFF An M24 commands the control to perform no angle out departure move at the end of a G76 or G92 threading cycle. This M code is modal. M24 is cancelled with an M23 (Chamfer at End of Thread ON), RESET, M30 or a POWER ON condition.
113
PROGRAMMING
JANUARY 2005
114
JANUARY 2005
PROGRAMMING
THREAD CHART
O.D. THREAD
Single Depth "K" Thread Height
THREAD LEAD
I.D. THREAD
First is machine max. RPM, then it is threading at a max. 150 I.P.M. though 125 I.P.M. is recommended. A CALCULATED SPINDLE SPEED RPM for 125 I.P.M. is T.P.I. x 125 I.P.M. = RPM
T.P.I. 7 8 9 10 11 12 13 14 16 18 20 24 28 32 36 40
.142857 .125 .111111 .1 .090909 .083333 .076923 .071429 .0625 .055556 .05 .041667 .035714 .03125 .027778 .025
.0876 .0767 .0682 .0613 .0558 .0511 .0472 .0438 .0383 .0341 .0307 .0256 .0219 .0192 .0170 .0153
.0773 .0677 .0601 .0541 .0492 .0451 .0416 .0387 .0338 .0301 .0271 .0225 .0193 .0169 .0150 .0135
875 R P M 1000 R P M 1125 RPM 1250 R P M 1375 R P M 1500 R P M 1625 R P M 1750 R P M 2000 R P M 2250 R P M 2500 R P M 3000 R P M 3500 R P M 4000 R P M 4500 R P M 5000 R P M
115
PROGRAMMING
JANUARY 2005
7TPI
. 358 0 . 331 0 . 310 0 . 292 0 . 277 0 . 264 0 . 253 0 . 243 0 . 234 0 . 226 0 . 219 0
8TPI
. 313 0 . 290 0 . 271 0 . 256 0 . 243 0 . 231 0 . 221 0 . 213 0 . 205 0 . 198 0 . 192 0
9TPI
. 278 0 . 258 0 . 241 0 . 227 0 . 216 0 . 206 0 . 197 0 . 189 0 . 182 0 . 176 0 . 171 0
10TPI
. 250 0 . 232 0 . 217 0 . 204 0 . 194 0 . 185 0 . 177 0 . 170 0 . 164 0 . 158 0 . 153 0
11TPI
. 228 0 . 211 0 . 197 0 . 186 0 . 176 0 . 168 0 . 161 0 . 155 0 . 149 0 . 144 0 . 140 0
12TPI
. 209 0 . 195 0 . 181 0 . 170 0 . 162 0 . 154 0 . 148 0 . 142 0 . 137 0 . 132 0 . 128 0
13TPI
. 193 0 . 178 0 . 167 0 . 157 0 . 149 0 . 142 0 . 136 0 . 131 0 . 126 0 . 129 0 . 118 0
14TPI
. 179 0 . 166 0 . 155 0 . 146 0 . 139 0 . 132 0 . 127 0 . 122 0 . 117 0 . 113 0 . 110 0
6 7 8 9 10 11 12 13 14 15 16
16TP I
. 157 0 . 145 0 . 136 0 . 128 0 . 122 0 . 116 0 . 111 0 . 106 0 . 103 0 . 099 0 . 096 0
18TP I
. 139 0 . 129 0 . 121 0 . 114 0 . 108 0 . 103 0 . 098 0 . 095 0 . 091 0 . 088 0 . 085 0
20TP I
. 177 0 . 153 0 . 137 0 . 125 0 . 116 0 . 108 0 . 102 0 . 097 0 . 093 0 . 089 0 . 085 0
24TP I
. 147 0 . 128 0 . 114 0 . 101 0 . 096 0 . 090 0 . 085 0 . 081 0 . 077 0 . 074 0 . 071 0
28TP I
. 126 0 . 110 0 . 098 0 . 089 0 . 083 0 . 077 0 . 073 0 . 069 0 . 066 0 . 063 0 . 061 0
32TP I
. 111 0 . 096 0 . 086 0 . 078 0 . 073 0 . 068 0 . 064 0 . 061 0 . 058 0 . 055 0 . 053 0
36TP I
. 098 0 . 085 0 . 076 0 . 070 0 . 064 0 . 060 0 . 057 0 . 054 0 . 051 0 . 049 0 . 047 0
40TP I
. 089 0 . 077 0 . 069 0 . 063 0 . 058 0 . 054 0 . 051 0 . 049 0 . 046 0 . 044 0 . 043 0
3 4 5 6 7 8 9 10 11 12 13
116
JANUARY 2005
PROGRAMMING
Fill in the blank lines for Tool #1 using a G76 Theading cycle command to define a multiple pass thread cycle for a 2 3/4-12UN 3A Thread.
2 3/4-12UN 3A THREAD
Major Dia. is 2.7500 / 2.7386 Pitch Dia. is 2.6959 / 2.6914 Minor Dia. is 2.6478 Thread Pitch is .083333
O00100 (O.D. Multiple Pass Threading with G76) N1 G28 N2 T101 (O.D. THREADING TOOL) (Tool #1 Offset #1) N3 G97 S590 M03 (Cancel CSS 590 spindle speed) N4 G54 G00 X_____ Z_____ M08 (Rapid X and Z above part, coolant ON) N5 Z______M___ (Z-.250 is start of thread, M code for NO chamfer end of thread) N6 G___ X_____ Z____ K____ D____ F_____ (Use G76 Thread cycle 10 passes) N7 M____ (Turn coolant off) N8 G____ (Return to reference point) N9 M____ (End of program rewind)
117
PROGRAMMING
JANUARY 2005
Modal canned cycles remain in effect after they are defined and are executed in the Z axis for each positioning of X axes in a the program. Positioning moves in X axis during a canned cycle is performed as a rapid motion. Some of the canned cycle command values can also be changed after the canned cycle is defined. The command most often changed during a Lathe canned cycle is the Z depth value. Modal canned cycles will be canceled with the G80, G01 or G00 command. The operation of a canned cycle will vary according to whether incremental (U,W) or absolute (X,Z) is specified. Incremental motion is often useful in a canned cycle. If a loop count (Lnn code number) is defined within the block, the canned cycle will repeat that many times with an incremental U or W move between each cycle. Canned cycle will only be executed in the Z-axis when positioning to a new X axis position during a canned cycle command. G Z Drilling Code motion G81 feed G82 feed G83 intermittent feed G84 feed G85 feed G86 feed G87 feed G88 feed G89 feed Operation at the bottom of hole none dwell dwell spindle reverse none spindle stop spindle stop dwell and spindle stop dwell Retraction Z axis motion rapid rapid rapid feed feed rapid manual retract manual retract feed
Application drilling counter boring peck drilling tapping cycle boring cycle boring cycle boring cycle boring cycle boring cycle
A canned cycle is presently limited to operations in the Z-axis. That is, only the G18 plane is allowed. This means that the canned cycle will be executed in the Z-axis whenever a new position is selected in the X axis. The following is a summary of the canned cycles that can be used on HAAS lathe controls.
118
JANUARY 2005
PROGRAMMING
G80
This G code is modal in that it deactivates all canned cycles until a new one is selected. Note: The use of a G00 or G01 will also cancel a canned cycle.
G81
X* Z* W* R F
TOOL 1
OFFSET 01
RADIUS 0
TIP 0
O00119 (G81 Drilling) N1 G28 N2 T101 (1/2 DIA. DRILL) N3 G97 S1450 M03 N4 G54 G00 X0. Z1. M08 N5 G81 Z-0.625 R0.1 F0.005 N6 G80 G00 Z1. M09 N7 G28 N8 M30
119
PROGRAMMING
JANUARY 2005
G82
X* Z* W* P R F
TOOL 2
OFFSET 02
RADIUS 0
TIP 0
O00120 (G82 Drilling with a Dwell) N1 G28 N2 T202 (1/2 DIA. FLAT BOTTOM DRILL) (Tool 2 Offset 2) N3 G97 S1450 M03 N4 G54 G00 X0. Z1. M08 (Rapid to Initial Start Point) N5 G82 Z-0.625 P0.5 R0.1 F0.005 (G82 Drill with a Dwell at Z Depth Cycle) N6 G80 G00 Z1. M09 N7 G28 N8 M30
120
JANUARY 2005
PROGRAMMING
G83
X* Z* W* Q* I* J* K* P R F
G83 USING Q TO DEFINE PECK AMOUNT If Q is specified with the G83 command. Every pass will cut in by the Q amount, then rapid out to the R plane to clear chips and flush with coolant, than rapid into hole for the next Q peck amount until Z depth is reached. TOOL DESCRIPTION 1/2 DIA. DRILL TOOL 3 OFFSET 03 RADIUS 0 TIP 0
O00121 (G83 Peck Drilling) N1 G28 N2 T303 (1/2 DIA. DRILL) N3 G97 S1820 M03 N4 G54 G00 X0. Z1. M08 N5 G83 Z-1.5 Q0.2 R0.1 F0.005 N6 G80 G00 Z1. M09 N7 G28 N8 M30
(Tool 3 Offset 3) (Rapid to Initial Start Point) (G83 Peck Drilling Cycle with Q)
121
PROGRAMMING
JANUARY 2005
O00122 (G83 Peck Drilling) N1 G28 N2 T303 (1/2 DIA. DRILL) (Tool 3 Offset 3) N3 G97 S1820 M03 N4 G54 G00 X0. Z1. M08 (Rapid to Initial Start Point) N5 G83 Z-1.5 I0.5 J0.1 K0.2 R0.1 F0.005 (G83 Peck Drill Cycle with I,J,K) N6 G80 G00 Z1. M09 N7 G28 N8 M30
SETTING 22 - As the tool pecks deeper into the hole with a G83. After each peck it rapids out to the R-plane, and then back into a constant specified distance above the bottom of the hole that was created by the previous peck. That specified distance is defined in Setting 22. SETTING 52 - Changes the way G83 works when it returns to the R-plane. Most programmers set the R-plane well above the cut to insure that the chip clear motion actually allows the chips to get out of the hole but this causes a wasted motion when first drilling through this empty space. Or you may need to define a clearance move above the part, in which the R-plan emay be down inside a part or pocket. If Setting 52 is set to the distance required to clear chips, the R-plane can be put much closer to the part being drilled. The Z axis will be moved above the R-plane by this amount ins Setting 52.
122
JANUARY 2005
PROGRAMMING
G84
X* Z* W* R F
Note: This cycle will perform different if the rigid tapping option is active. With rigid tapping, the feedrate for the spindle speed must be precisely the thread pitch being cut. The feed rate is the Lead of thread. To calculate the F feedrate in a G84 threading cycle divided 1.0 by the number of threads per inch = the F feedrate in a G84. (Example: 1.0 : 12 tpi = F.08333) You dont need to start the spindle CW before this G84 canned cycle. The control turns it on automatically for you. TOOL DESCRIPTION 3/8-16 TAP TOOL 4 OFFSET 04 RADIUS 0 TIP 0
O00123 (G84 Tapping) N1 G28 N2 T404 (3/8-16 TAP) (Tool 4 Offset 4) N3 G97 S650 M05 (G84 will turn on the spindle for you) N4 G54 G00 X0. Z1. M08 (Rapid to Initial Start Point) N5 G84 Z-0.75 R0.2 F0.0625 (G84 Tapping Cycle) N6 G80 G00 Z1. M09 N7 G28 N8 M30
123
PROGRAMMING
JANUARY 2005
G184
X* Z* W* R F
Note: This cycle will perform different if the rigid tapping option is active. With rigid tapping, the feedrate for the spindle speed must be precisely the thread pitch being cut. The feed rate is the Lead of thread. To calculate the F feedrate in a G184 threading cycle divided 1.0 by the number of threads per inch = the F feedrate in a G184 . (Example: 1.0 divided by 12 tpi = F.08333) You do not need to start the spindle CW before this G184 canned cycle. The control turns it on automatically for you. TOOL DESCRIPTION TOOL 9/16-12 LEFT HANDED TAP 4 OFFSET 04 RADIUS 0 TIP 0
O00124 (G184 Left Handed Tapping) N1 G28 N2 T404 (9/16-12 LEFT HANDED TAP) N3 G97 S650 M05 N4 G54 G00 X0. Z1. M08 N5 G184 Z-0.625 R0.2 F0.08333 N6 G80 G00 Z1. M09 N7 G28 N8 M30
124
(Tool 4 Offset 4) (G184 will turn on the spindle for you) (Rapid to Initial Start Point) (G184 Tapping Cycle)
JANUARY 2005
PROGRAMMING
G85
X* Z* U* W* R F
TOOL 5
OFFSET 05
RADIUS 0
TIP 0
O00125 (G85 Bore In-Bore Out) N1 G28 N2 T505 (BORING BAR) N3 G97 S1820 M03 N4 G54 G00 X0.625 Z1. M08 N5 G85 Z-0.5 R0.1 F0.005 N6 G80 G00 Z1. M09 N7 G28 N8 M30
(Tool 5 Offset 5) (Rapid to Initial Start Point) (G85 Bore In, Bore Out Cycle)
125
PROGRAMMING
JANUARY 2005
G86
X* Z* U* W* R F
TOOL 6
OFFSET 06
RADIUS 0
TIP 0
O00126 (G86 Bore In-Stop-Rapid Out) N1 G28 N2 T606 (BORING BAR) (Tool 6 Offset 6) N3 G97 S1820 M03 N4 G54 G00 X0.325 Z1. M08 (Rapid to Initial Start Point) N5 G86 Z-0.55 R0.1 F0.005 (G86 Bore In, Stop, Rapid Out Cycle) N6 G80 G00 Z1. M09 N7 G28 N8 M30
126
JANUARY 2005
PROGRAMMING
G87
X* Z* U* W* R F
TOOL 7
OFFSET 07
RADIUS 0
TIP 0
O00127 (G87 Bore In-Stop-Manual Handle Out) N1 G28 N2 T707 (BORING BAR) (Tool 7 Offset 7) N3 G97 S1820 M03 N4 G54 G00 X0.25 Z1. M08 (Rapid to Initial Start Point) N5 G87 Z-0.625 R0.1 F0.005 (G87 Bore In, Stop, Manual Retract Cycle) N6 G80 G00 Z1. M09 N7 G28 N8 M30
127
PROGRAMMING
JANUARY 2005
G88
X* Z* U* W* P* R F
TOOL 8
OFFSET 08
RADIUS 0
TIP 0
O00128 (G88 Bore In-Dwell-Manual Handle Out) N1 G28 N2 T808 (BORING BAR) (Tool 8 Offset 8) N3 G97 S1820 M03 N4 G54 G00 X0.875 Z1. M08 (Rapid to Initial Start Point) N5 G88 Z-0.5 P0.5 R0.1 F0.005 (G88 Bore In, Dwell, Bore Out, Manual Retract) N6 G80 G00 Z1. M09 N7 G28 N8 M30
128
JANUARY 2005
PROGRAMMING
G89
X* Z* U* W* P* R F
TOOL 9
OFFSET 09
RADIUS 0
TIP 0
O00129 (G89 Bore In-Dwell-Bore Out) N1 G28 N2 T909 (BORING BAR) N3 G97 S1820 M03 N4 G54 G00 X0.25 Z1. M08 N5 G89 Z-0.625 P0.5 R0.1 F0.005 N6 G80 G00 Z1. M09 N7 G28 N8 M30
(Tool 9 Offset 9) (Rapid to Initial Start Point) (G89 bore In, Dwell, Bore Out Cycle)
129
PROGRAMMING
JANUARY 2005
G90
X* Z* U* W* I * F
* Indicates optional
G90 is a modal canned cycle. It can be used for simple turning. Since it is modal, you can do multiple passes for turning by just specifying a new X location for successive passes. Straight turning cuts can be made by just specifying X, Z and F. By adding I a taper cut can be made. The amount of taper is defined with the I value added to the X value target point. Any of the four ZX quadrants can be programmed by varying U, W or X, and Z. The taper can be positive or negative. Selecting the sign direction is not intuitive.
130
JANUARY 2005
PROGRAMMING
This example uses tool nose compensation with a G90 modal rough turning cycle.
O00131 (G90 Modal Turning with TNC) N11 G28 N12 T101 (O.D. TURNING TOOL) N13 G50 S3000 N14 G97 S480 M03 N15 G54 G00 X1.85 Z1. M08 (Rapid to Start Point) N16 G96 S390 N17 Z0.1 N18 G90 G42 X1.65 Z-0.6495 I-0.375 F0.006 (Rough 30 Deg. angle to X2.3476 N19 X1.55 (Additional Pass) Dia. using G90 and TNC) N20 X1.45 (Additional Pass) N21 X1.35 (Additional Pass) N22 X1.25 (Additional Pass) N23 G00 G40 X3.1 Z1. M09 (TNC Departure) N24 M05 N25 G28 N26 M30
131
PROGRAMMING
JANUARY 2005
G92
X* Z* U* W* I * F
* Indicates optional
G92 is a modal canned cycle. It can be used for simple threading. Since it is modal, you can do multiple passes for threading by just specifying a new X location for successive passes. Straight threads can be made by just specifying X, Z and F. By adding I a pipe or taper thread can be cut. The amount of taper is defined with the I value added to the X value target point. At the end of the thread, an automatic chamfer is executed before reaching the target default for this chamfer is one thread at 45 degrees. These values can be changed with Setting 95 and Setting 96. Any of the four ZX quadrants can be programmed by varying U, W, X, and Z. The taper can be positive or negative. Selecting the sign direction is not intuitive. The figure shows a few examples of the values required for machining in each of the four quadrants.
132
JANUARY 2005
PROGRAMMING
EXAMPLE:
O00133 (G92 Modal Threading) N10 (1.0-12UN Thread) N11 G28 N12 T404 (O.D. THREADING TOOL) N13 G97 S825 M03 N14 G54 G00 X1.1 Z1. M08 (Rapid to Start Point) N15 Z0.25 N16 G92 X.98 Z-1.05 F0.08333 M23 (First Pass of a G92 O.D. Thread Cycle) N17 X.96 (Additional Pass) N18 X.94 (Additional Pass) N19 X.935 (Additional Pass) N20 X.93 (Additional Pass) N21 X.925 (Additional Pass) N22 X.9225 (Additional Pass) N23 X.92 (Additional Pass) N24 X.9175 (Additional Pass) N25 X.9155 (Additional Pass) N26 X.915 (Additional Pass) N27 X.9148 (Additional Pass) N28 G00 X1.1 Z1. M09 N29 M05 N30 G28 N31 M30
133
PROGRAMMING
JANUARY 2005
G94
X* Z* U* W* K* F
* Indicates optional
G94 is a modal canned cycle. It can be used for simple end facing. Since it is modal, you can do multiple passes for facing by just specifying a new Z location for successive passes.
Straight end facing cuts can be made by just specifying X, Z and F. By adding K a conical face can be cut. The coning amount is defined with the K value that is added to the Z value target point. Any of the four ZX quadrants can be programmed by varying U, W, X, and Z. The coning can be positive or negative. Selecting the sign direction is not intuitive.
134
JANUARY 2005
PROGRAMMING
This example uses tool nose compensation with a G94 modal rough facing cycle.
O00135 (G94 Modal End Facing with TNC example) N11 G28 N12 T101 (O.D. FACING TOOL) N13 G50 S3000 N14 G97 S480 M03 N15 G54 G00 X3.1 Z1. M08 (Rapid above part) N16 G96 S390 N17 Z.1 (rapid to start point) N18 G94 G41 X1.0 Z-0.3 K-0.5774 F0.01 (Rough 30 Deg. angle to X1. and N19 Z-0.4 (Additional Pass) Z-0.7 using G94 and TNC) N20 Z-0.5 (Additional Pass) N21 Z-0.6 (Additional Pass) N22 Z-0.69 (Additional Pass) N23 Z-0.7 (Additional Pass) N24 G40 G00 X3.1 Z1. M09 (Cancel TNC) N25 M05 N26 G28 N27 M30
135
PROGRAMMING
JANUARY 2005
M00 Stop Program (Setting 42,101) M01 Optional Program Stop (Setting 17) M02 Program End M03 Spindle Forward (S) (Setting 144) M04 Spindle Reverse (S) (Setting 144) M05 Spindle Stop M08 Coolant On (Setting 32) M09 Coolant Off M10 Chuck Clamp (Setting 92) M11 Chuck Unclamp (Setting 92) M12** Auto Air Jet On (P) M13** Auto Air Jet Off M14** Main Spindle Clamp M15** Main Spindle Unclamp M17 Turret Rotation Always Forward (T) (Setting 97) M18 Turret Rotation Always Reverse (T) (Setting 97) M19** Orient Spindle (P, R) M21** Tailstock Advance (Setting 93, 94, 106, 107, 121, 145) M22** Tailstock Retract (Setting 105) M23 Angle Out of Thread ON (Setting 95, 96) M24 Angle Out of Thread OFF M30 Program End and Reset (Setting 2, 39, 56, 83) M31 Chip Auger Forward (Setting 114, 115) M33 Chip Auger Stop M36** Parts Catcher On M37** Parts Catcher Off M41 Spindle Low Gear Override M42 Spindle High Gear Override M43 Turret Unlock (Service Use Only) M44 Turret Lock (Service Use Only) M51-M58 Optional User M-Code Set M59 Output Relay Set (N) M61-M68 Optional User M-Code Clear M69 Output Relay Set (N) M76 Program Displays Inactive
136
JANUARY 2005
PROGRAMMING
M77 Program Displays Active M78 Alarm if Skip Signal Found M79 Alarm if Skip Signal Not Found M85** Automatic Door Open (Setting 51, 131) M86** Automatic Door Close (Setting 51, 131) M88** High Pressure Coolant On (Setting 32) M89** High Pressure Coolant Off M93** Axis Position Capture Start (P, Q) M94** Axis Position Capture Stop M95 Sleep Mode (hh:mm) M96 Jump if no Input (P,Q) M97 Local Sub-Routine Call (P, L) M98 Sub Program Call (P, L) M99 Sub Program/Sub-Routine Return Or Loop (P) (Setting 118) M109** Interactive User Input (P) M110** Tailstock Chuck Clamp (Setting 122) M111** Tailstock Chuck Unclamp (Setting 122) M119** Sub-Spindle Orient (P, R) M121-128 Optional User M Code Interface with M-Fin Signal M133** Live Tool Drive Forward (P) M134** Live Tool Drive Reverse (P) M135** Live Tool Drive Stop M143** Sub-Spindle Forward (P) M144** Sub-Spindle Reverse (P) M145** Sub-Spindle Stop M154** C-Axis Engage (Setting 102) M155** C-Axis Disengage M164** Rotate APL Grippers to n Position (P) M165** APL Gripper 1 Open (Raw Material) M166** APL Gripper 1 Close (Raw Material) M167** APL Gripper 2 Open (Finished Material) M168** APL Gripper 2 Close (Finished Material)
**Options.
137
PROGRAMMING
JANUARY 2005
M01 OPTIONAL PROGRAM STOP (SETTING 17) The M01 code is identical to M00 except that it only stops if OPTIONAL STOP is turned on from the front panel. A cycle start will continue program operation from the next block. M02 PROGRAM END
The M02 code will stop program operation the same as M00 but does not advance the program pointer to the next block. It will not reset the program pointer to the beginning of the program as an M30 does.
M03 SPINDLE FORWARD (S) (SETTING 144) The M03 code will start the spindle in a clockwise direction at whatever speed was previously set. The block will delay until the spindle reaches about 90% of commanded speed. If bit 31 of parameter 209 (CNCR SPINDLE) is set to 1, then this command is executed at the beginning of the block execution rather than the end as most M codes are. M04 SPINDLE REVERSE (S) (SETTING 144)
The M04 code will start the spindle in a counterclockwise direction at whatever speed was previously set. The block will delay until the spindle reaches about 90% of commanded speed. If bit 31 of parameter 209 (CNCR SPINDLE) is set to 1, then this command is executed at the beginning of the block execution rather than the end as most M codes are.
M05 SPINDLE STOP The M05 code stops the spindle. The program is delayed until spindle slows below 10 RPM. M08 COOLANT ON (SETTING 32)
The M08 code will turn the coolant on. Note that M codes are performed at the end of a block; so that if a motion command is in the same block, the coolant is turned on after the motion. The low coolant status is only checked at the start of a program so a low coolant condition will not stop a program that is already running.
138
JANUARY 2005
PROGRAMMING
M11 CHUCK UNCLAMP (SETTING 92) The M11 code will unclamp the chuck. A delay is provided to allow the chuck time to unclamp prior to the next block executing. This is parameter 250 CHUCK UNCLAMP DELAY and is specified in milliseconds. The default is 500 for .5 seconds. If the spindle is turning, it will be stopped before the chuck is unclamped. M12 AUTO AIR JET ON (P) (OPTION) M13 AUTO AIR JET OFF M14 MAIN SPINDLE CLAMP (OPTION) (SETTING 92)
This M code will clamp the main spindle.
M15 MAIN SPINDLE UNCLAMP (SETTING 92) This M code will unclamp the main spindle. M17 TURRET ROTATION ALWAYS FORWARD (SETTING 97) The M17 code is a modal M code that forces the turret to rotate in the forward direction when a tool change is made. Whereas most M codes are invoked as the last action in a block, M17 works concurrently with other commands in the same block. This means that the following command will cause the tool turret to advance in the forward direction to tool #1.
N1 T101 M17; Because M17 is modal, any subsequent T command will cause the turret to rotate in the forward direction to the commanded tool. Select M17/M18 in Setting 97 to activate this feature.
M19 SPINDLE ORIENT (P,R) (OPTION) This feature will only work on a vector drive lathe. The M19 command orients the spindle to the zero position. A P value can be added that will cause the spindle to be oriented to a particular position (in degrees.) For example, M19 P270 will orient the spindle to 270 degrees. Note that P270.001 (or any other fraction) will be truncated to 270. Also a P365 will be treated as P5.
139
PROGRAMMING
JANUARY 2005
M21 TAILSTOCK ADVANCE (OPTION) (SETTING 106, 107, 121) The M21 code uses Settings 105, 106 and 107 to advance to the tailstock HOLD POINT. M22 TAILSTOCK RETRACT (SETTING 105) The M22 code uses Setting 107 to withdraw the tailstock to the RETRACT POINT. M23 ANGLE OUT OF THREAD, ON (SETTING 95, 96)
The M23 code commands the control to execute an angle out chamfer at the end of a thread executed by G76 or G92. This M code is modal. It remains in effect until changed by M24. Refer to Settings 95 and 96 to control the angle out chamfer size and angle.
M30 PROGRAM END AND RESET (SETTING 2, 39, 56, 83) The M30 code is used to stop a program. It also stops the spindle and turns off the coolant. The program pointer will be reset to the first block of the program and stop. The parts counters displayed on the current commands display are also added to. M30 will also cancel tool length offsets. M31 CHIP AUGER FORWARD (SETTING 114, 115) M31 starts the chip auger motor in the forward direction. The forward direction is defined as the direction that the conveyor must move to transport chips out of the work cell. If the auger motor is on, then the conveyor will be stopped and restarted in the forward direction. If setting 114 has a number of minutes entered in, it will cycle after that many minutes. And it will stay on for the number of minutes in setting 115 before it turns back off until it cycles again. The conveyor will not turn if the door is open. This may be overridden by setting bit 17 of parameter 209 (CNVY DR OVRD). M33 CHIP AUGER STOP
M33 stops chip conveyor motion.
140
JANUARY 2005
PROGRAMMING
M41 SPINDLE LOW GEAR OVERRIDE The M41 code is used to select low gear. The spindle will come to a stop when changing gears. M41 is ignored if there is no gear box. The machine will remain in it's current gear
even after the machine is powered off. When the machine is powered up, it will be in the same gear as when it was powered off.
141
PROGRAMMING
JANUARY 2005
M85 AUTOMATIC DOOR OPEN (OPTION) (SETTING 131) This code opens the optional automatic door. The automatic door can be used to load parts with a parts loader. Lathes equipped with an automatic door use discrete output and input labeled A DOOR to open, to close and to detect if the door is open. When M85 is invoked, the A DOOR output is set high. If the input A DOOR is not received with the time allotted by Parameter 251 (A DOOR OPEN ERRTIME), Alarm 127 (DOOR FAULT) is generated. The units of Parameter 251 are milliseconds. M86 AUTOMATIC DOOR CLOSE (OPTION) (SETTING 131)
This code closes the optional automatic door. When closing the automatic door, the A DOOR output is set low and control execution continues with delay.
M88 HIGH PRESSURE COOLANT ON (OPTION) (SETTING 32) M89 HIGH PRESSURE COOLANT OFF M93 AXIS POSITION CAPTURE START (OPTION) M94 AXIS POSITION CAPTURE STOP
142
JANUARY 2005
PROGRAMMING
143
PROGRAMMING
JANUARY 2005
This code is used to test a discrete input for 0 status. When this block is executed and the input signal specified by Q is 0, a branch to the block specified by P is performed. A Pnnnn code is required and must match a line number within the same program. The Q value must be in the range of 0 to 31. These correspond to the discrete inputs found on the diagnostic display page with the upper left being input 0 and the lower right being 31. Q is not required within the M96 block. The last specified Q will be used. This command stops the look-ahead queue until the test is made at run-time. Since the look-ahead queue is exhausted, M96 cannot be executed when cutter compensation is invoked. M96 cannot be executed from a main DNC program. If you wish to use M96 in DNC, it must be in a resident subroutine called from the DNC program. The following is an M96 example: N05 M96 P5 Q8 (TEST INPUT DOOR S, UNTIL CLOSED); N10 (START OF SOME PROGRAM LOOP); . . (PROGRAM THAT MACHINES PART); . N85 M21 (EXECUTE AN EXTERNAL USER FUNCTION) N90 M96 P10 Q27 (LOOP TO N10 IF SPARE INPUT IS 0); M95 M30 (IF SPARE INPUT IS 1 THEN END PROGRAM);
144
JANUARY 2005
PROGRAMMING
Main program: O04321 (Start of main program) ... ... (Part program) ... M97 P123 (Jumps to line N123, after the M30, to execute a local sub-routine.) ... (The M99 at the end of the sub-routine will cause it to jump back here.) ... ... (Finish part program) ... M30 (End of main program) N123 (Identifies the start of the Local Sub-Routine called up by M97 P123) ... ... (Local sub-routine portion of part) ... M99 (Jumps back to the line after the local sub-routine call in the main program)
145
PROGRAMMING
JANUARY 2005
M98 SUB-PROGRAM CALL This M98 code is used to call a sub-program. The Pnnnn code is the sub-program number being called; it must be in the same block as the M98. The subprogram number being called must already be loaded into the control, and it must contain an M99 at the end in order to return to the next line in the main program. An L count can also be included on the line containing the M98, which will cause the subroutine to be repeated L times before continuing to the next block. Main program: O05432 (Start of main program) ... ... (Part program) ... M98 P234 (Jumps to program O00234 to execute sub-program) ... (The M99 at the end of the sub-program will jump back here) ... ... (Finish part program) ... M30 (End of main program) Sub-program: O00234 (Identifies the start of a separate sub-program) ... ... (Sub-program portion of part) ... M99 (Jumps back to the line after the sub-program call in the main program)
146
JANUARY 2005
PROGRAMMING
M99 SUB-PROGRAM RETURN OR LOOP (SETTING 118) In the main program, an M99 will cause the program to loop back to the beginning and repeat over and over again without stopping. Main program: O06543 ... ... (Complete part program) ... ... M99 (This will cause the program to jump back to the beginning and repeat itself) An M99 without a P code at the end of a sub-program will return to the main program after executing the sub-routine or macro called. Main program: O07654 ... ... (Part program) ... M98 P345 (Jumps to program O00345 to run) ... (The M99 at the end of the sub-program will jump back here) ... ... (Finish part) ... M30 (End of main program)
Sub-program: O00345 (Identifies sub-program) ... ... (Sub-program portion of part) ... M99 (Jumps back to the line after the sub-program call)
147
PROGRAMMING
JANUARY 2005
Note: If M99 Pnnnn is used at the end of the sub-program, it will cause a jump to line number Nnnnn (containing the same number as Pnnnn) in the main program. A condition of using an M99 Pnnnn in the Haas control varies from that seen in Fanuc-compatible controls. In Fanuc-compatible controls, M99 Pnnnn will return to the main program and resume execution at block N specified by M99 Pnnnn. For the Haas control, M99 will NOT return to block N specified in the M99 return call, but (like always) will jump to the line after the sub-program call in the main program. You can simulate Fanuc behavior by using the following code-calling program: Fanuc Main program: O00432 ... N50 M98 P9876 ... ... N100 (to continue here) ... ... ... M30 Sub-program: O09876 M99 P101 Haas Main program: O00543 ... N50 M98 P9876 N51 M99 P101 ... ... N101 (to continue here) ... ... M30 Sub-program: O09876 M99
If you have macros, you can use a global variable and specify a block to jump to by adding #nnn=dddd in the subroutine and then using M99 P#nnn after the subroutine call. There are many ways to jump conditionally after an M99 return when using macros.
148
JANUARY 2005
PROGRAMMING
M109
This M code allows a G-code program to place a short prompt on the screen, get a single character input from the user and store it in a macro variable. The first 15 characters from the comment following the M109 will be displayed as a prompt in the lower left corner of the screen. A macro variable in the range 500 through 599 must be specified by a P code. Note also that due to the look-ahead feature, it is necessary to include a loop in the program following the M109 to check for a non-zero response before continuing. The program can check for any character that can be entered from the keyboard by comparing with the decimal equivalent of the ASCII character.
TAILSTOCK CHUCK CLAMP (OPTION) (SETTING 122) TAILSTOCK CHUCK UNCLAMP (SETTING 122) SUB-SPINDLE ORIENT (P,R) (OPTION) OPTIONAL USER M
M121-M128
The M121 through M124 codes are optional for user interfaces. They will activate one of relays 25 through 28, wait for the M-fin signal, release the relay, and wait for the M-fin signal to cease. The RESET button will terminate any operation that is hung-up waiting for M-fin.
M133
This M code commands the Live Tool Drive to turn forward direction and requires a P code specifying the Live Tooling Drive RPM, for example M133 P1000.
M134
This M code commands the Live Tool Drive to turn reverse direction and requires a P code specifying the Live Tooling Drive RPM, for example M134 P1000.
M135 M143
This M code commands the sub-spindle to turn forward direction and requires a P code specifying the RPM, for example M143 P1000.
M144
This M code commands the sub-spindle to turn reverse direction and requires a P code specifying the RPM, for example M144 P1000.
M145 SUB-SPINDLE STOP This M code commands the Live Tool Drive to stop.
149
PROGRAMMING
JANUARY 2005
C AXIS ENGAGE (OPTION) (SETTING 102) C AXIS DISENGAGE ROTATE APL GRIPPERS OPEN APL GRIPPER 1 (RAW MATERIAL) CLOSE APL GRIPPER 1 (RAW MATERIAL) OPEN APL GRIPPER 2 (RAW MATERIAL) CLOSE APL GRIPPER 2 (RAW MATERIAL)
150
Revolutions Per Minute Surface Feet Per Minute Surface Meters Per Minute (Metric) Feed Per Minute Milling Feedrate Feed Per Revolution Feed Per Tooth - Mill Feed Per Minute - Lathe Metal Removal Rate Advance Per Revolution
RPM SFM SMPM FPM FPR FPT FPM MMR ADV/R T h r e a d s Mill Tapping Feedrate FPM Lathe Threading Feedrate (Thread Lead) FPR Tap Drill Size Percent of Full Thread Mill Tapping Feedrate (Metric) Tap Drill Size (Metric) Percent of Full Thread (Metric) = = = = = Major Dia. of Tap TPI x
= = = = = = = = = = =
( SFM x 3.8 2) D RPM x D x 0 . 2 62 SFM x 0.3048 FPT x T x R P M FPM R P M FP M ( T x RPM) FP R x R P M W x d x F F RPM 1 TPI x RPM 1 TPI
% of Thread Height x .01299 TPI Major Dia. of Tap - Drill Dia. .01299
RPM x Metric Pitch Tap Major Dia. (mm) % of Thread Height x Metric Pitch 76.980
76.980 Metric Pitch x Basic Major Diameter (mm) - Drilled Hole (mm)
M i s c e l l a n e o u s Radius of Circle = Circumference x 0.159155 Diameter of Circle = Circumference x 0.31831 Circumference of Circle = D x 3.1416 Area of Circle = R2 x 3.1416 = L FP M Cutting Time in Minutes (Mill) Cutting Time in Seconds (Lathe) = Distance to go x 60 sec FPR x R P M D F d FPR FPT FPM FPR L A b b r e v i a t i o n s a n d M e a s = Diameter of Milling Cutter or Lathe Part RPM = Feed (Inch or metric) SFM = depth of cut SMPM = Feed per Revolution T = Feed per Tooth TPI = Feed per Minute (Table Travel Feedrate) W = Feed per Revolution C = Length of Cut (Inches) F
`
u r e m e n t U n i t s = Revolutions per Minute (Spindle Speed) = surface feet per minute = Surface Meters per Minute = Number of Teeth in the Cutter = Threads per Inch = Width of Cut = Degrees Celsius = Degrees Fahrenheit
01-14-04
mm 0.05 0.1 0.150 0.160 0.170 0.180 0.191 0.2 0.211 0.221 0.231 0.241 0.25 0.254 0.267 0.279 0.292 0.3 0.305 0.318 0.330 0.343 0.35 0.368 0.396 0.4 0.406 0.45 0.457 0.5 0.508 0.533 0.55 0.572 0.6 0.610 0.635 0.65 0.660 0.7 0.711 0.742 0.75 0.787 0.793 0.8 0.813 0.838 0.85 0.889 0.9 0.914 0.940 0.95 0.965 0.991 1.0 1.016 1.041 1.067 1.092 1.1 1.181 1.191 1.2 1.25 1.3 1.321 1.397 1.4 1.45 1.5 1.511 1.588 1.6 1.613 1.7 1.702 1.75 1.778 1.8 1.854 1.9 1.930
Tap Sizes
Decimal
M1 x 0.25
M1.1 x 0.25
M1.2 x 0.25
Equiv. .0781 .0785 .0787 .0807 .0810 .0820 .0827 .0846 .0860 .0866 .0886 .0890 .0906 .0925 .0935 .0938 .0945 .0960 .0965 .0980 .0984 .0995 .1015 .1024 .1040 .1063 .1065 .1094 .1100 .1102 .1110 .1130 .1142 .1160 .1181 .1200 .1220 .1250 .1260 .1285 .1299 .1339 .1360 .1378 .1405 .1406 .1417 .1440 .1457 .1470 .1476 .1495 .1496 .1520 .1535 .1540 .1562 .1570 .1575 .1590 .1610 .1614 .1654 .1660 .1693 .1695 .1719 .1730 .1732 .1770 .1772 .1800 .1811 .1820 .1850 .1875 .1890 .1910 .1929 .1935 .1960 .1969 .1990
46 45
44
43
29 28 9/64 27 26 25 24 23 5/32 22 21 20
19 18 11/64 17 16 15 14 13 3/16 12 11 10 9 8
mm 1.984 1.994 2.0 2.05 2.057 2.083 2.1 2.15 2.184 2.2 2.25 2.261 2.3 2.35 2.375 2.383 2.4 2.438 2.45 2.489 2.5 2.527 2.578 2.6 2.642 2.7 2.705 2.779 2.794 2.8 2.819 2.870 2.9 2.946 3.0 3.048 3.1 3.175 3.2 3.264 3.3 3.4 3.454 3.5 3.569 3.571 3.6 3.658 3.7 3.734 3.75 3.797 3.8 3.861 3.9 3.912 3.968 3.988 4.0 4.039 4.089 4.1 4.2 4.216 4.3 4.305 4.366 4.394 4.4 4.496 4.5 4.572 4.6 4.623 4.699 4.763 4.801 4.851 4.9 4.915 4.978 5.0 5.055
Decimal
#4-40
#4-48
#10-32
M5 x 0.8
#12-24
#12-28 #12-32
M6 x 1
Equiv. .2008 .2010 .2031 .2040 .2047 .2055 .2087 .2090 .2126 .2130 .2165 .2188 .2205 .2210 .2244 .2280 .2283 .2323 .2340 .2344 .2362 .2380 .2402 .2420 .2441 .2460 .2480 .2500 .2520 .2559 .2570 .2598 .2610 .2638 .2656 .2660 .2677 .2717 .2720 .2756 .2770 .2795 .2810 .2812 .2835 .2874 .2900 .2913 .2950 .2953 .2969 .2992 .3020 .3031 .3071 .3110 .3125 .3150 .3160 .3189 .3228 .3230 .3268 .3281 .3307 .3320 .3346 .3386 .3390 .3425 .3438 .3465 .3480 .3504 .3543 .3580 .3583 .3594 .3622 .3661 .3680 .3701 .3740
mm 5.1 7 5.105 13/64 5.159 6 5.182 5.2 5 5.220 5.3 4 5.309 5.4 3 5.410 5.5 7/32 5.558 5.6 2 5.613 5.7 1 5.791 5.8 5.9 A 5.944 15/64 5.954 6.0 B 6.045 6.1 C 6.147 6.2 D 6.248 6.3 1/4 & E 6.350 6.4 6.5 F 6.528 6.6 G 6.629 6.7 17/64 6.746 H 6.756 6.8 6.9 I 6.909 7.0 J 7.036 7.1 K 7.137 9/32 7.143 7.2 7.3 L 7.366 7.4 M 7.493 7.5 19/64 7.541 7.6 N 7.671 7.7 7.8 7.9 5/16 7.938 8.0 O 8.026 8.1 8.2 P 8.204 8.3 21/64 8.334 8.4 Q 8.433 8.5 8.6 R 8.611 8.7 11/32 8.733 8.8 S 8.839 8.9 9.0 T 9.093 9.1 23/64 9.129 9.2 9.3 U 9.347 9.4 9.5
Drill Size
1/4-28 1/4-32
M7 x 1
5/16-18
M8 x 1.25 5/16-24
5/16-32
M9 x 1.25 3/8-16
3/8-32
7/16-14
Drill Equiv. Size .3750 3/8 .3770 V .3780 .3819 .3858 .3860 W .3898 .3906 25/64 .3937 .3970 X .4016 .4040 Y .4062 13/32 .4130 Z .4134 .4219 27/64 .4331 .4375 7/16 .4528 .4531 29/64 .4688 15/32 .4724 .4844 31/64 .4921 .5000 1/2 .5118 .5156 33/64 .5312 17/32 .5315 .5469 35/64 .5512 .5625 9/16 .5709 .5781 37/64 .5906 .5938 19/32 .6094 39/64 .6102 .6250 5/8 .6299 .6406 41/64 .6496 .6562 21/32 .6693 .6719 43/64 .6875 11/16 .6890 .7031 45/64 .7087 .7188 23/32 .7283 .7344 47/64 .7480 .7500 3/4 .7656 49/64 .7677 .7812 25/32 .7874 .7969 51/64 .8071 .8125 13/16 .8268 .8281 53/64 .8438 27/32 .8465 .8594 55/64 .8661 .8750 7/8 .8858 .8906 57/64 .9055 .9062 29/32 .9219 59/64 .9252 .9375 15/16 .9449 .9531 61/64 .9646 .9688 31/32 .9843 .9844 63/64 1 .000 1
Decimal
mm 9.525 9.576 9.6 9.7 9.8 9.804 9.9 9.921 10.0 10.084 10.2 10.262 10.318 10.490 10.5 10.716 11.0 11.113 11.5 11.509 11.908 12.0 12.304 12.5 12.700 13.0 13.096 13.493 13.5 13.891 14.0 14.288 14.5 14.684 15.0 15.083 15.479 15.5 15.875 16.0 16.271 16.5 16.668 17.0 17.066 17.463 17.5 17.859 18.0 18.258 18.5 18.654 19.0 19.050 19.446 19.5 19.843 20.0 20.241 20.5 20.638 21.0 21.034 21.433 21.5 21.829 22.0 22.225 22.5 22.621 23.0 23.018 23.416 23.5 23.813 24.0 24.209 24.5 24.608 25.0 25.004 25.400
Tap Sizes
7/16-20
1/2-13
M16 x 2 5/8-16 5/8-18 h 5/8-20 5/8-24h 5/8-28h 5/8-32 11/16-12 M18 x 2.5 11/16-16 11/16-20 11/16-24 h 11/16-28 11/16-32 h 3/4-10 3/4-12 3/4-16 M20 x 2.5 3/4-20 3/4-28 h 3/4-32 13/16-12 13/16-16 13/16-20 h 7/8-9 M22 x 2.5 13/16-32 7/8-12 7/8-14 h 7/8-16 M24 x 3 7/8-20 7/8-28 h 7/8-32 15/16-12 15/16-16 h 1.0-8 15/16-20 15/16-28 h 15/16-32 1.0-12 1.0-16h 11/16-8 M27 x 3 1.0-20 1.0-28 h 1.0-32
www.HaasCNC.com
07/9/03