@dc42 said in Set Z height Max For clay Delta printer:
@JetClay one option may be to use G30 S-1 to do manual probing without setting the Z height to zero. Then run this:
G10 L2 Z{sensors.probes[0].lastStopHeight}
This will set the Z offset of the workplace to that height. Or you could use:
G10 L2 Z{move.axes[2].userPosition}
since the current Z position will be the same. Or even:
G10 L20 Z0
You can include
G10 L2 Z0
in your homedelta.g file to reset the offset to zero when you home the printer again.
Thank you very much for your response we finally made it work! we used this code
; SetZHeight.g - Manual Z height calibration & M665 H update
M291 P"Ensure the nozzle is clean. Press OK to continue." R"Z-Height Calibration" S3
G28 ; Home all axes completely before probing
M665 ; Print current M665 values for reference
; Ensure previous height offsets are cleared
G10 L2 Z0
M291 P"Move the nozzle down until it just touches the bed. Press OK when done." R"Manual Adjustment" S3 S2
G30 S-1 ; Perform manual probing without setting Z=0
M291 P"Extracting new height offset..." R"Processing" S1
; Ensure latest calibration data is loaded before changing M665 H
M501 ; Load saved config-override.g (M665 H value)
; Capture the last probe height and set Z offset
G10 L2 Z{sensors.probes[0].lastStopHeight}
; Update M665 H dynamically based on last saved value
M665 H{move.kinematics.homedHeight - sensors.probes[0].lastStopHeight}
; Save new M665 H for persistence
M500 ; Save parameters to config-override.g
M291 P"Calibration complete! The new Z height and M665 H value have been saved." R"Success" S1
M501 ; override config file
G28 ; Home axes
Hope it works for maore people!