Home Z in Center of Bed?



  • So I recently picked up and wired my CR-10S5 for the Duet 2. Using some tips from here I was able to get everything functioning but I have one problem I can't figure out. When I home all the axis, X and Y move to the 0,0 which is the bottom left corner of the bed as expected. It then attempts to home Z which is a slight issue. At the 0,0 the z probe isn't quite over the bed and the whole hot end will crash unless I stop it by tapping the sensor with my finger. I know I probably need to add a line to the homez file to get it to center over the center of the bed but I am not exactly sure what to add or how that will affect everything else. Any thoughts?


  • Moderator

    Before the G30 in the homeall.g you'll need to position the probe using something like this:

    G90 ; absolute position
    G1 X150 Y150 F6000 ; move probe to center of bed
    G30 ; probe the bed
    

    You'll need to change the coordinates in that G1 move so that the probe is in the center of the bed.

    You'll need to do the same for homez.g as well.



  • So does that G30 command replace this?

    G1 H1 Z-505 F1800 ; move Z down until the endstop is triggered

    I must have missed some reading somewhere. So close though!


  • Moderator

    Yes, G30 calls the probe. G1 H1 Z-505 F1800 is a move to endstop.



  • @Phaedrux
    Success! Thank you!


Log in to reply