Professional Documents
Culture Documents
DIN66217(1975-12)
Coordinate system
C o o rd in a te axes X, Y and Z are
p e rp e n d ic u la r to each other.
T h is a r ra n g e m e n t can be re p re
s e n te d b y th u m b , in d e x fin g e r
and m id d le fin g e r o f th e r ig h t
hand.
A x e s o f ro ta tio n A, B a n d C are
as s ig n e d to c o o rd in a te axes X,
Y a n d Z.
W h e n lo o k in g d o w n o n e a x is in
th e p o s itiv e d ire c tio n , th e p o s itiv e
d ire c tio n o f ro ta tio n is clo ckw ise .
Example:
2-c a rria g e la th e w ith p r o g ra m m a b le
m a in s p in d le
Zero points and reference points cf. DIN ISO 2806 (1996-04)
Reference point R
O rig in o f in c re m e n ta l p o s itio n m e a s u re m e n t s y s te m w ith a dis
tanc e t o th e m a c h in e zero p o in t s e t b y th e m a c h in e m a n u fa c tu re r.
Explanation of w ords:
N10 b lo c k n u m b e r 10
G01 feed, lin e a r in te rp o la tio n
X30 c o o rd in a te o f ta rg e t p o in t in X d ire c tio n
Y40 c o o rd in a te o f ta rg e t p o in t in Y d ire c tio n
F150 feed 150 m m /m in
S900 speed o f m a in s p in d le 9 0 0 /m in
T01 t o o l no. 1
M 03 s p in d le c lo c k w is e
Program structure
Example:
CNC program
%01
N1 G90 M 04
N2 G 96 F0.2 S180
N3 G 00 X20 Z2
N4 G01 X30 Z-3
N5 Z-15
N6 G 00 X 2 00 Z200
N7 M 30
Preparatory functions
Prep. Effective Prep. Effective
M eaning M eaning
functions ness functions ness
G01 L in e a r in te rp o la tio n
G54– S h ift 1–
G59 –S h ift 6
G02 C ircle in te rp o la tio n c lo c k w is e
Tool offset
Cutter compensation
G41 Lathe tool left G42 Lathe to o l rig ht G41 M illing cutter left
C o n d itio n o f la th e t o o l p o s itio n in fr o n t o f s p in d le ax is a c c o rd in g to
DIN 66217: Because o f th e d iffe re n t p e rs p e c tiv e in th e X -Z pla n e , th e
c u tte r c o m p e n s a tio n w o u ld be o p p o s ite f o r th e u ser lo o k in g d o w n on
th e w o rk p ie c e and fo r p ro g ra m m in g .
CNC program
N...
N10 G00 X20 Y10 Z1 (P1)
N20 G01 Z0 (P2)
( P3)
N...
CNC progr am
N...
N10 G41
N20 G01 X6 Y4 (P1)
N30 Y20.39 (P2)
(P3)
N50 G01 X40 (P4)
N...
A
CNC program
N...
N10 G41
N20 G01 X6 Y4 (PI)
N30 Y21.88 (P2)
(P3)
N50 G01 X40 (P4)
N...
Program structure of CNC machines according to DIN
Machining motions of lathes cf. DIN 66025-2 (1983-01)
G01 Linear m o v e m e n t
D esignation and
m achining exam ple:
CNC program
N...
N10 G00 X60 Z2 (P1)
(P2)
N30 X 80 (P3)
N40 X102 Z-61 (P4)
N...
CNC program
N...
N10 G 00 X 60 Z2 (P1)
N20 G01 Z-40 (P2)
(P3)
N40 G01 X110 (P4)
N...
CNC program
N...
N10 G01 X0 Z0 (P1)
N20 G03 X60 Z -11.46 10 K-45 (P2)
N30 G01 Z-40 (P3)
(P4)
N...
Program structure of CNC machines according to PAL1)
Linear and circular interpolation for lathes and milling machines
Turning Milling
Increm ental pro g ram m in g w ith X I, Yl and Zl coordinates in NC program s w ith G 90
NC program NC program
NC program NC program
NC program NC program
NC program NC program
1) Pr üfungsaufgaben- und Le hrm ittelentw icklungsstelle (PAL) (Institute fo r the developm ent o f trainin g and testing material)
Program structure of CNC machines according to PAL
PAL functions for lathes and milling machines
Prog ram m ing coordinates and interpolation param eters
T T o o l s to ra q e place in th e t o o l re v o lv e r o r h o ld e r
TC S e le ctio n o f th e n u m b e r f ro m th e o ffs e t m e m o ry
S tructure of NC block
M achining exam p le
G22 L [H ] [/]
O bligatory addresses:
L n u m b e r o f th e
sub p ro g ra m
O ptional addresses:
H num ber of
repetitions
/ e x tra c t le vel
Structure of NC block
G 14 [H]
O p ti o n a l a d d r e s s e s :
H0 tra v e l t o to o l c h a n g e p o in t s im u lta n e o u s ly in all axes
H1 fir s t X axis, th e n Z a x is H2 f ir s t Z axis, th e n X axis
S tructure of NC block
M a c h in
G32 Z /Z I/Z A F ing
O bligatory addresses: exam p le
Z, Z l, Z A th re a d e n d p o in t in
Z d ire c tio n
I in c re m e n ta l, A a b s o lu te
F p itc h o f th re a d
Program structure of CNC machines according to PAL
PAL cycles for lathes
G31 Thread cycle
S tructure of NC block
G31 Z /Z I/Z A X / X I / X A F D [ZS] [XS]
[DA] [DU] [Q] [O] [H]
O bligatory addresses:
Z, Zl, Z A th re a d e n d p o in t in Z d ire c tio n
Z c o n tr o lle d b y G 90/G 91;
I in c re m e n ta l, A a b s o lu te
X , XI, Zl th re a d e n d p o in t in X d ire c tio n ;
X c o n tr o lle d b y G 90/G 91,
I in c re m e n ta l, A a b s o lu te
F th re a d pitch
D th re a d d e p th
O ptional addresses [..]:
ZS th re a d s ta rtin g p o in t, a b s o lu te in Z
XS th re a d s ta rtin g p o in t, a b s o lu te in X
D A a p p ro a c h
DU o v e rru n
Q n u m b e r o f cuts
O n u m b e r o f id le cycles
H s e le c tio n o f in fe e d ty p e a n d re s id u a l c u ts (RC)
H1 w ith o u t o ffs e t (ra d ia l in feed ), RC OFF
H2 in fe e d at left fla n k , RC OFF
H3 in fe e d at r ig h t fla n k , RC OFF
H4 a lte rn a tin g in fe e d , RC OFF
H 11 w ith o u t o ffs e t (rad ial in feed ), RC ON
H12 in fe e d at left fla n k , RC ON
H13 in fe e d at r ig h t fla n k , RC ON
H14 a lte rn a tin g in fe e d , RC ON
R esidual c u ts ½ , ¼, ⅛ , ⅛ x (D/Q)
S tructure of NC block
G81 (or G82) H4 [AK] [AZ] [A X] [AE]
[AS] [A V] [O] [Q] [V] [E]
or
G81 (or G82) D [ H 1 /H 2 /H 3 /H 2 4 ]
O bligatory addresses:
D in feed
O ptional addresses [..]:
H ty p e o f m a c h in in g
H1 ro u g h m a c h in in g , re m o v a l b e lo w 45°
H 2 s te p w is e a n g le -c u ttin g a lo n g th e c o n to u r M achining exam ple: longitu din al rough -m ach ining cycle
H3 like H1 w ith fin a l c o n to u r c u t
H4 c o n to u r fin is h in g
H24 r o u g h - m a c h in in g w ith H2 a n d s u b s e q u e n t
fin is h in g
A K c o n to u r a llo w a n c e p a ra lle l to th e c o n to u r
A Z c o n to u r a llo w a n c e in Z d ire c tio n
A X c o n to u r a llo w a n c e in X d ire c tio n
AE im m e rs io n a n g le (fin a l a n g le o f th e to o l)
A S e m e rg e n c e a n g le (lateral a d ju s tm e n t a n g le o f
to o l)
A V s a fe ty a n g le r e d u c tio n f o r AE a n d AS A
O m a c h in in g s ta rtin g p o in t
O 1: c u rre n t to o l p o s itio n
O 2: c a lcu la te d f r o m c o n to u r
Q id le ste p o p tim iz a tio n
Q 1: o p tim iz a tio n OFF
Q2: o p tim iz a tio n ON
V s a fe ty d ista n c e fo r id le s tep o p tim iz a tio n
G81: in Z d ire c tio n
G82: in X d ire c tio n
E im m e rs io n feed
Program structure of CNC machines according to PAL
PAL cycles for lathes
G86 Radial grooving cycle G 88 Axial grooving cycle
S tructure NC block
G 86 Z / Z I /Z A X / X I / X A ET [EB] [D] [..] (se le ctio n )
G 88 Z / Z I /Z A X / X I / X A ET [EB] [D] [..] (se le ctio n )
O bligatory addresses:
Z, Z l, Z A g r o o v in g p o s itio n in Z d ire c tio n ;
Z c o n tr o lle d b y G 90/G91,
Zl in c re m e n ta l, Z A a b s o lu te
X, XI, X A g r o o v in g p o s itio n in X d ire c tio n ;
X c o n tr o lle d b y G 90/G91,
XI in c re m e n ta l, X A a b s o lu te
ET G 86 a b s o lu te d ia m e te r o f g r o o v in g d e p th
G 88 a b s o lu te g r o o v in g d e p th
O ptional addresses [..]:
EB g r o o v in g w id th and p o s itio n
EB+ g r o o v in g in d ire c tio n Z+ re la tiv e t o th e
p r o g r a m m e d g r o o v in g p o s itio n P
EB– g r o o v in g in d ire c tio n Z– re la tiv e t o th e
p r o g r a m m e d g r o o v in g p o s itio n P
D p ecking a m o u n t (if n o v a lu e is spe c ifie d , the
p ecking d e p th is equ a l t o th e g ro o v e d e p th ET)
A S fla n k a n g le o f g r o o v in g at th e s ta rtin g p o in t
re la tiv e to th e g r o o v in g d ire c tio n (X o r Z)
AE fla n k a n g le o f g r o o v in g at th e e n d p o in t Radial g r o o v in g c y c le w ith G86 A x ia l g r o o v in g c y cle w ith G88
re la tiv e to th e g r o o v in g d ire c tio n (X o r Z)
RO r o u n d in g o r c h a m fe rin g o f u p p e r c o rn e rs
RO+ r o u n d in g
RO– c h a m fe r w id t h
RU r o u n d in g o r c h a m fe rin g o f lo w e r co rn e rs M achining exam ple: radial grooving cycle w ith G86:
R U + r o u n d in g
RU– c h a m fe r w id t h
A K c o n to u r a llo w a n c e p a ra lle l t o th e c o n to u r
A X c o n to u r a llo w a n c e in X d ire c tio n ( c o n to u r offset)
EP s e tp o in t d e fin itio n f o r g r o o v e c u ttin g (p o s itio n P)
EP1: s e tp o in t in u p p e r c o rn e r o f th e g ro o v e
EP2: s e tp o in t in b o tto m c o r n e r o f th e g r o o v e
H ty p e o f p ro c e s s in g
H1 ro u g h in g c u t H14 ro u g h in g a n d fin is h in g
H2 p lu n g e tu rn in g H24 p lu n g e t u r n in g a n d fin is h in g
H4 fin is h in g
DB in fe e d in % o f th e c u ttin g to o l w id t h f o r g r o o v in g
V s a fe ty d is ta n c e a b o v e g ro o v e
E fe e d rate in to s o lid m a te ria l
S tructure of NC block Thread u nde rcuts acc. t o DIN 76 U n d e rc u ts acc. to DIN 509
G 85 Z / Z I /Z A X / X I / X A l/[l] K[K] [RN] [SX] [H] [E]
O bligatory addresses:
Z, Zl, Z A u n d e rc u t p o s itio n in Z d ire c tio n ;
Z c o n tr o lle d b y G 90/G91,
Zl in c re m e n ta l, Z A a b s o lu te
X , XI, X A u n d e rc u t p o s itio n in X d ire c tio n ;
X c o n tr o lle d b y G 90/G 91, M a c h in in g p ro c e s s w i t h DIN 76
X I in c re m e n ta l, X A a b s o lu te
A I u nde rcut d epth; o b lig a to ry param ete r fo r DIN 76 (H1)
K u nde rcut le ngth; o b lig a to ry param eter fo r DIN 76 (H1)
O ptional addresses [..]:
RN c o rn e r ra d iu s
S X g r in d in g a llo w a n c e
E fe e d rate f o r p lu n g in g
H u n d e rc u t s hape
H1 DIN 76 H2 DIN 509 E H3 DIN 509 F F u rth e r in fo r m a tio n o n p. 84 a n d p. 87
G53 C a n c e lla tio n o f all zero p o in t s h ifts and G73 C irc u la r p o c ke t and s p ig o t m illin g cycle
ro ta tio n s
G74 S lo t m illin g cycle
G 54– A d ju s ta b le a b s o lu t zero p o in ts
G75 C irc u la r s lo t m illin g cycle
G57
G81 D rillin g cycle
G58 In cre m e n ta l zero p o in t s h ift, p o la r a nd
ro ta tio n G82 D eep d r illin g cycle w ith pecking
G59 In cre m e n ta l C a rtesian zero p o in t s h ift and G83 Deep drilling cycle w ith pecking and full retraction
ro ta tio n
G84 T a p p in g cycle
G66 M ir ro r im a g e across th e X o r Y axis,
G85 R e a m in g cycle
m ir ro r im a g e o ff
G86 B o rin g cycle
G67 Sc a lin g (e n la rg in g o r re d u c in g o r ca n c e lla tio n )
A
G87 Plunge m illin g cycle
Plane selection, dim ensions G88 In te rn a l th re a d m illin g cycle
Structure of NC block
G1 [ X /X I/X A ] [Y /Y I/Y A ] [Z /Z I/Z A ] [D] [ A S ] .. (selection) M achining exam p le
O bligatory addresses:
X , XI, X A X c o o rd in a te o f th e ta rg e t p o in t
Y, Y l, Y A Y c o o rd in a te o f th e ta rg e t p o in t
Z, Zl, Z A Z c o o rd in a te o f th e ta rg e t p o in t
O ptional addresses [..]:
D le n g th o f tra v e l d ista n c e
A S asc e n t a n g le re la tiv e t o th e X ax is
RN tra n s itio n e le m e n t t o th e n e x t c o n to u r e le m e n t
RN+ ro u n d in g ra d iu s RN– c h a m fe r w id th
H s e le c tio n a m o n g t w o s o lu tio n s v ia a n g le c rite rio n
H1 s m a ll as c e n t a n g le H2 g re a te r ascent a n g le
TC s e le ctio n o f th e o ffs e t m e m o r y n u m b e r N10 ...
TR in c re m e n ta l c h a n g e o f th e to o l r a d iu s v a lu e N 1 5 G1 X 7 4 Y 1 6 RN-12 ;P2
TL in c re m e n ta l c h a n g e o f th e to o l le n g th o ffs e t N20 G1 D65 AS120 RN+14 ;P3
Structure of NC block
M achining exam p le
G11 RP A P /A I [J/J A ] [Z /Z I/Z A ] [ R N ] .. (Ausw ahl)
O bligatory addresses:
RP p o la r ra d iu s
A P p o la r a n g le re la tiv e to th e p o s itiv e X axis
Al in c re m e n ta l p o la r ang le
O ptional addresses [..]:
I, IA X c o o rd in a te o f th e p o la r ce n te r
J , JA Y c o o rd in a te o f th e p o la r c e n te r
Z, Zl, Z A in fe e d in Z d ire c tio n
RN tra n s itio n t o th e n e x t c o n to u r e le m e n t N 15 G42 G47 R20 X30 Y0 Z-3 ;P2
RN+ r o u n d in g ra d iu s RN– c h a m fe r w id th N20 G 11 IA 0 J A 0 RP30 AP90 ;P3
TC s e le ctio n o f th e o ffs e t m e m o r y n u m b e r N25 G 11 IA0 J A 0 RP30 AP180 ;P4
TR in c re m e n ta l c h a n g e o f th e to o l ra d iu s v a lu e N30 G 11 IA0 J A 0 RP30 AP270 ;P5
T L in c re m e n ta l ch a n g e o f th e to o l le n g th o ffs e t N35 G 11 IA0 J A 0 RP30 AP0 ;P2
S tructure of NC block
M achining
G 12 A P /A I [l/IA ] [J /J A ] [Z /Z I/Z A ] [RN] [F] [S] [M ]
exa m p le
G 13 A P /A I [l/IA ] [J /J A ] [Z /Z I/Z A ] [RN] [F] [S] [M ]
O bligatory addresses:
AP p o la r a n g le o f ta rg e t p o in t
Al in c re m e n ta l p o la r ang le
O ptional addresses [...]:
I, IA X c o o r d in a te o f p o la r c e n te r
N 1 5 G 1 X 6 0 Y15 ;P2
J , J A Y c o o rd in a te o f th e p o la r ce n te r
N 2 0 G12 IA45 JA45 AP50 ;P3
RN+ r o u n d in g ra d iu s RN– c h a m fe r w id th
Program structure of CNC machines according to PAL
PAL functions for milling machines
G 45 Linear tan g en tial approach to th e contour G 46 Linear tan g en tial retraction fro m th e contour
G47 Tangential approach to the contour in a quarter circle G48 Tangential retraction from the contour in a quarter circle
Structure of NC block
G 54 o r G 55 o r G 56 o r G57
Explanatory notes:
Th e w o rk p ie c e zero p o in t W is d e te rm in e d b y th e
c o m m a n d s G 54 t o G57 and has a d e fin e d d is ta n c e to
th e m a c h in e zero p o in t. T h e o p e ra to r e n te rs th e sh ift
v a lu e s in to th e zero p o in t re g is te r o f th e c o n tro lle r
b e fo re s ta rtin g th e p ro g ra m . T h e zero p o in t is a lw a y s N 1 0 ...
s p e c ifie d in a b s o lu te c o o rd in a te s (X A , Y A , ZA ) re la N 1 5 G54 ;W
tiv e to th e m a c h in e zero p o in t. N20
Structure of NC block
G 59 [XA] [YA] [ZA] [AR]
O ptional addresses [..]:
X A a b s o lu te X c o o rd in a te o f th e n e w w o rk p ie c e zero p o in t
A
Y A a b s o lu te Y c o o rd in a te o f th e n e w w o rk p ie c e zero p o in t
Z A a b s o lu te Z c o o rd in a te o f th e n e w w o rk p ie c e zero p o in t
AR a n g le o f ro ta tio n o f th e n e w c o o rd in a te s ys te m re la tiv e
to th e X axis
E xplanatory notes:
If th e c o o rd in a te s y s te m o f th e w o rk p ie c e is ro ta te d in
its c u rre n t p o s itio n , o n ly th e a n g le o f ro ta tio n is s p e cifie d :
N . . . G 59 A R – N10 ..
T h e zero p o in t s h ift la u n c h e d v ia G54...G57 is reset by: N 1 5 G54 ;W1
N . . . G50 N20 G59 X20 Y40 Z30 AR45 ;W2
Program structure of CNC machines according to PAL
PAL cycles for milling machines
G81 Drilling cycle
S tructure of NC block
M ach in in g exa m p le
G81 Z I/Z A V [W ] [F] [S] [M ]
O bligatory addresses:
Zl d e p th o f b o re in th e fe e d axis
ZA a b s o lu te d e p th o f b o re re la tiv e t o th e
c o o rd in a te s y s te m o f th e w o rk p ie c e
V s a fe ty d is ta n c e fr o m th e to p e d g e o f
th e h o le
N 1 0 ...
O ptional addresses
N 1 5 G81 ZI-18 V6 W16
W re tra c t le vel re la tiv e to th e c o o rd in a te
N 2 0 G 7 9 X.. Y.. Z.. ;cycle call
s y s te m o f th e w o rk p ie c e
G82 Deep drilling cycle w ith pecking G83 Deep drilling cycle w ith pecking and full retraction
Structure of NC block G83 has th e f o llo w in g fea tu re s:
G 82 Z I/Z A D V [W ] [VB] [DR] [DM ] - t h e s a m e a ddres s es as G82
[U] [O] [DA] [E] [F] [S] [M ] - re tra c ts to th e s a fe ty d is ta n c e V f o r c h ip re m o v a l
G83 Z I/Z A D V [W ] [VB] [DR] [DM ] and in a d d itio n
[U] [O] [DA] [E] [FR] [F] [S] [M ] FR ra p id m o tio n r e d u c tio n in %
O bligatory addresses:
Z I/Z A d e p th o f b o re in th e fe e d axis
Zl increm ental depth fro m th e to p e dge o f the hole
Z A a b s o lu te d e p th in w o rk p ie c e c o o rd in a te s
D p e c k in g a m o u n t M ach in in g exam p le
V s a fe ty d is ta n c e a b o v e th e to p e d g e o f th e hole
O ptional addresses [..]:
W re tra c t le vel re la tiv e to th e c o o rd in a te
s y s te m o f th e w o rk p ie c e
VB re tra c t d is ta n c e t o th e c u rre n t h o le b o tto m
DR r e d u c tio n v a lu e o f th e la s t p e c k in g a m o u n t
D M m in im u m p e ck in g a m o u n t (u n s ig n e d )
U dw ell tim e at hole botto m (relative to pecking)
O u n it o f th e d w e ll t im e
O 1 d w e ll t im e in se c o n d s N10 ...
O 2 d w e ll t im e in n u m b e r o f re v o lu tio n s
N15 G82 ZI-30 D10 V3 W 4 VB1.5 DR3 U1 01 DA6
D A in c re m e n ta l s p o t- d rillin g d e p th o f th e fir s t in fe e d
N20 G79 X.. Y.. Z.. ;cycle call
E s p o t- d rillin g fe e d rate
S tr u c tu r e o f NC b lo c k M achining
G 8 4 Z I/Z A F M V [W ] [S ] exam p le
O bligatory addresses:
Zl incremental depth fro m the to p edge of the hole
Z A a b s o lu te d e p th in w o rk p ie c e c o o rd in a te s
F th re a d p itc h
M d ire c tio n o f t o o l ro ta tio n fo r p lu n g in g
M 3 rig h t-h a n d th re a d M 4 le ft-h a n d th re a d
V s a fe ty d is ta n c e t o th e t o p e d g e o f th e ho le
N 1 0 ...
O ptional addresses
N15 G84 ZI-12 F1.25 M3 V4 W 7 S800
W re tra c t le vel re la tiv e t o th e c o o rd in a te
N20 G79 X.. Y.. Z.. ;cycle call
s y s te m o f th e w o rk p ie c e
Structure of NC block
G 72 Z I/Z A LP BP D V [W ] [RN] [AK] [AL] [EP] M ach in in g exam p le
[DB] [RH] [DH] [ 0 ] [Q] [H] [E] [F] [S] [M ]
O bligatory addresses:
Z I/Z A d e p th o f th e c irc u la r p o ck e t in th e in fe e d axis
Zl in c re m e n ta l fr o m th e t o p e d g e o f th e pocket
ZA absolute, relative to th e c o o rd in a te system o f
th e w o rk piece
LP le n g th o f th e re c ta n g u la r p o c k e t in X d ire c tio n
BP w id t h o f th e re c ta n g u la r p o c ke t in Y d ire c tio n
D m a x im u m d e p th o f c u t
V s a fe ty d is ta n c e to th e m a te ria l surfa c e
O ptional addresses [..]:
AK p o c k e t w a ll fin is h a llo w a n c e
AL p o c k e t b o tto m fin is h a llo w a n c e
RN c o rn e r ra d iu s
EP0 EP1, EP2, EP3 d e fin itio n o f th e s e tp o in t at c y c le call
W re tra c t le vel, in fa s t m o tio n
H ty p e o f m a c h in in g
H1 ro u g h m a c h in in g H4 fin is h in g
H2 face r o u g h in g o f th e re c ta n g u la r surfa ce
N15 G72 ZA-9 LP47 BP24 D4 V3 AK0.4 AL0.5 W 8
H14 r o u g h -m a c h in in g and fin is h in g w ith th e s a m e to o l
N20 G79 X40 Y36 ;cycle call fo r G72
E fe e d rate f o r p lu n g in g
S tr u c tu r e o f N C b lo c k M achining
G 74 Z I/Z A LP BP D V [W ] [A K ] [A L ] [EP] exam p le
[O ] [Q ] [H ] [E] [F] [S] [M ]
O b lig a to ry addresses:
ZI/Z A d e p th o f th e s lo t in th e in fe e d axis
Zl in c re m e n ta l fr o m th e t o p e d g e o f th e s lo t
A ZA a b s o lu te , re la tiv e to th e c o o rd in a te s y s te m o f
th e w o rk p ie c e
LP s lo t le n g th BP s lo t w id th
D m axim um depth o f cut V safe ty d istance
O p tio n a l a d d re ss e s
W re tra c t level
AK p o c k e t w a ll fin is h a llo w a n c e
AL p o c k e t b o tto m fin is h a llo w a n c e
EP0, EP1, EP2, EP3 d e fin itio n o f th e s e tp o in t a t c ycle call
O in fe e d m o tio n
0 1 v e rtic a l to o l im m e rs io n
N15 G74 ZA-15 LP50 BP22 D3 V2 ;definition of longitudinal slot via G74
0 2 r a m p in g to o l im m e rs io n
N20 G79 X... Y... ;cycle call at a particular point via G79
H – E a s w i t h G72
Program structure of CNC machines according to PAL
PAL cycles for milling machines
G 75 S lot m illing cycle (arc)
S tructure of NC block
G 75 Z I/Z A BP RP A N /A O A O /A P D V (W] (AK] (AL]
[EP] [O] [Q] [H] [E] [F] [S] [M ]
O bligatory addresses:
Z I/Z A s lo t d e p th
Zl in c re m e n ta l fr o m th e t o p e d g e o f th e slo t
Z A a b s o lu te d e p th
BP s lo t w id th
RP s lo t ra d iu s
A N p o la r s ta rt a n g le re la tiv e to th e p o s itiv e X ax is and th e
c e n te r p o in t o f th e s lo t's fir s t end ra d iu s
A O p o la r a p e rtu re an g le b e tw e e n th e c e n te r p o in ts o f th e s lo t's
e nd radii
AP p o la r fin a l a n g le re la tiv e to th e p o s itiv e X axis and th e
c e n te r p o in t o f th e s lo t's s e c o n d e n d ra d iu s
(o n ly 2 o f th e 3 p o la r a n g le s need to be d e fin e d ) M achining exam ple
D m a x im u m d e p th o f c u t
V s a fe ty d ista n c e
O ptional addresses
EP d e fin itio n o f th e c a llin g p o in t f o r th e s lo t c ycle
EP0 c e n te r o f th e c irc u la r s lo t
EP1 c e n te r o f th e r ig h t o r t o p s e m ic irc le at th e rear end
EP3 c e n te r o f th e le ft o r b o tto m s e m ic irc le at th e rear end
W re tra c t level, in fa s t m o tio n
A K s lo t w a ll fin is h a llo w a n c e
A L s lo t b o tto m fin is h a llo w a n c e
Q d ire c tio n o f m o tio n
Q1 c lim b m illin g
Q2 c o n v e n tio n a l m illin g
H ty p e o f m a c h in in g
H1 ro u g h m a c h in in g
H4 fin is h in g N15 G75 ZA-15 BP12 RP80 AN70 A O 120 AK0.3 AL0.5 EP3 D5 V3 W 6
H 14 ro u g h m a c h in in g and fin is h in g N20 G79 X64 Y30 ;cycle call fo r G75 at EP3
E fe e d rate f o r p lu n g in g ______________
G 76 Cycle call on a straig ht line (hole line)
Structure of NC block
G 76 [ X /X I/X A ] [Y /Y I/Y A ] [Z /Z I/Z A ] AS D O [AR] [W ] [H]
O bligatory addresses:
A S a n g le o f th e s tra ig h t lin e re la tiv e to th e fir s t g e o m e try axis
+ c o u n te r c lo c k w is e
- c lo c k w is e
D s p a c in g o f th e c ycle c alls o n th e lin e
O n u m b e r o f c ycle ca lls o n th e line
O ptional addresses [..]:
X, XI, X A X c o o rd in a te o f th e fir s t p o in t
X a b s o lu te o r in c re m e n ta l X c o o rd in a te (G90, G91)
XI d iffe re n c e in c o o rd in a te s b e tw e e n th e c u rre n t to o l
M achining exam p le
p o s itio n a n d th e f ir s t p o in t o n th e line
X A a b s o lu te c o o rd in a te in p u t o f th e s ta rtin g p o in t
Y, Y l, Y A Y c o o rd in a te o f th e fir s t p o in t
Y a b s o lu te o r in c re m e n ta l Y c o o rd in a te (G90, G91)
Yl d iffe re n c e in c o o rd in a te s b e tw e e n th e c u rre n t to o l
p o s itio n and th e fir s t p o in t o n th e lin e A
Y A a b s o lu te c o o rd in a te in p u t o f th e s ta rtin g p o in t
Z, Zl, Z A Z c o o rd in a te o f th e fir s t p o in t
Z a b s o lu te o r in c re m e n ta l Z c o o rd in a te (G90, G91)
Zl d iffe re n c e in c o o rd in a te s b e tw e e n th e c u rre n t to o l
p o s itio n and th e fir s t p o in t on th e lin e
Z A a b s o lu te c o o rd in a te in p u t o f th e s ta rtin g p o in t
AR an g le o f ro ta tio n re la tiv e to th e p o s itiv e X axis N15 G74 ZA-5 LP34 BP20 .... ;d efinition o f longitudinal slot with
W re tra c t level, a b s o lu te G74 N20 G76 X126 Y18 Z0 AR120 D42 O3 AS150 ;cycle call
H re v e rs in g p o s itio n
H1 t o o l tra v e ls t o s a fe ty d is ta n c e b e tw e e n t w o p o s itio n s and to
th e re tra c t le vel a fte r th e la s t p o s itio n
H2 to o l tra v e ls to th e re tra c t level b e tw e e n t w o p o s itio n s
Program structure of CNC machines according to PAL
PAL cycles for milling machines
G77 Cycle call on a pitch circle (hole circle)
Structure of NC block
G77 [l/IA ] [J /J A ] [Z /Z I/Z A ] R A N /A I A I/A P O [AR] [W ] [H] [FP]
O bligatory addresses:
R ra d iu s o f p itc h c irc le
A N p o la r a n g le o f fir s t o b je c t
Al c o n s ta n t s e g m e n t a n gle
A P p o la r a n g le o f last o b je c t
O n u m b e r o f o b je c ts on th e p itc h circle
O ptional addresses [..]:
I difference in X coordinate s betw een th e circle center a nd the
startin g p o in t
IA a b s o lu te X c o o rd in a te o f th e c irc le c e n te r
J difference in Y coordinate s betw een th e circle center a nd the M ach in in g exa m p le
startin g p o in t
J A a b s o lu te Y c o o rd in a te o f th e c irc le c e n te r
Z a b s o lu te o r in c re m e n ta l in p u t v ia G90/G91
Zl diffe re n c e in Z c o o rd in a te s b etw ee n the c u rre n t to o l p o s itio n
and th e pitch circ le c enter
Z A a b s o lu te c o o rd in a te o f th e ta rg e t p o in t
AR a n g le o f ro ta tio n in d ire c tio n o f th e p o s itiv e f ir s t g e o m e try axis
Q o r ie n ta tio n o f th e o b je c t to be processed
Q1 fo rc e d ro ta tio n o f th e o b je c t Q2 fix e d o r ie n ta tio n o f th e o b je c t
W re tra c t le vel, a b s o lu te
H re tra c tin g m o tio n
H1 th e to o l tra v e ls t o th e s a fe ty d is ta n c e V a fte r c o m p le tio n
o f th e m a c h in in g process
H2 th e to o l tra v e ls to th e re tra c t level W
a fte r c o m p le tio n o f th e m a c h in in g process
H3 like H1, b u t th e t o o l tra v e ls to th e n e x t p o s itio n
on th e p itc h arc N15 G74 ZA-5 LP34 BP20 .... ;lo n g itu d in a l slot w ith G74
FP p o s itio n in g feed in G 94 o n th e p itc h arc N20 G77 R40 AN-65 AI60 AR40 0 5 IA80 JA60 ;cycle call
at H3
S tructure of NC block
M ach in in g exam p le
G 78 [l/IA ] [J/J A ] RP AP [Z /Z I/Z A ] [AR] [W ]
O bligatory addresses:
I, IA X c o o rd in a te o f th e c e n te r o f ro ta tio n
J, J A Y c o o rd in a te o f th e c e n te r o f r o ta tio n
RP ra d iu s o f th e ro ta tio n circle
A P a n g le o f ro ta tio n re la tiv e t o th e X axis
O ptional addresses [..]:
Z, Zl, Z A Z c o o rd in a te o f th e t o p edge
AR a n g le o f ro ta tio n o f th e o b je c t
re la tiv e to th e X axis
W re tra c t level N15 G72 ZA.. LP.. BR.. ;rectangular pocket w ith G72
N20 G78 IA45 JA2 RP50 AP60 AR135 ;cycle call G78