Flsun klipper conversions: Q5 and SR

Basic Information:

Flsun Q5
Robin Nano
Pi 4B
klippy.log

Describe your issue:

After a fair bit of wrestling I got my Flsun SR (SKR V1.3) converted to Klipper, calibrated and printing. So while everything was fresh in my mind I installed Klipper on it and it’s partnered Pi 4B. I ran the same process for loading and configuring the Pi 4B, ran the Make Menuconfig, make and transfering the klipper.bin to the Q5. I then grabbed the Q5 configuration file from klipper/config at master · Klipper3d/klipper · GitHub and loaded in into mainsail for the Q5 and went through it then saved and restarted. What I did not notice was that the Gcode macro section was missing, but Mainsail was quick to point it out. So went to the running SR configuration and I copied the entire last section of the printer.cfg file and pasted it into the Q5 printer.cfg file. After updating the pin-out for the filament sensor I saved and restarted. All of the mainsail errors then cleared, but I got a new one: Existing command ‘PAUSE’ not found in gcode_macro rename.

I have been researching this error and it appears to be an syntax issue of some form. So here is the question - If that section works fine in the SR, why do I get that error on the Q5. I loaded the exact same images from the Pi imager so they should be the same… right?

klippy.log (119.5 KB)

You should call your new macro not PAUSE_MACRO. It is just called PAUSE.

[gcode_macro PAUSE_MACRO]    # <------
rename_existing = BASE_PAUSE
gcode = 
	SAVE_GCODE_STATE NAME=PAUSE_state
	BASE_PAUSE
	G91
	G1 E-{E} F2100
	G1 Z{Z}
	G90
	G1 X{printer.toolhead.axis_maximum.x / 2} Y{printer.toolhead.axis_maximum.y} F6000

BTW: same with RESUME

When you want to rename an existing macro, the new macro has to have the same name.

Else it is just a new macro. Then you do not have to use rename_existing

Shouldn’t the new macro of a given name be placed after the original?

For PAUSE and RESUME, this means putting them after the [include mainsail.comf] statement in `printer.cfg’.

1 Like

The point that I am trying to make is that the macro section of two different systems is as identical as Copy/Paste can make them and one system gets Marco errors and the other does not.

I did rename the pause macro to pause_macro and now get: Existing command ‘PAUSE_MACRO’ not found in gcode_macro rename

When you did changes on the config, please always attach a new klippy.log

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.