#Unknown command:"G29"

18 messages · Page 1 of 1 (latest)

hexed lava
#

Hi, I have an Ender 3 S1 with a BL Touch. My GCode from Prusa Slicer has G29 to start, since the configuration from Prusa Slicer is made to use the stock GCode that triggers a Bed Mesh Levelling.

It seems Klipper does not have G29 as a GCode, but some people recommended the following macro that is supposed to accomplish the same purpose:

[gcode_macro G29]
gcode:
 G28
 BED_MESH_CALIBRATE
 SAVE_CONFIG
 G1 X0 Y0 Z5 F4000

The problem is, when I add this to my printer.cfg I get another error that says Must home axis first... and then my prints never start printing.

Please help? I would like to use the macro above and have it actually calibrate, save to default, and then successfully print.

Thanks.

wise pelican
#

You have a G28 in there that would be homing.

#

Send a gcode file so that we see the sequence

hexed lava
#

Here's a small gcode file from my slicer

wise pelican
#

Can you home at all?

#
M83 ; extruder relative mode
M140 S60 ; set final bed temp
M104 S150 ; set temporary nozzle temp to prevent oozing during homing and auto bed leveling
G4 S10 ; allow partial nozzle warmup
G28 ; home all axis
G29 ; auto bed levelling``` that are you starting gcode
#

First movement command is G28

#

What happens if you use the home all button in Mainsail

#

And you need to change G4 S10 to G4 P10000 since Klipper does not support S

hexed lava
hexed lava
wise pelican
#

Oh sorry I am an idiot! Change the macro to

[gcode_macro G29]
gcode:
 G28
 BED_MESH_CALIBRATE
 G1 X0 Y0 Z5 F4000

You do a mesh each print so you do not need to use SAVE_CONFIG. SAVE_CONFIG does restart Klipper and you would need to home and set your temperatures afterwards again

hexed lava
#

Thanks

#

I had a feeling it was that

#

but I am new

#

I'll try it on my next print which might be tomorrow morning. Or sooner if I get an answer on how to safely print at double speed