开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Mach2 lathe toolchange and touch correction


Steve Blackmore
 

Here are a few problems with toolchanges

Lathe tooltable overwrites Mill tooltable
Entries are listed as Z,X rather than X,Z?
Using Jog screen to touch entries off always overwrites tool 0 even if
a different number is typed in tool number box.

How is the touch correction supposed to work?

My job X0, Z0 is center of stock diameter, say 30mm from end, and all
my gcode coordinates work from there - if the stock is 10mm diameter
- how do I let mach2 lathe know this?

Also have you got a list of supported G & M codes for lathe, I've
noticed if it doesn't recognise a Gcode it simply skips that line -
that could be nasty - surely it should error and stop?
--
Steve Blackmore


Art
 

Hi Steve:

Thanks for the bugs. YOur right, I hadn't considered the poor tool tables
or fixture table. I will implement new ones for lathe only.
The touch off, should be done in your example by entering 30 in the touch
correction and turning it on. then do touch of the bit to the stoch and hit
"touch" on the X, 30 will appear. If you use a guage, enter 30 + guage block
in the corretion and the proper diameter will appear. Turn off correction
and toush the Z to zero it or enter a length if you wish.

There are no special G-Codes for lathe yet, only G32 is active. I will
look into the error's but that is a holdover from EMC which at the time the
interpreter code was written, did not tripo errors on some types of
problems.

Lathe is still pretty early, but as soon as the bugs are gone in the next
version of mill, I'll start to strengthen it up and add more codes. I'm
considering some code options in the way all these lathe codes will be
handled. Since the EMC interpreter cannot handle them and most of them are
"cycle" type of codes, I am still figureing out how best to handle this
option.

Thanks,
Art
www.artofcnc.ca


Art
 

Steve:

Annoyingly no, I haven't found the problem yet. It may be that my version
doesn't have it. I think I found the toggle bug, but I'm not sure yet.
Almost all the other bugs are done..Still Looking..

BTW: Send me your lathe.xml file will you, it may help...
Thanks,
Art
www.artofcnc.ca