Homing z at a specific xy location

I am wondering if there is any way to home X and Y and the move to a specific XY position before homing Z. I am setting up a Prusa i3 clone. I have a mechanical switch set up for the Z endstop but it is mounted on the corner of the bed and does not align with the nozzle at X0Y0. Any help with the config settings would be greatly appreciated.

Imported from wikidot

Hello, i have the same question with an hypercube.
I don’t know if there is an option, i’m going to read the source code to find something.

Hello,

I always use the following commands when powering my printer up:

G28XY ; homes X and Y only
G0X100Y100 ; goes to the center of the bed
G28Z ; homes Z

Then I fine adjust the height using a 0.05mm sheet of paper and set it as Z=0.

I use the Cura slicer and it doesn’t ever home Z, it assumes it was already set rightly.

Best regards,
Haddad