Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Anycubic i3 Mega (original model) - Slic3r and octoprint - custom g-code fields
- These get used together, Slic3r handles some custom gcode and octoprint handles the rest.
- 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.
- SLIC3R - PRINTER SETTINGS - CUSTOM GCODE
- ;Start-G-Code:
- M190 S[first_layer_bed_temperature];set and wait
- M109 S[first_layer_temperature] ;set and wait
- M300 S100 P5000 ;BEEP
- G28 X Y
- G28 Z
- G92 E0 ; zero filament pos
- G1 E30 F200 ;extrude
- G92 E0 ; zero filament pos
- OCTOPRINT - Settings - Custom Gcode Settings
- ;Before print job starts
- M300 S500 P500 ;BEEP
- ;After print job completes
- G92 E0 ; zero filament pos
- G1 E-2 F300 ;retract
- G92 E0 ; zero filament pos
- G91 ; relative
- G0 Z2 F9000; move up
- G90; absolute
- G92 E0 ; zero filament pos
- G1 E-13 F300 ;retract
- G92 E0 ; zero filament pos
- G28 X0
- G0 Y200 F3000 ; BED FORWARD
- M104 S0 ; turn off temperature
- M140 S0 ; BED OFF
- M84 ; disable motors
- M300 S500 P1000 ;BEEP
- M300 S1000 P500 ;BEEP
- M300 S2000 P250 ;BEEP
- ;After print job is cancelled
- G92 E0 ; zero filament pos
- G1 E-15 F300 ;retract 15mm filament speed 300
- G92 E0 ; zero filament pos
- G91 ;relative
- G0 Z10 ; up
- G90 ; absolute
- M104 S0 ; turn off temperature
- M140 S0 ; BED OFF
- G28 X0
- G0 Y200 F3000 ; BED FORWARD
- M84 ; disable motors
- ;After print job is paused
- G92 E0
- G1 E-15 F300 ;retract
- G92 E0
- G91;relative
- G0 Z10 F9000 ;UP
- G90; absolute
- G0 X0 Y200 F9000 ;arbitrary absolute pos
- M300 S500 P2000 ;BEEP
- ;Before print job is resumed
- M300 S500 P2000 ;BEEP
- G28 X Y ;home XY ONLY, to negate any unpowered bed movement by user, only as accurate as the endstops
- G90; absolute
- G0 X0 Y200 F9000 ;arbitrary absolute pos
- G92 E0
- G1 E15 F300 ;extrude
- G92 E0
- G91;relative
- G0 Z-10 F9000 ;down
- G90; absolute
Advertisement
Add Comment
Please, Sign In to add comment