Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: kcassella on February 15, 2020, 07:57:02 AM

Title: G00 X0 Y0 in MDI not working in Mach4
Post by: kcassella on February 15, 2020, 07:57:02 AM
Hello,

When I set the work offset for my Gcode file to X0 Y0 and move the axis to another location, I'll enter G00 X0Y0 in the MDI, hit cycle start, the axis will not move. If I enter G00 X10, the axis will move 10mm. I can't figure out why the axis will not move to zero location.
Also, the Go to Work Zero button will not work. I did change the script to:

GoToWorkZero()
local inst = mc.mcGetInstance()
mc.mcCntlMdiExecute(inst, "G00 G53 Z0\nG00 X0 Y0\nG00 Z0")

Why will the axis not move back to work zero location? 
Could someone please help!!!

Thanks,
Kerry

Title: Re: G00 X0 Y0 in MDI not working in Mach4
Post by: Steve Stallings on February 15, 2020, 09:19:13 AM
Any chance you are in Incremental motion mode?
Title: Re: G00 X0 Y0 in MDI not working in Mach4
Post by: kcassella on February 15, 2020, 01:49:50 PM
No, I'm in continuous mode. Unless there is a different location for that would cause this problem. I'm able to move the axis to any position using the MDI screen except back to work zero.

Thanks,
Kerry
Title: Re: G00 X0 Y0 in MDI not working in Mach4
Post by: kcassella on February 15, 2020, 02:55:26 PM
Steve,

You were right. I found under Configure, Control - Distance Mode was set to Incremental. I set Distance Mode to Absolute. Working good now.
Thank you for your help.

Kerry
Title: Re: G00 X0 Y0 in MDI not working in Mach4
Post by: joeaverage on February 15, 2020, 03:52:12 PM
Hi,
its normal to set your machine to Absolute Distance mode in Machs Control plugin you can switch back and forth
to absolute/incremental mode by use of g90/g91 in Gcode. Page 50 'Mill Gcode Progrmming.pdf in Mach4Hobby/Docs.

Craig