Advertisement
kozubovskyy

Untitled

Dec 2nd, 2023 (edited)
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. G90 ; use absolute coordinates
  2. M83 ; extruder relative mode
  3. M140 S{first_layer_bed_temperature[0]} ; set final bed temp
  4. M104 S150 ; set temporary nozzle temp to prevent oozing during homing
  5. G4 S10 ; allow partial nozzle warmup
  6. G28 ; home all axis
  7. G1 Z50 F240
  8. G1 X2 Y10 F3000
  9. M104 S{first_layer_temperature[0]} ; set final nozzle temp
  10. M190 S{first_layer_bed_temperature[0]} ; wait for bed temp to stabilize
  11. M109 S{first_layer_temperature[0]} ; wait for nozzle temp to stabilize
  12. G1 Z0.28 F240
  13. G92 E0
  14. G1 Y140 E10 F1500 ; prime the nozzle
  15. G1 X2.3 F5000
  16. G92 E0
  17. G1 Y10 E10 F1200 ; prime the nozzle
  18. G92 E0
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. end:
  43.  
  44.  
  45. {if max_layer_z < max_print_height}G1 Z{z_offset+min(max_layer_z+2, max_print_height)} F600 ; Move print head up{endif}
  46. G1 X5 Y{print_bed_max[1]*0.8} F{travel_speed*60} ; present print
  47. {if max_layer_z < max_print_height-10}G1 Z{z_offset+min(max_layer_z+70, max_print_height-10)} F600 ; Move print head further up{endif}
  48. {if max_layer_z < max_print_height*0.6}G1 Z{max_print_height*0.6} F600 ; Move print head further up{endif}
  49. M140 S0 ; turn off heatbed
  50. M104 S0 ; turn off temperature
  51. M107 ; turn off fan
  52. M84 X Y E ; disable motors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement