You are on page 1of 17

TO1-O10)

5.NO30 GO0 XO YO 20 EOB


Rapidly Move Go0 for the position X-0 Y-0 and Z-0
as shown in Figure as a
starting point)
6. NO35 MO3 MO8 EOB
SpindleON (MO3)and Coolant ON (M108))
7. N040 G81 X-40 Y+50 Z-13 R3 S1000 F5O EOB
(Drill Hole 1 with Drilling Canned Cycle ON)
-0 and 2

36. N185 M03 MO8 EOB


(Spindle ON (MO3) and CoolantON (MOS)
15
9
37. N190 G86 X00 YO0 Z-13
S1000 F50 EOB
(Bore Hole 9)
18eations with 14 to drill DEgner
diameter tools. multiple 5 holes at Add-in
mm
having 5 mm
thickness. Use 1200 The different
feed rate rpm spindle workpiece is MS
plate
speed and 50
mm/min
Homo position 100, 100, 50 Where tool
Is
and fixing of and
workpiece takes place workpiece changing
Hole3
Rolo 2

Hole 1 ole

Hole x
Location

30 30 50
SO Hale 3
70
90
J00 Ho

Unavailable
Notes
ate ness Use
200 Ospndle
no position peed and S0MSPet
fixing of is 100, 100, 50 Where
workpiece takes place tool and mun/min
m/onin
S14
worlkpiece changin
hanging
Hole
Hole 2
Hole 1
Holo S
Hole X Y
Location
Hole 1 10 30
0 Hole 2 30 S0
70 Hole 3 S0
90
J00 Hole 4 70 S0
Hole 5 90
R, L, P)
B,2,1,1, K,Q,P,
C a n n e d Oyde
0%,Y,A,
L,F)
G73
HS Peck
Driling
Cerned Cycie
0%,Y,A, B,2,3,R, L,F)
B,2,1,J,P,Q,R,
Raverse
Teoping

Codes G74 Caoned Cyde


(X,Y,A,

Preparatory G76
Fiae Boring
Caoned Cyde
(K,Y,A, B, Z,I,),9,R,L,F)
Codes: Biack Bore

G G77
GH0
Carsoel
Conned Gycie (Seting
0, 2,
56)
R,L, F)
Cyce (K,Y,A, R,L,F)
MIl G Codes Hotian (X,
Y,2,A,8)
GBL
Oril
Canned
Carned Cyde
B,Z,P,
(%,Y,A,
R, L, F)
1,),K,Q, P,
Pasibioning
F)
Habion(,Y,Z,A,B,
Dril/Counterbere

Rapid
Gycie(K,Y,A,B,2,
Spot
G82
Interpoltition
R, F) Hosle Canned

(x,Y,2,A,1,J,K, Peck Dril Deep


Linaar

GO Ioderpalation
Motien CW G83
Oyce CX,Y,A, B,2,),
R,L,F)
(K,Y,Z,A,I,J,K,R,F)
Canned

A,B, 2, R, L, F) R,L,F)
Circular
G02 Tapping
Notbian CCH
Interpaation
GB4
Out Cyde
Canned (X,Y,
GO3
Circulisr
G85
Bore In-Bore
Canned Cycle (x,Y,A, B,
Z,
-Rapid Out
Diel(P)(P-Secends."Hlisecoodas)

Bore In-Stop 2, R, L, F)
Cyce (X,Y,A,
GD4 GO6 B,
o nModat Retract Canoed
Exact Stop,
B, z,P, R, L, F)
In-Manuef
G09
XY Plane
Selecian (G02 or G03) G87 Bore
Mansal Retract
Canned Cyde (X,Y, A,
Cirailar Motion Devef -

K,Y,A,B,2, P,R,L,F)
G17 Bere In-
or G03) G88
Selection (G02
Circular Motion
2X Plane In-Dreel-Bore Out Carned Cycle
G18 Bore
Selectian (G02 or GO3) G89
G19
Circular Motion 1Z Piane G90
Absslute Positianing Command

Inch Coondinate Postioning Incremental Rositioning Cormmand


G20 G91
Betric Coerdinate Fositicning Coordinste System
G21 Glabal Werk
692
Thru Ret. Paint (X, Y,Z, A, 8)
Machine Zero Return Tnverse Time Feed
Mode ON
G30 G93
Hove to Location Through G28 Ref.
Point (X,Y,2,A,B) Inverse Time Feed OFF /
Feed Per Minute ON
G29 G94
Cancal G4/CA2/G141 0K,Y) Rethurn
G40 Cuter Comp
G98 Canned Cycle Initial Point

041 20 Cuter comer,tet(,Y.D) G99 Canned Cycle R Plane


Returm

G42 20 Culter Cmpain, ght (X,Y, 0)


043 Teor Length Compnn e (0,2)
Tol Lerngth Compensatbion Cancel 643/G44/G43
G49
G52 wort Ofset Ponltiening Cordinate
O53 Hachina Porsitioning Coordnste, Pion-Modal (X,Y,2,A,B)
G54 Work Citset Pasitioring Coordinate #1 (Seting 56)
G55 Work Offset Positioning Coordinate 02

G56 Work Ofset Positianlng Coordinate 93


G37 Work Ofhset Postining Coordinata 84
GS Work Ofset Positiening Coordinate 5
G59 Work Oset Positioning Coordinata 46
,,
G Carnsed Cydie
tarpalation Y, Z,A, B,F)
Mation (X, Spot Dril/Countarbore Z, 1, ), K, Q,
P,R, L, F)
Cycle (K, Y, A, 8,
G82
(,Y, Z,A,1,),
K, R, F) Deep Hele Canned
Mabian CW Peck Drial
ntarpotation K,R, F)
G83
%,Y,A,8, 2,), R,
L, F)
Hotian CCW(X,Y,Z,A,I,J,
Canved Cycie
G4 Tapping B,2,R, L, F)
nterpolation Bare Out Canned
Cyde (X, Y,A,
In
(x,Y,A, B,2,R, L,F)
-
(PoSeconds" MIiseconds) Dore
GB5
Out Canned Cycle
Bore In-SRop-Rapid
G36 B, 2,R, L, F)
Retract Canned Cyce Y,A,
p, Noo-Modal (,
(G02 or G03) In-Manusl
otionXY Piane
Selectian G87 Bore
-Hanual Retract
Canned Cyde (X, Y,A, 8,2, P,R, L, F)
Bore In-Owell
Selection (G02 or G03)
otion ZX Plane
GE8
Bore In-Dnel
- Bcre Out Canned Cycle (0%,Y,A, B, Z, P, R,L,F)
Selection (G02 or G03) GB9
otian 12 Plarne G90
Abaolute Positianing Command

sinate Positianing Ingremental Pesitioning Cammand


691
rdinate Positaning System
G92 Glabel Werik Coordirate
Y,2,A,8)
ro Retorn Thru Ref, (%,
Point
Inverse Time Feed Mode ON

cation Through G28 Raf. Point (%,Y,2,A,B)


G93
Inverse Tirma Feed OFF /
Feed Per Minute ON
G94
pCancel G41/GA/G141 (K,Y) G98 Canned Cycile Initil Point
Rehurn

n,Let0,7,0 G99 Carnned Cyde R Flane Reburn


, Righe 0%,Y,D)
341:Cuter Compensation Lef-
sation,2) Cutter is at feft skde of the Object
Corrpensation Cancel G43/G44/043

Positianing Coordinate

tioning Coardinata, Non-Modal (X,Y,Z,A,0)


Positianing Coordinate 91 (Seting 56)
Positiening Coordinate 92
Positianing Coordinate 03
ositianing Coordinate 64
ositianing Coordinate #5 G42 Cuiter Compensation Right-Cuter is at
ositioring Cordirnate 46 Right side of the Object
Ramp-ON and Ramp-OFF
Ramp-ONand Ramp-OFF

P3
P2

40

P1 p3
G41
Ramp OFF 80
20
Ramp ON

-20
. VIscellaneous Codes
S. IVIiscellaneous
Mill M Codes
Codes
MOD
Program Stop
MO1
Optional Program Stop
MO2 Program End
MO3 Spindle CR Clocoioe (5)
M04
Spindle ON Courterclodoise (5))
MOS Spindle Stop
MOS Tool Change ()
MOB Coolant C
MO9 Coolant CFF
M30 Progrem End and Resek
MB1
Chip Auger Forvard
MB3 Chip Auger Stap
M34 Coolant Spigot Posiion Down, Increment
M3S Coolant 5pigot Position Up, Decrement
M36 Pallet Part Ready
M41 Spindie Love Gear Override
M42 Spindle High Gear Override
MSD Execute Pallet Change
M83 Auto Air Jet ON
M84 Auto Air Jet OFF
MB8 Coolant Through Spindle ON
M97 Local Sub-Program Call (P,L)
M98 Sub-Program Call (P,L)
M99 Sub-Program / Routine Rehum of Loap (P)
Mill M Codes
Odes
MOD
Program Stop
MO1
Optional Program Stop
MO2
PEOgram End
MO3
Spindla O Cocsse (5)
MO4
Spindle ON Counterciockise
MOS (5))
Spindle Stop
MOS
Tool Change (T)
MOB Coolant C
MO9
Coolant CFF
M30
Program End and Reset
MB1 Chip Auger Forward
M33 Chip Auger Siap
M34 Coplant Spigot Positan
Down, Incarerment
M3S Coolant Spiget Position Up,
Decrerment
M36 Pallet Part Rendy
M41 Spindie Low Gear Overide
M42 Spindle High Gear Override
MSD Execute Palet Change
M Auto Air Jet ON
M84 Auto Air Jet OFF
MBB Coolant Through Spindle ON
M97 Local Sub-Program Call (P,L)
M98 Sub-Program Call (P,L)
M99 Sub-Program/Routine Rebum af Loop (P)
OFF YJ
Ramp 5I-30 J=0
On and
Ramp G01
R20 En Pt
6
4-5
R30 G02 G02 CW A-X=
St Pt

G01
YJ

En Pt
2-3

G02

R3
CW
R30
G02

2
X=
StPt R3
2 I-430 J=0
Ramp OFF G01
(0,0)
-20
Ramp ON

-20
I and J Coordinates

to left side of the W/P


Cuttercompensation left Cutter center shilted
G41
Cutter shilted to right side of the W/P
G42 Cultercompensation Right: center
contour profile
below- the final the
shown Assume
for the Figure machine.

part the CNC milling


program
Length
22 WriteCNC on MS plate using
Tool register
number T01,

End Mill of
finish
required to
of about 2
mm.
allowance number DO1
finish and Diameter register
number HO1
register
40 30
40
R1

10

35

40

| 25 60 60

10
A PL vertical
(vertical -20
-20
Ramp OFF- after finishing
0, the contour path -safe exit
no
cutting along x-axis =
-20 mm along x-axis -20 mm. A
Cos
40 40 30
P3(15 125) P4 (55, 125) P7 (95, 126)
PO (125, 125)
P2(0,
110
10
1s
PS (55, 110)
P (95, 110) P9 (140, 110)

60

35
P1P (140,40)
Ramp-OFF Sate exit s-20 Oot
40
aiongx-axis
3s
P10,0) 25
p11 (126-6
G41-Cutler Compensati an Left 0 50 15
IP (-20,-20)

Ramp-ON Sate enty = -20 1 10


alongx-ae
the
K a m p - 0

considers

compensation

Cutter X-axis) -20 mm

Apoint(along
(vertical
code IPto from A- P1
ON-Move
tool from No cutting
Workpiece-
Ramp ofthe After
Engagement -20 mm.
Gradual along x-axis
(y-axis) the c o n t o u r
path -safeexit
OFF-after
finishing
Ramp x-axis = -20
mm
along
0, no cutting

125)P795,125)
PO (125, 125)
a s12P4(

PR0,110 Pa(140,110)
P56,110 P (4.110)

Ramg-O Sate e t 23 35
ong-as
L ps1 (28-4
G1Cte C tLaPTO.05

Ramg-R e y
ong a s
s-20
executed
G41
when
Ramp-off
and
Ramp-On
considers
the
compensation
Cutter
(along x-axis) -20 mm
(vertical
code
tool from IP to A point from A- P1
No cutting
Workpiece -
ON-Move

Ramp
EngaRement ofthe -20 m m .
After
Gradual x-axis
-safe exit along
(y-axis) the contour path
after finishing
OFF-
-20 mm
R a m p

=
X-axis
cutting along
0, no
St Pt
PS (125, 125
Y=J 40
En.Pt Þas12P(E
125)P7(05,125)
7Pa (125, 125)
R15 pa1s1251 Pa140 110-X=|
En. Pt
P(0.310
P9(140,110
P20.110 x=l P(56.110) P(95,110)
YJ
St. Pt
I0Jm-15
X=0J=15

35

Rang-0FF 5aieel-20 40 35
dlongs-ais

Po.025 0 15
G41OutrCapesalkonLet
P(20, 20)

Rang-NSatsenty s 20 10
lengs-ais
Code Information

Unit, input in
mm
Metric
951234 G21
Cancel
G21 G40 Cutter Compensation
NO10
NO15 G40 G49 G80 G90 G80 Conned cycle OFF
OFF
NO20 G92X.Y... Z.. G49 Tool length Compensation
NO25 M06 TO1 G90 Absolute programming
NO30 GO0 X-20 Y-20 (Initial Tool Posítion) zero
G92 Set the Program zero
Set the
compensation, Tool
NO35 G43 Z10 HO1 M08 (Tool Length
above 10mm) MO6 Tool Change
NO40 M03 S1000 TO1 Tool Number
NO45 G01 2-20 F50 G00 Rapid Traverse

NO50 G41 XO D01 F25 (Cutter compensation Left, tool G43 Tool length compensation
approaches Pl and cutting with reduced feed)
M08 Coolant ON
NO55 Y110

NO60 G02 X15 Y125 10J+15 M03 Spindle ON CW

NO65 G01 X55 G01 Linear Interpolation

NO70 Y115 G41 Cutter Compensation left


G02 Circular Interpolation
61234

X95
NO75
Y125
NOBO
NO85
X125
Y100 10 J-15
G03 X150
NO90
GO1 Y35
NO95
X135 YO
N100

N105 X-20
G00 Z10
N110
MO5 M09
N115
G28XO YO
N120
M30
N125

You might also like