# Move out of range! but i have mesh loaded!

**URL:** <https://klipper.discourse.group/t/move-out-of-range-but-i-have-mesh-loaded/6085>\
**Category:** General Discussion\
**Created:** [January 21, 2023, 1:12pm UTC](https://klipper.discourse.group/t/move-out-of-range-but-i-have-mesh-loaded/6085 "2023-01-21T13:12:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarkPhoinix](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@DarkPhoinix](https://klipper.discourse.group/u/DarkPhoinix)\
**Post date:** [January 21, 2023, 1:12pm UTC](https://klipper.discourse.group/t/move-out-of-range-but-i-have-mesh-loaded/6085/1 "2023-01-21T13:12:59Z")

</div>

I have big problem with Z i don’t want put negative values on position\_min because i have a mesh of the bed!  
Can any one help me?  
[klippy.log](https://klipper.discourse.group/uploads/short-url/yR4fL9GMQOSHqSz5jqlFa96Q8id.log) (1.2 MB)

Cura gcode:  
Start:  
;M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration

;M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate

M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration

;M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk

M220 S100 ;Reset Feedrate

M221 S100 ;Reset Flowrate

G28 ;Home

;M420 S1 Z2 ;Enable ABL using saved Mesh and Fade Height

BED\_MESH\_PROFILE LOAD=“default” ;klipper

G92 E0 ;Reset Extruder

G1 Z2.0 F3000 ;Move Z Axis up

;G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position

G1 X2 Y2 Z0.28 F5000.0 ;Move to start position

;G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line

G1 X2.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line

;G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little

G1 X2.4 Y200.0 Z0.28 F5000.0 ;Move to side a little

;G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line

G1 X2.4 Y2 Z0.28 F1500.0 E30 ;Draw the second line

G92 E0 ;Reset Extruder

G1 Z2.0 F3000 ;Move Z Axis up

END:  
G91 ;Relative positioning

G1 E-2 F2700 ;Retract a bit

G1 E-2 Z0.2 F2400 ;Retract and raise Z

G1 X5 Y5 F3000 ;Wipe out

G1 Z10 ;Raise Z more

G90 ;Absolute positioning

G1 X{machine\_width} Y{machine\_depth} ;Present print

M106 S0 ;Turn-off fan

M104 S0 ;Turn-off hotend

M140 S0 ;Turn-off bed

M84 X Y E ;Disable all steppers but Z

---

<div class="post-metadata">

**Author:** ![George](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/george/32/3585_2.png) [@George](https://klipper.discourse.group/u/George)\
**Post date:** [January 21, 2023, 1:24pm UTC](https://klipper.discourse.group/t/move-out-of-range-but-i-have-mesh-loaded/6085/2 "2023-01-21T13:24:09Z")

</div>

Use position\_min: -3 . Your bed mesh is falling below Z=0 and that’s why you get “out of range”.

---

<div class="post-metadata">

**Author:** ![DarkPhoinix](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@DarkPhoinix](https://klipper.discourse.group/u/DarkPhoinix)\
**Post date:** [January 21, 2023, 2:02pm UTC](https://klipper.discourse.group/t/move-out-of-range-but-i-have-mesh-loaded/6085/3 "2023-01-21T14:02:08Z")

</div>

Bed mesh is not a virtual bed?  
Why the machine don’t change 0 of Z next move to XY coordinates of mesh bed?  
Negative position\_min is not dangerous?  
mesh is useless ?

---

<div class="post-metadata">

**Author:** ![George](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/george/32/3585_2.png) [@George](https://klipper.discourse.group/u/George)\
**Post date:** [January 21, 2023, 4:55pm UTC](https://klipper.discourse.group/t/move-out-of-range-but-i-have-mesh-loaded/6085/4 "2023-01-21T16:55:10Z")

</div>

Mesh is just a map of hills and valleys. Some valleys are under 0 because you bed isn’t perfectly flat. Negative position is not dangerous as long as you don’t try deliberate to move your Z under 0 but it’s necessary as a buffer for mesh.

---

<div class="post-metadata">

**Author:** ![DarkPhoinix](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@DarkPhoinix](https://klipper.discourse.group/u/DarkPhoinix)\
**Post date:** [January 24, 2023, 12:06pm UTC](https://klipper.discourse.group/t/move-out-of-range-but-i-have-mesh-loaded/6085/5 "2023-01-24T12:06:08Z")

</div>

> [@DarkPhoinix](#):
>
> I have big problem with Z i don’t want put negative values on position\_min

i know , but “I have big problem with Z i don’t want put negative values on position\_min” is not possible?  
Thank you anyway.

---

<div class="post-metadata">

**Author:** ![Sineos](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/sineos/32/18_2.png) [@Sineos](https://klipper.discourse.group/u/Sineos)\
**Post date:** [January 24, 2023, 12:56pm UTC](https://klipper.discourse.group/t/move-out-of-range-but-i-have-mesh-loaded/6085/6 "2023-01-24T12:56:26Z")

</div>

No, not possible. You need some head-room for the mesh also in the negative direction. How much depends on the quality of your bed and the respective deviations of the mesh.

---

<div class="post-metadata">

**Author:** ![DarkPhoinix](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@DarkPhoinix](https://klipper.discourse.group/u/DarkPhoinix)\
**Post date:** [January 24, 2023, 6:57pm UTC](https://klipper.discourse.group/t/move-out-of-range-but-i-have-mesh-loaded/6085/7 "2023-01-24T18:57:46Z")

</div>

Thank you,  
a lot of people and guides they explain the negative value on only for testing and next you need put only 0 because is dangerous have negative value!  
I thought why are another way for work.
