End of print error -- out of range

Basic Information:

Printer Model: Kingroon KP3s
MCU / Printerboard: Kingroon branded Robin Nano
klippy.log (4.5 MB)

klippy.log

Fill out above information and in all cases attach your klippy.log file. Pasting your printer.cfg is not needed

Describe your issue: Me again. I’ve been working on installing Klipper on my favorite budget printer. I’ve had another try and I’ve got everything working – and working well – with one last exception. At the very end of the print the head – instead of homing – moves quickly back to the maximum X,Y position and stops. The error generated in “Move out of range: 0.000 200.000 11.000 [319.178]”. This makes no sense to me. I figure it’s got to be a G code issue, but where? There is an “end of print” macro on my printer.cfg page, but I have no idea how that works. The interface is Mainsail. Slicer is Cura. The very same G code had no problems on the stock firmware.

Any help much appreciated!

Could be helpful if we could see the code.

You can attach it as a zipped file to your next post.

In Cura, go to Settings->Printer->Manage Printer->Machine Settings. Post the contents of your End G-Code section. I suspect that there is something in there that is trying to send the toolhead off the back of he printer

Thanks – here’s the end g-code from Cura:

G91; relative positioning
G1 Z1.0 F3000 ; move z up little to prevent scratching of print
G90; absolute positioning
G1 X0 Y200 F1000 ; prepare for part removal
M104 S0; turn off extruder
M140 S0 ; turn off bed
G1 X0 Y300 F1000 ; prepare for part removal
M84 ; disable motors
M106 S0 ; turn off fan

Is it the “Y200” in the 4th line down?

If you compare:

[stepper_y]
...
position_max = 180
...

versus

G90; absolute positioning
G1 X0 Y200 F1000 ; prepare for part removal
...
G1 X0 Y300 F1000 ; prepare for part removal
...

you might gain an Aha-moment :wink:

2 Likes

I did, once I thought about it. I simply edited the Cura and of print code with “0” for both of the Y positions and now I have a clean end of print and return from home. This means I now have Klipper fully functioning – after a long while of futzing about!!! Now, on to adding a probe, and then input shaping. In other words, issue resolved.

2 Likes