Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: rckeith on July 19, 2012, 01:53:52 AM

Title: Machine set to millimeters can I use gcode with inches OK
Post by: rckeith on July 19, 2012, 01:53:52 AM
Hi
This is my first post and I fairly new to CNC so it may be a dumb question.
I've built a CNC hot wire foam cutter for building RC wings and fuselages and I've set up MACH3 units to be in millimeters.  I run some test cuts on some small wing profiles and everything is good.  So now I want to cut a wing to actually  for flying with.  I'm using Profili2 to design the wing and generate the gcode.  I'm using a old plan in inches and have created the gcode OK. 
I now there is a gcode to specify inches or millimeters so even though I set my machine up to use millimeters if the gcode says inches at the start will it do the conversion or do I need to convert it all first.

My machine build and a video of it working can be seen at http://www.rckeith.co.uk/cncfc.html (http://www.rckeith.co.uk/cncfc.html)
Title: Re: Machine set to millimeters can I use gcode with inches OK
Post by: Hood on July 19, 2012, 02:55:08 AM
A G20 at the start of the code will tell Mach that it is Imperial and it should run fine.
Hood
Title: Re: Machine set to millimeters can I use gcode with inches OK
Post by: Tweakie.CNC on July 19, 2012, 03:54:06 AM
Hi Keith,

Nice RC website.  ;)

Tweakie.
Title: Re: Machine set to millimeters can I use gcode with inches OK
Post by: rckeith on July 19, 2012, 06:55:36 AM
Thanks.  I'll give it it a try.

keith