Vous êtes sur la page 1sur 11

Slot Milling

N10 G00 G90 X70 Y25 Z1 S800 M3


N20 Z-5
N30 G01 X20 F150
N40 G00 Z100
N50 X-25 Y50
N60 M30

N10 Spindle on clockwise rotation at 800 rev/min, tool rapid traverse to P01.
N20 Infeed in Z.
N30 Tool traverse P01 to P02, feedrate 150 mm/min.
N40/N50 Rapid traverse retraction.
N60 End of program.

N05 G0 G90 X40 Y48 Z2 S500 M3


N10 G1 Z-12 F100
N15 X20 Y18 Z-10
N20 G0 Z100
N25 X-20 Y80
N30 M2
Absolute Dimensions Program Example

N10 G90 G0 X45 Y60 Z2 T1 S2000 M3 ; Modal Absolute dimensions active


N20 G1 Z-5 F500
; circular interpolation, circle center point in absolute dimensions.
N30 G2 X20 Y35 I=AC(45) J=AC(35)
N40 G0 Z2
N50 M30

As Non-modal absolute dimensions (AC) are possible for spindle positioning (SPOS, SPOSA)
and interpolation parameters (I, J, K).
So this program use AC non-modal absolute dimensions command to access circle center point
dimensions.

Full Circle CNC Program Example

N05 G00 X10 Y25 Z1 S1250 M3


N10 G01 Z-5 F100
N15 G02 X10 Y25 I20 J0 F125
N20 G00 Z100 M5
N25 X-20
N30 M30

CNC Program Sample Code


N10 T5 M06
N20 G90 G54 G00 X70. Y80.
N30 S1451 M03
N40 G43 H05 Z50. M08
N50 G83 R2. Z-25. Q2. F80. L0
N60 G70 I55. J0. L6
N70 G80 G00 Z50. M09

G72 Bolt Holes Along an Angle Format


G72 I J L

I – Distance between bolt holes along an angle


J – Angle of holes from three o’clock, 0 to 360.0 degrees CCW.
L – Number of evenly spaced holes along an angle

CNC Program Example G72 Bolt Hole Along an Angle

G72 Bolt Hole Along an Angle

N10 T3 M06
N20 G90 G54 G00 X0.65 Y-1.5 (Start position of bolt holes along an angle)
N30 S1451 M03
N40 G43 H03 Z1. M08
N50 G81 G99 Z-0.45 R0.1 G72 I0.5 J20. L7 F8.
N60 G80 G00 Z1. M09
N70 G53 G49 Z0. M05
N80 M30
G Code Example Mill

O1000
T1 M6
G0 G90 G40 G21 G17 G94 G80
G54 X-75 Y-25 S500 M3 (Start Point)
G43 Z100 H1
Z5
G1 Z-20 F100
X-50 M8 (Position 1)
Y0 (Position 2)
X0 Y50 (Position 3)
X50 Y0 (Position 4)
X0 Y-50 (Position 5)
X-50 Y0 (Position 6)
Y25 (Position 7)
X-75 (Position 8)
G0 Z100
M30

Simple G Code Example Mill


Simple G Code Example

O1000
T1 M6
(Linear / Feed - Absolute)
G0 G90 G40 G21 G17 G94 G80
G54 X-75 Y-75 S500 M3 (Position 6)
G43 Z100 H1
Z5
G1 Z-2 F100
X-40 (Position 1)
Y40 M8 (Position 2)
X40 (Position 3)
Y-40 (Position 4)
X-75 (Position 5)
Y-75 (Position 6)
G0 Z100
M30

Complete G Code List


List of G-codes commonly found on Fanuc and similarly designed CNC controls
G Code
Group Function
A B C

G00 G00 G00 Positioning (Rapid traverse)

G01 G01 G01 Linear interpolation (Cutting feed)


01
G02 G02 G02 Circular interpolation CW or helical interpolation CW

G03 G03 G03 Circular interpolation CCW or helical interpolation CCW

G04 G04 G04 Dwell

G07.1(G107) G07.1(G107) G07.1(G107) Cylindrical interpolation

G08 G08 G08 00 Advanced preview control

G10 G10 G10 Programmable data input

G11 G11 G11 Programmable data input cancel

G12.1(G112) G12.1(G112) G12.1(G112) Polar coordinate interpolation mode


21
G13.1(G113) G13.1(G113) G13.1(G113) Polar coordinate interpolation cancel mode

G17 G17 G17 X Y plane selection

G18 G18 G18 16 Z X plane selection

G19 G19 G19 Y Z plane selection

G20 G20 G70 Input in inch


06
G21 G21 G71 Input in mm

G22 G22 G22 Stored stroke check function on


09
G23 G23 G23 Stored stroke check function off
G25 G25 G25 Spindle speed fluctuation detection off
08
G26 G26 G26 Spindle speed fluctuation detection on

G27 G27 G27 Reference position return check

G28 G28 G28 Return to reference position


00
G30 G30 G30 2nd, 3rd and 4th reference position return

G31 G31 G31 Skip function

G32 G33 G33 Thread cutting


01
G34 G34 G34 Variable—lead thread cutting

G36 G36 G36 Automatic tool compensation X


00
G37 G37 G37 Automatic tool compensation Z

G40 G40 G40 Tool nose radius compensation cancel

G41 G41 G41 07 Tool nose radius compensation left

G42 G42 G42 Tool nose radius compensation right

G50 G92 G92 Coordinate system setting or max. spindle speed setting
00
G50.3 G92.1 G92.1 Workpiece coordinate system preset

G50.2(G250) G50.2(G250) G50.2(G250) Polygonal turning cancel


20
G51.2(G251) G51.2(G251) G51.2(G251) Polygonal turning

G52 G52 G52 Local coordinate system setting


00
G53 G53 G53 Machine coordinate system setting

G54 G54 G54 Workpiece coordinate system 1 selection

G55 G55 G55 Workpiece coordinate system 2 selection

G56 G56 G56 Workpiece coordinate system 3 selection


14
G57 G57 G57 Workpiece coordinate system 4 selection

G58 G58 G58 Workpiece coordinate system 5 selection

G59 G59 G59 Workpiece coordinate system 6 selection

G65 G65 G65 00 Macro calling

G66 G66 G66 Macro modal call


12
G67 G67 G67 Macro modal call cancel

G68 G68 G68 Mirror image for double turrets ON


04
G69 G69 G69 Mirror image for double turrets OFF
G70 G70 G72 Finishing cycle

G71 G71 G73 Stock removal in turning

G72 G72 G74 Stock removal in facing

G73 G73 G75 00 Pattern repeating

G74 G74 G76 End face peck drilling

G75 G75 G77 Outer diameter/internal diameter drilling

G76 G76 G78 Multiple threading cycle

G80 G80 G80 Canned cycle for drilling cancel

G83 G83 G83 Cycle for face drilling

G84 G84 G84 Cycle for face tapping

G86 G86 G86 10 Cycle for face boring

G87 G87 G87 Cycle for side drilling

G88 G88 G88 Cycle for side tapping

G89 G89 G89 Cycle for side boring

G90 G77 G20 Outer diameter/internal diameter cutting cycle

G92 G78 G21 01 Thread cutting cycle

G94 G79 G24 Endface turning cycle

G96 G96 G96 Constant surface speed control


02
G97 G97 G97 Constant surface speed control cancel

G98 G94 G94 Per minute feed


05
G99 G95 G95 Per revolution feed

- G90 G90 Absolute programming


03
- G91 G91 Incremental programming

- G98 G98 Return to initial level


11
- G99 G99 Return to R point level
EXAMPLE JOB SHEET 1

EXAMPLE JOB SHEET 2


EXAMPLE JOB SHEET 3
EXAMPLE JOB SHEET 1

N1 T01 D01 M491


N2 G00 X0 Z1
N3 G01 G96 G41 Z0 F2 S140
N4 G01 X2 CHF=0.125 F0.2
N5 G01 Z-1.125
N6 G02 X3.5 Z-1.875 CR=0.75
N7 G01 X3.75 CHF=0.125
N8 G01 Z-3.575
N9 G01 X5 Z-3.875
N10 G01 Z-4.6
N11 G00 X20 Z20 G40
N12 T02 D02 M491
N13 G00 G97 S500 X4 Z-2.825
N14 G01 X3.85 F1
N15 G01 X3.35 F0.15
N16 G01 X3.85 F0.5
N17 G00 X4
N18 G00 X20 Z20
N19 M30

Vous aimerez peut-être aussi