Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: kdoney on August 12, 2009, 08:13:56 AM

Title: Now What! Jog says mm - Gcode say G21 - machine moving in inches
Post by: kdoney on August 12, 2009, 08:13:56 AM
I'm about to start questioning my intelligence. My units are mm? The jog display says mm. I have g21 in the code. So what magic switch did I forget to throw?

 
G80 G21
G0 Z0.26
G0 X-0.26
F25
G0 X0.25
G1 Z-14.95 <-- tries to move to -15" here!
G0 X-0.01 Z-14.74
G0 Z0.26
G0 X0.5
G1 Z-14.95
G0 X0.24 Z-14.74
G0 Z0.26
...
Title: Re: Now What! Jog says mm - Gcode say G21 - machine moving in inches
Post by: Hood on August 12, 2009, 08:31:03 AM
Please attach your xml.
Hood
Title: Re: Now What! Jog says mm - Gcode say G21 - machine moving in inches
Post by: kdoney on August 12, 2009, 08:46:13 AM
I do appreciate your help and I know this is the best value I have found in many years of hobby (or professional) cnc.

Title: Re: Now What! Jog says mm - Gcode say G21 - machine moving in inches
Post by: Hood on August 12, 2009, 02:02:34 PM
Presuming you have this working now as your other thread seems to say you are threading correctly.
Had a look at the xml and it seemed fine and seemed to work fine here.
Hood
Title: Re: Now What! Jog says mm - Gcode say G21 - machine moving in inches
Post by: kdoney on August 12, 2009, 02:48:32 PM
No, actually this is a boring move. I just found out I've been using an unlicensed copy in the shop. Would that matter? I can check again.
Title: Re: Now What! Jog says mm - Gcode say G21 - machine moving in inches
Post by: Hood on August 12, 2009, 02:56:17 PM
I did notice you had the Y axis enabled in Turn, most people dont have a Y on their lathe so if you dont disable it. Probably not the problem but worth doing anyway.

Hood