Guest User

Untitled

a guest
Jan 9th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. ;Begin m.gcode
  2. M907 X850 ;set current of X motor. May need to set Y as well if your printers head moves on x & y
  3.  
  4. M106 S0 ;turn off fan
  5. G92 E0 ;reset extrusion distance
  6. G1 E-0.8 F2100 ;retract
  7. G1 Y100 F12000 ;Break string before Z lift
  8. G1 X200 F12000 ;move head into position
  9.  
  10. G91;Change to relative position
  11. {if layer_z < 15.0}
  12.  
  13. G1 Z15
  14.  
  15. {endif}
  16. ;UNCOMMENT G1 Z15 F15000 ;Purge Z lift
  17. G90;Change to absolute position
  18.  
  19. G4 S0 ;clear movement buffer
  20. G1 X250 F12000 ;move head to purge zone
  21. G1 x252.2 F1000 ;extend purge arm
  22. ;End m.gcode
  23. ***************End pre-tool change gcode**********************
  24.  
  25. ***************Begin after tool change purge gcode**********************
  26. G1 X200 F12000 ;move head into position
  27. G4 S0 ;clear movement buffer
  28. G1 X250 F12000 ;move head to purge zone
  29. G1 x252.2 F1000 ;extend purge arm
  30. M107 ;turn off fan
  31. G92 E0 ;reset extrusion position
  32. G1 E0.8 F2100 ;issue after retract
  33. G92 E0 ;reset extrusion position
  34. G1 E40 F200 ;1st purge extrude onto thumb tack
  35. M106 S255 ;turn on fan
  36. G4 S12 ;blob cooling
  37. G92 E0 ;reset extrusion position
  38. G1 E-0.8 F2100 ;retract extruder to prevent oozing
  39. G1 X240 F12000 ;whack blob off tack 1
  40. G1 x252.2 F3000 ;reset for another blob whack
  41. G1 X240 F12000 ;whack blob off tack 2
  42.  
  43. G1 X200 F15000
  44. G4 S0
  45. G1 X250 F12000
  46. G1 x252.2 F1000
  47. M107
  48. G92 E0
  49. G1 E0.8 F2100 ;issue
  50. G92 E0
  51. G1 E40 F200 ;2nd purge
  52. M106 S255 ;blob cooling
  53. G4 S12 ;blob cooling
  54. G92 E0
  55. G1 E-0.8 F2100
  56. G1 X240 F12000
  57. G1 x252.2 F3000
  58. G1 X240 F12000
  59.  
  60. G1 X200 F15000
  61. G4 S0
  62. G1 X250 F12000
  63. G1 x252.2 F1000
  64. M107
  65. G92 E0
  66. G1 E0.8 F2100 ;issue
  67. G92 E0
  68. G1 E40 F200 ;3rd purge
  69. M106 S255 ;blob cooling
  70. G4 S12 ;blob cooling
  71. G92 E0
  72. G1 E-0.8 F2100
  73. G1 X240 F12000
  74. G1 x252.2 F3000
  75. G1 X240 F12000
  76.  
  77. G1 X200 F15000
  78. G4 S0
  79. G1 X250 F12000
  80. G1 x252.2 F1000
  81. M107
  82. G92 E0
  83. G1 E0.8 F2100 ;issue
  84. G92 E0
  85. G1 E40 F200 ;4th purge
  86. M106 S255 ;blob cooling
  87. G4 S12 ;blob cooling
  88. G92 E0
  89. G1 E-0.8 F2100
  90. G1 X240 F12000
  91. G1 x252.2 F3000
  92. G1 X240 F12000
  93.  
  94. M907 X650 ;set the current back to normal
Advertisement
Add Comment
Please, Sign In to add comment