Why once in awhile, Klipper gives "Move out of range" error?

Basic Information:

Printer Model: Prusa i3MK3S+
MCU / Printerboard: Einsy
Host / SBC: RPi 5
klippy.log

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

I recall that few months ago I had this “Move out of range” issue. Since then, it has happened 2-3 times again. For example, I had a print job which lasted 5 hours. It completed this morning without issue. When I tried to print again, the job was cancelled automatically. In the Console, it showed “Move out of range: 71.435 132.535 220.310 [55158.333]”.

What is the reason for Klipper to keep doing this to me and how to prevent this from happening again?

klippy_move_out_of_range.zip (1.4 MB)

The model appears to be too high:

[stepper_z]
step_pin = PC2
dir_pin = !PL2
enable_pin = !PA5
microsteps = 16
rotation_distance = 8
endstop_pin = probe:z_virtual_endstop
position_max = 215   #<==============
position_min = -2
homing_speed = 13.333
Move out of range: 71.435 132.535 220.310 [55158.333]
                                  ^^^^^^^1

Maybe you should set up your slicer properly with the printers dimensions/limits to avoid that already before printing.

1 Like

Thanks. What value do you recommend to change to? Why there was no such problem the past few weeks but all of a sudden, this problem is happeing again? I think the last time this happened, it was about the extruder moving too much to the left.

You shouldn’t need to change your Klipper bounds since those look pretty accurate to the MK3S+ (if you change it the printer physically can’t move much further). In your slicer’s printer settings, I would recommend ensuring your maximum Z-height is no more than 215mm to match Klipper’s config.

Note that your print end macro/slicer end G-Code may not respect this maximum height, so you’ll have to inspect that too to make sure it’s not trying to move the extruder too high.