Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: lew on June 10, 2007, 11:16:29 PM

Title: Thread milling g-code question
Post by: lew on June 10, 2007, 11:16:29 PM
I'm wondering if anyone can help with this line of code.
I'm trying to cut a thread with .06" pitch and six revolutions.
G91
G02 X0.0 Y0.0 I0.5 J0.0 Z-0.06 L6.0 F20.0

The G91 should put the machine in incremental mode.
The G02 should create a cirle with radius of .5".
The Z-0.6 should give the thread a .06" pitch per rev.
The L6.0 should make the machine repeat the circular command six times and should give a six thread part?
When I execute this code, the machine only makes one circle and moves to the next line.
The Z does move down .06 and the machine comletes one thread.
Why is that? What have I got wrong?
Anyone?
Thanks in advance.
LEW

Title: Re: Thread milling g-code question
Post by: wnevels on June 10, 2007, 11:36:31 PM
lew what kind of tapping tool are you using?
Wes
Title: Re: Thread milling g-code question
Post by: lew on June 11, 2007, 08:02:49 AM
The tool is a thread mill.
Title: Re: Thread milling g-code question
Post by: wnevels on June 11, 2007, 11:59:04 AM
lew g02 isn't a canned cycle mode so Mach just ignores the L
you need to look at M98 if you want to run it as a subroutine.
that was why I was asking what tool you are using.  Last i heard rigid mill tapping wasn't working yet.

Wes
Title: Re: Thread milling g-code question
Post by: lew on June 11, 2007, 12:24:38 PM
Thanks for the reply.
So, I guess the code would look something like this?:

M98 P1 L6


O1
G91
G2 X0.0 Y0.0 I0.5 J0.0 z-0.06 F20.0
M99

I'll try it when I get a chance and let you know if it works.
LEW
Title: Re: Thread milling g-code question
Post by: lew on June 11, 2007, 12:56:01 PM
Checked it out. It works just fine.
Thanks
LEW
Title: Re: Thread milling g-code question
Post by: wnevels on June 11, 2007, 02:12:24 PM
Kewl

Wes