Chose random spot/area to home Z?
-
Hello,
is there a way i can generate a random area around the center of my bed to home my z axis? thanks -
@huge said in Chose random spot/area to home Z?:
Hello,
is there a way i can generate a random area around the center of my bed to home my z axis? thanksJust out of curiosity why do you want to do that?
Thanks.
Frederick
-
Yes it's possible, but why?
Assuming you're on V3.2b you can use the random(nn) function
Check release notes for which version it was introduced in.E.g
G1 X{move.axes[0].max/2 - 25 + random(50)}
Would put you +/- 25mm from bed centre assuming X max defines the edge of the bed and X min = 0
You could always hard code it. -
Reasons I've seen given for requesting this in the past has been when using nozzle contact probes a small divot can develop after repeated probings in the same place.
-
makes sense!
-
The reason is exaclty as Phaerdrux explained. I am using a piezo on the nozzle to home my Z axis.
Thanks for the quick answers guys