Hello Guest it is May 24, 2019, 11:38:18 AM

Author Topic: Thread milling g-code question  (Read 4448 times)

0 Members and 1 Guest are viewing this topic.

Offline lew

*
  •  74 74
    • View Profile
Thread milling g-code question
« 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

Re: Thread milling g-code question
« Reply #1 on: June 10, 2007, 11:36:31 PM »
lew what kind of tapping tool are you using?
Wes
Have a nice Day

Offline lew

*
  •  74 74
    • View Profile
Re: Thread milling g-code question
« Reply #2 on: June 11, 2007, 08:02:49 AM »
The tool is a thread mill.
Re: Thread milling g-code question
« Reply #3 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
Have a nice Day

Offline lew

*
  •  74 74
    • View Profile
Re: Thread milling g-code question
« Reply #4 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

Offline lew

*
  •  74 74
    • View Profile
Re: Thread milling g-code question
« Reply #5 on: June 11, 2007, 12:56:01 PM »
Checked it out. It works just fine.
Thanks
LEW
Re: Thread milling g-code question
« Reply #6 on: June 11, 2007, 02:12:24 PM »
Kewl

Wes
Have a nice Day