Welcome! Log In Create A New Profile

Advanced

Wrong X and Y position after Auto leveling

Posted by gurmeet.athwal 
Wrong X and Y position after Auto leveling
November 26, 2015 09:52PM
Hi.. I have a Sunhokey Prusa I3 2015 Model and marlin firmware.
I just enabled Auto leveling with inductive sensor.
I set auto leveling grid for 4 corners of the bed.
After I send the G28 command the printer will home X and Y axis but while homing Z axis for first time the Y axis will move about 10mm.
During the last point the x carriage will hit the x axis and it shows X position as -7.8 and Y position as normally 180.
Now when I try to move Y axis, it will not move more than 20mm. And while I move Y axis the X axis will move about 7.8 mm.
I had set the homing grid as:
Front: 0
Back : 180
Left : 0
Right : 167

The x offset of the sensor from extruder is set to 28mm
And y offset to 0.

The homing grid points are set to 2.

Please help.
Re: Wrong X and Y position after Auto leveling
November 27, 2015 08:46AM
Look in configuration.h and setup the locations and bed dimensions to your configuration. are you using min endstops max endstops or both or a mix? If you have trouble figuring it out, you can use the attach function above the edit field to attach the config file. We can have a look at it but we need to know where the end stops are located and if they are min or max endstops.


--
Kind regards
Imqqmi

NFAN CoreXY printer:
[reprap.org]
Re: Wrong X and Y position after Auto leveling
November 27, 2015 09:00AM
I am using only min endstops. I attached the config file as you asked.
Attachments:
open | download - Configuration.h (35 KB)
Re: Wrong X and Y position after Auto leveling
November 27, 2015 10:19AM
You need to set this one to false, you'll need this to be able to move the nozzle to the build plate. It may also fix your X and Y problem.
#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.


--
Kind regards
Imqqmi

NFAN CoreXY printer:
[reprap.org]
Re: Wrong X and Y position after Auto leveling
November 27, 2015 10:41AM
I tried to set it to false as you said.. auto level is working fine but the X axis still offsets to -28
Re: Wrong X and Y position after Auto leveling
November 27, 2015 12:22PM
That is as expected right? Since the probe is at +28mm offset, the nozzle needs to go to -28mm to set the probe at 0mm. You could set the Left homing grid to 28, that way it won't go negative.


--
Kind regards
Imqqmi

NFAN CoreXY printer:
[reprap.org]
Re: Wrong X and Y position after Auto leveling
November 27, 2015 12:56PM
Yes now I set the left home grid to 28.
when I run G28 command and then run auto level with G29 offsets still goes to -28.
But when I run "G28 X Y" to home only X and Y axis and then run Auto level with G29 every thing goes well as expected...
Re: Wrong X and Y position after Auto leveling
November 27, 2015 02:50PM
It doesn't really matter, if -28 is the point where you want x to be 0, just do a G92 X and it will take that point as 0. Or move X anywhere and make it zero with G92 X. As long as the end steps are used as reference you can set the 0,0,0 point anywhere you want.


--
Kind regards
Imqqmi

NFAN CoreXY printer:
[reprap.org]
Re: Wrong X and Y position after Auto leveling
November 27, 2015 08:39PM
Ok now I got it thanks...thumbs up
Re: Wrong X and Y position after Auto leveling
December 07, 2015 10:54PM
Quote
gurmeet.athwal
Yes now I set the left home grid to 28.
when I run G28 command and then run auto level with G29 offsets still goes to -28.
But when I run "G28 X Y" to home only X and Y axis and then run Auto level with G29 every thing goes well as expected...

It should be
G28 X Y
G29

That way it will home X and Y to 0.
Then do the auto bed leveling.

When i did just a normal G28 it would freeze and say probe out of bed.
MY probe is about "-20 X" and "15 Y"
Re: Wrong X and Y position after Auto leveling
December 07, 2015 11:34PM
Quote
xile6
Quote
gurmeet.athwal
Yes now I set the left home grid to 28.
when I run G28 command and then run auto level with G29 offsets still goes to -28.
But when I run "G28 X Y" to home only X and Y axis and then run Auto level with G29 every thing goes well as expected...

It should be
G28 X Y
G29

That way it will home X and Y to 0.
Then do the auto bed leveling.

When i did just a normal G28 it would freeze and say probe out of bed.
MY probe is about "-20 X" and "15 Y"

U r right, however I had to adjust the X and Y location everytime after autoleveling with the G92 command. I read somwhere that its a bug in the marlin firmware.
Re: Wrong X and Y position after Auto leveling
December 08, 2015 06:03AM
Quote
xile6
When i did just a normal G28 it would freeze and say probe out of bed.

If you don't home your Z axis you'll get the "Probe out of bed" issue. I need to play with my printer to give you a proper answer but this was my fight with this problem.
Best regards,
Bobby
Re: Wrong X and Y position after Auto leveling
December 08, 2015 05:16PM
Quote
BoByS
Quote
xile6
When i did just a normal G28 it would freeze and say probe out of bed.

If you don't home your Z axis you'll get the "Probe out of bed" issue. I need to play with my printer to give you a proper answer but this was my fight with this problem.
Best regards,
Bobby

I dont have a problem with mines.
My gcode is
G28 X Y
G29

It homes X, Y then moves to center of the bed probes Z then does the auto leveling.

I was trying to help "gurmeet.athwal"
By posting how mines work
Sorry, only registered users may post in this forum.

Click here to login