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 of 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
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
ALL CNC “G & M” CODESFANUC 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 of 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
ALL CNC “G & M” CODESFANUC 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
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 planeG18 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
ALL CNC “G & M” CODESG70 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
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 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
ALL CNC “G & M” CODESM6 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
ALL CNC “G & M” CODESG09 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
G91 Increment command G92 00 Setting for work coordinate system *G94
14Feeding per minute
G95 Feeding per round *G98
10Return 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
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
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 M33 Lubrication off M98 Subprogram call M99 Subprogram end
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
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 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
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
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 ※G94
05Un-synchronization cutting (feed per minute)
※G95 Synchronization cutting(feed per round) ※G96
17Round 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
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
ALL CNC “G & M” CODESG96 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 CWM04 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
ALL CNC “G & M” CODESG54~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
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 r
ALL CNC “G & M” CODESG46,G47,G48,G49 Return soft reference point G96,G97 Constant liner speed cutting
RENHE 32T M command
M command Explanatin
M00 program halt 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
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