Advertisement
tim57064

Duet_homeall_chezRob_14-Dec-2019

Dec 14th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. ; homeall.g
  2. ; called when homing all axes
  3. ;
  4. ; generated by RepRapFirmware Configuration Tool v2 on Fri Nov 30 2018 17:18:08 GMT-0700 (Mountain Standard Time)
  5.  
  6. ; Prepare for homing
  7. M400 ; Wait for move buffer to finish
  8. G91 ; Switch to relative motion coordinates
  9. G92 X250 Y250 Z10 ; Force arbitrary position
  10. G1 Z10 F500 ; Raise hotend away from bed
  11. G4 P500 ; wait 500msec
  12. M400 ; make sure everything has stopped before we make changes
  13.  
  14. ; Home Y First
  15. M913 Y55 ; reduce motor current to 55% to prevent belts slipping
  16. G1 Y-505 F4800 S1 ; move quickly to Y EoT and stop there (first pass)
  17. M400
  18. G4 P100 ; wait 100msec
  19. G1 Y10 F2400 ; Move Away 10mm from Y axis EoT
  20. M400
  21. G4 P100 ; wait 100msec
  22. M913 Y100 ; motor currents back to normal
  23.  
  24. ; Home X Second
  25. M913 X55 ; reduce motor current to 55%
  26. G1 X-505 F4800 S1 ; move quickly to X EoT and stop there (first pass)
  27. M400
  28. G4 P100 ; wait 100msec
  29. G1 X10 ; Move Away 10mm from X axis EoT
  30. M400
  31. G4 P100 ; wait 100msec
  32. M913 X100 ; return motor current to 100%
  33.  
  34. G90 ; absolute positioning
  35. M400 ; make sure everything has stopped before we reset the motor currents
  36.  
  37. ;Home Z Last
  38. M913 Z55 ; reduce motor current to 55%
  39. G1 X150 Y200 F3000 ; go to first probe point
  40. M400
  41. G4 P500 ; wait 500msec
  42. G30 ; home Z by probing the bed once
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement