Distance from endstop to nozzle -gcode
-
Distance from end stop to nozzle. Where do I account for my distance from the endstops to the nozzle in the code?
the distance between endstop and nozzle ist x=90mm and y=125
the distance between z-probe and nozzle ist x=-20mm (negative to the endstop) and y=95
Here ist my config.g :; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minima
M208 X628 Y845 Z1100 S0 ; set axis maxima; Endstops
M574 X1 S1 P"xstop" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
M574 Y1 S1 P"ystop" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
;M574 Z2 S1 P"zstop" ; configure switch-type (e.g. microswitch) endstop for high end on Z via pin zstop
;M574 Z2 S2 ; configure Z-probe endstop for high end on Z
; Z-Probe
M558 P1 C"!zprobe.in" H5 F120 T6000 ; set Z probe type to unmodulated and the dive height + speeds
G31 P1000 X-20 Y95 Z1.847 ; set Z probe trigger value, offset and trigger height
M557 X15:600 Y120:800 S50 ; define mesh grid -
If the nozzle has to go off the bed surface to reach an endstop you can account for that distance in the M208 axis limits. If the nozzle is on the edge of the bed at X0, then the endstop would be -90mm away from it and the X minima would be -90 for example.
The probe offsets are captured in G31.
-
@Phaedrux Thanks, the probe is something different than the nozzle...can I set the nozzle with, for example, 90 mm as 0, a kind of "origin"
-
@axiom
When you home the axes, they will move to the end stops and set that position to whatever you have as the minima in M208 (if homing to min end stop)
So if you home it then drive to the point on the bed where you want to be zero and it says you're at X90 Y30, you would change M208 in config.g to be M208 S1 X-90 Y-30