Notifications
Clear all

Gcode force ignore Z_SAFE_HOMING  

  RSS
magnus.e
(@magnus-e)
Active Member
Gcode force ignore Z_SAFE_HOMING

Hi.

First post here, recieved my Prusa i3 mk2s about a month ago, and it works great 🙂

The issue I'm having is that my power went out when I was not at home, and I'm attempting to save my print (foour hours in) using this Guide

So I have managed to home XY and move the Z axis to the top and set coordinated to 0. However the true 0 point for the mk2 is not at the top, but set when Z is homed with the pinda probe.

So I could do a auto home, but the printet part blocks the Z axies to home when XY is homed. Some digging around and the gcode G28 Z ; home Z axis only "would" home the Z axies only, after i placed XY over the rear - right calib point (point 9?). But when I do this, the printer starts by homing XY. Some more digging and I figured this is because of the Z_SAFE_HOMING

/**
* Z Safe Homing
*
* Enable this option to avoid homing with a Z probe outside the bed area.
*
* With safe homing enabled:
*
* - Allow Z homing only after X and Y homing AND stepper drivers still enabled.
* - If stepper drivers time out, it will need X and Y homing again before Z homing.
* - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28).
* - Prevent Z homing when the Z probe is outside bed area.
*/
#define Z_SAFE_HOMING

#if ENABLED(Z_SAFE_HOMING)
#define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2) // X point for Z homing when homing all axis (G28).
#define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2) // Y point for Z homing when homing all axis (G28).
#endif

So I read the comments in that code, and it says If stepper drivers time out, it will need X and Y homing again before Z homing So I tried G28 X Y ; home xy axies then moved XY to a spot where Z could be homed and issued G28 Z ; home z axiesAt this point XY did not home, but the XY axies still moved the extruder to the first calib point before starting to home Z, so I had to kill power.

So Is there any way to home Z on the 9th point (or at current XY) with gcode? I could disable the safe feature and flash firmware, but then I would lose calibration and would not be able to recover like shown in the guide.

If it was just this print I would accept my losses and start over, but it's not the first time I have heard of, or experienced power-failure, failed prints, and a PSU is not an option at the time.

Thanks in advance, Magnus.

Posted : 11/05/2017 8:36 pm
magnus.e
(@magnus-e)
Active Member
Topic starter answered:
Re: Gcode force ignore Z_SAFE_HOMING

Also, I know my Z adjustment is -0.977

If I move the Z axies to the top, then add total travel Z (+18x.xx ?) + 0.977
Is there then a gcode to set / update Z coordinate?

Might be easyer to manage?

Posted : 11/05/2017 8:45 pm
magnus.e
(@magnus-e)
Active Member
Topic starter answered:
Re: Gcode force ignore Z_SAFE_HOMING

So no I'm printing again 🙂

I used the guide above, and added a step for the Z height.

After homing homing XY with G28 X Y I moved the extruder to a place I could lover Z to the bed.
Then I moved it to the top and set the position to 210.977 with G92 Z 210.98
Manually lovered the Z axies to the bed.
At this point I was at +1.3mm so I moved Z so I could just get a folded peice of printing paper under the nozzle and set G92 Z0
(As this is how the probe is calibrated, the Z offset would get it to the correct heigth when the print started)
Followed the guide for the rest.

It's been printing for 15 min after reset, and looks good. There is a slight miss match in Y axis, so ther is a fine layer line, but I have had similar lines sometimes at random.

Only thing to add to the guide, is that the lift in Z before re-setting XY, should come before setting the nozzle temp.
I did not fail, but I got a black spot from heating the nozzle on the print.

Posted : 11/05/2017 11:09 pm
Share: