CNC Programming Handbook Smid 195 - 293
CNC Programming Handbook Smid 195 - 293
CNC Programming Handbook Smid 195 - 293
o Step 2:
o Step 3:
o Step 4:
POINT-TO-POINT MACHINING
177
178
Chapter 25
C")
LO
CX)
O)
-EB-Ef:)--1---1- Y3.40
(jj-- Y1.89
Figure 25-1
Simple hole pattern - programs 02501 and 02502
02501 (EXAMPLE 1)
(PROORAM USES INDIVIDUAL BLOCKS)
N1 G20
N2 Gl7 G40 GSO
N3 G90 G54 GOO XS.9 Yl.89 S900 M03
N4 G43 Zl.O HOl MOS
NS Z0.1 MOS
N6 GOl Z-0.6813 F4.5
N7 G04 P200 "--...
NS GOO Z0.1
N9 X3.87 Y3.4
NlO GOl Z-0.6813
Nll G04 P200
N12 GOO Z0.1
N13 X2.047
N14 GOl Z-0.6813
NlS G04 P200
N16 GOO ZO.l M09
N17 G28 X2.047 Y3.4 Zl.O
N18 M30
%
NS
N6
N7
NS
N9
%
G74
G76
G80
G81
G82
G83
G84
G85
G86
G87
G88
G89
179
FI XED CYCLES
PROGRAMMING FORMAT
o
o
rameter setting.
o
I I
N = o c number
.....- -B_l _ _k_ _ _ _ _ _ .
Within the range of Nl to N9999 or Nl to N99999, de
pending on the control system
G73
G84
G74
G85
G76 G81
G86\ G87
G82
G88
J = Shift amount
G83
G89
= eedrate s pe c fi catio n
= o le p osition in axis
_ _ _ _ II -F- F _ _ _ _ _ _ _ _ _ i_ _ _ _ _
.__-Y H_ _ _ _ _ _ _ _ _ _ Y
Y value can be an absolute or incremental value
R = Z axis start position = R level
180
Chapter 25
GENERAL RULES
Programming is a very controlled discipline - it means
there are rules, there are strict conditions, there are limita
tions, and there are restrictions. CNC programming is not a
language programming but shares a lot with it. We talk
about a Fanuc or Siemens programming, a Cincinnati pro
gramming, a Mitsubishi or Mazatrol programming, for
example. Fixed cycles are miniature prograrns.
Consider fixed cycles as a set of small condensed mod
ules - modules that contain a step-by-step series of prepro
grammed machining instructions. The cycles are called
'fixed', because their internai format cannot be changed.
These program instructions relate to the specific kind of
predictable tool motion that repeats from job to job. The ba
sic rules and restrictions relating to fixed cycles can be
summed up in the following items:
o Absolute or incremental mode of dimensioning can be
established before a fixed cycle is programmed or
anytime within the fixed cycle mode.
o G90 must be programmed to select the absolute mode, the
G91 command is required to select the incremental mode.
o Both G90 and G91 modes are modal !
o lf one of the X and Y axes is omitted in the fixed cycle
mode, the cycle will be executed at the specified location
of one axis and the current location of the other axis.
Example:
G80 Zl.125
G80 GOO Zl.125
isthesameas
or
GOO Zl.125
....--
/V\J\f\./\J'-
I
I
d
CW/CCW
OSS
DWELL
Figure 25-2
Symbols and abbreviations used in fixed cycles illustrations
FIXED CYCLES
INITIAL
LEVEL
--
I
zo
---- - R LEVEL
t
".
I
II
-- -
zo
181
INITIAL
LEVEL
1
R
;-,
---- ---
_L
f Z DEPTH
Figure25-3
Absolute and incremental input values for fixed cyc/es
G98 and G99 codes are used for fixed cycles only. Their
main function is to bypass obstacles between holes within a
machined pattern. Obstacles may include clamps, holding
fixtures, protruding sections of the part, unmachined areas,
accessories, etc. Without these commands, the cycle would
have to be canceled and the tool moved to a safe position.
The cycle could then be resumed. With the G98 and G99
commmds, such obstacles can bc bypassed without canccl
ing the'fixed cycle, for more efficient programming.
Initial levei is, by definitio e absolute value of the Last
Z axis coordinate in the program - before a fixed cycle is
called - Figure 25-4.
---,1,
INITIAL LEVEL
---- -- -- R LEVEL
I1
,
ZO
I
I
I
I
__LJ___
Figure 25-4
lnitial leve/ se/ection for fixed cycles
Z (Z DEPTH)
R LEVEL SELECTION
The cutting tool position from which the feedrate begins
is also specified along the Z axis. That means a fixed cycle
block requires two positions relating to the Z axis - one for
the start point at which the cutting begins, and another for
the end point indicating the hole depth. Basic programming
rules do not allow the same axis to be programmed more
than once in a single block. Therefore, some adjustment in
the control design must be made to accommodate both Z
values required for a fixed cycle. The obvious solution is
that one of them must be replaced with a dif!eren.t address.
Since the Z axis is closely associated with depth, it retains
this meaning in all cycles. The replacement address is used
for the tool Z position from which the cutting feedrate is
appljed. This address uses the letter R. A simplified term of
reference to this position is the R Levei. Think of the R levei
in terms of 'Rapid to start point', where the emphasis is on
the phrase 'Rapid to'and the letter 'R'- see Figure 25-5.
182
Chapt er 25
__
Z DEPTH CALCULATIONS
--RLEVEL
-----+-i---'--
I
:,
zo
I
I
__ tL __ z
(Z DEPTH)
Figure 25-5
R levei se/ection for fixed cycles
FIXED CYCLES
183
00.75-1
zo
---ci
-,-'-Y-,,4...,,,
ABSOLUTE
Figure 25-6
Z depth ca/culation for a drilling fixed cycle
Step
1
G98
---- i - -f-9J
J G81
"#.'
- - -R0.1
....,....,.....,.......,....,....,-+----1,...,...,.....,...,...., -
0.1
2.25
'--
I
I
I
11
ZO
Z DEPTH
Figure 25-7
G87 fixed cyc/e - typical/y used for drilling
I G82
--4
l
G98
--iG99
--
:
I
I
:
I
zo
__
tJ___ Z DEPTH
DWELL
Figure 25-8
G82 fixed cycle - typical/y used for spot drilling
184
Chapter 25
Step
For deep hole drilling, also known as peck drilling, where the
chip breaking is more important than the tuli retract of the dril!
from the hole. The G73 cycle is often used for a long series
drills, when a tuli retract is not very important.
The G73 fixed cycle is slightly taster than the G83 cycle, hence
the name 'high speed', because of the time saved by nat
retracting to the A level after each peck. Compare this cycle
with the standard deep hote drilling cycle G83.
__
a 1-I
l
aI
a_J
G83
----- I
t .
G98
l1
G99
----1--- --'
I
zo
I
' I I I
d
: - 1
I
I . :-====== d
_____ =
L1_!_ Z'QEPTH
Figure 25-9
G83 fixed cycle - typical/y used for deep hale drilling
{this cyc/e retracts to R levei after each peck)
'?'
G73
IB -
G98
G99
.------------------zo
J
aI
alIal
-i=,::==d
---------L_ Z DEPTH
Figure 25-1 O
G73 fixed cycle - typical/y used for deep hote drifling
{this cycle does nat retract to R leve/ after each peck)
Number of pecks calculation
FIXED CYCLES
.45 = 3.4593333
185
The resuit of the calculation must be rounded to either
18.667 or 18.666. Although it looks that only one micron
(0.001 mm) is at stake, it will make a big difference which
way the rounding is done. If only three pecks are required,
round off upwards, to Q l 8.667:
Cut 1
Cut 2
Cut 3
18.667
18.667
18.666
Total
56 mm
1
2
3
4
Total
18.666
18.666
18.666
0.002
56 mm
o=
2.s
.625
3 = 18.666667
186
Chapter 25
Step
Spindle no
l rotation (M03)
The tap design must be of the right hand design for the
G84 cycle with M03 spindle rotation in effect.
Descrpton of G84 cycle
Step
1
I G84
._
oo---G98
.
I
1
G99
------1----- -- SPINDLECW
------+-
zo
____
f_._._____ Z DEPTH
SPINDLECCW
Figure 25-11
G84 fixed cyc/e - exc/usively used for right hand tapping
w_
!I
I G74
G98
__ _, 1 D
J
r-- -- SPINDLECCW
----, ,:
G99
. ______ _ JJ_______
zo
Z DEPTH
-- SPINDLECW
Figure 25-12
G74 fixed cycle - exclusively used for left hand tapping
FIXED CYCLES
187
I
I
I
,t --4 G98
l
The G85 boring cycle is typically used for boring and reaming
operations. This cycle is used in cases where the tool motion
into and out of holes should improve the hole surface finish, its
dimensional tolerances and/or its concentricity, roundness, etc.
lf using G85 cycle for boring, keep in mind that on some parts
a tiny amount of stock may be removed while the cutting tool
feeds backwards. This physical characteristics is due to the
released tool pressure during retract. lf the surface finish gets
worse rather than improves, try using another boring cycle.
I
I
I
I G85
G98
k --4
G99
1
---- r--1--
zo
. ---v -:
SPINDLE CW
-9
1t
zo
DEPTH
!_.J___ ZSPINDLE
__
STOP
Figure 25-14
G86 fixed cyc/e - typical/y used for rough and semifinish
boring operations
------ Z DEPTH
Figure 25-13
GB5 fixeds't!:_le - typical/y used for boring and reaming
G86
Spindle orientation
7
8
188
Chapter 25
13
Spindle rotation on
14
Spindle rotation on
10
Spindle orientation
11
12
pecial tooling and setup requirements. Use the G87 cycle only
1f the total costs can be justified economically. ln most cases,
reversal of the part in a secondary operation is an option.
SPINDLE ON - G98
___
I G87
, 'Y
!u
r
- -Q...
OSS,
I
----,--ZO
OSS 1 1
1...,...--zDEPTH
'.
}--
SlDLE ON - G99
za
DWELLlll
zDEPTH
SPINDLE STOP
[G980NLYI
l 1
G88
Figure 25-16
GBB fixed cyc/e - used when manual operation is required
FIXED CYCLES
189
lj ____
__ i ___
r98
I
1
G_9
---+----
I G89
zo
v\'...--L_____ -- z DEPTH
Figure 25-17
689 fixed cyc/e - typically used for boring or reaming
G76
1,
-JOr-
--
-+- G98
6
1
9-
ZQ
DWELLf
:
Figure 25-18
676 fixed cyc/e - typica//y used for high qua/ity boring
Spindle orientation
8
9
10
G99)
N34 GSO
N35 GOO XS.OY-5.75
190
Chapter 25
The L or K Address
The command that specifies the number of repetitions
(sometimes called Loops) is programmed wth the address
L or K for some controls. The L or K address for the fixed
cycle repetition is assumed to have a value of one, which is
equivalent to a program statement LI or K1.The LI or K1
address does not have to be specified in the program.
For example, the fixed cycle call of the following drilling
sequence,
N33
N34
N35
N36
N37
N38
G90 G99
G81 Xl7.0 Y20.0 R0.15 Z-2.4 Fl2.0
X22.0
X27 .o
X32.0
G80
is equivalent to:
N33
N34
N35
N36
N37
N38
G90
G81
G91
G90
G99 .
Xl7.0 Y20.0 RO.l Z-2.4 Fl2.0
XS.O L3 (K3)
G80 GOO ..
LO or KO in a Cycle
1n previous discussions, the default for a fixed cycle repe
tition was specfied as L1 or K 1, that does not have to be
specified in the program. Any LorKvalue other than LI or
KI must always be specified, within the allowable range of
the LorK address. That range is between LOand L9999or
KO and K9999. The lowest L/Kword is LO or KO - not LI
or KI ! Why would we ever program a fixed cycle and then
say 'do not do it'. The address LO or KOmeans exactJy that
- 'do not execute this cycle '. The full benefit of the LO/KO
word will be apparent in the examples listed under the sec
tion for subprograms, in Chapter 39.
By programming the LO or KO in a fixed cycle, what we
are really saying is not 'do not execute this cycle', but 'do
not execute the cycle yet, just remember the cycle parame
ters for future use '.
. MACH/NING HOLES
There is a quite good chance that the majority of pro
grams for CNC machining centers include machining of at
least one hole, probably more. From a simple spot drill to
reaming, tapping and a complex backboring, the field of
hole machining is very Iarge. In this chapter, we look at
many available programming methods for holes machin
ing, and learn a number of techniques used. Varous drilling
and boring operations, as well as reamng, tapping and sn
gle point boring will be covered.
The most common type of hole machning on CNC ma
chning centers s n the area of drilling, tapping, reaming
and sngle point boring. A typical machining procedure
may be to center drill or spot drill a series of holes, then
drill them, then tap or bore them. Machining even a sngle
hole will benefit from using the fixed cycles - G81 to G89,
G73, G74 and G76, all described in Chapter 25.
ll1V/
1(
I
! -I
XY location: X3.5Y5.0
Material: 1020 STEEL
Figure 26-1
Evaluation of a single hale programming example 02601
o
o
o
191
192
Chapter 26
r
00.625 SPOT DRILL (90 )
23/64
.3594
84%
-r1
0.015x45
le-''
t
--'xc==:c=/
0.2338
------'Z-0.2338 j
l
I
00.4375 TAP
1
.--- - 00.4675 CHAMFER
1--!j-
Figure 26-2
Spot dril/ operation detail - TOT in program 02601
or
or
.4675 I 2
.4675 x .5 = .23375
Z-0 .2338
.3680
75%
3/8
.3750
67%
.3770
65%
1.5
P = 0.111
_i
---llZ-1.086j
Figure 26-3
Tap dril/ operation detail - T02 in program 02601
The actual programmed depth for the tap drill will have to
take into consideration one more factor - the drill point
length. The drill or - tool - point length is sometimes abbre
viated as TPL or justby the letter P. This chapter contains a
MACHINING HOLES
193
The next tool is a tool that drills the hole through the ma
terial. In the example, it is the T03 (tool 3), a 05/16 stan
dard dril!.
As for the cutting depth of the through dril!, some simple
calculations are needed. To do the calculations, the re
quired hole depth has be known, which is 1.5 inches in the
example. Then, the calculated drill point length can be
added to the required dril! depth, usually with an extra
clearance.
The calculations for this through drilling operation are il
lustrated in Figure 26-4 .
1.5
0:
I
-im--.--.-
c/,, . ,
y
0 98610 6
8
R-LEVEL I
I
J___......_---+-'--'/- =
CLEARANCE = 0.050
rZ-1.644
1-..p = 0.094
Figure 26-4
Through dril/ operation detai/ - T03 in program 02601
.3125 X .300
.09375
.0938
.094
194
Program Data
1n the example, only one hole s machined. If more holes
are needed, they can be added by modifying the following
program. For one hole used in the example, the program in
cludes all considerations for the four tools selected earlier.
The spindle should be empty at the beginning of program:
02601 (SINGLE HOLE EXAMPLE)
(TOl - 5/8 DIA - 90 DEGREE SPOT DRILL)
N1 G20
N2 Gl7 G40 G80 TOl
N3 M06
N4 G90 G54 GOO X3.5 YS.O S900 M03 T02
NS G43 Z0.1 HOl MOS
N6 G99 G82 R0.1 Z-0.2338 P300 F4.0
N7 G80 Zl.O M09
NS G28 Zl.O MOS
N9 MOl
(T02 - LETl'ER U DRILL - 0.368 DIA DRILL)
NlO T02
Nll M06
N12 G90 G54 GOO X3.5 YS.O S1100 M03 T03
N13 G43 Z0.1 H02 MOS
N14 G99 G83 R0.1 Z-1.086 Q0.5 F8.0
NlS G80 Zl.O M09
N16 G28 Zl.O MOS
N17 MOl
(T03 - 5/16 DRILL THROUGH - 0.3125 DIA)
N18 T03
N19 M06
N20 G90 G54 GOD X3.5 YS.O S1150 M03
N21 G43 Z0.1 H03 MOS
N22 G98 G81 R-0.986 Z-1.644 F8.0
N23 G80 Zl.O M09
N24 G28 Zl.O MOS
N25 MOl
(T04 - 7/16-14 TAP)
N26 T04
N27 M06
N28 G90 G54 GOD X3.5 YS.O S750 M03 TOl
N29 G43 Z0.4 H04 MOS
N30 G99 G84 R0.4 Z-0.9 F53.57
(F = S x LEAD)
N31 G80 GOO Zl.O M09
N32 G28 Zl.O MOS
N33 GOO X-1. O YlO.O
(PART CHANGE POSITION)
N34 M30
Chapter 26
Drilling is one of the oldest operations n a typical ma. chine shop. By definition, drilling is a removal of solid ma
terial to form a circular hole of the same diameter as the
cutting tool (drill). The material removal is achieved by ei
ther rotating the drill (on milling systems) or by rotating the
part tself (on turning systems). In either case, a vertical or
horzontal machinng application is possble. In a rather
loose sense of the word, drilling operations also cover the
extended areas of reaming, tapping and single point boring.
Many programming principles that apply to drilling opera
tions, can be equally applied to all the related operations.
Center dril!
Through hale
Spot drill
C hamfered hale
li
Semi-blind hale
Blind hale
Premachined hale
li
...
+ Types of Drills
Drills are categorized by their design and by their size.
The oldest and the most common design is aJwist drill,
usually made of high speed steel. Twist drll can also be
made of cobalt, carbide and other materials. Other drill de
o NUMBER SIZES :
DRILLING OPERATIONS
o LETIER SIZES :
li
li
195
MACHINING HOLES
+ Programming Considerations
A standard drill has, regardless of size, two important
features - the diameter and the point angle. The diameter is
selected according to the requirements of the drawing, the
tool point angle relates to the material hardness. They are
both closely connected; since the diameter determines the
size of the drilled hole, the tool point angle determines its
depth. A smaller consideration is the number of flutes,
which is normally two.
--1
Figure 26-5
Nominal and effective dril/ diameters (twist dril/ shown)
r--
00 = Orill
diameter
A = Tool point
angle
p = Tool point
length
'-
Figure 26-6
Tool point length data for a standard twist dril/
PROGRAM MED
DEPTH (P)
EFFECTIVE
DRILL DIAMETER
00
tan ( 90 :;::
A
2
where ...
p
A
D
:;::
:;::
)
X
196
Chapter 26
p ;:: D
where ...
K<F
P
O
K
=
=
Exact
Constant
Practicai
Constant (K)
60
.866025404
. 866
82
.575184204
.575
90
.500000000
.500
118
.300430310
.300
120
.288675135
.289
125
.260283525
.260
130
.233153829
.230
135
.207106781
.207
140
.181985117
.180
145
.157649394
.158
150
.133974596
.134
+ Center Drilling
Center drilling is a machining operation that provides a
small, concentric opening for a tailstock support or a pilot
hole for a larger dril!. Chamfering is not recommended
with a center drill, because of the 60 angle of the tool.
Never center a hole to be drilled with indexable insert drills !
__
,I-
D2
-- ------ D
f-4-
Number
#1
#2
#3
#4
#5
#6
#7
#8
L_
01
0.125
0.188
0.250
0.312
0.438
0.500
0.625
0.750
_j
02
0.047
0.078
0.110
0.125
0.188
0.218
0.250
0.312
0.100
0.150
0.200
0.250
0.350
0.400
0.500
0.600
D1
'I
0.106
0.163
0.219
0.269
0.382
0.438
0.538
0.651
Figure 26-7
Standard center dril/ cutting depth table - # 1 to #8 p/ain type
L is the depth of cut for an arbitrary effective diameter D
MACHINING HOLES
197
r--J-
f%1
j_
'--"-+-----,--+-......
/.....
-r
--p
1-
Metric holes are treated exactly the same way. For exam
ple, a 016 mm drill is used to machine the full diameter
depth of 40 mm. The calculation uses the same constant as
for the size in English units:
40 + (16 X .300) = 44.8
Figure 26-8
Dril/ depth calculation data
Through ho/e (top) and Blind hote (bottom)
198
NS
N6
N7
N8
N9
%
GOl
G04
GOO
G28
M30
Chapter 26
Z-2S.O F200.0
XO.S
Z2.S M09
Z3.0 MOS
'----4
I
'-
D = DRILL DIAMETER
Figure 26-9
Cutting end of a typica/ indexable insert dril/
199
MACHINING HOLES
runs true - no more than .010 inch (0.25 mm) ofT.I.R. (To
tal Indicator Reading). On spindles that have a quill, try to
work with the quill inside the spindle, or extend it as little as
PECK DRILLING
Peck drilling is also called interrupted cut drilling. It s a
drilling operation, using the fixed cycles 083 (standard
peck drilling cycle) or 073 (high speed peck drilling cy
cle). The difference between the two cycles is the tool re
tract method. 1n 083, the retract after each peck will be to
the R levei (usually above the hole), n 073, there will only
be a small retract (between .02 and .04 inches).
Peck drilling is often used for holes that are too deep to be
drilled with a single tool motion. Peck drilling methods
also offer severa! opportunities to improve the standard
drilling techniques as weU. Here are some possible uses of
the peck drilling methods for machining .holes:
o Deep hole drilling
o Chip breaking - also used for short holes in tough materials
o Cleanup of chips accumulated on the flutes of the drill
o Frequent cooling and lubricating of the drill cutting edge
o Controlling the drill penetration through the material
---iI
F/2
F/2
I
F/2
F/2
F/2
Figure 26-1 O
Uneven entry or exit surface for indexab/e drills feedrate:
F = normal feedrate, F/2 = reduced feedrate (one half of FJ
200
Chapter 26
where ...
P"
Number of pecks
=
tool travel distance
Total
Td
Q = Programmed peck depth
Peck 1
Peck 2
Peck 3
Peck 4
.4463
.4463
.4463
. 0001
.4463
.8926
1.3389
1.3390
There will be faur pecks and the last one will only cut
.0001 - or practically nothing at all. In those cases, where
the last cut is very small and inefficient, always round the
calculated Q value upwards, in this case to the minimum of
.4464 or even to .447:
N14 G99 G83 X. Y.. R0.1 Z-1.239 Q0.447 F12.0
--i
where ...
Programmed peck depth
Q
=
T otal tool travel distance
Td
P" = Number of required pecks
accumulated depth
accumulated depth
accumulated depth ...
accumulated depth ...
.-
00.5
_,,,,,- R0.1
----
I 1-
---@J
ao.925 o.75
I
1 0.05 CLEAR
I
J
i
i _---=:=--=
fZ-0.825
Z-0.95
Figure 26-11
Control/ed breakthrough of a hale using G83 peck drilling cycle
MACHINING HOLES
Peck drilling cycle G83 is great for it, but the Q depth cal
culation is extremely important. The total number of pecks
is not important, only the last two are criticai for this pur
pose. To control the problem associated with the drill pene
tration, only two peck motions are needed. The illustration
shows the two positions for a 01/2 dril! drill through a 3/4
thick plate.
For most jobs, such a hole requires no special treatment.
Just one cut through (using G81 cycle) and no peck drill
ing. Let'Stevaluate the solution to this situation. The 0.5
drill has the point length of .300 x .500 = .150. Take one
half (.075) of the drill point Jength as the first penetration
amount, which will bring the dril! .075 below the 3/4 plate
thickness, to the Z depth of Z-0.825. This depth has to be
reached with the value ofthe Q depth. Keep in mind that the
Q depth is an incremental value, measured from the R
levei, n this case RO. I. That specifies the Q depth as
Q0.925 (. l 00 above and .825 below ZO). The programmed
Z depth is the final drill depth. lf the .05 clearance is added
below the plate, the Z depth will be the sum of the plate
thickness (. 75), the clearance ( .05) and the drill point length
(.150), for the program value of Z-0.95:
G99 G83 X. Y.. R0.1 Z-0.95 Q0.925 F ..
REAMING
The reaming operations are very clase to the drilling op
erations, at least as far as the programmjng method is con
cerned. While a drill is used to make a hole (to open up the
hole), a reamer is used to enlarge an existing hole.
Reamers are either cylindrical or tapered, usually de
signed with more than two flutes of different configura
tions. Reamers made of high speed steel, cobalt, carbide
and with brazed carbide tips. Each reamer design has its ad
vantages and disadvantages. Carbide reamer, for example,
has a very high resistance to wear, but may be not economi
cally justified for every hole. A high speed steel reamer s
economical, but wears out much faster that a carbide
reamer. Many jobs do not accept any compromise in the
tooling selection and the cutting tool has to be selected cor
rectly for a given job. Sizing and finishing tools, such as a
reamer, have to be selected even more carefully.
Reamer is a sizing tool and s not designed for removal of
heavy stock. During a reaming operation, an existing hole
will be sized - reamer will size an existing hole to close tol
erances and add a high quality surface finish. Reaming will
not gl.iarantee concentricity of a hole. For holes requiring
both high concentricity and tight tolerances, center drill or
spot drill the hole first, then drill it the normal way, then
rough bore it and onJy then finish it with a reamer.
201
A reaming operation will require a coolant to help make a
better quality surface finish and to remove chips during cut
ting. Standard coolants are quite suitable, since there is not
very much heat generated during reaming. The coolant also
serves in an additional role, to tlush away the chips from
the part and to maintain the surface finish quality.
+ Reamer Design
1n terms of design, there are two features of a reamer that
have a direct relationship to the CNC machining and pro
gramming. The first consideration is the flute design.
Most reamers are designed with a left-hand flute orienta
tion. This design is suitable to ream through holes. During
the cut, the left-hand tlute design 'forces' the chips to the
bottom of the hole, into an empty space. For blind holes
that have to be reamed, the left-hand type of a reamer may
not be suitable.
The other factor of the reamer design is the end chamfer.
ln order to enter an existing hole that is still without a
chamfer, a lead-in allowance s required. The reamer end
provides that allowance. Some reamers also have a short
taper at their tip, for the same purpose. The chamfered lead
is sometimes called a 'bevel Lead'and its chamfer an 'attack
angle'. Both have to be considered in programming.
202
Chapter 26
Stock Allowance
Stock is the amount of material left for finishing opera
tions. A hoJe to be reamed must be smaller (undersize) than
the pre-drilled or pre-bored hole - a logical requirement.
Programmer decides how much smaller. A stock too small
for reaming causes the premature reamer wear. Too much
stock for reaming increases the cutting pressures and the
reamer may break.
A good general rute is to leave about 3% of the reamer
diameter as the stock allowance. This applies to the hole
diameter - not per side. For example, a 3/8 reamer (0.375),
will work well in most conditions if the hote to be reamed
has a diameter close to .364 inches:
.375 - (.375 x 3 / 100)
.36375
.364
ili
I
,,
"'*"
[__ o-
D = EFFECTIVE
BORE DIAMETER
Figure 26- 72
Effective diameter of a single point boring too/
MACHINING HOLES
203
Just like any other cutting tool, a single point boring bar
achieves the best cutting results if it is short, rigid and runs
concentric with spindle centerline. One of the main causes
of poorly bored holes is the boring bar deflection, applying
equally to milling and turning. The tool tip (usually a car
bide bit), should be properly ground, with suitable cutting
geometry and overall clearances. The position of the boring
bar in the spindle - or its orientation - is very important for
many boring operations on machining centers.
+ Spindle Orientation
Any round tool, such as a drill or an end mill, can enter or
exit a hole along the Z axis, with little programming con
siderations for the hole quality. Neither of the tools is used
for holes that demand high quality surface finish and close
tolerances. With boring, the hole surface integrity is very
important. Many boring operations require that the cutting
tool does not damage the hole surface during retract. Since
retracting from a hole almost always leaves some marks in
the hole, special methods of retract must be used. There is
one such method - it uses cycle G76 or G87 with the spin
dle orientation feature of the machine and a shift of the bor
ing tool away from the finished surface. This feature was
already described in Chapter 12, so just a reminder now.
The sole purpose of spindle orientation is to replace the
tool holder in exactly the same position after each tool
change. Without spindle orientation, the tool tip will stop at
a random position of its circumference. Orienting the spin
dle for boring purposes is only one half of the solution. The
other is the setting position of the boring bit. This is usually
a responsibility of the operator, since it has to be done dur
ing setup at the machine. The boring bar cutting bit must be
set in such a way that when the shift takes place in fixed cy
cle G76 or G87, it will be into the direction away from the
finished hole wall, itleally by Lhe XY vector relative to the
angle of the spindle orientation - Figure 26-13.
CUTTING
BIT
+ Block Tools
When using a single point boring bar for roughing or
semifinishing operations, there is an option that is more ef
ficient. This option also uses a boring tool, but one that has
two cutting edges (180 opposite) instead of one - it is
called a block tool. Block tools cannot be used for fine fin
ishing operations, because they cannot be shifted. The only
way of programming a block tool is within the 'in-and-out'
tool motion. Severa! fixed cycles support this kind of mo
rion. Ali motions 'in 'are at a specified feedrate. On the way
'out', some motions are feedrates, others are rapid, depend
ing on the cycle selection. The cycles that can be used with
block tools are G81 and G82 (feed-in-rapid-out), as well as
G85 and G89 that feeds in and feeds out while the machine
spindle is rotating and another one, G86, when the tool re
tracts while the spindle is not rotating.
The greatest advantage of a block tool s the increased
feedrate that can be programmed for this tool. For example,
if the feedrate for a single point tool is .007 per flute, for a
block tool it will be at least double, .014 inches per flute or
more. Block tools are generally available in diameters from
about 0.750 inch and up.
I fliJr
Figure 26-13
Sing/e point boring bar and the spindle orientation angle
There are two fixed cycles that require the tool shift away
from the centerline of current hole. These cycles are boring
cycles G76 and G87. G76 is by far the most useful and both
are illustrated together in program example 02604.
Chapter 26
The G76 cycle has been described in detail in the previ
ous chapter. In this chapter is an actual programming ex
ample, shown as a single hole in Figure 26-14 - 025 mm.
027
-025
CUTTING DIAMETER
-,,-- BODY DIAMETER
BACK CLEARANCE
I --1
i---1 -'---i
----;----.,,---,--.,.--, --zo
----lnitial level
r--- - - -1-i-;
Figure 26-14
Drawing for G76 and G87 programming example - program 02604
Figure 26-15 shows the setup of the tool that will bore
the 27 mm hole, from the bottom of the hole, upwards. Pay
a close attention to the descriptions.
In the illustration, the DI represents the diameter of the
smaller hole, and D2 represents the diameter of the hole to
be backbored. D2 is always Jarger than DI . Always make
sure there is enough clearance for the body of the boring
bar within the hole and at the hole bottom.
Figure 26-15
Setup considerations for a backboring too/
+ Programming Example
In order to show a complete program, four tools will be
used - spot drill (TOJ ), drill (T02), standard boring bar
(T03) and a back boring bar (T04). Program is 02604.
02604 (G76 AND GS7 BORING)
(TOl - 15 MM DIA SPOT DRILL - 90 DEG)
N1 G21
N2 Gl7 G40 GSO TOl
N3 M06
N4 G90 G54 GOO XO YO Sl200 M03 T02
NS G43 ZlO.O HOl MOS
N6 G99 G82 R2.0 Z-S.O P100 FlOO.O
N7 GSO ZlO.O M09
NS G2S ZlO.O MOS
N9 MOl
(T02 - 24 MM DIA DRILL)
NlO T02
Nll M06
N12 G90 G54 GOO XO YO S650 M03 T03
N13 G43 ZlO.O H02 MOS
N14 G99 GSl R2.0 Z-39.2 F200.0
NlS GSO ZlO.O M09
N16 G2S ZlO.O MOS
N17 MOl
(T03 - 25 MM DIA STANDARD BORING BAR)
NlS T03
N19 M06
N20 G90 G54 GOO XO YO S900 M03 T04
N21 G43 ZlO.O H03 MOS
(25 DIA)
N22 G99 G76 R2.0 Z-31.0 Q0.3 F125.0
N23 GSO ZlO.O M09
N24 G2S ZlO.O MOS
N25 MOl
MACHINING HOLES
205
For the G87 cycle, the Q value must be greater than one
half of the difference betwe en the two diameters:
(02-01 )/2 = (27-25)/2 = 1,
plus the standard minimum Q value (0.3 mm)
60 degrees
ENLARGING HOLES
An existing hole can also be enlarged from the top. To
enlarge an existing hole at the top, we can use one of three
methods that will enlarge an existing hole. These methods
are common in every machine shop. They are:
a Countersinking
o Counterboring
o Spotfacing
Figure 26-16
Typica/ nomenc/ature of a countersinking tao/
206
Chapter 26
= .1875 X .575
e = .1078
@-
--0.625
O.OOO
ci
ci
-.00.78CS1NK-82
13/32 DRILL THRU
-O.OOO
0.750
Figure 26-17
Programming example of a countersinking operation
-1
---+- ! Z-DEPTH I
f_
,----'
_j
= .575)
Z depth
.78
.575
.4485
Since that depth inelu.des the height of sharp end, all that
has to be done to find out the Z depth, is to subtract the e
value from the theoretical Z depth:
Z depth
.4485 - .1078
.3407
-----A
i___
.866
.575
.500
"-
o
o
o
60 =
82 =
90 =
F--
Figure 26-18
Data required for ca/cu/ating the Z depth of a countersink,
for given diameters O and F and the angle A
+ Counterboring
Counterboring is an operation that enlarges an existing
hole in a cylindrical shape to the required depth. Counter
boring s used for holes that have to accommodate a round
boit head. It s often used on uneven or rough surfaces, or
surfaces that are not at 90 to the boit assembly. As for the
proper tool selection, use a counterboring tool specially de
signed for this type of machining, or a suitable end mill
instead. 1n either case, the program uses 082 fixed cycle.
Since the depth of the counterbore s always given, there
are no extra calculations required. Figure 26-19 shows a
typical counterboring description.
MACHINING HOLES
207
Figure 26-19
Programming examp/e of a counterboring operation
For the example, the 01/2 inch hole had been machined
earlier. The program block will be quite simple:
N41 G99 G82 X.. Y . R0.1 Z-0.25 P300 FS.O
r I min
For example, if the spindle speed is programmed as 600
r/min, the minimum dwell will be 60/600=0.1, and doubled
to 0.2 in the program, as P200. Doubling the minimum
dwell value guarantees that even at 50% spindle speed
override, there will be at least one full revolution of the
spindle that cleans up bottom of the counterbored hole.
Many programmers choose to use a slightly longer dwell
time, for more than one or two revolutions at the bottom.
G98
MULTILEVEL DRILLING
On many occasions, the same cutting tool will have to be
programmed to move up and down between different
heights (steps on a part). For example, a drill will cut holes
that have the same depth, but start at different heights.
NOT REQUIRED
Figure 26-20
Too/ morion direction between holes at ditferent heights
Spotfacing
G98
REQUIRED
00
OLO
ON
ci ci
I
I
03/16
DRILL THRU
,....
ex:,
I.O
,....
o::>
lO
<D
.....
lO
C\i
I
I
- 1.625
- ' -9- --,---t--j- - - -cp-- - 1.125
-Ep - i - -E;)---- - 0.750
--e- -(9
-e--
,
$--- - o.375
-- O. OOO
208
Chapter 26
Study the program in detail. Watch the drection of tools TO1 starts at the lower left hole and ends at the lower right
hole, in a zigzag motion. T02 starts at the lower right hote
and ends at the lower left hote, also in a zigzag motion.
Note there are more G98 or G99 changes for the first tool
than the second tool. In multilevel hole machining under
stand three areas of program control, used in 02605:
Z depth control
WEB DRILLING
Web drilling is a term for a drillng operation taking place
between two or more parts, separated by an empty space.
The programming challenge is to make such holes effi
ciently. It would be easy to program one motion tbrough all
the separate parts as well as the empty spaces. For many
holes, this approach would prove to be very inefficient.
Evaluate the front view of a web drilling example shown n
Figure 26-22.
Clearance = O.OS
Figure 26-22
Web dri/fing exampfe (front view) - program 02606
MACHINING HOLES
TAPPING
Tapping s second only to drilling as the most common
hole making operation on CNC machining centers. As it s
very common to tap on a CNC mill or a machining center,
two tapping fixed cycles are available for programming ap
plications on most control systems. They are the G84 cycle
for normal tapping (RIH), and the G74 cycle for reverse
tapping (UH):
G84
G74
intentionally.
209
The higher clearance for the R levei allows acceleration
of the feedrate from O to 30 inches per minute to take place
in the air: When the tap contacts the part, cutting feedrate
should be at its programmed value, not less. A good rule of
thumb is to program the tapping clearance about two to
four times the normal clearance. This clearance will guar
antee the feedrate to be fully effective when the actual tap
ping begins. Try to experiment with a slightly smaller num
ber, to make the program more efficient. Another good
method is to double, triple, or quadruple the pitch of the tap
and use that value as the clearance above the tap. Which
ever method s used, its purpose is to eliminate the feedrate
problems associated with motion acceleration.
30.0 in/min
the tap, its coating, its geometry, the flute clearances, the
210
Chapter 26
Tap Geometry
There are literally dozens of tap designs used in various
CNC programming applications. A whole book would eas
ily be filied just on the topic of tapping tools and their appli
cations. For CNC programming, only the core bas ies of tap
geometry are important.
There are two considerations in tap design that directly
influence the programming and the data input values:
o Tap flute geometry
o Tap chamfer geometry
Tap Flute Geometry
Bottoming tap
Plug tap
o Taper tap
r,----,-1
C
TAPERED
PLUG
1C
BOTTOMING
Figure 26-23
Typical tap end - chamfer geometry configuration
211
MACHINING HOLES
r I min
TPI
==
==
I 20 = .0500 inches
450 x .05
22.5
F22.5 (in/min)
750.00
F750.0 (iran/min)
.os =
27.5 - 5%
26.125
Pipe Taps
Pipe taps are similar in design to standard taps. They be
long to two groups:
a
a
Taper taps
NPS
NPT Group
Pipe
Size
TPI
1/16
27
1/8
27
1/4
18
3/8
18
V2
14
3/4
14
1.0
11-1/2
1-1/4
11-1/2
1-1/2
11-1/2
2.0
11-1/2
I
I
li
I
I
Drilled Only
Tap
Driii
Dec.
Size
Taper Reamed
Tap
Drill
Dec.
Size
.2460
15/64
.2344
.3320
21/64
.3281
7/16
.4375
27/64
.4219
37/64
.5781
9/16
.5625
45/64
.7031
11/16
.6875
29/32
.9062
57/64
.8906
1-9/64
1.1406
1-1/8
1.1250
1-31/64
1.4844
1-15/32
1.4688
1-47/64
1.7344
1-23/32
1.7188
2-13/64
2.2031
2-3/16
2.1875
212
Chapter 26
Tap Drill
Decimal Size
1/4
.2500
27
11/32
.3438
1/4
18
7/16
.4375
3/8
18
37/64
.5781
V2
14
23/32
.7188
3/4
14
59/64
.9219
1.0
11-1/2
1-5/32
1.1563
1-1/4
11-1/2
1-1/2
1.5000
1-1/2
11-1/2
1-3/4
1.7500
2.0
11-1 /2
2-7/32
2.2188
Pipe Size
TPI
1/16
27
1/8
o
o
o
CJ
Part setup
(rigidity of the machine setup and the tool is important)
213
MACHINING HOLES
O = O r/min
(ERROR)
T0200 M42
G97 S700 M03
GOO XO Z0.5 T0202 MOS
Z0.1
T0200 M42
G97 S700 M03
GOO XO Z0.5 T0202 MOS
GOl Z0.1 F0.05
For the Jast approach motion, the Z axis motion has been
changed to a linear motion, with a relatively high feedrate
of .05 in/rev (J .25 mm/rev). Feedrate override can be used
for setup, to control the rate of the feed. During actual pro
duction, there will be no significant loss in the cycle time.
214
Chapter 26
where ...
G74
N70
N71
N72
N73
xo =
z =
K
-0.8-1
03/16
Z-0.8563
Figure 26-24
Sample hole for the peck drilling lathe example
The peck drilling motion will start from the Z0.2 position
in block N87 and continue to the Z-0.8563 position in
block N88. That results in a 1.0563 long cut. Calculation of
the number of pecks is the same as in milling.
215
MACHINING HOLES
With the .300 length of each peck, there will be the total
of three full length pecks and one partial length peck, at the
following Z axis locations:
Z-0.1
Z-0.4
Z-0.7
Z-0.8563
Alhough the first three pecks are .300 deep each, the first
one starts at Z0.2 and ends at Z-0.1. That will resuit in two
thirds of the cut being in the air. Programmer has to decide
when this approach is an advantage and when another
method would be more suitable. At the end of each peck
motion using the G74 cycle, the drill will make a small re
tract by afixed distance. This distance is set by a parameter
of the control system and is typically about .020 inches (0.5
mm). A foii retraction after each peck out of the hole (simi
lar to the G83 cycle for milling controls) is not supported
by the G74 cycle.
Note that there is no programmed motion out of the hole
when the peck drilling cycle is completed. This return mo
tion is built-in within the G74 cycle. If a tool motion such as
GOOZ0.2M05 follows block N88, no harm is done. It may
give the operator extra confidence when running the job.
Tapping on Lathes
Tapping on CNC lathes is a common operation that fol
lows the same machining principles as tapping on machin
ing centers. The major difference for lathes is the absence
of a tapping cycle. There is no real need for a tapping cycle
on a lathe, since most of lathe tapping operations machine
only one hole of the same type. The absence of a tapping
cycle may present some unexpected difficulties. Unfortu
nately, they are more common among programmers with
limited experience. Before evaluating these difticulties
closer, it is important to know the tool that holds the tap (the
tap holder) and the tapping process on lathes in general.
The selected tap should always be mounte-d in a special
tapping holder; the best type is one with tension and com
pression features, known as the tap floating holder. Never
use a drill chuck or a similar solid device - it will break the
tap quickly and possibly damage the part as well.
Since there is no fixed cycle for tapping on a typical CNC
lathe, each tool motion is programmed as a separate block.
To do that, and to find out how to tap properly, let's first
evaluate the process for a typical right hand tap in general,
applied to a lathe operation:
Step 01
Step 02
Step 03
Step 04
Step 05
Step 06
Step 07
Step 08
Step 09
Step 1O
Step 11
Figure 26-25 shows the layout of the part and the tool
setup, used for programming example 02607. The exam
ple program 02607 follows the eleven steps described
above literally and is based on a very solid foundation.
Technically, the program 02607 is correct - but only tech
nically, not practically. Are there possible problem situa
tions in the example 02607?
012.0
9/16-12 TAP
Figure 26-25
Typical setup of a tapping tool on a CNC lathe program examples 02607 and 02608
TOOL
HOLDER
216
02607 (TAPPING ON LATHES)
(ONLY THEORETICALLY CORRECT VERSION)
(T02 - TAP DRILL 31/64)
N42 MOl
(T03 - 9/16-12 PLUG TAP)
N43 T0300 M42
N44 G97 S450 M03
N45 GOO XO ZO. 5 MOS T0303
N46 GOl Z-0.875 F0.0833
N47 MOS
N48 M04
N49 Z0.5
NSO MOS
NSl GOO X12.O Z2.O T0300 M09
N52 M30
%
Chapter 26
+ Other Operations
There are many other programming variations relating to
machining holes on CNC machining centers and lathes.
This chapter has covered some of the most important and
the most common possibilities.
Some less common applications, such as machining op
erations using tools for backboring, or block boring tools,
tools with multiple cutting edges and other special tools for
machining holes may be quite infrequent n programming.
However, programming these unusual operations is no
more difficult then programming the ordinary everyday
tool motions, using ordinary everyday tools.
The real ability of a CNC programmer is measured in
terms of applying the past knowledge and experience to a
new problem. It requires a thinking process and it required
a degree of ingenuity and hard work.
PATTERN OF HOLES
1n the point-to-point machining operations, consisting of
drilling, reaming, tapping, boring, etc., we are often re
quirep to machine either a single hole or a series of holes
with the same tool, usually followed by other tools. In prac
tice, severa! holes are much more common than a single
hole. Machining severa! holes with the same tool means
machinino a pattem of holes or a hole pattem. An English
dictionar; defines the word 'pattern' as a 'characteristic or
consistent arrangement or design'. Translated to the hole
machinino
o terms, any two or more holes machined with the
.
same tool establish a pattern. The desired hole pattern 1s
laid out in the part drawing either randomly (characteristic
arrangement or design) or in a certain order (consistent ?-r
rangement or design). Dimensioning of a hole pattern fol
lows standard dimensioning practices.
This chapter describes some typical hole patterns laid out
on a flat part and the various methods of their program
ming. To make matters simple, all programming examples
related to the hole patterns will assume a center drilling op
eration, using a #2 center drill, with chamfer diameter .150,
to the depth of .163 (programmed as Z-0.163). The pro
oram zero (program reference point ZO) is the top face of
art and the tool is assumed to be already in the spindle. For
the purposes of clarity, no hole diameters or material size
and thickness are specified in the examples.
From the dictionary definition above, we have to estab
lish what makes a hote pattern characteristic or consistent.
Simply, any series of holes that are machined with the same
tool, one hole after another, usually in the order of conven
ience. That means all holes within a single pattern have the
same nominal diameter. It also means that all machining
must start at the same R levei and end at the same Z depth.
Overall, it means that all holes within a pattern are ma
chined the same way for any single toci.
Grid pattern
Arc pattern
44
.
- 14
._-3 -.
-
Random pattern
Corner pattern
-1-'1
I Ci)- ----0-
---
CD
u
r ..;...' ----------
.,
- - -,
--,
'
2.0 2.4
i_ 1.6
9,'- _L J
Figure 27-7
Random pattern of holes - program example 02707
217
218
Chapter 27
-- 0.95 TYP
'
- 8 8 0-0 O O O O 8 G
--1.18
0.6
Figure 27-2
Straight row hale pattern - program example 02702
o X and Y coordinates are given for the first and the last hole
1n this met od, the pattern angular position is not speci
hed and no p1tch between holes is given.
219
PATTERN OF HOLES
o.j
o
4- o o
I
L
- 1.0
-4--,I
2.625
I
_J_
10.82-----
Figure 27-3
Angular hote pattern with two sets of coordinates - program 02703
Pattern of this kind has all the holes spaced by equal dis
tances along X and Y axes. As all holes are equally spaced,
the ratio of the sides for individual holes is identica! to the
ratio of the whole pattern. When expressed mathematically,
the increment between holes along the X axis is equal to the
overall distance of 10.82 divided by the number of X axis
spaces; the increment along the Y axis is equal to the over
all distance of 2.0 divided by the number of Y axis spaces.
The number of spaces for a six hole pattern is five, so the X
axis increment (the delta X) is:
10.s2
N7 G80 M09
NS G28 ZO MOS
N9 G28 XO YO
NlO M30
4.0 \'{?
-\ - C-e--0115
-Ci-'---+--I _.e-0I
I s = 2.1640
_J
I s = .4
= CI
I 10.82) = 10.47251349
I sinA = 11.00329063
5 = 2.20065813
Now, the actual increment aJong the two axes can be cal
culated, using C 1 dimension as the distance between holes:
X increment = Cl x cosA = 2.1640
Y increment
Cl x sinA = .4000
2.0
2.0
Figure 27-4
Angular hale pattern with coordinates, pitch and angle - 02704
220
Chapter 27
Step 1
=
=
Step 2
2.0 + 3.8637 X 6
2.Q + 1.0353 X 6
25.1822
8.2118
CORNER PATTERN
Pattern of holes can be arranged as a corner - which is
nothing more than a pattern combining the straight and/or
angular hole patterns - Figure 27-5.
1.5--
- --EB
1.s
n
I/
- 2.2
CB,
--
1.8
eo o o o $-e-1
GRIO PATIERN
Basic straight grid pattern can also be defined as a set of
equaJly spaced vertical and horizontaJ holes, each row hav
ing equally spaced holes. If the spacing of all vertical holes
is the same as the spacing of all horizontal rows, the final
grd pattern will be a square. If the spacing of all vertical
holes is not the same as the spacing of all horizontal rows,
the resulting grid pattern is a rectangle. A grid pattern is
sometimes called a rectangular hote pattern - Figure 27-6.
'
_1_
EB-/
O
Eh-$000
I
-'0000
2.1
0000$
00000
00000
00000
L_
Figure 27-5
Corner pattern of ho/es - program example 02705
Ali rules mentioned for the straight and angular hole pat
terns apply for a corner pattern as well. The most important
difference is the corner hote, which is common to two rows.
A corner pattern can be programmed by calling a fixed cy
cle for each row. Soon, it will become apparent that each
, 1.8
CBOOOEB-
--l
L-1.1
-.I
2.4
Figure 27-6
Rectangular grid hote pattern - program example 02706
221
PATTERN OF HOLES
O O O O O
ooooo .
4.6
----.-
000000
fl --i-
-oo o-t
3.5
3.2
4.0
Figure 27-7
Angular grid hote pattern - program example 02707
1.319028774 (Xl.319)
222
Chapter 27
C STEP 1
le
-'--- -r
r1 l_
R2.5 )
20 TYP
I/
4 EQSP HOLES
Figure 27-8
Arc ho/e pattern - program 02708
C STEP 2
Use trigonometric functions to calculate the X and Y co
ordinates of the first hole:
Hole #1
X = 1.5 + 2.5 x cos20 = 3.849231552 (X3.8492)
1.855050358 (Yl.8551)
Y = 1.0 + 2,5 X sin20
C STEP 3
Hole #3
2.750000000 (X2. 75)
X = 1.5 + 2.5 x cos60
=
+
2.5
3.165063509
1.0
(Y3 .1651)
y =
x sin60
Hole #4
X = 1.5 + 2.5 X cosSO = 1.934120444 (Xl. 9341)
y = 1.0 + 2.5 x sin80 = 3.462019383 (Y3.462)
C STEP 4
#1:
#2:
#3:
#4:
X3.8492
X3.4151
X2.7500
Xl.9341
Yl.8551
Y2.6070
Y3.1651
Y3.4620
Now, the program for the hole arc pattem can be written,
using the XY coordinates for each hole location from the
established calculations - program 02708:
02708 (ARC PATl'ERN)
N1 G20
N2 Gl7 G40 GSO
N3 G90 G54 GOO X3.8492 Yl.8551 S900 M03
N4 G43 Zl.O ROl MOS
NS G99 G81 R0.1 Z-0.163 F3.0
N6 X3.4151 Y2.607
N7 X2.75 Y3.1651
NS Xl.9341 Y3.462
223
PATIERN OF HOLES
N9 G80 M09
NlO G28 ZO,l MOS
Nll G28 Xl.9341 Y3.462
Nl2 M30
%
-.1
6.0
1
L-fi
0
"" - Cr-J
(
I
(S)'
, -----
' >,,
0
123
7.5
Figure 27-9
Boit circ/e ho/e pattern - program 02709
01 . o
0
Hole #2
X = 7.5 + s.o x cos90 = 7.5000000
Y = 6.0 + 5.0 x sin90 = 11.0000000
(X7.5)
(Yll.O)
Hole #3
X = 7.5 + s.o x coslSO = 3.16987298 (X3 .1699)
Y = 6.0 + 5.0 x sinlSO = 8.50000000 (Y8.5)
Hole #4
X = 7.5 + 5.0 x cos210
Y = 6.0 + 5.0 X sin210
3.16987298 (X3.1699)
3.50000000 (Y3. 5)
Hole #5
X = 7,5 + 5.0 x cos270 = 7,50000000 (X7.5)
Y = 6.0 + s.o X sin27Q = 1.00000000 (Yl.O)
Hole #6
X = 7.5 + 5.0 x cos330 = 11.830127 (Xll.8301)
y = 6.0 + 5.0 x sin330 = 3.500000 (Y3. 5)
224
Chapter 27
B + A)
R + Y,
where ...
X
Y
n
H
B
A
R
Xc
Yc
=
=
=
=
Hole X coordinate
Hole Y coordinate
Hole number counter - CCW from 0
Number of equally spaced holes
Angle between holes = 360 I H
First hole angle from 0
Boit circle radius or boit circle diameter/2
Boit circle center from the X origin
Boit circle center from the Y origin
Pattern Orientation
The boit circle pattern orientation is specified by the an
gle of the first hote from the 0 of the boit circle.
In daily applications, boit circle patterns will have not
only different number of holes, but different orientations as
well. The boit circles most commonly affected are those
whose number of equally spaced holes is based on the mul
tiples of six (6, 12, 18, 24, ...) and multiples of eight ( 4, 8,
16, 24, 32, ...). This relationship s important, since the ori
entation of the first hole will influence the position of al! the
other holes in the boit circle pattern.
/
Figure 27-11 shows relationship of the first hol<\_Position
to the 0 Jocation of the boit circle. 0 location is equivalent
to the 3 o'clock position or the East direction.
oo
-'
Figure 27-1O
Basis for a formula to calculate boit ho/e pattern coordinates
Figure 27-11
Typica/ orientations of a six and eight hole boit circles
225
PATTERN OF HOLES
OFF
G16
ON
--L
I
/
Xi
-
'
\_,
CENTER POINT
;NGLE
- --, /
Figure 27-12
Three basic characteristics of polar coordinates
N14 M30
%
Figure 27-12 illustrates the three basic input requirements for a polar coordinate system.
Figure 27-13
Polar coordinate system applied to boit hale circ/e - program 02711
226
Chapter 27
+ Plane Selection
Chapter 29, and particularly Chapter 31, escribe the
subject of planes. There are three mathemattcal planes,
used for variety of applications, such as polar coordinates.
G17
XY plane selection
G18
ZX plane selection
G19
YZ plane selection
Selected plane
First axis
G17
xv
X= radius
G18
lX
Z = radius
X= angle
G19
YZ
= radius
Z = angle
Second axis
= angle
+ Order of Machining
The order in which the holes are machined can be con
trolled by changing the sign of the angular value, while the
polar coordinate command is in effect. If the angular value
is programmed as a positive number, the order of machin
ing will be counterclockwise, based on the 0 position. By
changing the value to a negative number, the order of ma
chining will be clockwise.
This feature is quite significant for efficient program
ming approach, particularly for a large number of various
bolt hole pattems. For example, a center drilling or spot
drilling operation can be programmed very efficiently with
positive angular values (counterclockwise order). The s
will be at the first hole and, after the tool change, the drill
ing can continue in the reverse order, starting with the last
hole. AU angular values will now be negative, for the
clockwise order of a subsequent tool. This approach
requires a lot more work in standard programming, hen
the polar coordinates are not used. The polar coordmate
application using the O16 command elirninates all unnec
essary rapid motions, therefore shortening the cycle time.
FACE MILLING
Face milling s a machining operation that controls the
height of the machined part. For most applications, face
miUing is a relatively simple operation, at least in the sense
that it usually does not include any difficult contouring
motions. The cutting tool used for face milling is typically a
multi tooth cutter, called a face mill, although end mills
may also be used for certain face milling operations, usu
ally within small areas. The top surfaces machined with a
face mill are generally perpendicular to the axis of the fac
ing cutter. In CNC programming, the face milling opera
tions are fairly simple, although two important consider
ations are criticai:
CUTTER SELECTION
Like all milling operations, face milling employs a cut
ting tool that rotates while the part remains stationary. Face
milling requires that a specific amount of material be re
moved from the top of part, at one or severa! depth Jevels, in
a single cut or multiple cuts. The programming for face
milling is so effortless that, in fact, many programrners do
not pay sufficient attention to proper selection of the face
milling cutter, proper inserts, do not even consider the ma
chine requirements and capabilities.
r"
A typical face mill is a multi tooth cutter with interchangeable carbide inserts. High speed steel face mills are
not recommended for CNC work, although an HSS end
mill can be a suitable choice to face mill small areas or ar
eas hard to get to in any other way. Typical to a face milling
operation is the fact that not all inserts of the milling cutter
are actually working at the same time. Each insert works
only within a part of one complete revo]ution. This obser
vation may be an important consideration when trying to
establish an optimum tool life for a face milling cutter. Face
milling does require significant power resources from the
machine tool. For the insert setup n the cutter body, it is
very important to have all inserts properly mounted.
a Insert geometry
The last two items, cutter diameter and insert geometry,
will influence the actual program development the most,
although other items are important as well.
'
227
228
Chapter 28
o
-05.0_J
05.0
L-0s.o-J
Insert Geometry
Learn and become familiar with the basic terminology of
milling cutters in order to understand the terms used in pro
gramming. Most of the tooling companies have available
catalogues and technical booklets for the cutters and inserts
they manufacture that explain the cutter usage as well as all
related terms. Keep in mind that cutting tool technology
does change quite rapidly and constant improvements are
being made. For the programming purposes in this chapter,
we look only at the very basic items of insert geometry for
face milling cutters.
Insert geometry and insert rnounting into the cutter body
is determined by a design LhaL controls the position of the
insert in the material during a cut. These factors strongly in
fluence quality of the cutting. There are typically three gen
eral categories, based on the cutting rake angle of the face
mill (known as the rake angle):
ol
Negative geometry
o Combination of both
Figure 28-1
Nominal diameter of various face mii/ cutters
o (Posrtive geometry
Negative Geometry
CUTTING CONSIDERATIONS
To program a cutting motion for a face mill, it is impor
tant to understand how a face mill works best under differ
ent conditions. For example, unless a specially designed
face milling cutter and proper insert geometry, sr.ape and
grade are used, try to avoid face milling a part width that is
equal to, or only a slightly larger than, the cutter diameter.
Full width face milling cut may cause the insert edge to
wear out prematurely and the chip to 'weld' itself to the in
sert. Not only the insert suffers in form of a wear out, the
part surface finish suffers as well. In some more severe
cases, the insert may have to be discarded prematurely, in
creasing the machining cost.
229
FACE MILLING
Undesirable
Desirable
Undesirable
I
IC1
Figure 28-2
Schematic relationship of the cutter diameter and_ the pa_rt_ width.
Only the cutter size (a) is desirable, although not 1ts pos1t1on.
Angle of Entry
The face mill entry angle is determined by position of the
cutter center line relative to the part edge. If a part can be
milled with a single cut, avoid situations where the cutter
center line position matches the part center line. This neu
tral position causes a chatter and poor finish. Offset the cut
ter away from part center line, either for a negative cutter
entry angle, or a positive cutter entry angle. Figure 28-3
shows both types of entry angles and their effects.
Milling Mode
In milling, the programmed cutting direction, relative to
the table motion direction is always very important. In fact,
this factor so important that it is discussed in severa! sec
tions of this handbook and covers a subject called the mill
ing mode.
Traditionally, there are three milling mode possibilities
available in rnilling operations:
_L ......_____.
/
NEGATIVE
ENTRY ANGLE
<
Figure 28-3
Insert entry angle into the part. W = width of cut
(a) at the strongest insert point - negative entry angle
(b) at the weakest insert point - positive entry angle
230
Chapter 28
.,.._ Programmed
direction
As an overall general type, a coarse density cutter is usu. ally a suitable choice. The more cutting inserts are engaged
in material simultaneously, the more machining power will
be required. Regardless of the insert density, it is important
to have sufficient cutting clearances - the chips must not
clog the cutter, but tly out freely.
Table
direction _,..
.,.._ Programmed
direction
PROGRAMMING TECHNIQUES
Table
direction _,..
.,.._ P_rogr!3mmed
d1rect1on
(,--4_
i------t t1J
Table
direction _,..
I \
Figure 28-4
Face mi/ling modes:
(a) Neutral mi/ling mode
(b) Climb or 'down' mi/ling mode
(c) Conventional or 'up' mi/ling mode
Width of cut
L I nsufficient overlap
o Medium density
Fine density
Width of cut
-,
Figure 28-5
Width of cut in face mi/ling - (b) is the recommended method
FACE MILLING
231
10.8
13.0
5 x 3 PLATE
5 x 3 x 1 STEEL PLATE
Figure 28-6
Example of a single face mii/ cut- program 02801
Figure 28-7
Face mii/ positions for a single face mii/ cut example
02801
(SINGLE FACE MILLING CUT)
N1 G20
N2 Gl7 G40 GSO
N3 G90 G54 GOO X7. 75 Yl.O S344 M03
N4 G43 Zl. O HOl
NS GOl Z-0.2 F50.0 MOS
N6 X-2. 75 F21.O
N7 GOO Zl.0 M09
NS G28 X-2.75 Yl.O Zl.O
N9 M30
%
232
Chapter 28
ROUGHING
FINISHING
Figure28-9
Bidirectional approach to a multiple face cut
for rough and finish face milling
I\
I
I
I
I
I
ROUGHING
\
I
I
I
I
I
I
I
I
I
I
I
I
I
FINISHING
Figure28
Unidirectif
nai approach to a multiple face cut
for rough d finish face milling
Figure28-1O
Schematic tool path representation for the climb face mi/ling mode,
app/ied to a unidirectional cutting
13 x 6 PLATE
Figure28-11
Example of a multiple face mii! cut program 02802
FACE MILLING
233
02802
(MULTIPLE FACE MILLING CUTS)
N1 G20
N2 Gl7 G40 G80
N3 G90 G54 GOO X0.75 Y-2.75 S344 M03
(POS 1)
N4 G43 Zl.O HOl
NS GOl Z-0.2 FS0.0 MOS
(POS 2)
N6 Y8 7 5 F2 l. O
(POS 3)
N7 GOO Xl2. 25
(POS 4)
NS GOl Y-2.75
(POS 5)
N9 GOO X4.0
(POS 6)
NlO GOl YS.75
(POS 7 - 0.1 OVERLAP)
Nll GOO X8.9
(POS 8 - END)
N12 GOl Y-2.75
N13 GOO Zl.O M09
N14 G28 XS.75 Y-2.75 Zl.O
NlS M30
i----'--l---'--,-1---i--i
13.0 WIDTH,
4 S EGM ENTS,
3.25 EACH
05.0 CUTTER
Figure 28-12
Multiple face mi/ling details for program example 02802
234
Chapter 28
//-1-, '
--I-- \
\
'
,,
5x3PLATE
Figure 28-13
Examp/e of the position compensation as app/ied to face mi/ling program 02803
02803
(SINGLE FACE MILLING CUT)
(USING POSITION COMPENSATION)
Nl G20
N2 Gl7 G40 G80
N3 G90 G54 GOO X8.0 Yl.O S344 M03
N4 G43 Zl.O HOl
NS G46 XS.25 DOl
N6 GOl Z-0.2 FSO.O MOS
N7 G47 X-0.25 F21.0
NS GOO Zl. O M09
N9 G91 G28 XO YO ZO
NlO M30
%
CIRCULAR INTERPOLAT/DN
In the majority ofCNC programming applications, there
are only two types of tool motions related to contouring.
One is the Linear lnterpolation, discussed earlier, the other
one is the Circular Interpolation, discussed in this chapter.
The programming method of controlling a tool path along
an arc is similar to the method of programming a tool path
along a line. The method of circular contouring is called
circular interpolation. It is commonly used n profiling on
CNC vertical and horizontal machining centers, as well as
on lathes and many other CNC machines, such as simple
milling machines, routers, burners, water jet and laser pro
filers, wire EDM, and others.
Circular interpolation is used for programming arcs or
complete circles in such applications as outside and inside
radii (blend and partial), circular pockets, spherical or coni
ca! shapes, radial recesses, grooves, corner breaks, helical
cutting, even large counterbores, etc. TheCNC unit will in
terpolate a defined arc with a very high precision, if the
necessary information is given in the program.
ELEMENTS OF A CIRCLE
To understand the principles of programming various cir
cular motions, it helps to know something about the basic
geometrica! entity known as the circle. As an entity that s
quite common in everyday life, a circle has various proper
ties that are strictly mathematical, only considered in spe
cialized disciplines, such asComputerized NumericalCon
trol, motion control and automation.
The following definition of a circle and severa! other defi
nilions that are related to a circle are based on some com
mon dictionary definitions - Figure 29-1.
A circle is defined as a closed curve on a plane,
where all points have the same distance from an
internai point called the circle center point.
CENTER
QUADRANT
;OINT
QUAD. li
QUAD. III
QUAD. IV
'
CIRCLE
DIAM ETER
Figure 29-7
Basic elements of a circle
235
236
Chapter 29
7t X
R2
= Constant (3.1415927)
OUADRANTS
A quadrant is a major property of a cirele and can be de
fined mathematically:
A quadrant is any one of the four parts of the plane
formed by the system of rectangular coordinates.
Ouadrant Points
From the earlier definition should be clear that quadrants
consist of two perpendicular lines that converge at the arc
center point and an arc that is exactly one quarter of a circle
circumference. In order to understand the subject deeper,
draw a line from the center of an arc that is parallel to one of
the axes and is Jonger than the arc radius. The line created
an intersection point between the line and the arc. This
point has a special significance in programming. It is often
known as the Quadrant Point - or the Cardinal Point - al
though the latter term is not used too often, except in math
ematical terminology. There are four quadrant points on a
given circle, or four intersections of the circle with its axes.
The quadrant points locations can be remembered easier by
associating thern with the dial of a compass or a standard
watch with an anaJog dial:
Oegrees
Compass
direction
Watch
direction
Located
between quadrants
EAST
3 o'clock
IVand I
90
NORTH
12 o'clock
I and li
180
WEST
9 o'clock
li and III
270
SOUTH
6 o'clock
III and IV
CIRCULAR INTERPOLATION
237
POSITIVE DIRECTION
(I "'
90
1ao_J
270
ccw
POSITIVE ANGLE
oo
NEGATIVE ANGLE
cw
NEGATIVE DIRECTION
Figure 29-2
Mathematical definition of the arc direction
PROGRAMMING FORMAT
The programming format for a circular interpolation tool
path must include severa! parameters, without which the
task of cutting an arc would be impossible. The important
parameters are defined as:
o
o
o
G03
cw
ccw
238
G02
G02
G03
G03
Chapter 29
x.. Y. I.. J ..
z.. I..
K ..
x .. Y I.. J ..
X. z .. I.. K
X
Milling
Turning
Milling
Turning
program
program
program
program
cw
cw
ccw
ccw
Control systems
supporting lhe arc rdius designation by
_
address Rw1ll alsa accepl the UK mod1fiers, but the reverse
is not true. If both the arc modifiers IJK and the radius Rare
programmed in the same block, the radius value takes pri
ority, regardless of the 01der:
G02 (G03) X Y. R . I.. J..
G02 (G03) X Y . I.. J.. R
CENTER
POINT
START CENTER
POINT POINT
- '
/
- CCW=+
',_l
R
'1 J----
--
I-
CCW=+
f'
R
-
I
USED IN MILLING
START
POINT
_),, J
'I
K-
I1
--
USED IN TURNING
Figure 29-3
Center point and start point of an arc
R
R..
R
R.
Milling
Turning
Milling
Turning
program
program
program
program
- cw
- cw
- ccw
- ccw
CIRCULAR INTERPOLATION
I
Quadrant
I
Quadrant
li
239
G02
D D D
u
10 J-
I+ JO
Quadrant
111
Quadrant
IV
I
I
I- JO
I- J-
_sJ
I+ J-
s-I+ J+
10 J+
[7
I- J+
G03
u
I- JO
j?_
I- J-
LJ
\] -zJ
D I f7
10 J-
I+ J-
I+ JO
I+ J+
I
I
10 J+
I- J+
Figure29-4
Arc vectors I and J (a/so known as arc modifiers) and their sign designation in different quadrants (XY plane)
The distance between the start point of the arc and the
center point of the arc (as specified by the UK vectors) s al
most always measured as an incremental distance between
the two points. Some control systems, for example many
Cincinnati designs, use the absolute designation to define
an arc center. In those cases, the arc center s programmed
as an absolute value from the program zero, not from the
arc center. Always make sure how each of the control sys
tems n the machne shop handles these stuations.
The lack of a standard in this respect creates a major dif
ference n the programming format, so be careful to avoid a
+ Arc in Planes
For machining centers, programming an arc n any one of
the three geometrica] planes is allowed - Figure 29-5. The
correct arc vectors must be used for each plane:
Gl7 G02 (G03) x.. Y.. R
G18 G02 (G03) X z.. R
Gl9 G02 (G03) Y z .. R
(or
(or
(or
I.. J.. )
I.. K . )
J .. K )
240
Chapter 29
G17 - XY PLANE
G18 - ZX PLANE
G19 - YZ PLANE
z
Figure 29-5
Arc cutting direction in three planes - the orientation of the axes is based on mathematica/, nat machine, p/anes
RADIUS PROGRAMMING
Programming arc is vcry common. By definition, an arc
s only a portion of a circle and there are many ways to pro
gram an arc. If the arc is 360, it must be programmed with
the cutting start position being the same as its end position.
1n this case, a foii circle s the resuit. If only a portion of the
circle is programmed, only a radius is programmed. Two
kinds of radii are used in CNC programrning:
o Blend radius
o Partial radius
Each radius may be programmed in the CW or CCW di
rection and each may be externai or internai, as well as in
any orientation that the cutting tool can handle.
Blend Radius
A point of tangency between an arc and its adjacent ele
rnerlt creates a blend radius. Blend radius is defined as a ra
dius tangent between a line and an arc, an arc and a line, or
between two arcs. A blend arc creates a smooth transition
between one contour element and another. The point of tan
gency is the only contact point between the two elements.
Partial Radius
The opposite of a blend arc is a partial arc - there is no
smooth blend between two contour elements, instead, there
s an intersection. Mathematically, there are always two
possible selections, however, the part drawing should be
quite clear as to the shape of any partial radius. Partial ra
dius can also exist between two lines, one line and an arc,
or between two arcs. Partial radius can be defined as a ra
dius where either the start point or the end point is not tan
gent to the adjacent element, but intersects it in two places.
The actual calculation of point coordinates for the arc start
or end point is about the same as that for a blend arc, de
pending which rnethod of dimensioning had been used in
the part drawing.
CIRCULAR INTERPOLATION
241
2.00
- R1 .25
-2.00 -
Figure 29-6
Ful/ circle programming using one b/ock of program entry
G90
GOl
G02
GOO
GOl
G02
G02
G02
G02
GOO
Z-0.25 Flo.o
X2.0 Y0.75 I-1.25 JO Fl2.0
X0.75 Y2.0 IO Jl.25
X2.0 Y3.25 Il.25 JO
X3.25 Y2.0 IO J-1.25
Z0.1
2.00
I
J_
----j
(FULL CIRCLE)
GJ.
- R1.25
f---2.00
Figure 29-7
Ful/ circle programming using faur b/ocks of program entry
G90 G54 GOO X3.25 Y2.0 S800 M03
4)
4)
4)
4)
START
POINT
ys
R1.25
Figure 29-8
Ful/ circle programming using five blocks of program cade
'\4:>'
j
.
OF
OF
OF
OF
-.---1---i,
1
2
3
4
xs
,,,,.-0i-,,
/
,,.'\
/
' \
(BLOCK
(BLOCK
(BLOCK
(BLOCK
G90
GOl
G02
G02
G02
G02
G02
GOO
1
2
3
4
5
OF
OF
OF
OF
OF
5)
5)
5)
5)
5)
=
=
1.25 x cos33
1.25 x sin33
1.0483382
6807988
242
Chapter 29
Boss Milling
From the results, the start point of the cut can be found:
X = 2 + x5 = 3.0483382 = X3.0483
Y = 2 + Ys = 2.6807988 = Y2.6808
01.812---
--'7-- -
Common
radius and
motion direction
Common
start and
end point
- TOP
,-
0.375
02.0-----
FRONT
Figure 29-1 O
Boss mi/ling example drawing for program 02901
Different
center points
Figure 29-9
Many mathematical possibi/ities exist for a ful/ circle cutting with R
CIRCULAR INTERPOLATION
N2
N6
243
N9
N8
N5
+
N?
Figure 29-11
Boss mi/ling example- tool motions for program 02901
Program 02902 shows both the arc start point and end
point at 90 , programmed at 12 o' clock position. The cutter
radius offset started during the motion from the arc center.
A cutter radius offset cannot start or end in a circular mode.
' ......
...-,.----01_.2_5_
... 1.,,...,
_L
.. --0.25
-r
Figure 29-12
Internai circle cutting - linear approach only
02902
( O S DIA CENTER END MILL)
Nl G20
N2 Gl7 G40 GSO
N3 G90 GS4 GOO XO YO S900 M03
N4 G43 Z0.1 HOl
NS GOl Z-0.2S FlO.O MOS
N6 G41 Y0.625 DOl F12.0
N7 G03 J-0.62S
o. s
Pdiiir r
-01.25--j
Figure 29-13
02903
( O 5 DIA CENTER END MILL)
Nl G20
N2 Gl7 G40 GSO
N3 G90 GS4 GOO XO YO S900 M03
N4 G43 Z0.1 HOl
NS GOl Z-0.25 FlO.O MOS
N6 G41 X0.312S Y0-3125 DOl F12.0
N7 G03 XO Y0.62S R0.3125
NS J-0.62S
N9 X-0.3125 Y0.3125 R0.3125
NlO GOl G40 XO YO F20.0 M09
Nll G91 G2S XO YO Z2.0 MOS
Nl2 M30
%
)l
,/
\ o.:
_______
!
_
...... /
244
Chapter 29
G12
cw
G13
ccw
----..... "
.,..__\
'11
...._..,I
', -- /
G12
1 01.25-1
Full circ/e CW
Full circ/e CCW
I O 0-t
Figure 29-14
Ful/ circ/e cutting using G12/G13 cyc/es program 02904
02904
(O S DIA CENTER CUTTING END MILL)
N1 G20
N2 G17 G40 GSO
N3 G90 GS4 GOO XO YO S900 M03
N4 G43 ZO.l HOl
NS GOl Z-0.2S Flo.o MOS
N6 G13 I0.62S D01 F12.0 M09
(IF AVAILABLE)
N7 G91 G28 XO YO Z2.0 MOS
NS M30
245
CIRCULAR INTERPOLATION
ARC PROGRAMMING
Start po _:nt
I
//
-,
1/
:
'
'D.L
/,"I
\' /l
/,.
'- - ,../
,,,,//
End point
-- CONTOUR
---,
R-
Start point
I
/,..
'
\ '-
'-
\
I
End point
', __ ,,/
CONTOUR
Figure 29-15
Sign of R address for circular cutting - only the center is different
Note that the Y coordinate is the same for the arc start and
end position. The Y value n the circular motion block does
nat have to be repeated, it s used here only for illustration.
( 9 O DEGREES)
(270 DEGREES)
246
Chapter 29
Ft
where ...
F1
r/min =
F1
n
=
L.
- INCREASED
FEEDRATE
-'-10UTS1DE ARC
- / _J JNSIDE ARC I
-
f1
(R + r)
R
where ...
F0
F1 =
R
l-- I
F1
(R - r)
R
where ...
NORMAL
FEEDRATE
Figure 29-16
Feedrate adjustments for circular tao/ motion
Fi
F,
R
'
---------,-<: )
6- ----- - -- --
Cutter center
Figure 30-1
Too/ path not compensated (above) and compensated (below},
by the cutter radius
MANUAL CALCULATIONS
Some reatities should become apparent from the Figure
30-1. The most noticeable observation is that the machined
contour must always take place with the tool path compen
sated by its radius, which means its center point must be lo
cated in positions shown in the Jower example. This ma
chining requirement is not matched by the reality of the
engineering drawing. In a drawing, all dimensions refer to
the part contour, not the contour of the tool center. ln fact,
the drawing is dimensioned to the tool positions illustrated
in the upper example of the illustration. The question is how do the tool center positions get from a drawing to the
part contour?
The answer is - they have to be calculated. Actually, they
do not have to be, if the CNC system is equipped with an
advanced built-in feature called the cutter radius compen
sation or cittter radius offset. On the CNC turning systems,
this feature is called the tool nose radius compensation or
the tool nose radius offset. This advanced and common
control feature enables the programmer to apply the offset
command, program the part contour as per drawing dimen
sions and let the control do all the necessary calculations
and adjustments automatically.
At this point, the current chapter could continue and
strictly concentrate on the automatic method of program
ming, using this exceptional feature. After all, all modern
CNC machines do have a cutter radius o ffset built-in. Once
severa! basic rules are followed, the feature is easy to use.
247
248
Chapter 30
'
,_._______
1.125
I
---2.25
18
P1
P2
P3
R0.625
Note that there are five points on the drawing, one at each
contour change. These points are either intersections or
points of tangen.cy. As each point has two coordinates, total
of ten values will be required.
The drawing always offers some points that need no cal
culations. It is a good idea to get well organized and mark
the points from the drawing first. Then, make a hart in the
order of tool path. Study Figure 30-3 carefully - 1t shows all
five points and all the values that need no calculation, per
haps some addition or subtraction only.
P1
P4
P5
XOYO
Pt X-AXIS Y-AXIS
P11 X0.0000 j Y0.0000,
P2 X0.0000 Y1.1250
P3, X2.2500 I
?
P4 X2.2500 I Y0.6250
P5 1 X1.6250 Y0.0000
Figure 30-3
Contau, change points required by the cutter path
......
___/
P4
P5
Figure 30-2
P2
a= 2.25 x tan18
a=0.7311
P3(Y)
P3(Y)
=
=
X coordinate
Point No.
1. 125 + a
1.8561
Figure 30-4
Trigonometric ca/culations to find unknown Y coordinate
li
I
xo
xo
Y coordinate
YO
Y1. 125
X2.25
Y1 .8561
X2.25
Y0.625
X1.625
YO
249
Y
----
,,/p3\'
(P2',
Yi
n
i
------
---- -y
(""''\
rPJ\
--
:2
---
("' '"\
"--;j'
P4
_._.Y
_/
/
/
\f>v
Figure 30-5
Equidistant tao/ path - cutter center coordinates required
+ Cutter Radius
The nominal radius of the cutter is always known on new
tools, or tools that have been physically measured. For high
precision work, the radius of the cutter must be known al
most 100%, say within .0001" (0.0025 mm= 2.5 micron).
That is not always possible for reground tools, tools previ
ously used, or tools that are undersize or oversize for some
reason. Ali this means that programming the centerline of
the cutter requires the exact tool radius to be known at the
time of programming, in all cases.
. -
\EY
\E
X axis
Y axis
P1
- X-0.3750Y-0.3750
- - -------P2,X-0.3750
?
--- P3 X2.6250
?
P4 X2.6250 Y0.6250
P5 X1 .6250Y-0.3750
R0.375
Figure 30-6
Contour change points for the cutter center path
0.375
= 1sin18
x 0_375
'.y
cos18
tY = 0.2725
P2(Y) = 1.125 +t.Y
'
P2
1
P2(Y) = 1.3975
I
>7. -
,',
Y1.125
Figure 30-7
--
1_+ sin18
iY= cos18
tY = 0.5161
0.375
0.375
Figure 30-8
Calculation of P3 for the cutter center point
\.
250
X coordinate
Y coordinate
X-0.375
Y-0.375
X-0.375
Y1 .3975
X2.625
Y2.3722
P4
X2.625
Y0.625
P5
X1 .625
Y-0.375
Point No.
P1
P2
P3
==
Chapter 30
The Type C cutter radius offset - the look ahead type (also
called the intersectional type) - is the one that is used on all
modern CNC systems today. There s no need to call it Type
C anymore, as there are no other types available.
o
o
PROGRAMMING TECHNIOUES
In order to program the cutter radius in a compensated
mode, the three items mentioned earlier must be known:
o
251
ra=
ej_
'l
Figure 30-9
Cutter path direction as it relates to a stationary part contour:
(a - b) No motion direction shown - left and right is unknown
(c - d) Cutter positioned to the LEFT of the contour
{e - f) Cutter positioned to the R!GHT of the contour
Offset Commands
In order to program one or the other mode of cutting (cut
ting direction), there are two preparatory commands avail
able to select the cutter radius offset direction:
Offset (cornpensation) of the cutter radius
to the LEFf of the contouring direction
Offset (compensation) of the cutter radius
to the RIGHT of the contouring direclion
G41
G42
li
\____,J
ci
0
Figure 30-1 O
G41
LEFT
G42
RIGHT
G42
RIGHT
G41
LEFT
I
G40
G40
t
f'
-NONE- -NONE-
;:; --
'-._:_
" _,)
252
Chapter 30
/J
\M
J PART/
V'/.(/
Conventional Milling
G42
Climb Milling
G41
r:_ -
-.....---:-
,/:
---:- - ----- ---'
0f::
_..---:
\ \._\.))
>;
Figure 30-12
Effect of the cutter radius on the actual tao/ path
Figure 30-17
C/imb mifling and conventional mi/ling mode for
a right hand cutter and the spindle rotation mode M03
SMALL DIAMETER
MEDIUM DIAMETER LARGE DIAMETER -
shared type of offset for both, tool length and tool radius
values. Again, the program uses addresses H an.dlor D.
253
+ Address H or D?
...
Offset
No.
01
02
03
...
Offset
0.0000
0.0000
0.0000
...
Geometry
Wear
0.0000
0.0000
0.0000
0.0000
0.0000
0.0000
...
...
H-offset
O-offset
Geometry Wear Geometry Wear
0.0000
0.0000
0.0000
0.0000
0.0000
0.0000
0.0000
0.0000
0.0000
0.0000
0.0000
0.0000
...
...
...
...
Figure 30-13
Fanuc tao/ offset memory types A, 8, C from the top down
or
or
or
05
-8.6640
35
0.3750
For the offset Type B, there are two columns available, but
it is still a shared offset. The entry in the offset screen will
be similar to the Type A, shown in Figure 30-15:
Offset
No.
...
05
...
35
Offset
Figure 30-14
+ Programming Format
G41
G42
G41
G42
Offset
No.
--
Geometry
Wear
...
...
-8.6640
...
0.3750
0.0000
...
0.0000 I
Figure 30-15
Shared offset register screen for tao/ offset memory Type 8
254
Chapter 30
H-offset
O-offset
' Offset
_ o_ m
_ e
_ _ try
Wea_r--._G_ e_ o_ m_etr_ y_W_ ea_ r_ --1
,__N_o_. -G e
05
-8.6640
0.0000
Figure 30- 7 6
Unique offset register screen for too/ offset memory Type C
o
o
o
o
o
lyo
Startup Methods
Sta.ning up the cutter radius offset is much more than us
ing the G41X D in the program (or something similar).
Starting up the offset means adherence to two cardinal rules
and severa! important considerations and decisions. The
cardinal rule number one is simple - it relates to the start po
sition of the cutter:
Always select the start position of the cutter
away from the contour, in the clear area
1:
r 0.25
R0.375
L--
xo
f-- 0.25
00. 75 CUTTER
0.25 CLEARANCE
Figure 30-17
Start position of the cutter before radius offset is applied
255
y
YO
YO
(-\
Yo
(P2)
At block N lO, the tool has reached the end of the 0.625
radius. The contouring is not yet finished, the bottom side
has to be cut. along the X axis. The question is - how far to
cut and when to cancel the cutter radius offset?
el
al
'6
Figure 30-18
Possible Jead-in morions to apply rhe cutter radius offset
(P2)
while the offset is still in ejfect! The cutter can end at XO,
Now the cutter has left the part contour area and the cutter
radius offset is not required anymore. It will be canceled
shortly, but a little review of the startup may help.
The cutter radius was known for this job, which is not al
ways the case. The programmer needs a suitable tool, be
cause the cutting values depend on it. Within reason, a
0.750 or 0.875 cutter are not far apart - exceptfor clear
ances. The clearance of .250 was selected for .375 cutter
radius. That means the program is still good for cutters up
to and including 01.25. CNC operator has this freedom,
because the only change is to the DO I offset amount in the
256
Chapter 30
Offset Cancellation
A lead-in motion has been used at the startup of the cutter
radius offset. To cancel the offset, a lead-out motion will be
used. The length of the lead-out (just as the length of the
Iead-in) has to be somewhat greater than or at least equal to
the cutter radius. The lead-in and the lead-out motions are
also called ramp-in and ramp-out motions.
The safest place to canceJ cutter radius offset, for any ma
chine, is away from the contour just finished. This should
always be a clear area position. The start position can also
be the end position. Figure 30-19 shows the offset cancella
tion in the example. Program 03001 can be now be written.
I!)
N
CD
0.25
T YO
i
R0.375
oc----x
C.9
T
C!i,
\ -
.
f
_/ xo
I
G41
0tx"
-Y-0.625
- ..... 0_25
Figure 30-19
---
Per program
Per tool
1--
o:::!::
cn
ct
<!.
-{ J
""- .../
001
\__ . ./
><
o
---
Per tool
Per
program
o
>< I
1-o::::1-
<!. CI)
1-0
CI) o..
)
- ---
G41
001
a_
""- __)
'-._)
Figure 30-20
Ambiguous startup for a cutter motion in radius offset mode
257
Yes, there are two possibilities and they are both correct!
Both versions compensate the cutter to the left of XO target
position. The conditions specified in block N6 have been
fully satisfied - the cutting tool moves to XO as expected,
the offset is turned on to the lefi of the part contour,
during
f
the motion, using the radius value stored in the of set regis
ter DOJ. So what is the problem?
The situation is ambiguous. There are two possible out
comes, while onJy one is required. Which one? For this job,
the one n the left part of the ili ustration, one where the tool
moves along the Y + direction next, when the radius offset
has been applied. This is the key! The motion direction that
follows G41 or G42 block must be known to the control.
Look at two different ways the program can be written:
Ouring the 'next block reading', there is no motion at all the control will only register the direction towards the
target point and applies the radius offset an the correct
side of the part contour, during the startup block
(N6 in the example)
(START OFFSET)
N6 G41 XO DOl FlS.O
(POSITIVE Y-MOTION FOLLOWS)
N7 Yl.125
:v112sl
( ""'
'(__:,,
--- --
\_
001
G41
\____)
001
-- -- \
Y-1.125,_J
\
"'-- _}
/;,\
\___ _)
Figure 30-21
lmportance of the next tool motion for cutter radius offset.
Y+ next direction on the left, Y- next direction on the right
(START OFFSET)
(NO MOTION BLOCK)
(MOTION BLOCK)
(START OFFSET)
(NO MOTION BLOCK)
(NO MOTION BLOCK)
(MOTION BLOCK)
258
Chapter 30
ovE2I
.
--
/Pi' -- - - h._
'
----+---\b
lL
, , Y2.5,
.
-
r "'
. li
,
Z
t
I
(\K-\J;----_;d}-YO-
,START
v ---
c
f-/
Figure 30-22
Tool path error due to wrong program structure program 03002
A control that can read only one or two blocks ahead will
nor process program 03002 correclly - the next motion is n
the third block when the offset is in effect. In order to avoid
an incorrect tool motion, avoid any program structure that
contains more than one no-motion block.
259
N3 G90 G54 GOO X-0.25 Y-0.625 S920 M03
N6 G41 XO D01 Fl5.0
N7 Yl.125
o
><
Figure 30-23
Cutter start position is equal to the cutter radius
(START OFFSET)
(P2)
(START OFFSET)
(P2)
R0.375
'-
Y-O
o
X
DISALLOWED
OVERLAP
Figure 30-24
Cutter start position is smaller then the cutter radius
Scale 1 :1
,-1.00-1
R0.25
1.125
o.o
I_'------------ _t
,---- 1.75 ----Figure 30-25
Simple drawing for program 03003
260
Chapter 30
Program input
Offset amounts
--+001
'
IGOUGE AREA
Figure 30-26
Effect of overcutting (gouging) in cutter radius offset mode.
Type C radius offset (look ahead type) does not a/low overcutting
SCALE= 1:1
001 = 0.375
o
X
Correct approach
lncorrect approach
Figure 30-27
Possible problem in cutter radius offset mode during a startup
with two axes simultaneously (internai cutting shown)
261
Here are the first few correct blocks of each method:
1 ---001
YO
m'///a
e)-,Y-0.6251
G41
o
X
Correct approach n X
YO
- -iL-:"'"
!JJ
001
(START OFFSE'T)
(P2)
(START OFFSE'T)
(P2)
0,
Y-OfilS
o
X
Correct approach in XY
Figure 30-28
Startup of the cutter radius offset for externai cutting:
Single axis approach shown on the left
Two axis approach - shown an the right
262
o [ M J Reach the Z axis milling depth in the G40 mode
(cutter radius offset cancel mode).
o [ M-T] Give the preference to a single axis approach
from the startup position.
o [ M J Do not forget the offset number O for in the
program - it is a small error that can cost you a lot.
o [ M-T ] Make sure to know exactly where tbe tool
command point will be when the radius offset is applied
along two axis.
o [ M-T ] ln the compensated mode (G41 or G42 in effect),
watch for blocks that do not contain an axis motion.
Avoid non-motion blocks if possible (missing X, Y and Z).
o [ M-T J Cancel cutter radius offset with the G40 command,
along with a rapid or a linear motion (GOO/G01) only,
preferably as a single axis motion only.
o [ M J Retract from the depth (along the Z axis only)
after the radius offset has been canceled.
o [ M J Make sure the cutter radius offset corresp onds
to the work plane selected (see Chapter 31).
o [ M-T J G28 or G30 machine zero return commands will
not cancel the radius offset (but either one will cancel
the tool length offset).
o [ M-T J G40 command can be input through the MOI to
cancel the cutter radius offset (usually as a temporary
or an emergency measure).
Part Tolerances
When the machining is completed on a CNC machine
(sometimes even before that), the part has to pass through
some inspection process. That means all drawing require
ments have to be met for the part to pass the inspection.
One of the requirements s to maintain dimensional toler
ances, either as specitied in the drawing, or as implied n
the drawing. Implied tolerances are often company estab
lished standard that are based on the number of decimal
places used for the dimensions (a method on the decline).
The next example focuses strictly on the effect of cutter
radius offset on the part size in the XYplane (top view). For
that reason, only a simple application is presented, with the
simplest tool path, but not necessarily the best machining
method. Figure 30-29 shows the drawing.
Chapter 30
02 0+0.002
-O.OOO \
3 x 3 x 3/4 AL PLATE
1-7/8 CORE DIAMETER
0.375
Figure 30-29
Drawing to il/ustrate practicai application of a cutter radius offset
o Right an size
o Oversize
o Undersize
Because the cutting tool approaches the machined contour from different directions, the terms oversize and un
dersize are always relative to the type of cutting. The fol
lowing table shows the most Jikely results:
I
I
Oversize
On Size
Undersize
263
Externai
Internai
Recut Possible
Scrap Likely
No Action Required
No Action Required
Scrap Likely
Recut Possible
rt
Start
position () \ : ;
Offset
position
Q
-
03004
Figure 30-30 shows the tool path for the first half of the
program - the externai diameter of 2.500 inches. Figure
30-3 I shows the tool path for the second half of the pro
gram - the internai diameter of 2.000 inches.
Y1 .25
'\ Q Toolpath
,
mot1on
-----@]
_J
z
o::
w
<(
--02.5---;
Figure 30-30
Detail for externai tool path shown in example 03004
Programmed Offsets
The most attractive feature of the cutter radius offset is
that it allows to change the actual tool size right on the ma
chine, by means ofthe offset registerfunction D. In the pro
gram example, only one toci is used - . 750 inch diameter
end mill - and one single cut for each contour (externa! and
internai). The program XOYOZO is at the center of the cir
cles and the top of the part:
Y2.5
G41 on approach
G40 on return
Toolpath
motion
-L_-
,__,,.....,-,
1
Y1 .O
G41 on approach
G40 on return
-- - -- -----@]
o::
w
I
Offset
position
-02.0-
Start position
Figure 30-31
Detail for internai tool path shown in example 03004
264
Chapter 30
+ Offset Adjustment
Before any special details can be even considered, think
about how the offset amount can be changed. In those cases
where the size of the part S to be adjusted, the incremental
change of the offset value is a good choice. Incremental
offset change means adding to or subtracting from the cur
rent offset amount (using the +INPUT key on a Fanuc
screen) or storing the adjustment in the Wear offset screen
column. Changes to the program data s never the option.
2. 5010 with
DOl
O. 3750
2.4930 with
DOl = 0.3750
2.2010wilh
Dll = 0.3750
2,0060
wilh Dll
= 0,3750
1. 9930 with
Dll = O.3750
265
+ One Offset or Multiple Offsets?
The program 03004 used DOJ for the externai diameter
and D11 for the internai diameter. Only one tool was used
and the goal was the middle tolerance of 2.501 for the ex
ternai diameter and 2.001 for the internai diameter. Are two
offsets in the program needed or a will a single offset do?
Keep in mind that the last few examples evaluated only
possibilities that were independent from each other, with
no common connection. Program 03004 presents a com
mon connection between the two diameters. It is one 0.750
end mill, used for cutting both diameters.
Assume for a moment, that only one offset is used, for ex
ample DOI, with the stored amount of .375. When mea
sured, the externai diameter is 2.00 I. After continuing cut
ting the internai diameter of 2.000 inches, when measured
again, its size is not 2.001 as expected, but only 1.999. This
measurement is .002 undersize then the expected diameter.
The reason is lhat both diameters have a +.002/-0.000 toler
ance. The results are different - for the externai diameter,
+.002 means oversize that can be recul, for the internai dia
meter, +.002 means oversize that is a scrap. Since one off
set alone cannot be adjusted to meet the middle tolerance
on both diameters, two offsets have to be used. It follows,
that if DOl =.3750 and makes a perfect externa! diameter,
D11 should have a smaJJer setting amount of only .3730.
266
-- ---------
Chapter 30
In both cases, when the test cut is made, measure the dia
meter and adjust Lhe offset by one half of the difference be
tween measured and intended diameters. If only one side is
cut, the difference is not halved.
o
X
.9
a
toZO
lbl
Figure 30-32
Tao/ reference point for turning and boring - (a) turning, (b) boring
G42- RIGHT
G41-LEFT
The tool nose is usually the corner of the tool, where two
cutting edges blend into a nose radius. Figure 30-32 shows
typical corners of a turning tool and a boring tool.
The tool nose reference point n turning is often called the
command point, the imaginary poin.t and, lately, even the
virtual point. It s the point that is moved along the contour,
because it is directly related to XOZO of the part.
Figure 30-33
lathe application of the tao/ nose radius offset
G41
G42
G40
267
Reference point
o
X
o
tozo-j
X-Z+
r
1 \, __
D1
Figure 30-34
Re/ationship of the too/ reference point and the nose radius center
T2
,
p-
yS
1
I'- - ,,/
T7
M-/ -.
TO
T6
\ ._,_ /
E)
PROGRAMMED CONTOUR
---OL
/ /-:-/-:-----R:
L TOOL NOSE
INSUFFICIENT
CUTTING
a1
PROGRAMMED CONTOUR
T1
\, - /
6
>7rs
T3LVT4
Figure 30-35
Arbitrary tool tip numbers for nose radius offset - rear Jathe shown
Figure 30-37
Effect of too/ nose radius offset - {a) offset not used {b) offset used
Sample Program
C'?N
o
N
.....
9o
'-----l--1----11-+1-'' !:g
NN
NN
___r X2.650
--X2.410
'/.fa'-"-"-:.,,1--,_ X1 .990
X1 . 50
7
_____....,__ X0.950
. 50
7
-g
00
o
00
N
....-o
NN
/7'7'":'"7"7':""-
Figure 30-36
Schematic illustration of the too/ tip numbering {Fanuc controls)
-1 --j----i
L()
r,...
co
N
N
Figure 30-38
Simplified sample drawing for program example 03005
268
Chapter 30
03005
N31
N32
N33
N34
N35
N36
N37
N38
N39
N40
N41
N42
N43
(EXTERNAL FINISHING)
T0300
G96 S450 M03
GOO G42 X2.21 Z0.1 T0303 MOS
GOl X2.65 Z-0.12 F0.007
Z-0.825 F0.01
X3.25 Z-1.125
Z-1.85
G02 X4.05 Z-2.25 R0.4
GOl X4.51
X4.8 Z-2.395
U0.2
GOO G40 X8.0 Z5.0 T0300
MOl
N44
N45
N46
N47
N48
N49
N50
N51
N52
N53
N54
(INTERNAL FINISHING)
T0400
G96 S400 M03
GOO G41 X2.19 Z0.1 T0404 MOS
GOl Xl.75 Z-0.12 F0.006
Z-1.6 F0.009
G03 X0.95 Z-2.0 R0.4
GOl X0.75 Z-2.1
Z-2.925
U-0.2
GOO G40 X8.0 Z2.0 T0400
MOl
Note that the contour start and end positions are n the
clear area - away from the part. Make sure there is enough
clearance. Cutter radius compensation in.te,ference a/arm
(alarm #41) s always caused by insufficient clearance.
>TLR x 2
_, >TLR x 2
' >TLR x 4 l
on 0
>TLR x 4
on 0
.
"O
(/)
>TLR x 2 - r--
o
o
t11
a:::
o
I
..- ..900
l.C)
CD
//
?--X1.70
NNN
G4J
X1.40
X1.00
..(9
CLEARANCE
-,
Correct
approach
/
(9
xo
,_
X-0.07 lncorrect
approach
Figure 30-40
Tao/ nose radius offset change tor the same tao/
N21
N22
N23
N24
N25
N26
N27
N28
N29
TOlOO
(CORRECT APPROACH)
G96 S400 M03
GOO G41 Xl.7 ZO T0101 MOS
(START)
GOl X-0.07 F0.007
(FACE OFF)
GOO Z0.1
(ONE AXIS ONLY)
G42 Xl.O
(THEN COMPENSATION)
GOl Xl.4 Z-0.1 F0.012
( CONTOURING)
Z-0.65
X...
_J
Figure 30-39
Minimum clearance for tao/ nose radius offset
N21
N22
N23
N24
N25
N26
N27
N28
(INCORRECT VERSION)
TOlOO
G96 S400 M03
GOO G41 Xl.7 ZO T0101 MOS
(START)
GOl X-0.07 F0.007
(FACE OFF)
GOO G42 Xl.O Z0.1
(*** WRONG ***)
GOl Xl.4 Z-0.1 F0.012
(CONTOURING)
Z-0.65
X..
PLANE SELECT/DN
From all available machining operations, conrouring or
pro.fi.ling s the single most common CNC application, per
haps along with hole making. During contouring, the tool
motion is programmed in at least three different ways:
o Tool motion along a single axis only
o Tool motion along two axes simultaneously
o Tool motion along three axes simultaneously
ln all three cases - and only i11 rhese rhree cases - pro
grammer has to consider a special setting of the control sys
tem - it is called a selection of the machining plane.
MACHINING IN PLANES
The path of a cutting toci is a combination of straight
lines and arcs. A tool motion in one or two axes always
takes place in a plane designated by two axes. This type of
morion is two-dimensional. 1n contrast, any tool motion
that takes place in three axes at the same time is a three
dimensional motion.
Mathematical Planes
In CNC machining, the only planes that can be defined
and used are planes consisting of a combination of any two
primary axes XYZ. Therefore, the circular cuttin.g morion,
cutter radius offset and jixed cycles can take place only in
any one of the three available planes:
XY plane
ZX plane
YZ plane
269
270
Chapter 31
XYZXYZ
... becomes . . . XY ZX YZ
Horizontal Axis
XY
l)(
YZ
= Vertical Axis
y
o
o
o
... XY plane
... XZ plane
... YZ plane
3
0
TOP-XY
X -
X
0
LEFT -ZX
3
0
y-
I RIGHT - YZ
STANDARD DEFINITION OF PLANES
3
0
02
X I
-0
TOP-XY
FRONT -XZ
RIGHT- YZ
PLANES ON A VERTICAL MACHINING CENTER
Figure31-1
Comparison of standard mathematical planes (above),
and planes on a CNC machining center (below)
XY plane selecrion
G18
ZX plane selection
G19
YZ plane selection
It s clear that the XY plane and top view are the sarne in
both definitions. and so is the YZ plane and the right side
view. The ZX mathematical plane is different from the front
plane on the machine, which is XZ, as shown n the middle
illustration.
For all rapid motions (programmed with GOO) and all lin
ear motions (programmed with GO]), the plane selection
command is totally rrelevant and even redundant. That is
not the case for other motion modes, where the plane selec
tion in a program is extremely important and must be con
sidered carefulJy.
271
PLANE SELECTION
XS.O Y3.0
X7.5 Z-1.5
YlO.O Z-0.25
X2.0 Y4.0 Z-0.75
X
E
68
v1
(")
bJ
STANDARD
ZX PLANE
MIRRORED
PLANE ROTATED
AFTER MIRRORING
IS THE G18 PLANE
ON THE MACHINE
STANDARD
MATHEMATICAL
ZX plane
Figure 37-2
Progressive steps in aligning the mathematical ZX plane
with the machine XZ plane, using G 7 8 plane selection
272
Note that the G code direction for arcs does not change
either within the mathematical plane (a), or the mathemati
cal plane mirrored (b), or even the mirrored plane rotated
by negative 90 (c), even if the plane itself is changed.
What occurred here is not a creation of any new plane
(mathematical or otherwise). The view still represents a
three dimensional object, viewed from a different direc
tional point (viewpoint).
On horizontaJ machining centers, the situation is similar.
The XY plane (G17) and the ZX plane (G18) match be
tween mathematical designation and the actual axes orien
tation. It is the G19 plane (YZ) that appears to be reversed
and may cause some problems before the logica) structure
ol' the planes is well understood.
The proper selection of a machining plane will enable
programming various contouring operations using circular
and helical interpolation, cutter radius offset and fixed cy
cles. The most common applications of this type of ma
chining are filleted (blend) radii, intersecting radii, circular
pockets, profiled counterbores, cylinders, simple spheres
and cones, and other similar shapes.
In order to understand the CNC applications of G02 and
G03 commands in planes, the illustration in Figure 31-3
should be helpful.
Chapter 31
Figure 31-3
Actual circular tool path direction in al/ three machine planes.
Note the apparent inconsistency for the G 18 plane
N .. G20
English wii1s
N40
N41
N42
N43
N44
XYplane selected
G17
GOO
GOl
G18
Gl7
PLANE SELECTION
273
Q Example:
N120 G90 GOO G41 XSO.O YlOO.O Z20.0 D25
N121 G01 X90.0 Y140.0 ZO F180.0
PRACTICAL EXAMPLE
The example illustrated in Figure 31-4 is a simple job that
requires cutting the R0.75 arc in the XZ plane. Typically, a
ball nose end mill (also known as a spherical end mill) will
be used for a job like this.
In the simplified example, only two main tool passes are
programmed. One pass is the Jeft-to-right motion - across
the left plane, over the cylinder, and over the right plane.
The other pass is from right to left - across the right plane,
over the cylinder, and across the left plane. A stepover for
the tool is also programmed, between the passes. The pro
gram of this type for the whole part could be done in the in
cremental mode and would greatly benefit from the use of
subprograms.
274
Chapter 31
3.5
----r
2.5
---'
R-0-.7-50
l?\'--
0.
Figure 31-4
Drawing for the programming example 03101
03101
Nl G20
(ZX PLANE SELECTED)
N2 G18
N3 G90 G54 GOO X-0.1 YO S600 M03
N4 G43 Z2.0 H01 MOS
NS GOl G42 Z0.5 DOl F8.0
N6 Xl.0
N7 G03 X2.5 I0.75
(= G03 X2.5 ZO.S I0.75 KO)
NS GOl X3.6
N9 G91 G41 Y0.05
NlO G90 X2.5
Nll G02 Xl.O I-0.75(= G02 Xl.O Z0.5 I-0.75 KO)
N12 GOl X-0.1
Nl3 G91 G42 Y0.05
N14 G90 ...
Figure 31-5
Too/ path for programming example 03101