WhiteHare
Posts: 22
Joined: Sat Jun 02, 2018 7:41 pm

How can I sequence bed leveling to be *before* heating the HB and HE?

The problem is that the heating g-code isn't even in the start script, which is:

Code: Select all

M115 U3.0.7 ; use the latest firmware version
G28 W ; home all axes without mesh bed leveling
G80 ; run mesh bed leveling routine
G1 Y-3.0 F1000.0 ; prepare to prime
G92 E0 ; reset extrusion distance
G1 X60.0 E9.0  F1000.0 ; priming
G1 X100.0 E12.5  F1000.0 ; priming
I can, of course, manually manipulate the gcode in the generated gcode file to produce the desired effect, which is:

Code: Select all

G80 ; run mesh bed leveling routine 
G90
M82
M106 S0
M140 S60
M190 S60
M104 S230 T0
M109 S230 T0
M115 U3.0.7 ; use the latest firmware version
G28 W ; home all axes without mesh bed leveling
G1 Y-3.0 F1000.0 ; prepare to prime
G92 E0 ; reset extrusion distance
G1 X60.0 E9.0  F1000.0 ; priming
G1 X100.0 E12.5  F1000.0 ; priming
G92 E0
G1 E-1.0000 F2400
G1 Z0.600 F1000
That does work, but it's tedious. I would rather not have to do manual manipulation every time I produce a g-code file. The problem seems to be that not all of the starting gcode is actually in the gcode start script.

Please advise.
shocksofmighty
Posts: 88
Joined: Mon Sep 12, 2016 11:36 am

Re: How can I sequence bed leveling to be *before* heating the HB and HE?

I don't think you really want to do that, because it makes a lot more sense to level everything when at least the heated bed is at temperature. If you dig around, you'll find quite a few explanations on how to change your starting gcode. Here is the latest one that might be useful: viewtopic.php?f=8&t=10168
WhiteHare
Posts: 22
Joined: Sat Jun 02, 2018 7:41 pm

Re: How can I sequence bed leveling to be *before* heating the HB and HE?

Thanks! I took your advice and am bed leveling after heating the bed, but before heating the hot end:

Code: Select all

M500 ; create config-override
G90
G1 Z50 ; raise PINDA so that it's not effected by the heating of the heat bed
M140 S[bed0_temperature] ; bed temp
M190 S[bed0_temperature] ; wait for bed temp
G80 ; run mesh bed leveling routine
G90
G1 Z50 ; raise PINDA so that it's not effected by the heating of the heat bed
M106 S[fan_speed_pwm] ; fan speed
M104 S[extruder0_temperature] T0 ; nozzle temp
M109 S[extruder0_temperature] T0 ; wait for nozzle temp
The above applies to a Prusa I3 MK3.
MichaelHerron
Posts: 112
Joined: Mon Mar 16, 2015 2:36 pm

Re: How can I sequence bed leveling to be *before* heating the HB and HE?

I believe this is true:

If you add the heating commands to your start script, it will not automatically heat BEFORE your start script. So add them where you want in your script.

BUT you should perform the leveling routine with a hot bed.

Return to “General Discussion and Tips”