Skip to content

Instantly share code, notes, and snippets.

@oliof
Created June 13, 2020 15:52
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 oliof/53817f9214af0721b61722d8ea6c392c to your computer and use it in GitHub Desktop.
Save oliof/53817f9214af0721b61722d8ea6c392c to your computer and use it in GitHub Desktop.
homing files
M400 ; wait til stuff stops
-- homex.g
M913 X30 Y30 ; drop motor currents to 30%
M201 X1000 Y1000 ; reduce acceleration on X/Y to stop false triggers
M915 P0:1 S2 R0 F0 H400; both motors because corexy; Sensitivity 2, don’t take action, don’t filter, 400steps/sec
G91 ; set relative
G1 Z5 F1200 H2
G1 H1 X-400 F4000 ; move left 250mm, stopping at the endstop
G1 X20 F1200; move away from end
G1 Z-5 F1200 H2
G90 ; back to absolute positioning
M400 ; wait again
M913 X100 Y100 ; motor currents back to 100%
G0 X0 F3600; move to center of bed
M201 X6000 Y6000 ; accel back to original
-- homey.g
M400 ; wait til stuff stops
M915 P0:1 S2 R0 F0 H400; both motors because corexy; Sensitivity 2, don’t take action, don’t filter, 400steps/sec
M913 X30 Y30 ; drop motor currents to 30%
M201 X1000 Y1000 ; reduce acceleration on X/Y to stop false triggers
G91 ; set relative coordinates
G1 Z5 F1200 H2 ; clear the bed
G1 H1 Y400 F4000 ; move 400mm, stopping at the endstop
G0 Y-20 F1200 ; move away from end
G1 Z-5 F1200 H2 ; bed back to original height
G90 ; back to absolute positioning
M400 ; wait again
M913 X100 Y100 ; motor currents back to 100%
M201 X6000 Y6000 ; accel back to original
G0 Y0 ; move to center
-- homez.g
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Fri Jan 31 2020 14:54:14 GMT+0100 (Mitteleuropäische Normalzeit)
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G90 ; absolute positioning
G1 X0 Y0 F6000 ; go to first probe point
G30 ; home Z by probing the bed
; Uncomment the following lines to lift Z after probing
G91 ; relative positioning
G1 Z5 F100 ; lift Z relative to current position
G90 ; absolute positioning
-- homeall.g
G28 X
G28 Y
G28 Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment