# Laser going to safe z after every line of code

**URL:** <https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981>\
**Category:** General Chat\
**Tags:** lasers\
**Created:** [July 9, 2025, 7:23am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981 "2025-07-09T07:23:38Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bstanga](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/bstanga/32/791_2.png) [@Bstanga](https://forum.avidcnc.com/u/Bstanga)\
**Post date:** [July 9, 2025, 7:23am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/1 "2025-07-09T07:23:38Z")

</div>

should the laser be going to safe z after every line of code? All that up and down seems like it add a lot of time to the cut.

---

<div class="post-metadata">

**Author:** ![Rab3rd](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/rab3rd/32/5271_2.png) [@Rab3rd](https://forum.avidcnc.com/u/Rab3rd)\
**Post date:** [July 9, 2025, 10:43am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/2 "2025-07-09T10:43:01Z")

</div>

It should not be doing that.

---

<div class="post-metadata">

**Author:** ![Eric](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/eric/32/3220_2.png) [@Eric](https://forum.avidcnc.com/u/Eric)\
**Post date:** [July 9, 2025, 10:51am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/3 "2025-07-09T10:51:58Z")

</div>

What are you using to generate the g code? The Vectric laser module won’t do that.

If you’re trying to run g code generated for routing (and setting the rpm from 0-100 for laser power) you still need to set your safe heights very very low to avoid this.

My recommendation: use the laser module.

---

<div class="post-metadata">

**Author:** ![Bstanga](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/bstanga/32/791_2.png) [@Bstanga](https://forum.avidcnc.com/u/Bstanga)\
**Post date:** [July 9, 2025, 6:23pm UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/4 "2025-07-09T18:23:48Z")

</div>

Yes I was using the vetric laser module for gcode, I contacted Jim and he sent me a PP that fixed the issue. The item pictured was taking 4hrs to laze and now it is down to 2hrs,  
Yeah Jim!!  
thanks.  
bs

 ![2025-06-21 13.28.19](https://canada1.discourse-cdn.com/flex027/uploads/avidcnc/original/2X/7/70ead35451ea839bf11804f766fce10c51483b23.jpeg)

---

<div class="post-metadata">

**Author:** ![Eric](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/eric/32/3220_2.png) [@Eric](https://forum.avidcnc.com/u/Eric)\
**Post date:** [July 9, 2025, 7:25pm UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/5 "2025-07-09T19:25:43Z")

</div>

Odd that the laser module was producing g code that had lifts in it.. it shouldn’t have done that.

---

<div class="post-metadata">

**Author:** ![NLE](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/nle/32/3880_2.png) [@NLE](https://forum.avidcnc.com/u/NLE)\
**Post date:** [July 10, 2025, 1:07am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/6 "2025-07-10T01:07:41Z")

</div>

Awesome project, may I ask where you got the vector file from?

---

<div class="post-metadata">

**Author:** ![Bstanga](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/bstanga/32/791_2.png) [@Bstanga](https://forum.avidcnc.com/u/Bstanga)\
**Post date:** [July 10, 2025, 1:10am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/7 "2025-07-10T01:10:19Z")

</div>

I scanned it from a piece that was bought on vacation. Pretty good idea. Right?

---

<div class="post-metadata">

**Author:** ![NLE](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/nle/32/3880_2.png) [@NLE](https://forum.avidcnc.com/u/NLE)\
**Post date:** [July 10, 2025, 1:11am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/8 "2025-07-10T01:11:28Z")

</div>

It worked well from the picture.

---

<div class="post-metadata">

**Author:** ![Bstanga](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/bstanga/32/791_2.png) [@Bstanga](https://forum.avidcnc.com/u/Bstanga)\
**Post date:** [July 10, 2025, 1:12am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/9 "2025-07-10T01:12:35Z")

</div>

Yes I have made a few of them

---

<div class="post-metadata">

**Author:** ![jjneeb](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/jjneeb/32/244_2.png) [@jjneeb](https://forum.avidcnc.com/u/jjneeb)\
**Post date:** [July 10, 2025, 4:41am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/10 "2025-07-10T04:41:05Z")

</div>

> [@Eric](#):
>
> Odd that the laser module was producing g code that had lifts in it.. it shouldn’t have done that.

I could have sworn Vectric fixed that a while back, but I just did a couple test cases on Vcarve pro 12.5, and it is definitely generating a safe Z lift on every rapid move if I use the stock AVID pp. I didn’t notice it before because I use a modified pp that takes out all but the first rapid Z. Thats the one I gave to Brian to try.

---

<div class="post-metadata">

**Author:** ![jjneeb](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/jjneeb/32/244_2.png) [@jjneeb](https://forum.avidcnc.com/u/jjneeb)\
**Post date:** [July 10, 2025, 4:44am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/11 "2025-07-10T04:44:39Z")

</div>

12.0 does the same thing too.

---

<div class="post-metadata">

**Author:** ![Eric](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/eric/32/3220_2.png) [@Eric](https://forum.avidcnc.com/u/Eric)\
**Post date:** [July 10, 2025, 10:56am UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/12 "2025-07-10T10:56:03Z")

</div>

Ahhh, so we’re talking about a lift between operations, not on a group of vectors.

To avoid this you can make your Z lift .0001 and the it effectively won’t lift (but still will lift for rapids at the start and end of the job)

---

<div class="post-metadata">

**Author:** ![jjneeb](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.avidcnc.com/jjneeb/32/244_2.png) [@jjneeb](https://forum.avidcnc.com/u/jjneeb)\
**Post date:** [July 10, 2025, 9:05pm UTC](https://forum.avidcnc.com/t/laser-going-to-safe-z-after-every-line-of-code/4981/13 "2025-07-10T21:05:55Z")

</div>

> [@Eric](#):
>
> To avoid this you can make your Z lift .0001 and the it effectively won’t lift

When you do that you really have to remember to change it back again for the next spindle job because it will remember this setting for the next job and drag your end mill across the surface.
