Hello Guest it is May 17, 2021, 07:15:13 PM

Author Topic: G00 X0 Y0 in MDI not working in Mach4  (Read 376 times)

0 Members and 1 Guest are viewing this topic.

G00 X0 Y0 in MDI not working in Mach4
« 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

Re: G00 X0 Y0 in MDI not working in Mach4
« Reply #1 on: February 15, 2020, 09:19:13 AM »
Any chance you are in Incremental motion mode?
Steve Stallings
www.PMDX.com
For PMDX product support, please use PMDX forum or direct email for quickest response. We do not use this forum as our primary product support site.
Re: G00 X0 Y0 in MDI not working in Mach4
« Reply #2 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
Re: G00 X0 Y0 in MDI not working in Mach4
« Reply #3 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
Re: G00 X0 Y0 in MDI not working in Mach4
« Reply #4 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
My wife left with my best friend...
     and I miss him!