Advertisement
Guest User

Tool Change G-Code for 3D Chameleon

a guest
Aug 16th, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. ; Auto generated 3D Chameleon Mk4 Tool Change GCode for PrusaSlicer
  2.  
  3. ; - 3D Chameleon Mk4 Tool T{next_extruder} -
  4. ;begin switch from extruder {previous_extruder} to extruder #{next_extruder}
  5. M117 Unloading Tool T[previous_extruder]
  6. M83 ; turn relative distances for the extruder
  7. ; unload extruder {previous_extruder}
  8. G92 E0
  9. ; go to holding position to unload the stock extruder
  10. G0 Y427 F2280 ; <<----- EDIT THIS LINE TO SET THE INITIAL LOCATION OF THE BUTTON
  11. ; if this is the first load, then don't unload
  12. G91 ; move to relative mode
  13. M83
  14. ; load extruder #{next_extruder}
  15. M117 Loading Tool T{next_extruder}
  16. {if previous_extruder>-1}
  17. ; back out the filament for cutting
  18. G0 E-30 F500 ; retract a bit, adjust this to tune waste
  19. ; <<<< insert mechanical cutter code here! >>>>
  20. ;<<< Start Of Tip Shaping- Remove If No Cutter! >>>
  21. M109 R180; cool down to prevent swelling
  22. M302 S0 ; enable cold extrusion
  23. M106 S255
  24. G0 E20 F2280 ;
  25. G0 E-5 F500 ;
  26. M109 R165; cool down to prevent swelling
  27. G0 E5 F2280 ;
  28. G0 E-1 F500 ;
  29. ;M109 R155; cool down to prevent swelling
  30. G0 E1 F2280 ;
  31. G0 E-25 F500 ;
  32. ;M109 R150; cool down to prevent swelling
  33. G0 E24 F2280 ; last tip dip with cold tip
  34. G0 E-24 ; last tip dip with cold tip
  35. M109 R180; ok... go back up in temp so we can move the extruder
  36. G0 E-80 F500 ; back out of the extruder
  37. G92 E0
  38. M104 S[temperature];
  39. ;<<< End Of Tip Shaping >>>
  40. ; we skipped to here if it was extruder -1
  41. {endif}
  42. {if previous_extruder>-1}
  43. ; retract it back out of the extruder
  44.  
  45. G92 E0
  46. G0 E-100 F2280
  47. G92 E0
  48. G0 E-60 F2280
  49. G92 E0
  50.  
  51. G0 E-30 F2280 ; <<<---- if mechanical cutter, change to a positive value of at least 5mm
  52. G92 E0
  53. ; ok - out of extruder - press button to remove it all the way
  54. G91 ; move to relative mode
  55. M82
  56. ; we skipped to here if it was extruder -1
  57. {endif}
  58. ; press the button to select the new extruder
  59. G0 Y3 F2280
  60.  
  61. {if next_extruder==0}
  62. G4 P550 ; dwell for .5 seconds - adjust this to match your machines single pulse time
  63. {endif}
  64. {if next_extruder==1}
  65. G4 P1000 ; dwell for 1.0 seconds - adjust this to match your machines two pulse time
  66. {endif}
  67. {if next_extruder==2}
  68. G4 P1500 ; dwell for 1.5 seconds - adjust this to match your machines three pulse time
  69. {endif}
  70. {if next_extruder==3}
  71. G4 P1900 ; dwell for 2.0 seconds - adjust this to match your machines four pulse time
  72. {endif}
  73. G0 Y-3
  74.  
  75. G4 P5000 ; wait for cutter to work
  76. ; ok command selected - back out filament if needed after cut
  77. {if previous_extruder>-1}
  78. G0 Y3 F2280 ;
  79. G4 P8400 ;
  80. G0 Y-3;
  81. G4 P400
  82.  
  83. {endif}
  84. G0 Y3 F2280 ;
  85. G4 P8400 ;
  86. G0 E50 F2280; <<<--- adjust this E value to tune extruder loading
  87. G0 Y-3;
  88. G4 P400
  89.  
  90. G92 E0
  91. G90 ; move back to absolute mode
  92. M83 ; but make sure the extruder stays in relative
  93. ; reload filament all the way into extruder
  94.  
  95. G92 E0
  96. G0 E100 F2280
  97. G92 E0
  98. G0 E60 F2280 ; <<<<<----------- EDIT THIS DISTANCE TO FINE TUNE THE FILAMENT LOADING TO STOP BLOBBING OR UNDEREXTRUSION
  99. G92 E0
  100.  
  101. M83 ; turn relative distances for the extruder
  102. M302 S180 ; prevent cold extrusion
  103. M117 3D Chameleon Tool T{next_extruder}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement