Advertisement
NovaViper

GCode

Feb 10th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. M201 X500 Y500 Z100 E5000 ; sets maximum accelerations, mm/sec^2
  2. M203 X500 Y500 Z5 E25 ; sets maximum feedrates, mm/sec
  3. M204 S500 T500 ; sets acceleration (S) and retract acceleration (T)
  4. M205 X10 Y10 Z0.3 E5.0 ; sets the jerk limits, mm/sec
  5. M205 S0 T0 ; sets the minimum extruding and travel feed rate, mm/sec
  6.  
  7. G28 ; Home all axes
  8.  
  9. M117 Heating... ;Put printing message on LCD screen
  10. M300 S2500 P100; Beep
  11. M221 S{if layer_height<0.075}100{else}95{endif} ; Set flow
  12. M104 S[first_layer_temperature] ; set extruder temp
  13. M140 S[first_layer_bed_temperature] ; set bed temp
  14. G1 Z20 ; this is a good start heating position
  15. G28 X Y; Home XY
  16. M84 ; disable motors
  17. M190 S[first_layer_bed_temperature] ; wait for bed temp
  18. M109 S[first_layer_temperature] ; wait for extruder temp
  19.  
  20. ; Start of print
  21. G21; metric values
  22. G90 ; absolute positioning
  23. M82; set extruder to absolute mode
  24.  
  25. ; Prepare nozzle
  26. G92 E0 ; Set extrusion distance to 0
  27. G92 E0 ; Set extrusion distance to 0
  28. G1 F1800 E3;
  29. G92 E0 ; Set extrusion distance to 0
  30. G90;
  31.  
  32.  
  33. ; You may want to adjust the X and Y here so the nozzle is really above the bed!
  34. G1 X5.0 Y5.0 F7200 ; Move to a position in the left front of the bed
  35. G1 Z0.8; Move nozzle above 0.8 mm of the bed
  36.  
  37. G91 ; Use relative mode
  38. ; Make some jerky zick-zack move at the beginning
  39. ; This is supposed to get rid of residue at the nozzle
  40. G1 X1.0 Y5.0 Z-0.1 E-1.0 F7200 ; X6 Y10 Z0.1, retract a tiny bit / 120mm/s
  41. G1 X1.0 Y-5.0 Z0.1 E2.0 F7200 ; X7 Y5 Z0.2 extrude a tiny bit
  42. G1 X2.0 Y5.0 Z-0.1 F7200 ; X9 Y10 Z0.1
  43. G1 X2.0 Y-5.0 Z0.1 F7200 ; X11 Y5 Z0.2
  44. G1 X2.0 Y5.0 F7200 ; X13 Y10
  45. G1 X2.0 Y-5.0 F7200 ; X15 Y5
  46.  
  47. ; now print a line of filament to prepare extrusion
  48. G1 X200 E40 F1000 ; prints a line in the fron
  49.  
  50. ; Done with the dancing :)
  51. :G92 E7 ; Set extrusion distance to 3
  52. G90 ; switch back to absolute mode
  53.  
  54. M117 Printing... ;Put printing message on LCD screen
  55. ; Start of actual GCode for the print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement