Machsupport Forum

Mach Discussion => FAQs => Topic started by: GregF on November 07, 2018, 03:08:42 PM

Title: Changing to metric
Post by: GregF on November 07, 2018, 03:08:42 PM
How do I set up Mach3 to respond to metric files when my machine has been set up in inches?  The machine manufacturer supplied an XML file for the machine, using imperial units.  When I run his test programs it runs fine, but when I enter my G-code (from MeshCAM) the machine isn't responding correctly.  I added G21  to the start of my G-code sequence as instructed by the manufacturer, but that hasn't solved the problem.
Title: Re: Changing to metric
Post by: ZASto on November 07, 2018, 05:44:01 PM
That should solve the problem. Mach will do all the needed conversion math for you.
For start try this:

G21
G0X0Y0
G0Z0 (asuming top of material)
G1Y25.4F100
G1X25.4
G1Y0
G1X0
G0Z5
M30
%

This should "draw" 1 inch rectangle