Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started 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
-
lew what kind of tapping tool are you using?
Wes
-
The tool is a thread mill.
-
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
-
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
-
Checked it out. It works just fine.
Thanks
LEW
-
Kewl
Wes