Skip to content

Instantly share code, notes, and snippets.

@nraynaud
Last active January 1, 2021 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nraynaud/8a20b6d4775440811e240ee9ba90cb8c to your computer and use it in GitHub Desktop.
Save nraynaud/8a20b6d4775440811e240ee9ba90cb8c to your computer and use it in GitHub Desktop.
; Lift Z relatively to current position
G91
G1 S2 Z2 F6000
; split Z motor control to Z and U
; for it to work we have to show U (param P4) in the UI
M584 Z2 U3 P4
; Move Z and U down until the switches triggers
G1 S1 Z-205 U-205 F1000
; back to combined axes and hidden U
M584 Z2:3 P3
; Back to absolute positioning
G90
; Tell the firmware where we are
G92 Z0
; lift Z after probing, without endstop protection
G91
G1 S2 Z10 F1000
G90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment