Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: boyvox on October 16, 2006, 05:29:56 PM

Title: Setup units
Post by: boyvox on October 16, 2006, 05:29:56 PM
When I change the Setup Units for the motor tuning dialog does that affect the G-Code I load in any way? I have G-Code in Inch units. If I hook up to a machine with Metric Ballscrews and set my motors correctly does Mach translate the inch-unit G-Code instructions to the correct turns for the metric screws? If so, does it slow down the program and/or do I lose accuracy?
Title: Re: Setup units
Post by: Brian Barker on October 21, 2006, 04:43:02 PM
If you would like to have an inch machine set the setup units to inch. then calc the steps per unit and put that into the motor tuning. if you need to have 3412.9437 steps per unit then that is okay :)
Title: Re: Setup units
Post by: timskx1 on November 23, 2010, 09:54:27 AM
is that the only way to get the machine to run in inches?
Title: Re: Setup units
Post by: Hood on November 23, 2010, 10:16:39 AM
If your machine is set up in metric units and you want to run  inch code then a G20 at the start of the code will tell Mach to run in Inch.
If you were set up in Inch units and wanted to run a metric file then a G21 at the start of the code would tell Mach to run it in metric units.

In fact it is always best to have the G20 or G21 in the code even if it is the same as your setup units.

I would suggest if you predominantly use metric code then set your units up as metric and vice versa.

Changing the setup units is only meant for initial setup it is not meant for changing units when running code.

Hood
Title: Re: Setup units
Post by: Fritz on November 23, 2010, 11:30:11 AM
Having issues with our plasma cutter diving below zero after the event is started! Using BobCad v21, my g-codes are correct! Mach3, and torch height control as well!
Title: Re: Setup units
Post by: Hood on November 23, 2010, 11:35:44 AM
Fritz,
 You would be best to start a new topic with a title that relates to your question and you will likely get a few replies from the guys that use plasma.
Hood
Title: Re: Setup units
Post by: timskx1 on November 23, 2010, 11:57:20 AM
i did try to use the G code, but the machine still only moves in metric
Title: Re: Setup units
Post by: Hood on November 23, 2010, 12:07:47 PM
Please attach your xml and I will have a look.
Hood
Title: Re: Setup units
Post by: timskx1 on November 23, 2010, 12:11:54 PM
I am at work, and my machine is at home  i will try and post it later or if not  tomorrow