Skip to content

Instantly share code, notes, and snippets.

@rovangju
Created February 18, 2024 15:24
Show Gist options
  • Select an option

  • Save rovangju/6092793ee921f6536cf561c3d4ed5758 to your computer and use it in GitHub Desktop.

Select an option

Save rovangju/6092793ee921f6536cf561c3d4ed5758 to your computer and use it in GitHub Desktop.
sv06-start/end
M104 S0 ; extruder heater off
M140 S0 ; bed off
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F2000 ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning
M117 Initializing
G21 ; set units to millimeters
G90 ; use absolute move coordinates
G92 E0 ; reset extruder
M117 Preheat
M104 S150 ; set extruder no-ooze temp
M190 R{first_layer_bed_temperature[0]} ; wait bed
M117 Homing
G0 Z5 F500 ; raise z to avoid scratch
G28 X Y ; home x y
M117 Leveling
M300 S440 P200 ; notify that bed leveling
G28 Z ; home z
G29 A ; active UBL
G29 L0 ; load mesh slot 0
G29 J2 ; Probe 4 points and tilt mesh
M117 Priming
G0 Z2.0 F500 ; move Z up a tish for quick move
G0 X5.0 Y35.0 Z0.3 F4000.0 ; Go to start
M109 R{first_layer_temperature[0]} ;Final hotend temp
G1 X5.0 Y190.0 Z0.3 F1500.0 E12 ; Draw the first line
G1 X5.4 Y190.0 Z0.3 F3000.0 ; Move to the side a little
G1 X5.4 Y20.0 Z0.3 F1500.0 E24 ; Draw the second line
G1 Z1.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X5.5 Y25 Z0.2 F5000.0 ; Blob be gone
G92 E0; Reset Extruder
M117 Starting Print
M300 S400 P50 ; beep
M300 S600 P100 ; Beep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment