# Check axis coordinates in gcode before printing

**URL:** <https://klipper.discourse.group/t/check-axis-coordinates-in-gcode-before-printing/15610>\
**Category:** Features\
**Created:** [April 8, 2024, 7:08pm UTC](https://klipper.discourse.group/t/check-axis-coordinates-in-gcode-before-printing/15610 "2024-04-08T19:08:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SileNTViP](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silentvip/32/11047_2.png) [@SileNTViP](https://klipper.discourse.group/u/SileNTViP)\
**Post date:** [April 8, 2024, 7:08pm UTC](https://klipper.discourse.group/t/check-axis-coordinates-in-gcode-before-printing/15610/1 "2024-04-08T19:08:23Z")

</div>

If the slicer specifies a larger area than is actually available to the printer. Neither the slicer nor the clipper swears. The clipper gets a move error only when it reaches this command. 6 hours of printing and a lot of plastic lost. The default setting in the slicer was 230x230 on Ender-3 v2. The printer with the head mod actually has a 236x223 area available to it.

---

<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:** [April 8, 2024, 7:19pm UTC](https://klipper.discourse.group/t/check-axis-coordinates-in-gcode-before-printing/15610/2 "2024-04-08T19:19:10Z")

</div>

Hello @SileNTViP !

Honestly, you have to take care to set the slicer to the correct printer profile so that this does not happen.

> [@SileNTViP](#):
>
> Neither the slicer

How should it do? It does exactly what is set in the profiles.

> [@SileNTViP](#):
>
> The printer with the head mod actually has a 236x223 area available to it.

The slicer can be set to these values.

However, this is not Klipper’s (not _the clipper_) task to do a check. It more a task to the frontend.

---

<div class="post-metadata">

**Author:** ![SileNTViP](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/silentvip/32/11047_2.png) [@SileNTViP](https://klipper.discourse.group/u/SileNTViP)\
**Post date:** [April 8, 2024, 7:33pm UTC](https://klipper.discourse.group/t/check-axis-coordinates-in-gcode-before-printing/15610/3 "2024-04-08T19:33:40Z")

</div>

> [@EddyMI3D](#):
>
> Honestly, you have to take care to set the slicer to the correct printer profile so that this does not happen.

Already measured the maximum coordinates where the head can reach and replaced the default Ender-3 v2 profile with my parameters.

---

<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:** [April 8, 2024, 7:35pm UTC](https://klipper.discourse.group/t/check-axis-coordinates-in-gcode-before-printing/15610/4 "2024-04-08T19:35:14Z")

</div>

Please attach the klippy.log to your **next post**.

---

<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:** [April 9, 2024, 6:35am UTC](https://klipper.discourse.group/t/check-axis-coordinates-in-gcode-before-printing/15610/5 "2024-04-09T06:35:55Z")

</div>

> [@SileNTViP](#):
>
> If the slicer specifies a larger area than is actually available to the printer. Neither the slicer nor the clipper swears. The clipper gets a move error only when it reaches this command

This is by design of gcode as it uses relative coordinates. To avoid this, Klipper would have to simulate the entire print in order to check if something is wrong WRT this.  
Technically Klipper is [able to do this](https://www.klipper3d.org/Debugging.html), but of course it takes time. The bigger the file, the more time it takes.

Introducing such a time penalty, just to catch an obvious misconfiguration, seems not necessary. Once corrected, it will not pop up again.

---

<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:** [June 8, 2024, 6:36am UTC](https://klipper.discourse.group/t/check-axis-coordinates-in-gcode-before-printing/15610/6 "2024-06-08T06:36:35Z")

</div>

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