Basic Information:
Printer Model: Ender 5 Plus
MCU / Printerboard: SKR E3 mini v3
klippy.log
klippy.log (974.7 KB)
Describe your issue:
Hello I’m just a new Klipper user and I’m just struggling with a custom macro I’m try to create. The idea of this macro is to move the toolhead in the 4 corners of the bed for a certain number of times, pause on each corner and restart after a resume. It was working fine in Marlin (was written in g-code) and now I would like to migrate it into Klipper. This is my macro
[gcode_macro CUSTOM_BED_LEVELING]
variable_loops: 2 # number of probing angles
gcode:
{% set LF_x = 10 %}
{% set LF_y = 10 %}
{% set LR_x = 10 %}
{% set LR_y = 350 %}
{% set RR_x = 350 %}
{% set RR_y = 350 %}
{% set RF_x = 350 %}
{% set RF_y = 10 %}
SET_FILAMENT_SENSOR SENSOR=BTT_SFS ENABLE=0
G28
G1 Z20
PAUSE_BASE
G1 F3000
{% for i in range(loops) %}
M117 start loop
G1 X{LR_x} Y{LR_y}
PAUSE_BASE
G1 X{LF_x} Y{LF_y}
PAUSE_BASE
G1 X{RR_x} Y{RR_y}
PAUSE_BASE
G1 X{RF_x} Y{RF_y}
PAUSE_BASE
{% endfor %}
G1 X180 Y180
SET_FILAMENT_SENSOR SENSOR=BTT_SFS ENABLE=1
The toolhead correctly moves on all the 4 corners for the number of times configured but it never pause on each of them. From console I see
17:48:39 $ custom_bed_leveling
17:49:01 // action:paused
17:49:01 // Print already paused
17:49:02 // Print already paused
Did I do or missed something?
thank you for your support