# Bug---Z Lift on Outline dives into material and runs to start point

**URL:** <https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402>\
**Category:** Kiri:Moto\
**Created:** [September 13, 2021, 9:03pm UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402 "2021-09-13T21:03:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dana1954](https://forum.grid.space/letter_avatar_proxy/v4/letter/d/a183cd/32.png) [@dana1954](https://forum.grid.space/u/dana1954)\
**Post date:** [September 13, 2021, 9:03pm UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/1 "2021-09-13T21:03:12Z")

</div>

To start the CNC is above the part by 2 inches and at part center. When I execute the Gcode the machine dives straight down, at center and them runs through the material to the path starting point. This of course ruins the part.

 ![Untitled2](https://forum.grid.space/uploads/default/original/1X/4dcb882f0de3fd3471c6846a9461ea45fea4d268.png) ![Untitled](https://forum.grid.space/uploads/default/original/1X/ae20ce9167464e78493b6cbe62b8c589d9dc5043.png)

 ![IMG_3428](https://forum.grid.space/uploads/default/original/1X/37e11d7c5ced72e807aba395fdb822aad121f590.jpeg) G21  
G90  
G0 Z-3.1800 F381  
G0 X65.0875 Y-55.6404 F508  
G1 Y55.6405  
G1 X65.0454 Y56.4965  
G1 X64.9082 Y57.4215  
G1 X64.6810 Y58.3286  
G1 X64.3660 Y59.2090  
G1 X63.9662 Y60.0544  
G1 X63.4854 Y60.8564  
G1 X62.9284 Y61.6075  
G1 X62.3004 Y62.3004  
G1 X61.6075 Y62.9284  
G1 X60.8564 Y63.4854  
G1 X60.0544 Y63.9662  
G1 X59.2090 Y64.3660  
G1 X58.3286 Y64.6810  
G1 X57.4215 Y64.9082  
G1 X56.4965 Y65.0454  
G1 X55.6405 Y65.0875

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [September 14, 2021, 12:53am UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/2 "2021-09-14T00:53:34Z")

</div>

@dana1954 please right-click export your workspace and drop it here or in a message to me so I can replicate what you’re seeing.

---

<div class="post-metadata">

**Author:** ![dana1954](https://forum.grid.space/letter_avatar_proxy/v4/letter/d/a183cd/32.png) [@dana1954](https://forum.grid.space/u/dana1954)\
**Post date:** [September 14, 2021, 1:39am UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/3 "2021-09-14T01:39:42Z")

</div>

[workspace.kmz](https://forum.grid.space/uploads/short-url/kXzDV226qOxpuJNJZ7W3eervfhQ.kmz) (249.9 KB)

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [September 14, 2021, 2:05am UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/4 "2021-09-14T02:05:10Z")

</div>

when I use your workspace to generate gcode, this is how it starts for me. the animation reflects this and no collisions. the 1 inch clearance specified is shown in the preview. your gcode is missing the `G0 Z25...` move which I can’t explain. if you re-export the gcode, is it still missing? you can enable gcode preview in preferences so you can see the gcode without export/saving the file.

```auto
G21
G90
G0 Z25.4000 F381
G0 X65.0875 Y-55.6404 F508
G1 Z-3.1800 F254
G1 Y55.6405 F508
G1 X65.0454 Y56.4965
G1 X64.9082 Y57.4215
G1 X64.6810 Y58.3286

```

 ![Screen Shot 2021-09-13 at 3.54.36 PM](https://forum.grid.space/uploads/default/original/1X/8bb00efcc85c7e62573bb2c12ccd05a6e06a7f01.jpeg)

 ![Screen Shot 2021-09-13 at 3.55.31 PM](https://forum.grid.space/uploads/default/original/1X/5016f5a2b17135e81ea2bc837bbdaec4031cc1ad.jpeg)

 ![Screen Shot 2021-09-13 at 3.59.32 PM](https://forum.grid.space/uploads/default/original/1X/f22016852705e4df5f21ec90e455df88dd03d3c7.png)

 ![Screen Shot 2021-09-13 at 4.03.56 PM](https://forum.grid.space/uploads/default/original/1X/0e2efeb15b3f8caaea372d8f4b72a37dd8c906af.jpeg)

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [September 14, 2021, 2:09am UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/5 "2021-09-14T02:09:51Z")

</div>

aha. if i execute the key sequence `S`, `P`, `S`, `X` then I can get it to omit the first move. which is puzzling. but at least repeatable. and so it shall be fixed.

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [September 14, 2021, 2:56am UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/6 "2021-09-14T02:56:13Z")

</div>

found and fixed. will be in the next release. the workaround in the mean-time is to `a` arrange before re-slicing.

---

<div class="post-metadata">

**Author:** ![dana1954](https://forum.grid.space/letter_avatar_proxy/v4/letter/d/a183cd/32.png) [@dana1954](https://forum.grid.space/u/dana1954)\
**Post date:** [September 14, 2021, 12:26pm UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/7 "2021-09-14T12:26:54Z")

</div>

Thanks @stewart . I’ll review the Gcode.

---

<div class="post-metadata">

**Author:** ![dana1954](https://forum.grid.space/letter_avatar_proxy/v4/letter/d/a183cd/32.png) [@dana1954](https://forum.grid.space/u/dana1954)\
**Post date:** [September 14, 2021, 12:56pm UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/8 "2021-09-14T12:56:38Z")

</div>

What revision should I be using. I selected 3.0 and the “G0 Z25.4000 F381” was in the code

---

<div class="post-metadata">

**Author:** ![dana1954](https://forum.grid.space/letter_avatar_proxy/v4/letter/d/a183cd/32.png) [@dana1954](https://forum.grid.space/u/dana1954)\
**Post date:** [September 14, 2021, 12:58pm UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/9 "2021-09-14T12:58:59Z")

</div>

> [@stewart](#):
>
> `S`, `P`, `S`, `X`

What does this mean, I never use keys?

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [September 14, 2021, 6:30pm UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/10 "2021-09-14T18:30:14Z")

</div>

slice, preview, slice, export

both 2.9 and 3.0 suffered from a stale state bug that would cause this. it’s been patched but not yet pushed to production. thanks for the report.

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [September 15, 2021, 2:45am UTC](https://forum.grid.space/t/bug-z-lift-on-outline-dives-into-material-and-runs-to-start-point/402/11 "2021-09-15T02:45:11Z")

</div>

now fixed in production
