summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2017-08-20 18:49:47 (EDT)
committer P. J. McDermott <pj@pehjota.net>2017-08-20 22:13:54 (EDT)
commit693b425d9fc62525582866ad76e6d5dc8d6c78a8 (patch)
treefda2a7176f819799bf61723aa7c2773f9bf5f959
parent601339dab65e9b66bc21641a8fb7fe28ac25f29b (diff)
downloadslic3r-693b425d9fc62525582866ad76e6d5dc8d6c78a8.zip
slic3r-693b425d9fc62525582866ad76e6d5dc8d6c78a8.tar.gz
slic3r-693b425d9fc62525582866ad76e6d5dc8d6c78a8.tar.bz2
printer: Add custom start/end G-code files
G-code is easier to read in separate files than in Slic3r configuration. This G-code is based on the LulzBot Mini G-code provided by Aleph Objects. To increase speed, I added commands to set the hotend temperature without waiting and arranged some commands like G28 and G1 to run while the hotend heats up. For better clarity, I also added more comments and blank lines and vertically aligned wiping command arguments.
-rw-r--r--.Slic3r/printer/LulzBot Mini, HIPS - end.gcode30
-rw-r--r--.Slic3r/printer/LulzBot Mini, HIPS - start.gcode96
2 files changed, 126 insertions, 0 deletions
diff --git a/.Slic3r/printer/LulzBot Mini, HIPS - end.gcode b/.Slic3r/printer/LulzBot Mini, HIPS - end.gcode
new file mode 100644
index 0000000..ece4b93
--- /dev/null
+++ b/.Slic3r/printer/LulzBot Mini, HIPS - end.gcode
@@ -0,0 +1,30 @@
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; Begin LulzBot Mini HIPS end G-code ;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+; Ensure moves are complete
+M400 ; Pause processing until moves complete
+
+; Begin cooling
+M104 S0 ; Set hotend temperature without waiting
+M140 S0 ; Set bed temperature without waiting
+M107 ; Turn off the print cooling fan
+
+; Move to cooling position and retract filament
+G92 E0 ; Set extruder position to 0 (origin)
+G1 X5 Y5 Z156 E-5 F10000 ; Move bed and nozzle and retract filament
+M190 R60 ; Wait for bed to cool
+
+; Move to print removal position
+M140 S0 ; Set bed temperature without waiting
+G1 X145 Y175 Z156 F10000 ; Move bed forward and toolhead right
+
+; Idle
+M84 ; Turn off stepper motors
+G90 ; Set absolute positioning mode
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; End LulzBot Mini HIPS end G-code ;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
diff --git a/.Slic3r/printer/LulzBot Mini, HIPS - start.gcode b/.Slic3r/printer/LulzBot Mini, HIPS - start.gcode
new file mode 100644
index 0000000..1e00c18
--- /dev/null
+++ b/.Slic3r/printer/LulzBot Mini, HIPS - start.gcode
@@ -0,0 +1,96 @@
+
+; Input file name: [input_filename]
+; Printer preset: [printer_preset]
+; Filament preset: [filament_preset]
+; Print preset: [print_preset]
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; Begin LulzBot Mini HIPS start G-code ;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+; Set units, positioning modes, and extruder origin
+G21 ; Set units to millimeters
+G90 ; Set absolute positioning mode
+M82 ; Set E absolute mode (override G91)
+G92 E0 ; Set extruder position to 0 (origin)
+
+; Begin heating hotend to HIPS retraction temperature
+M107 ; Turn off the print cooling fan
+M104 S150 ; Set hotend temperature without waiting
+M140 S[first_layer_bed_temperature] ; Set bed temperature without waiting
+
+; While waiting for the hotend to heat, auto-home the axes
+G28 ; Auto-home all axes
+M109 ; Wait for hotend temperature
+
+; Retract filament before wiping
+G1 Z150 E-30 F75 ; Slowly lower Z and retract filament
+
+; Begin heating hotend to HIPS wiping temperature
+M104 S170 ; Set hotend temperature without waiting
+
+; While waiting for the hotend to heat, position the nozzle over the wiping pad
+G1 X45 Y174 Z10 F11520 ; Move nozzle to just over wiping pad
+M109 ; Wait for hotend temperature
+
+; Wipe the nozzle
+G1 Z-0.5 F4000 ; Plunge nozzle into wiping pad
+G1 X55 Y172 F4000 ; Wipe
+G1 X45 Y174 Z0 F4000 ; Wipe
+G1 X55 Y172 F4000 ; Wipe
+G1 X45 Y174 F4000 ; Wipe
+G1 X55 Y172 F4000 ; Wipe
+G1 X45 Y174 F4000 ; Wipe
+G1 X55 Y172 F4000 ; Wipe
+G1 X60 Y174 F4000 ; Wipe
+G1 X80 Y172 F4000 ; Wipe
+G1 X60 Y174 F4000 ; Wipe
+G1 X80 Y172 F4000 ; Wipe
+G1 X60 Y174 F4000 ; Wipe
+G1 X90 Y172 F4000 ; Wipe
+G1 X80 Y174 F4000 ; Wipe
+G1 X100 Y172 F4000 ; Wipe
+G1 X80 Y174 F4000 ; Wipe
+G1 X100 Y172 F4000 ; Wipe
+G1 X80 Y174 F4000 ; Wipe
+G1 X100 Y172 F4000 ; Wipe
+G1 X110 Y174 F4000 ; Wipe
+G1 X100 Y172 F4000 ; Wipe
+G1 X110 Y174 F4000 ; Wipe
+G1 X100 Y172 F4000 ; Wipe
+G1 X110 Y174 F4000 ; Wipe
+G1 X115 Y172 Z-0.5 F1000 ; Wipe slower, bury nozzle in cleanish area
+G1 Z10 ; Lift out of wiping pad
+
+; Begin heating hotend to HIPS probing temperature
+M104 S170 ; Set hotend temperature without waiting
+
+; While waiting for the hotend to heat, auto-home X and Y
+G28 X0 Y0 ; Auto-home X and Y
+M109 ; Wait for hotend temperature
+
+; Probe the bed and enable bed leveling compensation
+M204 S300 ; Set acceleration for probing moves
+G29 ; Probe the bed
+M204 S2000 ; Set acceleration back to normal
+G1 Z10 F5000 ; Lift off the bed-leveling washer
+
+; Begin heating hotend to first layer temperature
+M104 S[first_layer_temperature] ; Set hotend temperature without waiting
+
+; While waiting for the hotend to heat, position the nozzle and pause
+G1 X5 Y15 F5000 ; Move near front left corner
+G4 S1 ; Dwell/pause command queue for 1 second
+M400 ; Pause processing until moves complete
+
+; Ensure the hotend and bed are at the first layer temperatures
+M109 ; Wait for hotend temperature
+M190 ; Wait for bed temperature
+
+; Extrude filament back into the nozzle
+G1 Z2 E0 F75 ; Slowly raise nozzle and extrude filamant
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; End LulzBot Mini HIPS start G-code ;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+