0% found this document useful (0 votes)
6 views10 pages

G-Code Primer - Review

This document provides a review and overview of important concepts for G-code programming including: 1. It summarizes common G-code commands like G00, G01, G28 for rapid positioning, linear interpolation and returning to home. 2. It explains that G codes are modal and set the operating mode, while M codes turn functions on/off individually. 3. It outlines the different types of variables that can be used in G-code programs and basic math operations. 4. It provides some best practices and tips for planning and structuring G-code programs effectively.

Uploaded by

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

G-Code Primer - Review

This document provides a review and overview of important concepts for G-code programming including: 1. It summarizes common G-code commands like G00, G01, G28 for rapid positioning, linear interpolation and returning to home. 2. It explains that G codes are modal and set the operating mode, while M codes turn functions on/off individually. 3. It outlines the different types of variables that can be used in G-code programs and basic math operations. 4. It provides some best practices and tips for planning and structuring G-code programs effectively.

Uploaded by

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

G-Code Primer - Review

Quick review
G00 X__ Z__ rapid traverse
G01 X__ Z__ F__ feed w/ linear interpolation
G28 U0 W0 return home
G50 S____ limit max speed
G96/G97 S__ const.surf. speed/fixed speed
G99/G98 feed per rev/feed per min
G21 metric units
M03/M05 spindle on/off
M08/M09 coolant on/off
M01/M30 optional stop/program end
G-Code Primer - Review
Quick review
G blocks are modal G0 is rapid traverse mode,
G1 is linear feed mode.
G0
X10.0 Z20.0
Z10.0
X15.0
G1 F0.1
X4.5 Z12.0

M codes are on/off, only one per line
M3
M8
G-Code Primer - Review
Variables:
#1-33 (local vars for macros)
#100-199 (zeroed on powercycle)
#500 to 999 (survive powercycle)
Don't change vars above #1000: these
are system variables.
math:
[#500 + 1.0]
[#500 + #510]
G-Code Primer - Review
NEVER DO A TOOL CHANGE AWAY
FROM HOME! (G28 U0 W0)
ALWAYS PUT A DECIMAL POINT
AFTER DIMENSIONAL NUMBERS (no
decimal --> microns)
USE ALL CAPS IN YOUR PROGRAM
(lc gets dropped)
DON'T GET OHS AND ZEROS
MIXED UP. PROGRAM NAME STARTS
WITH OH, NOT ZERO
Planning a Program
Critical dimensions
if your most critical dimension is an OD, do OD
turning first
if your most critical dimension is an ID, do boring
first
Machining ID
Drill, rough bore (with end mill), finish bore (with
boring bar)
be very careful retracting from ID operations. It is
too easy to crash a tool inside the part and break
the tool. ID tools are much more expensive as well
as much more fragile than OD tools.
Planning a Program
Finish passes
if your tolerance is tight or your part is
slender (so it may deflect noticeably), run
multiple finish passes at the same diameter.
G-Code Looping & Branching
Loops:
WHILE [#500 GT #510] DO 1
G01 ...
#500 = #500 0.2
END 1
Conditionals:
IF [#502 LE #515] GOTO N100
...
N100
ROUGHING CYCLE - G71
Roughing Cycle - G72
Finishing Cycle - G70

You might also like