# Move out of range error after homing

**URL:** <https://klipper.discourse.group/t/move-out-of-range-error-after-homing/19829>\
**Category:** General Discussion\
**Created:** [November 2, 2024, 9:31pm UTC](https://klipper.discourse.group/t/move-out-of-range-error-after-homing/19829 "2024-11-02T21:31:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CursedSword](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/cursedsword/32/15374_2.png) [@CursedSword](https://klipper.discourse.group/u/CursedSword)\
**Post date:** [November 2, 2024, 9:31pm UTC](https://klipper.discourse.group/t/move-out-of-range-error-after-homing/19829/1 "2024-11-02T21:31:29Z")

</div>

### Basic Information:

Printer Model: Custom  
 MCU / Printerboard: BTT E3EZ  
 Host / SBC mainsail  
{X} Klippy log  
[klippy.log](https://klipper.discourse.group/uploads/short-url/aV4BfMedNpmvRpGBIOFJ5xrhtkr.log) (1.0 MB)

### Describe your issue:

i looked at the solutions for this and it said to add G90 to the start of the program. or right after G28 i did that. its in there 3 times. it should be working.  
do i have to add it in after every line of code or is there a better fix for this?

 ![Screenshot_899](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/7/7478623eced6c307ed84a5974cd70fb3f7db3386.png)

…

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [November 2, 2024, 9:35pm UTC](https://klipper.discourse.group/t/move-out-of-range-error-after-homing/19829/2 "2024-11-02T21:35:18Z")

</div>

Hello @CursedSword !

Please stick to the template: The most important information is missing.  
Deleting the lines that ask for the klippy.log do not free you from attaching it.

> [@How-To Ask for Help](https://klipper.discourse.group/t/how-to-ask-for-help/6327/1):
>
> How-To Ask for Help General All contributors here help out in their spare time and because they want to give something back to the Klipper project. Be respectful and patient. If someone knows the answer to your question, they will answer it. Choose the right Category Questions / Issues should go into the General Discussion category most of the time. Filling the template is mandatory. The categories Config, Developers and Macros are used to post results of one’s work for the benefit of others T…

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [November 2, 2024, 10:18pm UTC](https://klipper.discourse.group/t/move-out-of-range-error-after-homing/19829/4 "2024-11-02T22:18:04Z")

</div>

The log complains moves to negative coordinate in X and Y.

How did you setup the origin of the printer in the slicer?

Posting the klippy.log in your second post was quite ok.

---

<div class="post-metadata">

**Author:** ![CursedSword](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/cursedsword/32/15374_2.png) [@CursedSword](https://klipper.discourse.group/u/CursedSword)\
**Post date:** [November 3, 2024, 4:56pm UTC](https://klipper.discourse.group/t/move-out-of-range-error-after-homing/19829/5 "2024-11-03T16:56:35Z")

</div>

![Screenshot_904](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/f/ff0166c09a5328bb459db0ffe7b8d68f589f8a93.png)  
its set to 0, 0.

its not the actual origin of the bed corner. extruder sits at about +12mm X -6mm Y due to adding optical limit sensors on XY and because of carriage travel limits.  
so that its physical origin in relation the the front left corner. i cant use the full 220mm bed so i limited XY to 200mm to keep it from traveling off the bed during print. it worked well until i upgraded to kipper.

could it be traveling past the endstops after it homes? maybe they arent working accurately?

---

<div class="post-metadata">

**Author:** ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)\
**Post date:** [November 3, 2024, 5:50pm UTC](https://klipper.discourse.group/t/move-out-of-range-error-after-homing/19829/6 "2024-11-03T17:50:10Z")

</div>

For information about limits and homing, you may see here:

> [@Understanding X and Y Axes Limits and Homing](https://klipper.discourse.group/t/understanding-x-and-y-axes-limits-and-homing/10779/1):
>
> The X and Y Axis Klipper needs to know from its printer.cfg settings how far the X and Y axes can safely move without hitting the printer’s frame. It also needs to know where the origin (X=0 / Y=0) is. This origin is the beginning of the usable printer bed. In the following, we assume a Cartesian printer that follows the conventions of a [Cartesian Coordinate System](https://en.wikipedia.org/wiki/Cartesian_coordinate_system). This is also the reason why it is a quasi-standard to define the origin as the left-front corner of the bed. This way, all logic…

---

<div class="post-metadata">

**Author:** ![CursedSword](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/cursedsword/32/15374_2.png) [@CursedSword](https://klipper.discourse.group/u/CursedSword)\
**Post date:** [November 3, 2024, 7:00pm UTC](https://klipper.discourse.group/t/move-out-of-range-error-after-homing/19829/7 "2024-11-03T19:00:56Z")

</div>

thanks, I added a position\_min -1 and it seemed to work. it was able to print after saving and rebooting.

 ![Screenshot_905](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/4/40077a10c3466cb1237655013b2490b5237db7d3.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)\
**Post date:** [December 4, 2024, 5:01am UTC](https://klipper.discourse.group/t/move-out-of-range-error-after-homing/19829/8 "2024-12-04T05:01:22Z")

</div>

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