Marlin icon indicating copy to clipboard operation
Marlin copied to clipboard

Print not centered if using G29 to auto-level

Open PxT opened this issue 10 years ago • 8 comments

As discussed here: http://www.printrbottalk.com/forum/viewtopic.php?f=19&t=7822 and here: https://github.com/ErikZalm/Marlin/issues/732

PxT avatar Oct 20 '14 02:10 PxT

For me it seems to be related to an error with G28. It zeroes X, then zeroes Y, then zeroes Z to Y10 and calculates everything else from there. If I use G28 X0 Y0, G28 Z0 then it performs as expected.

ei8htohms avatar Oct 20 '14 12:10 ei8htohms

@ei8htohms - do you have non-zero values for X or Y in your M212?

j-laird avatar Oct 22 '14 06:10 j-laird

No. M212 X0 Y0 Z0.6.

ei8htohms avatar Oct 22 '14 10:10 ei8htohms

I have the same issue after flashing this firmware for my simple metal revision D printrboard.

Aside from the usual switching around of the motor's connectors, my M212 shows a positive 20 for the X offset. (I'm sure I saw this on the shipped firmware too)

As far as I'm aware, removing the offset is a thought of as a hacky way to solve the issue.

ArktekniK avatar Nov 22 '14 18:11 ArktekniK

Using non-zero values for X and Y probe offset is hacky IF you're using a probe. I'm using the nozzle to probe the bed so M212 X0 Y0 is correct in my case.

ei8htohms avatar Nov 22 '14 18:11 ei8htohms

Oh - I thought the offset was needed for the simple metal. Well, I tried M212 X0 Y0, then a G28 X0 Y0, G28 Z0 and then finally a G29 and the bot correctly moves. Are the M212 settings stored in EEPROM? do they need an M500 or similar to store them?

ArktekniK avatar Nov 22 '14 19:11 ArktekniK

The probe offset is "needed" for the Printrbot Simple with the standard inductive probe. Having the correct offset will keep the bot from attempting to home in the Z direction when the probe is off the metal bed, something that could damage the bed, nozzle and/or coupler.

M212 will set the offset as your "current" value, but entering M500 will store it to EEPROM. If you do not store it to EEPROM then whatever values that are in EEPROM will become your current values on the next boot.

ei8htohms avatar Nov 22 '14 19:11 ei8htohms

Not sure if anyone from the Printrbot side is following this, but the upstream bug (moved to https://github.com/MarlinFirmware/Marlin/issues/732) concluded that this is a misconfiguration.

The default values for the *_PROBE_BED_POSITION constants in this fork are causing the off-center problem.

PxT avatar Mar 02 '15 06:03 PxT