betlog

Slic3r and Octoprint G-CODE appends - BETLOG

Dec 12th, 2017
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. Anycubic i3 Mega (original model) - Slic3r and octoprint - custom g-code fields
  2. These get used together, Slic3r handles some custom gcode and octoprint handles the rest.
  3. There is a reason why I spread the gcode between the two applications, but to be honest I forget exactly why... something to do with the timing of startup script. No doubt I'd find out if I ever try to put it all into octoprint again.
  4.  
  5.  
  6. SLIC3R - PRINTER SETTINGS - CUSTOM GCODE
  7.  
  8. ;Start-G-Code:
  9.  
  10. M190 S[first_layer_bed_temperature];set and wait
  11. M109 S[first_layer_temperature] ;set and wait
  12. M300 S100 P5000 ;BEEP
  13. G28 X Y
  14. G28 Z
  15. G92 E0 ; zero filament pos
  16. G1 E30 F200 ;extrude
  17. G92 E0 ; zero filament pos
  18.  
  19.  
  20.  
  21.  
  22. OCTOPRINT - Settings - Custom Gcode Settings
  23.  
  24. ;Before print job starts
  25.  
  26. M300 S500 P500 ;BEEP
  27.  
  28.  
  29. ;After print job completes
  30.  
  31. G92 E0 ; zero filament pos
  32. G1 E-2 F300 ;retract
  33. G92 E0 ; zero filament pos
  34. G91 ; relative
  35. G0 Z2 F9000; move up
  36. G90; absolute
  37. G92 E0 ; zero filament pos
  38. G1 E-13 F300 ;retract
  39. G92 E0 ; zero filament pos
  40. G28 X0
  41. G0 Y200 F3000 ; BED FORWARD
  42. M104 S0 ; turn off temperature
  43. M140 S0 ; BED OFF
  44. M84 ; disable motors
  45. M300 S500 P1000 ;BEEP
  46. M300 S1000 P500 ;BEEP
  47. M300 S2000 P250 ;BEEP
  48.  
  49.  
  50.  
  51.  
  52.  
  53. ;After print job is cancelled
  54.  
  55. G92 E0 ; zero filament pos
  56. G1 E-15 F300 ;retract 15mm filament speed 300
  57. G92 E0 ; zero filament pos
  58. G91 ;relative
  59. G0 Z10 ; up
  60. G90 ; absolute
  61. M104 S0 ; turn off temperature
  62. M140 S0 ; BED OFF
  63. G28 X0
  64. G0 Y200 F3000 ; BED FORWARD
  65. M84 ; disable motors
  66.  
  67.  
  68.  
  69. ;After print job is paused
  70.  
  71. G92 E0
  72. G1 E-15 F300 ;retract
  73. G92 E0
  74. G91;relative
  75. G0 Z10 F9000 ;UP
  76. G90; absolute
  77. G0 X0 Y200 F9000 ;arbitrary absolute pos
  78. M300 S500 P2000 ;BEEP
  79.  
  80.  
  81.  
  82. ;Before print job is resumed
  83.  
  84. M300 S500 P2000 ;BEEP
  85. G28 X Y ;home XY ONLY, to negate any unpowered bed movement by user, only as accurate as the endstops
  86. G90; absolute
  87. G0 X0 Y200 F9000 ;arbitrary absolute pos
  88. G92 E0
  89. G1 E15 F300 ;extrude
  90. G92 E0
  91. G91;relative
  92. G0 Z-10 F9000 ;down
  93. G90; absolute
Advertisement
Add Comment
Please, Sign In to add comment