+ All Categories
Home > Documents > ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code...

ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code...

Date post: 30-Jan-2018
Category:
Upload: lyanh
View: 315 times
Download: 13 times
Share this document with a friend
24
ALL CNC “G & M” CODES FANUC G code of lathe FANUC G code of miller FANUC M operation code SIEMENS G code of miller SIEMENS802S/CM canned cycle SIEMENS802DM/810/840DM canned cycle SIEMENS G code of lathe SIEMENS 801 802S/CT 802SeT canned cycle SIEMENS 802D 810D/840D canned cycle HNC G code o f lathe HNC G code of miller HNC M command KND100 G code of miller KND100 G code of lathe KND100 M command GSK980 G code of lathe GSK980T M command GSK928 TC/TE G code GSK928 TC/TE M command GSK990M G code GSK990M G code GSK928MA G code GSK928MA M command Mitsubishi E60 G code of miller DASEN 3I G code of miller DASEN 3I G code of lathe WA G code of lathe WA M command WA G code of miller WA M command RENHE 32T G code RENHE 32T M command SKY 2003N G code SKY 2003N M command Page 1
Transcript
Page 1: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

FANUC G code of lathe FANUC G code of miller FANUC M operation code SIEMENS G code of miller SIEMENS802S/CM canned cycle SIEMENS802DM/810/840DM canned cycle SIEMENS G code of lathe SIEMENS 801 、 802S/CT 、 802SeT canned cycle SIEMENS 802D 、 810D/840D canned cycle HNC G code o f lathe HNC G code of miller HNC M command KND100 G code of miller KND100 G code of lathe KND100 M command GSK980 G code of lathe GSK980T M command GSK928 TC/TE G code GSK928 TC/TE M command GSK990M G code GSK990M G code GSK928MA G codeGSK928MA M commandMitsubishi E60 G code of miller DASEN 3I G code of miller DASEN 3I G code of latheWA G code of lathe WA M command WA G code of miller WA M command RENHE 32T G code RENHE 32T M command SKY 2003N G code SKY 2003N M command

Page 1

Page 2: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

FANUC G code of lathe G code Explanation

G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical interpolation CW G03 Circular interpolation/Helical interpolation CCW G04 DwellG09 Exact stop G20 Input in inch G21 Input in mm G22 Stored stroke check function on G23 Stored stroke check function off G27 Check reference point returnG28 Automatic return to reference position G29 Automatic return from reference position G30 2nd reference position return G32 Thread cutting G40 Cutter compensation cancel G41 Cutter compensation left G42 Cutter compensation right G50 Scaling cancel G52 Local coordinate system setting G53 Machine coordinate system selection G70 Finish maching cycle G71 Inside and outside diameter rough cutting cycle G72 Step rough cutting cycle G73 Pattern repeating G74 Peck dring cycle-Z axis G75 Grooving in X axis G76 Thread cutting cycle G80 Canned cycle cancel G83 Peck drilling cycle G84 Tapping cycle G85 Boring cycle G87 Back drilling cycle G88 Back tapping cycle G89 Back boring cycle G90 Cutting cycle ‘A' G92 Thread cutting cycle G94 (step)cutting cycleG96 Constant surface speed control G97 Constant surface speed control cancel G98 Feed per minute G99 Feed per rotation

Support macro programming

Page 2

Page 3: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

FANUC G code of milleG code Explanation

G00 Positioning(rapid moveing) G01 Linear interpolation G02 Circular interpolation/Helical interpolation CW G03 Circular interpolation/Helical interpolation CCW G04 Dwell

G15/G16 Polar coordinates command G17 XpYp plane selection G18 ZpXp plane selection G19 YpZp plane selection G28 Return to reference position G30 2nd, 3rd and 4th reference position return *G40 Cutter compensation cancel G41 Cutter compensation left G42 Cutter compensation right *G43 Tool length compensation + direction *G44 Tool length compensation – direction G49 Tool length compensation cancel *G53 Machine coordinate system selection G54 Workpiece coordinate system 1 selection G55 Workpiece coordinate system 2 selection G56 Workpiece coordinate system 3 selection G57 Workpiece coordinate system 4 selection G58 Workpiece coordinate system 5 selection G59 Workpiece coordinate system 6 selection G73 Rapid deep drilling cycle G74 Left-spiral cutting circle G76 Fine boring cycle *G80 Canned cycle cancel G81 Drilling cycle, spot boring G82 Counter boring cycle G83 Deep hole drilling cycle G84 Right Helical cutting cycle G85 Boring cycle G86 Boring cycle G87 Counter boring cycle G88 Boring cycle G89 Boring cycle *G90 Absolute command G91 Increment command G92 Setting for work coordinate system *G98 Return to initial point in canned cycle *G99 Return to R point in canned cycle G50G51

Zoom

G68G69

Coordinate rotation

Page 3

Page 4: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

Support macro programming

FANUC M operation codeM code Explanation

M00 Program stop M01 Optional stop M02 End of programM03 Spindle on CWM04 Spindle on CCWM05 Spindle stop M06 Tool change M08 Coolant on M09 Coolant off M30 Program end and reset M48 Cancel M49 M49 Bypass Override M94 Mirror image cancel M95 Mirrorimage of X axis M96 Mirrorimage of Y axis M98 Subprogram call M99 Subprogram end

SIEMENS G code of millerAddress Explanation

D Tool offset number F Feedrate(Dwell time block with G4)G G function (preparatory function)

G0 Linear interpolation at rapid travG1 rse rate

Linear interpolation

G2 Circular interpolation CW G3 Circular interpolation CCW CIP Circular interpolation via intermediate point G33 Thread cutting with constant pitch

G331 Thread interpolation G332 Thread interpolation – retraction

CT Transitional circular interpolation with tangent G4 Rapid moving G63 Rapid moving G74 Reference point approach G75 Fixed-point approach G25 Lower spindle speed limitation G26 Upper spindle speed limitation

G110 Pole specification, relative to the last programmed set position G110 Pole specification, relative to the origin of the current workpiece coordinate system G120 Pole specification, relative to the POLElast validG17* X/Y plane

Page 4

Page 5: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

G18 Z/X plane G19 Y/Z plane G40 Tool radius compensation OFF G41 Tool radius compensation left of the contour G42 Tool radius compensation right of the contour

G500 Settable work offset OFF G54 1st settable work offset G55 2st settable work offset G56 3st settable work offset G57 4st settable work offset G58 5st settable work offset G59 6st settable work offset G53 Non-modal skipping of the settable work offset G60* Exact stop G70 Inch dimension input G71* Metric dimension data input G700 Inch dimension data input; also for feedrate FG710 Metric dimension data input; also for feedrate FG90* Absolute dimension data input G91 Incremental dimension data input G94* Feed F in mm/min G95 Feedrate F in mm/spindle revolutions

G901 Feed offset “on” in arcG900 Feed offset “off”G450 Transition circle G451 Intersection

I Interpolation parameters J Interpolation parameters K Interpolation parameters I1 Intermediate point for circular interpolation J1 Intermediate point for circular interpolation K1 Intermediate point for circular interpolation L Subroutine; name and call M Miscellaneous function

M0 Programmed stop M1 Optional stop M2 End of program M3 CW rotation of spindle M4 CCW rotation of spindle M5 Spindle stop M6 Tool change N Block number of an auxiliary block : Block number of a main block P Number of subroutine passes

RET End of subroutine S Spindle speed, Dwell time in block with G4 T Tool number X Axis Y Axis Z Axis

CALL Indirect cycle call CHF Chamfer; general use CHR Chamfer; in the contour definition CR Radius for circular interpolation

GOTOB GoBack instruction GOTOF GoForward instruction

RND Rounding

Page 5

Page 6: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

Support parameter programming

SIEMENS802S/CM canned cycleCycle Explanation

LCYC82 Drilling, counterbore machiningLCYC83 Deep-hole drilling LCYC840 Thread cutting with compensate clamp LCYC84 Thread cutting without compensate clamp LCYC85 Boring LCYC60 Linearity holes permutation LCYC61 Arc holes permutation LCYC75 Rectangular channel,keyway,rotundity groove milling

SIEMENS802DM/810/840DM canned cycleCycle Explanation

CYCLE82 Drilling, counterboring CYCLE83 Deep-hole drilling CYCLE84 Rigid tappingCYCLE85

Reaming1 (boring-out 1)

CYCLE86 Boring CYCLE88 Drilling with Stop CYCLE71 Endface milling LONGHOLE Long hole POCKET4 Circular pocket POCKET3 Square pocket SLOT1 Milling a slot SLOT2 Milling a circumferential slot

SIEMENS G code of latheAddress Explanation

D Tool offset number F F Feedrate(Dwell time block with G4)G G function (preparatory function)

G0 Rapid traverse G1 Linear interpolation G2 Circular interpolation CW G3 Circular interpolation CCW

G33 Thread cutting with constant pitch G4 Rapid moving

G63 Rapid moving G74 Reference point approach G75 Fixed-point approach G17 (when center-drilling, TRANSMIT milling required)G18* Z/X plane G40 Tool radius compensation OFF G41 Tool radius compensation left of the contour G42 Tool radius compensation right of the contour

G500 Settable work offset OFF G54 1st settable work offset G55 2st settable work offset G56 3st settable work offset G57 4st settable work offset G58 5st settable work offset G59 6st settable work offset

Page 6

Page 7: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

G53 Non-modal skipping of the settable work offset G70 Inch dimension input G71* Metric dimension data input G90* Absolute dimension data input G91 Incremental dimension data input G94* Feed F in mm/min G95 Feedrate F in mm/spindle revolutions

I Interpolation parameters I1 Intermediate K1 Intermediate L Subroutine; name and call M Miscellaneous function

M0 Programmed stop M1 Optional stop M2 End of program

M30   M17   M3 CW rotation of spindle M4 CCW rotation of spindle M5 Spindle stop M6 Tool change N Block number of an auxiliary block : Block numbe

P of a main block Number of subroutine passes

RET End of subroutine S Spindle speed, Dwell time in block with G4 T Tool number X Axis Y Axis Z Axis

AR Aperture angle for circular interpolation CALL Indirect cycle call CHF Chamfer; general use CHR Chamfer; in the contour definition CR Radius for circular interpolation

GOTOB GoBack instruction GOTOF GoForward instruction

RND Rounding Support parameter programming

SIEMENS 801、802S/CT、 802SeT canned cycleCycle Explanation

LCYC82 Drilling, counterboring LCYC83 Deep-hole drilling LCYC840 Tapping with compensating chuck LCYC84 Tapping withLCYC85 ut compensating chuck Boring

LCYC93 GrooveLCYC95 Cutting with relief cut LCYC97 Thread cutting

Page 7

Page 8: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

SIEMENS 802D、810D/840D canned cycleCycle Explanation

CYCLE1

Face milling CYCLE82 Drilling, counterboring YCLE83 Deep-hole drilling CYCLE84 Rigid tappingCYCLE85 ReamingCYCLE86 BoringCYCLE88 Boring with stopCYCLE93 GrooveCYCLE94 Undercut DIN76 (forms E and F), finishingCYCLE95 Cutting with relief cut CYCLE97 Thread cutting

HNC G code of latheG code Explanation

G00 PositioningG01 Linear interpolation G02 Circular interpolation/Helical interpolation CWG03 Circular interpolation/Helical interpolation CCWG04 DwellG09 Exact stop G20 Input in inch G21 Input in mm G22 Stored stroke check function on G23 Stored stroke check function off G27 Reference position return check G28 Return to reference position G29 Return from reference position G30 2nd reference position return G32 Thread cutting G36 Diameter programming G37 Radius programming G40 Cutter compensation cancel G41 Cutter compensation leftG42 Cutter compensation rightG53 Machine coordinate system selection

G54—G59 Coordinate system selection G71 Inside and outside diameter rough cutting cycle G72 Step rough cutting cycle G73 Pattern repeating G76 Thread cutting cycle G80 Inside and outside diameter cutting cycle G81 Face cutting canned cycle G82 Thread cutting canned cycle G90 Absolute command G91 Increment command G92 Setting for work coordinate system G96 Constant surface speed control G97 Constant surface speed control cancel G94 Feeding rate per minute G95 Feeding rate per round

Support parameter and macro programming

HNC G code of miller

Page 8

Page 9: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

G code Group Explanation*G00

01

Positioning(rapid moveing)G01 Linear interpolation G02 Circular interpolation/Helical interpolation CW G03 Circular interpolation/Helical interpolation CCW G04 00 Dwell G07 16 Imaginary axis appointing G09 00 Stop checkout *G17

02XpYp plane assignment

G18 XpZp plane assignment G19 YpZp plane assignment G20

08Input in inch

*G21 Input in mm G22 Pulse equivalent G24

03Mirrorimage open

*G25 Mirrorimage close G28

00Return to reference position

G29 Return from reference position *G40

07Cutter compensation cancel

G41 Cutter compensation left G42 Cutter compensation right G43

08Tool length compensation + direction

G44 Tool length compensation – direction *G49 Tool length compensation cancel *G50

04Zoom off

G51 Zoom on G52

00Local coordinate system setting

G53 Machine coordinate system selection *G54

14

Workpiece coordinate system 1 selection G55 Workpiece coordinate system 2 selection G56 Workpiece coordinate system 3 selection G57 Workpiece coordinate system 4 selection G58 Workpiece coordinate system 5 selection G59 Workpiece coordinate system 6 selection G60 00 Uni-directional positioning *G61

12Exact stop

G64 Continuous mode G68

05Rotation

*G69 Rotation cancel G73

09

Peck drilling cycle G74 Left-spiral cutting circle G76 Fine boring cycle *G80 Canned cycle cancel G81 Drilling cycle, spot boring cycle G82 Counter boring cycle G83 Deep-hole drilling cycle G84 Right spin cutting cycle G85 Boring cycle G86 Boring cycle G87 Counter-boring cycle G88 Boring cycle G89 Boring cycle *G90

03Absolute command

G91 Increment command G92 00 Setting for work coordinate system *G94

14Feeding per minute

G95 Feeding per round

Page 9

Page 10: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

*G9810

Return to initial point in canned cycle G99 Return to R point in canned cycle

Support parameter and macro programming

HNC M commandsM code Explanation

M00 Program stop M01 Optional stop M02 End of programM03 Spindle on CWM04 Spindle on CCWM05 Spindle stop M06 Tool change M07 Coolant on M09 Coolant off M98 Subprogram call M99 Subprogram end

KND100 G code of millerG code Group Explanation

G00

01

Positioning (rapid moving)G01 Linear interpolation G02 Circular interpolation/Helical interpolation CW G03 Circular interpolation/Helical interpolation CCW G04 00 Dwell G17

02XpYp plane selection

G18 ZpXp plane selectionG19 YpZp plane selection G28

00Return to reference position

G29 Return from reference position *G40

07Cutter compensation cancel

G41 Cutter compensation left G42 Cutter compensation right *G43

08Tool length compensation + direction

*G44 Tool length compensation – direction G49 Tool length compensation cancel *G53

14

Machine coordinate system selection G54 Workpiece coordinate system 1 selection G55 Workpiece coordinate system 2 selectionG56 Workpiece coordinate system 3 selection G57 Workpiece coordinate system 4 selection G58 Workpiece coordinate system 5 selection G59 Workpiece coordinate system 6 selection G73

09

Peck drilling cycle G74 Left-spiral cutting circle G76 Fine boring cycle *G80 Canned cycle cancel G81 Drilling cycle, spot boring cycle G82 Drilling cycle G83 Peck drilling cycle G84 Tapping cycle G85 Boring cycle G86 Drilling cycle G87 Counter boring cycle G88 Boring cycle G89 Boring cycle *G90 03 Absolute command

Page 10

Page 11: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

G91 Increment command G92 00 Setting for work coordinate system *G98

10Return to initial point in canned cycle

*G99 Return to R point in canned cycle

KND100 G code of lathe G code Group Explanation

G00

01

PositioningG01 Linear interpolation G02 Circular interpolation/Helical interpolation CWG03 Circular interpolation/Helical interpolation CCWG04

00Dwell

G10 Deviant setting G20

06Input in inch

G21 Input in mm G27

00

Reference position return check G28 Return to reference position G29 Return from reference position G31 Jumping feature G32 01 Thread cutting G36 Automatic work offset measurement of X axis G37 Automatic work offset measurement of Z axis G40

07Cutter compensation cancel

G41 Cutter compensation leftG42 Cutter compensation rightG50

00Coordinate system setting

G54 Workpiece coordinate system G55---G59 Workpiece coordinate system

G70

00

Finish maching cycle G71 Inside and outside diameter rough cutting cycle G72 Step rough cutting cycle G73 Pattern repeating G74 Peck dring cycle-Z axis G75 Inside and outside circle cutting cycle G76 Thread cutting cycle G90

01Inside and outside diameter cutting cycle

G92 Thread cutting cycle G94 Step cutting cycle G96

12Constant surface speed control

G97 Constant surface speed control cancel G98

05Feed per minute

G99 Feed per rotation

KND100 M command M code Explanation

M00 Program stop M01 Optional stop M02 End of programM03 Spindle on clockwise(CW)M04 Spindle on counterclockwise(CCW)M05 Spindle stop M06 Tool change M08 Coolant on M09 Coolant off M10 clamp M11 unclampM32 Lubrication on

Page 11

Page 12: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

M33 Lubrication off M98 Subprogram call M99 Subprogram end

GSK980 G code of latheG code Group Function

G00

01

Positioning(rapid moveing) *G01 Linear interpolation G02 Circular interpolation/Helical interpolation CW G03 Circular interpolation/Helical interpolation CCW G04

00Dwell, Exact stop

G28 Return to reference position G32 01 Thread cutting G50 00 Coordinate system setting G65 00 Macroprogram command G70

00

Finish machining cycle G71 Excircle rough turn cycle G72 Endface rough turn cycle G73 Occlude cutting cycle G74 Endface deep hole processing cycle G75 Excircle, inner circle nicking cycle G90

01Excircle, inner circle turning cycle

G92 Thread cutting cycle G94 Endface cutting cycle G96

02Constant line speed on

G97 Constant line speed off *G98

03Feeding per minute

G99 Feeding per round Support parameter and macro programming

GSK980T M commandM code Explanation

M03 Spingdle on CW M04 Spingdle on CCW M05 Spingdle stop M08 Coolant on M09 Coolant off(no output signal) M32 Lubrication on M33 Lubrication off(no output signal) M10 Standby M11 Standby tip(no output signal) M00 Program stopM30 program end and reset

GSK928 TC/TE G codeG code Function

G00 Positioning(rapid moveing) *G01 Linear interpolation G02 Circular interpolation/Helical interpolation CW G03 Circular interpolation/Helical interpolation CCW G32 Tapping cycle G33 Thread cutting G71 Excircle rough turn cycle G72 Endface rough turn cycle G74 Endface deep hole processing cycle G75 Excircle, inner circle nicking cycle G90 Excircle, inner circle turning cycle

Page 12

Page 13: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

G92 Thread cutting cycle G94 External and internal cone face cycle G22 Local loop start G80 Local loop end

*G98 Feeding per minute G99 Feeding per round G50 Set absolute coordinate system of workpiece G26 X、Z axis return to reference point G27 X axis return to reference po

G29nt Z axis return to reference point

Support parameter and macro programming

GSK928 TC/TE M commandM code Explanation

M03 Spindle on CW M04 Spindle on CCW M05 Spindle stop M08 Coolant on M09 Coolant off(no output signal) M32 Lubrication on M33 Lubrication off(no output signal) M10 Standby M11 Standby tip(no output signal) M00 Program stop M30 Program end and reset

GSK990M G codeG code Group Explanation

G00

01

Positioning(rapid moveing)G01 Linear interpolation G02 Circular interpolation/Helical interpolation CW G03 Circular interpolation/Helical interpolation CCW G04 00 Dwell G17

02XY plane assignment

G18 XZ plane assignment G19 YZ plane assignment G28

00Return to orgin

G29 Return from reference point *G40

07Cutter compensation cancel

G41 Cutter compensation left G42 Cutter compensation right *G43

08Tool length compensation + direction

*G44 Tool length compensation – direction G49 Tool length compensation cancel *G53

14

Machine coordinate system selection G54 Workpiece coordinate system 1 selection G55 Workpiece coordinate system 2 selection G56 Workpiece coordinate system 3 selection G57 Workpiece coordinate system 4 selection G58 Workpiece coordinate system 5 selection G59 Workpiece coordinate system 6 selection G73 09 Peck drilling cycle G74 Left-spiral cutting circle G76 Fine boring cycle *G80 Canned cycle cancel

Page 13

Page 14: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

G81 Drilling cycle, spot boring cycle G82 Drilling cycleG83 Peck drilling cycle G84 Tapping cycle G85 Boring cycle G86 drilling cycle G87 Counter bring cycle G88 Boring cycle G89 Boring cycle *G90

03Absolute command

G91 Increment command G92 00 Setting for work coordinate system *G98

10Return to initial point in canned cycle

*G99 Return to R point in canned cycle

GSK990M M command

M code xplanation

M00 Program stop M01 Optional stop M02 End of programM03 Spindle on CWM04 Spindle on CCWM05 Spindle stop M06 Tool change M08 Coolant on M09 Coolant off M10 Clamp M11 Unclamp M32 Lubrication on M33 Lubrication off M98 Subprogram call M99 Subprogram end

GSK928MA G codeG code Explanation

G00 Positioning(rapid moveing)G1 Linear interpolation

G02 Circular interpolation/Helical interpolation CW G03 Circular interpolation/Helical

G04nterpolation CCW Time delay

G17 XY plane assignment G18 XZ plane assignment G19 YZ plane assignment G28 Return to orgin G29 Return from reference point *G40 Cutter compensation cancel G41 Cutter compensation left G42 Cutter compensation right *G43 Tool length compensation + direction *G44 Tool length compensation – directionG49 Tool length compensation cancel *G53 Machine coordinate system selection

Page 14

Page 15: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

G54 Workpiece coordinate system 1 selection G55 Workpiece coordinate system 2 selection G56 Workpiece coordinate system 3 selectionG57 Workpiece coordinate system 4 selection G58 Workpiece coordinate system 5 selection G59 Workpiece coordinate system 6 selection G73 Peck drilling cycle G74 Left-spiral cutting circle G80 Canned cycle cancel G81 Peck drilling cycle G82 Drilling cycle G83 Peck drilling cycle G84 Right-spiral tapping circle G85 Broing cycle G86 Dring cycle G89 Broing cycle *G90 Absolute command G91 Increment command G92 Setting for work coordinate system *G98 Return to initial point in canned cycle *G99 Return to R point in canned cycle

G10 G11 Groove inner-rough mill for groove of circle G12 G13 Full circle inner-finish mill G14 G15 Excircle finish mill

G22 System parameter operation(mode) G23 Parameter values jumping judgement G27 Mechanical zero detection G28 Rapid fixing to program via mesial point G31 Rapid returning to R reference face

G34 G35 Rectangle groove inner- finish milling G38 G39 Rectangle outside- finish milling

GSK928MA M commandM

code Explanation

M0Program stop. spindle stop , coolant off and point to next segment after finish other commands. Stop doing more procession and wait to press RUN to continue the program running.Stop doing more procession and wait to press RUN to continue the program running.

M2 End of program. spindle stop, coolant off, cancel G93 coordinate offset and cutter offset, then return to start program

M3 Spindle on CW

M4 Spindle on CCW

M5 Spindle stop

M8 Cooling pump on

M9 Cooling pump off

M12 Dwell : continue running till press “run”

M30 Program end

M32 Lubrication on;

Page 15

Page 16: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

M33 Lubrication off;

M98 Subprogram call

M99 Subprogram end

Mitsubishi E60 miller G codeG code Group Explanation ※G00

01

Positioning(rapid moveing)*G01 LineG02r

interpolation Circular interpolation/Helical interpolation CW

G03 Circular interpolation/Helical interpolation CCWG04

00

Dwell, Exact stop G05 High-speed processing mode G09 Exact stop check G10 Program parameter input /repair input G11 Program parameter input cancel G12 Circle cutting CWG13 Circle cutting CCW*G17

02Plane selection X-Y

※G18 Plane selection Z-XG19 Plane selection Y-Z※G20

06Inch instruction

G21 Metric instruction G27

00

Reference origin check G28 Reference origin revert G29 Initial point revert G30 2nd~4nd reference origin revert G31 Jumping motivation G33 01 Thread cutting G37

00Tool length automatic mensuration

G38 Positive value of cutter radius compensation appointing G39 Tool diameter offset and corner arc offset *G40

07Cutter radius compensation cancel

G41 Cutter radius positive compensation left G42 Cutter radius positive compensation right G43

08Positive quantity of cutter length compensation(+)

G44 Positive quantity of cutter length compensation(-) *G49 Positive quantity of cutter length compensation cancel G52 00 Local coordinate system setting G53 Machine coordinate system selection *G54 12 Workpiece coordinate system 1 selection

G code Group Explanation G55 12 Workpiece coordinate system 2 selection G56 Workpiece coordinate system 3 selection G57 Workpiece coordinate system 4 selection G58 Workpiece coordinate system 5 selection G59 Workpiece coordinate system 6 selection G60 00 Position fixing in single direction G61 13 Exact stop check mode G62 Auto adjusting for corner feed G63 Taping mode

Page 16

Page 17: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

*G64 Cutting mode G73 09 Canned cycle(stepping cycle) G74 Canned cycle(reverse taping) G76 Canned cycle(finish boring) *G80 Canned cycle cancel G81 Canned cycle(drill/lead hole) G82 Canned cycle(drill / counting boring) G83 Canned cycle(gun drilling) G84 Canned cycle(taping)G85 Canned cycle(boring) G86 Canned cycle(boring) G87 Canned cycle(counter boring) G88 Canned cycle(boring)G89 Canned cycle(boring)*G90 03 Absolute value instruction *G91 Incremental value instruction G92 00 Machine coordinate system setting G93 05 Feed CCW *G94 Un-synchronization cutting (feed per minute) *G95 synchronization cutting(feed per round)*G96 17 Round speed control on *G97 Round speed control off *G98 10 Canned cycle initial point revert G99 Canned cycle R point revert

Support parameter and macro programming

DASEN 3I miller G codeG code Group Explanation ※G00

01

Positioning(rapid moveing)*G01 Linear interpolation G02 Circular interpolation/Helical interpolation CWG03 Circular interpolation/Helical interpolation CCWG04

00

Dwell G05 High-speed processing mode G09 Exact stop check G10 Program parameter input /repair input G11 Program parameter input cancel G12 Circle cutting CWG13 Circle cutting CCW*G17

02Plane selection X-Y

※G18 Plane selection Z-XG19 Plane selection Y-Z※G20

06Inch instruction

G21 Metric instruction G27

00

Reference origin check G28 Reference origin revert G29 Initial point revert G30 2nd~4nd reference origin revertG31 Jumping motivation G33 01 Thread cutting G37

00Tool length automatic mensuration

G38 Cutter radius compensation appointting G39 Cutter radius offset and corner arc offset *G40

07Cutter radius offset cancel

G41 Cutter radius offset left G42 Cutter radius offset right G43 08 Cutter length offset(+)

Page 17

Page 18: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

G44 Cutter length offset(-) *G49 Cutter length offset cancel G52

00Local coordinate system setting

G53 Machine coordinate system selection *G54 12 Workpiece coordinate system 1 selection G55 12 Workpiece coordinate system 2 selection G56 Workpiece coordinate system 3 selection G57 Workpiece coordinate system 4 selection G58 Workpiece coordinate system 5 selection G59 Workpiece coordinate system 6 selection G60 00 Position fixing in single direction G61 13 Exact stop check mode G62 Auto adjusting for corner feed G63 Taping mode *G64 Cutting mode G73 09 Canned cycle(stepping cycle) G74 Canned cycle(reverse taping) G76 Canned cycle(finish boring) *G80 Canned cycle cancel G81 Canned cycle(drill/lead hole) G82 Canned cycle(drill / counting boring)G83 Canned cycle(gun drilling) G84 Canned cycle(taping) G85 Canned cycle(boring) G86 Canned cycle(boring) G87 Canned cycle(counter boring) G88 Canned cycle(boring) G89 Canned cycle(boring) *G90 03 Absolute value instruction *G91 Incremental value instruction G92 00 Machine coordinate system setting G93 05 Feed CCW *G94 Un-synchronization cutting(feed per minute) *G95 Synchronization cutting(feed per round) *G96 17 Round speed control on *G97 Round speed control off *G98 10 Canned cycle initial point revert G99 Canned cycle R point revert

Support parameter and macro programming

DASEN 3I lathe G codeG code Group Explanation※G00

01

Positioning(rapid moveing) ※G01 Linear interpolationG02

Circular interpolation/Helical interpolation CW

G03 Circular interpolation (CCW)G04

00

Dwell G09 Exact stop check G10 Program parameter input /repair input G11 Program parameter input /repair input cancel ※G17

02X-Y Plane selection

※G18 Z-X Plane selection ※G19 Y-Z Plane selection ※G20

06Inch instruction

※G21 Metric instruction

Page 18

Page 19: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

G27

00

Reference point revert check G28 Automatic reference point revert G29 Revert from reference point G30 2nd,3nd,4nd reference poinG31

revert umping motivation

G3301

Thread cutting G34 Changeable thread cutting G37 00 Tool length automatic mensuration *G40

07

Cutter radius compensation cancel G41 Cutter radius compensation leftG42 Cutter radius compensation rightG46 Cutter radius compensation(automatic direction selection)ONG52

00Local coordinate system selection

G53 Machine coordinate system selection ※G54

12

Workpiece coordinate system selection 1G55 Workpiece coordinate system selection 2G56 Work

G57iece coordinate system selection

3Workpiece coordinate system selection 4

G58 Workpiece coordinate system selection 5G59 Workpiece coordinate system selection 6G61

13

Exact stop check mode G62 Auto adjusting for corner feed G63 Taping mode *G64 Cutting mode G70

09

Finish cutting cycle G71 Straight turning rough machining cycle G72 Face rough cutting cycle G73 Spindle mesa moving in rough machining cycle G74 Face cutting cycle G75 Straight turning cycle G76 Thread cuttinG77

double-cycle Appurtenant cutting cycle

G78 Tooth turning canned cycle G79 Face cutting canned cycle *G80 Hole machining cycle instruction cancel G83 Gun drilling cycle(Z axis) G84 Taping cycle(Z axis) G85 Boring cycle(Z axis)

G Deep hole drilling cycle(X axis) G88 Taping cycle(X axis) G89 Boring cycle(X axis) ※G90

03Absolute value instruction

※G91 Incremental value instruction G92 00 Machine coordinate system setting

Page 19

Page 20: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

※G9405

Un-synchronization cutting (feed per minute)   ※G95 Synchronization cutting(feed per round)   ※G96

17Round speed control on

※G97 Round speed control off*G98

10Canned cycle initial point revert

G99 Canned cycle R point revert Support parameter and macro programming

WA lathe G codeG code Explanation

G00 Rapid positioning G01 Linear interpolation G02 Circular interpolation/Helical interpolation CW G03 Circular interpolation/Helical interpolation CCW G04 Time delay G09 Feed exact stop G20 Independency subprogram call G22 Independency subprogram defining G24 Independency subprogram defining end, return called program G25 Jumping machining G26 Block calls subprogram in machining program G27 Endless loop G30 Multiplying power off G31 Multiplying power defining G47 Short space rate automatic transition G48 Cancel

G54~G59 Workpiece coordinate system selection G71 Inside and outside diameter cutting compound cycle G72

G73ace cutting compound

cycle Close shape compound cycle

G74 Return to reference point G75 Return to presetting point G76 Return to start point G77 Recover current coordinate system G81 Excircle machining cycle G82 Face machining cycle G85 Inch rigid tapping cycle G86 Metric thread machining cycle G87 Inch screw thread machining cycle G90 Absolute value programming G91 Incremental value programming G92 Set zero point of program G96 Constant surface speed control G97 Constant surface speed control cancel G98 Feed per round cancel G99 Feed per round setting

P= parameter variable assignment

WA lathe M instructionM command Explanation

M01 Conditional stop M02 Program end and stop M03 Spindle on CW

Page 20

Page 21: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

M04 Spindle on CCW M05 Spindle stop M06 Coolant on M07 Coolant off M08 Clamp M09 Unclamp M10 appointed relay on M11 appointed relay off M20 Tool compensation number setting M21 Program end and return to start of program

M71~M85 Relay pulse output

WA miller G codeG code Explanation

G01 Linear interpolation G02 Circular interpolation/Helical in

G03erpolation CW Circular interpolation/Helical interpolation CCW

G04 Time delay G09 Feed exact stop G11 Block mirror image along Y axis G12 Block mirror image along X axis G13 Block mirror machining according to origin G17 Plane selection X-Y G18 Plane selection Z-XG19 Plane selection Y-Z G20 Subprogram call G22 Subprogram defining G24 Subprogram defining end, return called program G25 Jumping machining G26 Transfer machining G27 Endless loop G30 multiplying power off

G3multiplying power defining

G40 Cutter radius compensation cancel G41 Cutter radius compensation(+) (left) G42 Cutter radius compensation(-) (right) G43 Cutter length compensation founding G44 Cutter length compensation cancel G47 Short space

G48ate automatic transition cancel

G54~G59 Workpiece coordinate system selection G73 Rapid deep hole machining cycle G74 Return to reference point G75 Return to presetting point G76 Return to start point G78 Finish boring cycle G81 Centre

G82drilling Centre drilling cycle with pause

Page 21

Page 22: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

cycle with pause

G83 Deep hole processing cycle G84 Metric rigid tapping cycle G85 Inch rigid tapping cycle G86 Boring cycle(selfrecovery) G87 Counter boring cycle G88 Boring cycle(manual return)G89

Boring cycle with pause

G90 Absolute value programming G91 Incremental value programming G92 Workpiece coordinate system setting

P= parameter variable assignment

WA miller M instructionM command Explanation

M00 Program halt M01 L××(K××)M02 Program end and stop M03 Spindle on CW M04 Spindle on CCW M05 Spindle stop M08 Coolant on M09 Coolant off M10 Clamp M11 Unclamp M20 K××relay M21 K××close ××relay M30 Program end and return to start of program

M71~M85 Relay pulse output

RENHE 32TG codeG code Explanation

G00 Rapid positioning G01 Linear interpolation G02、G03 Arc interpolation G04 Time delay G26、G27、G28、G29 Return to initial point G22、G80 program loop G23 Rectangle cycle G37、G38、G39、G36 Return to rigid rG82、G83 ference point Thread cutting cycle

G46,G47,G48,G49 Return soft reference point G96,G97 Constant liner speed cutting

RENHE 32T M command

M command Explanatin

M00 program halt

Page 22

Page 23: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

M02 Program end M30 Spindle stop and program end M20 Autocycle M03 Spindle on CW M04 Spindle on CCW M05 Spindle stop M06 Waiting for answer after send message M26 Send message M21 Waiting for answer after send message M97 Program jumping M98 subroutine call instruction M99 subroutine return instruction

SKY 2003N M G codesG code Group Type Function

G00 01 1 Rapid positioning ) G01 Linear interpolation G02 Circular interpolation CW G03 Circular interpolation CCW G02+Z Helical interpolation right G03+Z Helical interpolation lG04ft

02 2 Dwell

G17 04 1 XY PlG18ne selection

1 ZX Plane selection

G19 YZ Plane selection G40 07 1 Cutter radius compensation cancel G41 Cutter radius compensation(+) (left) G42 Cutter radius compensation(-) (right) G43 08 Cutter length compensation(+) G44 Cutter length compensation(-) G49 Cutter length compensation cancel G50 11 Zoom、mirrorimage off G51 11 Zoom、mirrorimage on G54 14 Workpiece coordinate system 1 selection G55 Workpiece coordinate system 2 sG56lection

Workpiece coordinate

G57system 3 selectionWorkpiece coordinate system 4 selection

G58 Workpiece coordinate system 5 selection G59 Workpiece coordinate system 6 selection G68 03 Coordinate rotating G69 03 Coordinate rotating cancel G73 15 Stepping cycle G74 counter tapping cycle(machining center) G76 Finish boring cycle(machining center) G80 Canned cycle cancel G81 Drilling、spot-facing cycle G82 Drilling、reverse boring cycle G83 Depth drill cycle G84 Taping cycle

Page 23

Page 24: ALL CNC “G & M” CODES - · PDF fileALL CNC “G & M” CODES FANUC G code of lathe G code Explanation G00 Positioning G01 Linear interpolation G02 Circular interpolation/Helical

ALL CNC “G & M” CODES

G85/G86 Boring cycle G87 Counter bG88/G89ring cycle

Boring cycle

G90 00 Absolute value programming G91 Incremental value programming G92 05 Coordinate system setting G98 16 Return to initial plane G99 Return to R point plane

SKY 2003N M M commandGroup M code Function

A M00,M01,M02 Program stop, program optional stop, program end B M03,M04,M05 Spindle on CW, spindle on CCW, spindle stop C M06 Automatic tool changing D M08,M09 Coolant on, coolant off E M98,M99 Subprogram call, subprogram return

Page 24


Recommended