0% found this document useful (0 votes)
266 views6 pages

Feeds and Speeds Calculator

The document provides a reference for common G-codes and M-codes used in milling. It lists the code category, function, notes, and any relevant tutorials for each code. It also provides information about the G-Wizard Editor software which can help users understand what each code does in plain English. The software aims to simplify working with G-code.

Uploaded by

ShakirJaafar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
266 views6 pages

Feeds and Speeds Calculator

The document provides a reference for common G-codes and M-codes used in milling. It lists the code category, function, notes, and any relevant tutorials for each code. It also provides information about the G-Wizard Editor software which can help users understand what each code does in plain English. The software aims to simplify working with G-code.

Uploaded by

ShakirJaafar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Feeds and Speeds Calculator:

START YOUR FREE TRIAL NOW

 PRODUCTS
 ABOUT
 BLOG
 COOKBOOKS
 DIY CNC
 PROJECTS
 QUESTIONX

 Free
Trials

 HELP

G-Code and M-Code Reference for


Milling
 GCode Tools
 Milling
 Turning

These are the common g-codes and m-codes for milling that G-Wizard Editor supports for
Mills. Code categories are the groupings for the g-code Wizard (type Ctrl+G for the Wizard).
Function tells what the g-code does, Notes gives a little more information such as the
parameters, and Tutorial is a link (if any) to a tutorial from our Online G-Code Tutorial that
uses G-Wizard Editor to teach how to program the g-code.
Pssst! Hey, if you're here looking up g-codes, maybe you'd like to find an easier way.
What could be better than software that tells you exactly what each g-code does in
plain English?

That's what G-Wizard Editor is like.

GCode is complicated.
G-Wizard Editor makes it easy.

Try It Free!

Code Category Function Notes Tutorials


G00 and MDI.
Move in a straight line at rapids XYZ of
G00 Motion
speed. endpoint Linear Motion: G00
and G01
G01 and MDI.
Move in a straight line at last
XYZ of
G01 Motion speed commanded by a
endpoint Linear Motion: G00
(F)eedrate
and G01
XYZ of
endpoint
Clockwise circular arc at G02 / G03 Tutorial
G02 Motion IJK relative
(F)eedrate and Examples
to center

R for radius
XYZ of
endpoint
Counter-clockwise circular arc G02 / G03 Tutorial
G03 Motion IJK relative
at (F)eedrate and Examples
to center

R for radius
P for
Precise Timing and
milliseconds
Dwell: Stop for a specified Speed: Dwell, Exact
G04 Motion
time. Stop, Backlash
X for
Compensation
seconds
G05 Motion FADAL Non-Modal Rapids
Precise Timing and
G09 Motion Exact stop check
Speed: Dwell, Exact
Stop, Backlash
Compensation

G10 Compensation Programmable parameter input


Turn Polar Coordinates OFF, G15/G16 Polar
G15 Coordinate
return to Cartesian Coordinates Coordinates
G15/G16 Polar
G16 Coordinate Turn Polar Coordinates ON
Coordinates
CNC G-Code
G17 Coordinate Select X-Y plane
Coordinates
CNC G-Code
G18 Coordinate Select X-Z plane
Coordinates
CNC G-Code
G19 Coordinate Select Y-Z plane
Coordinates
G20 and G21: Unit
G20 Coordinate Program coordinates are inches
Conversion
G20 and G21: Unit
G21 Coordinate Program coordinates are mm
Conversion
G28: Return to
G27 Motion Reference point return check
Reference Point
G28: Return to
G28 Motion Return to home position
Reference Point
Return from the reference G28: Return to
G29 Motion
position Reference Point
Return to the 2nd, 3rd, and 4th G28: Return to
G30 Motion
reference point Reference Point
Constant lead threading (like
G32 Canned
G01 synchronized with spindle)
Tool cutter compensation off
G40 Compensation
(radius comp.)
Tool cutter compensation left
G41 Compensation
(radius comp.)
Tool cutter compensation right
G42 Compensation
(radius comp.)
Apply tool length compensation
G43 Compensation
(plus)
Apply tool length compensation
G44 Compensation
(minus)
Tool length compensation
G49 Compensation
cancel
G50 Compensation Reset all scale factors to 1.0
G51 Compensation Turn on scale factors
Local workshift for all
G52 Coordinate coordinate systems: add XYZ
offsets
Machine coordinate system
G53 Coordinate
(cancel work offsets)
Work coordinate system (1st
G54 Coordinate
Workpiece)
Work coordinate system (2nd
G55 Coordinate
Workpiece)
Work coordinate system (3rd
G56 Coordinate
Workpiece)
Work coordinate system (4th
G57 Coordinate
Workpiece)
Work coordinate system (5th
G58 Coordinate
Workpiece)
Work coordinate system (6th
G59 Coordinate
Workpiece)
Precise Timing and
Speed: Dwell, Exact
G61 Other Exact stop check mode
Stop, Backlash
Compensation
G62 Other Automatic corner override
G63 Other Tapping mode
G64 Other Best speed path
Subprograms and
G65 Other Custom macro simple call
Macros
G68 and G69 Tutorial
G68 Coordinate Coordinate System Rotation
and Examples
Cancel Coordinate System G68 and G69 Tutorial
G69 Coordinate
Rotation and Examples
High speed drilling cycle (small
G73 Canned
retract)
G74 Canned Left hand tapping cycle
G76 Canned Fine boring cyle
G80 Canned Cancel canned cycle
G81 Canned Simple drilling cycle
Drilling cycle with dwell
G82 Canned
(counterboring)
G83 Canned Peck drilling cycle (full retract)
G84 Canned Tapping cycle
Boring canned cycle, no dwell,
G85 Canned
feed out
Boring canned cycle, spindle
G86 Canned
stop, rapid out
G87 Canned Back boring canned cycle
Boring canned cycle, spindle
G88 Canned
stop, manual out
Boring canned cycle, dwell,
G89 Canned
feed out
Absolute programming of XYZ
G90 Coordinate
(type B and C systems)
Absolute programming IJK
G90.1 Coordinate
(type B and C systems)
Incremental programming of
G91 Coordinate
XYZ (type B and C systems)
Incremental programming IJK
G91.1 Coordinate
(type B and C systems)
Offset coordinate system and
G92 Coordinate
save parameters
G92 Clamp of maximum spindle
Motion S
(alternate) speed
Cancel offset and zero
G92.1 Coordinate
parameters
Cancel offset and retain
G92.2 Coordinate
parameters
Offset coordinate system with
G92.3 Coordinate
saved parameters
Units per minute feed mode.
G94 Motion
Units in inches or mm.
Units per revolution feed mode.
G95 Motion
Units in inches or mm.
G96: Constant
G96 Motion Constant surface speed
Surface Speed
G96: Constant
G97 Motion Cancel constant surface speed
Surface Speed
Return to initial Z plane after
G98 Canned
canned cycle
Return to initial R plane after
G99 Canned
canned cycle

M-Codes
Code Category Function Notes Tutorials
M00 M-Code Program Stop (non-optional)
Optional Stop: Operator
M01 M-Code
Selected to Enable
M02 M-Code End of Program
M03 M-Code Spindle ON (CW Rotation) M03 and MDI.
M04 M-Code Spindle ON (CCW Rotation)
M05 M-Code Spindle Stop M05 and MDI.
M06 M-Code Tool Change
M07 M-Code Mist Coolant ON M07 and MDI.
M08 M-Code Flood Coolant ON M08 and MDI.
M09 M-Code Coolant OFF M09 and MDI.

M17 M-Code FADAL subroutine return


Rigid Tapping Mode on Fanuc
M29 M-Code
Controls
End of Program, Rewind and
M30 M-Code
Reset Modes

Subprograms and
M97 M-Code Haas-Style Subprogram Call
Macros
Subprograms and
M98 M-Code Subprogram Call
Macros
Subprograms and
M99 M-Code Return from Subprogram
Macros

Bonus: Check Out our Other CNC Cookbooks for More In-
Depth CNC Information!
If you're a CNC Beginnner, check out our CNC Beginner's Cookbook. It'll get you up to
speed with a solid CNC foundation fast.

We also have Cookbooks for Feeds and Speeds, G-Code Programming, CNC
Manufacturing and Shop Management, DIY CNC, and don't forget the CNC Cookbook
Blog--with over 2 million visitors a year it's the most popular CNC blog by far on the web.

Sumo
Focus Retriever

You might also like