Skip to content

Instantly share code, notes, and snippets.

@davidhbrown
davidhbrown / mk4_start.gcode
Last active October 29, 2024 18:50
Prusa MK4 "Start G-code" to use with Carbon Fiber "Twill" build plate from Wham Bam
M17 ; enable steppers
M862.3 P "[printer_model]" ; printer model check
M862.1 P[nozzle_diameter] A{(filament_abrasive[0] ? 1 : 0)} F{(nozzle_high_flow[0] ? 1 : 0)} ; nozzle check
M115 U6.1.3+7898
M555 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4)} W{((min(print_bed_max[0], max(first_layer_print_min[0] + 32, first_layer_print_max[0])))) - ((min(print_bed_max[0], first_layer_print_min[0] + 32) - 32))} H{((first_layer_print_max[1])) - ((max(0, first_layer_print_min[1]) - 4))}
G90 ; use absolute coordinates
M83 ; extruder relative mode
M140 S[first_layer_bed_temperature] ; set bed temp