Advertisement
tim57064

Duet_homex_chezRob_14-Dec-2019

Dec 14th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. ; homex.g
  2. ; called to home the X axis
  3. ;
  4. M400 ; make sure everything has stopped before we make changes
  5. M913 X45 ; reduce motor current to 55% to prevent belts slipping
  6. G91 ; relative positioning
  7. G1 Z10 F1200 S2 ; lift Z relative to current position
  8. G4 P100 ; wait 100msec
  9. M400
  10. G1 S1 X-505 F4800 ; move quickly to X EoT and stop there (first pass)
  11. M400
  12. G4 P100 ; wait 100msec
  13. G1 X10 ; Move Away 10mm X axis EoT
  14. M400
  15. G4 P100 ; wait 100msec
  16. G1 Z-10 F1200 S2 ; Return Z to original position
  17. G90 ; absolute positioning
  18. M400 ; make sure everything has stopped before we reset the motor currents
  19. M913 X100 ; motor currents back to normal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement