Skip to content

Instantly share code, notes, and snippets.

@oliof
Last active October 3, 2020 08:43
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/bb066f25146ba59bf6d764ef7ba66590 to your computer and use it in GitHub Desktop.
Save oliof/bb066f25146ba59bf6d764ef7ba66590 to your computer and use it in GitHub Desktop.
M400 ; clear gcode buffer
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 ; clear the bed
G1 H1 X-400 F4000 ; move left 400mm, stopping at the endstop
G1 X20 F1200 ; move away from end
G1 Z-5 F1200 H2 ; return to previous z position
G90 ; back to absolute positioning
M400 ; clear gcode buffer
M913 X100 Y100 ; motor currents back to 100%
G0 X0 F3600 ; move to center of bed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment