What's new
What's new

Haas Lathe CNC Program GCode question

Joined
Feb 4, 2011
Location
Bridgewater, MA
My son is working on a simple HAAS lathe program and it's not working out well for him.
He's trying to cut a step gage, with 1", 2" and 3" diameters, each step is 1" long

He has this:

G28
T101
G50S2500
S800 M03
G0 X0.1 Z0.1
G71 P11 Q18 U0.05 W0.05 D0.05 F0.02
N11 G00 X0.0 Z0.1
N12 G01 Z0.0 F0.02
X1.0
Z-1.0
X2.0
Z-2.0
X3.0
Z-3.0
Z0.1
N18 G00 Z0.2
N19
N0 G70 P11 Q19
M05
G28

It appears to make the part "backwards" when he runs it in the controller.
Any help greatly appreciated.........

Thanks,

RJ Martin
 
My son is working on a simple HAAS lathe program and it's not working out well for him.
He's trying to cut a step gage, with 1", 2" and 3" diameters, each step is 1" long

He has this:

G28
T101
G50S2500
S800 M03
G0 X0.1 Z0.1
G71 P11 Q18 U0.05 W0.05 D0.05 F0.02
N11 G00 X0.0 Z0.1
N12 G01 Z0.0 F0.02
X1.0
Z-1.0
X2.0
Z-2.0
X3.0
Z-3.0
Z0.1
N18 G00 Z0.2
N19
N0 G70 P11 Q19
M05
G28

It appears to make the part "backwards" when he runs it in the controller.
Any help greatly appreciated.........

Thanks,

RJ Martin

With this line he needs to "stage" the tool outside of the material dimensions:
Instead of
G0 X0.1 Z0.1;

Try G0 X3.1 Z.01;

This places the tool on the outside of the part and the G71 cycle then machines the profile from that position.

The X0.1 tells the cycle to start near the center of the part and work outward, like it were boring a hole.
 
With this line he needs to "stage" the tool outside of the material dimensions:
Instead of
G0 X0.1 Z0.1;

Try G0 X3.1 Z.01;

This places the tool on the outside of the part and the G71 cycle then machines the profile from that position.

The X0.1 tells the cycle to start near the center of the part and work outward, like it were boring a hole.


Yes, that is exactly what happened-It was machining the steps internally, not externally.

I will definitely have him try that-THANKS!

Stay Sharp,

RJ Martin
 
G28
t101
g50s2500
s800 m03
g0 x0.1 z0.1> g0 x3.1 z0.1 (.1 clearance from your stock)
g71 p11 q18 u0.05 w0.05 d0.05 f0.02 >your w is a little heavy, try w0.002
n11 g00 x0.0 z0.1> no need to rough the face
n12 g01 z0.0 f0.02 >g70 will pick up this feedrate, change to finish feedrate
x1.0
z-1.0
x2.0
z-2.0
x3.0
z-3.0
z0.1> n18x3.1 (your line may alarm)
n18 g00 z0.2> remove this line (g71 returns to start position after rough cycle)
n19
n0 g70 p11 q19
m05 >i would move your tool away from the part before stopping the machine
g28
 
Thanks EVERYONE for your replies. My son's achool is allowing him to bring the HAAS controller home over spring break, so we will have 9 days to work on his programming skills starting today. I have yet to make the mental leap from milling Gcode to lathe Gcode, but hopefully I will soon.
 








 
Back
Top