G - Code Review
G - Code Review
This list of G-Codes should get you through most LATHE programs
here at Diman
HAAS Lathe M Codes
Once you have used the proper tool callup (see slide 26) it is time to start machining.
Format: G71 P, Q, U, W, D, F
P- Sequence # at the start of the operation
Q- Sequence # at end of operation
U- Finish allowance on your X (Diameter)
W- Finish allowance on your Z (Lengths) *BOTH U & W ARE WRITTEN AS DECIMALS*
D- Depth of cut (Per Side)
F- Feed Rate (IPR)
G70 Finish Turning Cycle
After using G71 for a roughing cycle, a finishing cycle can be performed by the following
command:
THE LINE HAS TO HAVE AN ARC COMMAND AS WELL AS THE SIZE OF THE RADIUS
Circular Interpolation
- In order to “spin” a radius, you will have to use a G02 or G03 which will initiate Circular
Interpolation, this allows the machine to move in 2 axes simultaneously
- We are going to start with simple commands that do not require an I or a J but more
complex radius commands are possible
- Your machine is always assumed to be at the start of the arc before reading the G2 or G3,
so the G2 or G3 contains an X and Y component which describes the final position after
the arc has been traversed.
Point # X Z
1 1.225 0
Start by Making a Chart of your Points
2 1.725 -.25
3 1.725 -.75
4 2.225 -1.00
5 2.75 -1.00
6 2.75 -2.00
7 3.3 -2.00
8 4.00 -2.35
9 4.00 -2.50
10 4.25 -2.625
11 4.50 -2.625
12 4.50 -3.375
Let’s Program it
https://docs.google.com/document/d/1c5Qnn48eIRjHrMIAOLhcqLuAcT-69qln7Kd4eYd6vZk/
edit
- In order to program large chamfers you are going to do it the same way, just without using
the G02 or G03 lines as you are not interpolating anything, given that you are
programming radii, we are not going to spend a ton of time on large chamfers
Your Turn
Position Move Grooving
- This is probably the most popular way you are going to see grooves made when it comes
to longhand programming
- The process of making a groove by position moves is fairly simple, it uses G01 movements
and a lower feed rate in order to machine the groove properly
- Get your positions right, get your feed right, and this will be one of the simplest things you
program
What it looks like
G1 Z-1.625 F.005 (FEED MOVE TO LOCATION, MAKE SURE YOU ACCOUNT FOR WHICH
SIDE OF THE CUTTER YOU TOUCH OFF ON)