Notifications
Clear all

prusaslicer gcode ABL  

  RSS
Astro-ScrewUps
(@astro-screwups)
Membre
prusaslicer gcode ABL

Running Windows, OctoPrint, and using Prusaslicer 2.6.0.  I used default setting for CR-10 Smart.  In the gcode it will do an auto bed level.  I starts it and then it doesn't stop.  I am new to 3d printers and gcode.  It cycles up the heating, then drops the hotend temp and maintains the bed temp for the duration of one cycle, then does the loop all over again.  Here is the full gcode on START:

M17 ; enable steppersM862.3 P "[printer_model]" ; printer model checkM862.1 P[nozzle_diameter] ; nozzle diameter checkM555 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 coordinatesM83 ; extruder relative mode

M140 S[first_layer_bed_temperature] ; set bed temp{if filament_type[initial_tool]=="PC" or filament_type[initial_tool]=="PA"}M104 S{first_layer_temperature[initial_tool]-25} ; set extruder temp for bed levelingM109 R{first_layer_temperature[initial_tool]-25} ; wait for temp{elsif filament_type[initial_tool]=="FLEX"}M104 S210 ; set extruder temp for bed levelingM109 R210 ; wait for temp{else}M104 S170 ; set extruder temp for bed levelingM109 R170 ; wait for temp{endif}

M84 E ; turn off E motor

G28 ; home all without mesh bed level

G1 X{10 + 32} Y-4 Z5 F4800

M302 S160 ; lower cold extrusion limit to 160C

{if filament_type[initial_tool]=="FLEX"}G1 E-4 F2400 ; retraction{else}G1 E-2 F2400 ; retraction{endif}

M84 E ; turn off E motor

G29 P9 X10 Y-4 W32 H4

{if first_layer_bed_temperature[initial_tool]<=60}M106 S100{endif}

G0 Z40 F10000

M190 S[first_layer_bed_temperature] ; wait for bed temp

M107

;; MBL;M84 E ; turn off E motorG29 P1 ; invalidate mbl & probe print areaG29 P1 X0 Y0 W50 H20 C ; probe near purge placeG29 P3.2 ; interpolate mbl probesG29 P3.13 ; extrapolate mbl outside probe areaG29 A ; activate mbl

; prepare for purgeM104 S{first_layer_temperature[0]}G0 X0 Y-4 Z15 F4800 ; move away and ready for the purgeM109 S{first_layer_temperature[0]}

G92 E0M569 S0 E ; set spreadcycle mode for extruder

;; Extrude purge line;G92 E0 ; reset extruder positionG1 E{(filament_type[0] == "FLEX" ? 4 : 2)} F2400 ; deretraction after the initial one before nozzle cleaningG0 E7 X15 Z0.2 F500 ; purgeG0 X25 E4 F500 ; purgeG0 X35 E4 F650 ; purgeG0 X45 E4 F800 ; purgeG0 X{45 + 3} Z{0.05} F{8000} ; wipe, move close to the bedG0 X{45 + 3 * 2} Z0.2 F{8000} ; wipe, move quickly away from the bed

G92 E0M221 S100 ; set flow to 100%

 

If anyone can help, I would appreciate it.  Thanks

Publié : 25/06/2023 3:10 pm
Astro-ScrewUps
(@astro-screwups)
Membre
Topic starter answered:
RE: prusaslicer gcode ABL

small update, I let the ABL do its thing. I ran either 3 or 4 times then started to print.  I hope it doesn't do that for all prints in the future.

 

what is the gcode for using a previous bed mesh?  what lines to I add and what lines do I get rid of?

Publié : 25/06/2023 3:30 pm
Partager :