Advertisement
Guest User

Untitled

a guest
Mar 14th, 2022
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. G28
  2. G1 Z15 F300 ;move extruder up 15mm at 5mm/s
  3. G90 ;absolute positioning
  4. M82 ;set extruder to absolute mode
  5. M107 ;start with the fan off
  6. M163 S0 P0.33
  7. M163 S1 P0.33
  8. M163 S2 P0.33
  9. M164 S4
  10. M104 S{print_temperature} ;Set extruder temperature
  11. M190 S{print_bed_temperature} ;Set bed temperature
  12. M109 S{print_temperature} ;Set extruder temperature and wait
  13. G92 E0 ;Reset extruder position(zero the extruded length)
  14. G0 X1.5 Y20 F2100 ;Move nozzle at 35mm/s
  15. G1 Z0.8 F300 ;Move Z Axis up little to prevent scratching of Heat Bed
  16. G1 X180 E60 F300 ;Move nozzle at 5mm/s and extrude filament 60mm
  17. G1 Z5 F300 ;Move Z Axis up 5mm at 5mm/s
  18. G92 E0 ;Reset extruder position(zero the extruded length)
  19. T0 ;Switch to the first extruder
  20.  
  21. G91
  22. G1 E-2 F1500 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
  23. G1 Z5 F300 ;move Z up a bit and retract filament even more
  24. G90 ;absolute positioning
  25. G92 E0 ;Reset extruder position(zero the extruded length)
  26. G0 X1.0 Y200 F2000;
  27. M140 S0 ;turn off bed
  28. M84 ;disable motors
  29. M104 S0 ;turn off extruder
  30. M107 ;off fan
  31. T0 ;Switch to the first extruder
  32. M84 ;disable motors
  33.  
  34. ;Switch between the current extruder and the next extruder, when printing with multiple extruders.
  35. ;This code is added before the T(n)
  36.  
  37. ;Switch between the current extruder and the next extruder, when printing with multiple extruders.
  38. ;This code is added after the T(n)
  39.  
  40. START 2
  41. G21 ;metric values
  42. G90 ;absolute positioning
  43. M107 ;start with the fan off
  44. G28 X0 Y0 ;move X/Y to min endstops
  45. G28 Z0 ;move Z to min endstops
  46. G1 Z15.0 F{travel_speed} ;move the platform down 15mm
  47. T1 ;Switch to the 2nd extruder
  48. G92 E0 ;zero the extruded length
  49. G1 F200 E10 ;extrude 10mm of feed stock
  50. G92 E0 ;zero the extruded length again
  51. G1 F200 E-{retraction_dual_amount}
  52. T0 ;Switch to the first extruder
  53. G92 E0 ;zero the extruded length
  54. G1 F200 E10 ;extrude 10mm of feed stock
  55. G92 E0 ;zero the extruded length again
  56. G1 F{travel_speed}
  57. ;Put printing message on LCD screen
  58. M117 Printing...
  59.  
  60. END2
  61. ;End GCode
  62. M104 T0 S0 ;extruder heater off
  63. M104 T1 S0 ;extruder heater off
  64. M140 S0 ;heated bed heater off (if you have it)
  65. G91 ;relative positioning
  66. G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
  67. G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
  68. G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
  69. M84 ;steppers off
  70. G90 ;absolute positioning
  71. ;{profile_string}
  72.  
  73. START 3
  74. G21 ;metric values
  75. G90 ;absolute positioning
  76. M107 ;start with the fan off
  77. G28 X0 Y0 ;move X/Y to min endstops
  78. G28 Z0 ;move Z to min endstops
  79. G1 Z15.0 F{travel_speed} ;move the platform down 15mm
  80. T2 ;Switch to the 2nd extruder
  81. G92 E0 ;zero the extruded length
  82. G1 F200 E10 ;extrude 10mm of feed stock
  83. G92 E0 ;zero the extruded length again
  84. G1 F200 E-{retraction_dual_amount}
  85. T1 ;Switch to the 2nd extruder
  86. G92 E0 ;zero the extruded length
  87. G1 F200 E10 ;extrude 10mm of feed stock
  88. G92 E0 ;zero the extruded length again
  89. G1 F200 E-{retraction_dual_amount}
  90. T0 ;Switch to the first extruder
  91. G92 E0 ;zero the extruded length
  92. G1 F200 E10 ;extrude 10mm of feed stock
  93. G92 E0 ;zero the extruded length again
  94. G1 F{travel_speed}
  95. ;Put printing message on LCD screen
  96. M117 Printing...
  97.  
  98. END 3
  99. ;End GCode
  100. M104 T0 S0 ;extruder heater off
  101. M104 T1 S0 ;extruder heater off
  102. M104 T2 S0 ;extruder heater off
  103. M140 S0 ;heated bed heater off (if you have it)
  104. G91 ;relative positioning
  105. G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
  106. G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
  107. G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
  108. M84 ;steppers off
  109. G90 ;absolute positioning
  110. ;{profile_string}
Advertisement
RAW Paste Data Copied
Advertisement