Hello Guest it is October 17, 2019, 01:55:29 AM

Author Topic: Basic Question  (Read 2369 times)

0 Members and 1 Guest are viewing this topic.

Basic Question
« on: September 04, 2007, 03:57:01 PM »
I have Mach set up in inches. I have some g-code that was made in MM. How do I convert it to inches? Or have Mach switch to MM for this program?
 ???
"Gravity, its not just a good idea its the law"

Offline Chaoticone

*
  • *
  •  5,607 5,607
  • Precision Chaos
    • View Profile
Re: Basic Question
« Reply #1 on: September 04, 2007, 05:36:38 PM »
Acouple of ways you could do it. Go to the settings page and select MM. Set you up a MM profile. Put a G21 in the front of your code. I would dry run through the program in any case to see that it is right. A G20 after the G21 will put you back in inches.

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline jimpinder

*
  •  1,233 1,233
  • Wakefield, West Yorks, UK
    • View Profile
Re: Basic Question
« Reply #2 on: September 05, 2007, 09:07:46 AM »
I have the same problem - having set the lathe up in inches (all the dials are calibrated in inches anyway)

You can just insert g21 before the section you require in metric (mm). This operates the machine in metric dimensions, but seems to use all the offsets etc that you have set up, in inches.

At the end of the section g20 reverts everything back to inches.

The toolpath seems a bit odd - because it just stays the same size. The DRO's revert to mm for metric, but revert to inches when you go back.

Seems to work alright.
Not me driving the engine - I'm better looking.
Re: Basic Question
« Reply #3 on: September 05, 2007, 10:07:20 AM »
Thanks, I will try that.
"Gravity, its not just a good idea its the law"