Wipe macro give errors

Printer Model: Custom
MCU / Printerboard: skr 1.4 turbo
Rpi 4b with Fluidd
klippy (1).log (2.3 MB)

Hi, i’m working on a brush, on the side of the bed, i’ve created the macro and it work well.
But when i insert the macro on the start gcode, the print process start, but when it’s the time to brush i got this error.

!! Move out of range: -13.041 120.00 0.072 [0.000]
!! Move out of range: -13.041 120.00 0.072 [0.000]
!! Move out of range: -13.041 120.00 0.072 [0.000]

I tried also to put G91 at the start of the wipe macro and G90 at the ending of the macro, i got the same error but coordinates change.

If i start the macro not in a print it works, but while printing it fail, and printing doesn’t continue.
My x min is -12.80, the endstop is outside the bed, and the nozzle have a lot of space between the bed and the endstop when is homed.
I put the brush on the side of the right side of the bed.
Why if i give x-12.70 and my x_min is -12.80 i got this strange coordinates and value?

This is the macro

[gcode_macro WIPE]
gcode:
    G1 X-12.70 Y120 Z0 F9000 ;Wipe 1
    G1 X11.20 Y80 Z0 F9000 ;Wipe 2
    G1 X-12.70 Y120 Z0 F9000 ;Wipe 3
    G1 X11.20 Y80 Z0 F9000 ;Wipe 4
    G1 X-12.70 Y120 Z0 F9000 ;Wipe 5
    G1 X11.20 Y80 Z0 F9000 ;Wipe 6
    G1 X-12.70 Y120 Z0 F9000 ;Wipe 7
    G1 X11.20 Y80 Z0 F9000 ;Wipe 8
    G1 X-12.70 Y120 Z0 F9000 ;Wipe 9
    G1 X11.20 Y80 Z0 F9000 ;Wipe 10
    G1 X-12.70 Y120 Z0 F9000 ;Wipe 11
    G1 X11.20 Y80 Z0 F9000 ;Wipe 12
    G1 X11.20 Y80 Z5 F9000 ;Raise to clear brush

and this one is the start

[gcode_macro START_PRINT_ADAPTIVE_PURGE]
gcode:
   status_Preparing
   SKEW_PROFILE LOAD=CaliFlower
   G90 ; Set all axes to absolute
   M82; set extruder to absolute
   G21; Set all in mm
   G28 ;Home
   M140 S{params.BED_TEMP}; #set bed temperature
   M190 S{params.BED_TEMP}; #wait bed temperature
   status_Meshing
   BED_MESH_CALIBRATE ADAPTIVE=1;
   status_Preparing
   M104 S{params.EXTRUDER_TEMP}; #set extruder temperature
   Smart_Park
   M109 S{params.EXTRUDER_TEMP}; #wait extruder temperature
   WIPE
   LINE_PURGE
   G92 E0;
   status_Printing

for understanding my start gcode:

Status_printing
Status_Preparing
Status_Meshing

Are macro for led

Smart_Park
LINE_PURGE

Are the macro from KAMP, i use it only for purging near the print.

Thanks in advice!

Please use the Preformatted Text feature of the forum editor for code.
Format
We do not know if and where are spaces in your code

1 Like

oh, sorry! edited in right way!

1 Like

Fixed, the skew profile change a little bit the coordinate for compensating the skew, so i enabled and got the coordinates with skew profile enabled, now works well!

1 Like