Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Zaae on April 16, 2018, 06:38:11 PM

Title: G28 moves twice, not understanding why.
Post by: Zaae on April 16, 2018, 06:38:11 PM
Hello all,

This isn't really that important in the grand scheme of things, but I'm curious why this happens.

At the end of my gcode, which uses several different G52 offsets, I've got this:

Code: [Select]
G28Z0
M44 (----------------------vac disable)
G52X0Y0
G0X0
G28Y0

Basically it moves to the center of my jig in X, then uses G28Y0 to bring the cutter closer for a manual tool change. This all works well enough, but for some reason, the G28Y0 moves the Y axis back to the center of the jig first, before eventually changing direction, and making its way to the actual Y axis home switch.

It doesn't hurt anything, it's just wasted movement. Any ideas why this happens?

If it makes any difference, I am using Fixture 1 (G54), with its X0Y0 being the center of a jig.

Thanks,
Z
Title: Re: G28 moves twice, not understanding why.
Post by: RICH on April 16, 2018, 07:26:23 PM
Have a look in the manual ( 10.7.10 ) about the G28 command.

RICH
Title: Re: G28 moves twice, not understanding why.
Post by: Zaae on April 16, 2018, 08:01:23 PM
Ahh, well there it is in black and white.

It's amazing what you can learn when you rtfm  :)

Thanks,
Z