Hello Guest it is April 18, 2024, 02:46:03 PM

Author Topic: G Code Executing in mm's instead of inches  (Read 2593 times)

0 Members and 1 Guest are viewing this topic.

G Code Executing in mm's instead of inches
« on: March 28, 2012, 01:05:57 PM »
I am new to CNC and Mach3. I have a 3 axis engraving machine.  I was able to set up my machine without any problems. I used generated a .dxf and g-code with 2L. I was able to execute it and all looked great and it executed in inches (yesterday). I reloaded the g-code and today it executes the same values but in mm's. Really tiny, i.e., the 2" square is now 2mm's.  I am sure it is something really simple. I know its not the native units under configuration. I checked that.  Thanks in advance for any help.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: G Code Executing in mm's instead of inches
« Reply #1 on: March 28, 2012, 01:09:30 PM »
ADD a G20 to the start of the Gcode or issue a G20 from teh MDI line before you start the program.

You need to SET the G20 mode so MACH3 runs in INCHES. G21 set it to run in MMs.

Look at teh top right of the main screen, the modal line , it shows what modes are active.

Just a thought, (;-) TP
Re: G Code Executing in mm's instead of inches
« Reply #2 on: March 28, 2012, 01:37:58 PM »
Thanks,  Just added the g-code  "G20" as first line and it worked